/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --paper: #f4efe4;
    --paper-warm: #ebe4d4;
    --paper-deep: #ddd4c0;
    --ink: #1c1c1c;
    --ink-mid: #3d3d3d;
    --ink-light: #6b6560;
    --ink-faint: #9a9288;
    --ink-wash: rgba(28, 28, 28, 0.06);
    --cinnabar: #a83232;
    --cinnabar-dark: #7a2424;
    --jade: #4a5d52;
    --mist: rgba(180, 175, 165, 0.35);
    --radius: 2px;
    --radius-sm: 1px;
    --font-brush: "Ma Shan Zheng", "Noto Serif SC", serif;
    --font-heading: "Noto Serif SC", "Songti SC", serif;
    --font-body: "Noto Sans SC", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.85;
    min-height: 100vh;
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 90% 60% at 10% 20%, rgba(200, 195, 185, 0.5), transparent 60%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(180, 175, 165, 0.4), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(220, 215, 205, 0.3), transparent 70%),
        linear-gradient(175deg, #f7f2e8 0%, var(--paper) 45%, var(--paper-warm) 100%);
    background-attachment: fixed;
}

/* 宣纸纹理 + 水墨晕染 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 55% 35% at 75% 15%, rgba(40, 40, 40, 0.04), transparent 70%),
        radial-gradient(ellipse 45% 30% at 20% 75%, rgba(40, 40, 40, 0.05), transparent 65%),
        radial-gradient(ellipse 60% 25% at 50% 100%, rgba(74, 93, 82, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 远山写意 */
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    background:
        linear-gradient(to top, rgba(74, 93, 82, 0.08) 0%, transparent 100%),
        radial-gradient(ellipse 40% 100% at 15% 100%, rgba(60, 70, 65, 0.12), transparent 70%),
        radial-gradient(ellipse 35% 90% at 55% 100%, rgba(50, 60, 55, 0.1), transparent 65%),
        radial-gradient(ellipse 30% 80% at 85% 100%, rgba(55, 65, 60, 0.09), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 水墨卷轴面板 */
.ink-panel {
    background: rgba(252, 248, 240, 0.72);
    border: 1px solid rgba(28, 28, 28, 0.1);
    box-shadow:
        0 2px 20px rgba(28, 28, 28, 0.05),
        inset 0 0 60px rgba(235, 228, 212, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(244, 239, 228, 0.88);
    border-bottom: 1px solid rgba(28, 28, 28, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 16px rgba(28, 28, 28, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-family: var(--font-brush);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.logo::after {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    margin-left: 12px;
    background: linear-gradient(90deg, var(--ink), transparent);
    vertical-align: middle;
    opacity: 0.35;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-light);
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.3s ease, left 0.3s ease;
    opacity: 0.5;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink-mid);
    border-radius: 0;
}

/* Hero */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    position: relative;
}

.hero::before {
    content: "墨";
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-brush);
    font-size: clamp(8rem, 18vw, 14rem);
    color: rgba(28, 28, 28, 0.03);
    pointer-events: none;
    line-height: 1;
}

.hero-content {
    max-width: 760px;
    padding: 44px 40px;
    background: rgba(252, 248, 240, 0.65);
    border: 1px solid rgba(28, 28, 28, 0.1);
    border-left: 3px solid var(--cinnabar);
    box-shadow:
        4px 8px 32px rgba(28, 28, 28, 0.06),
        inset 0 0 80px rgba(235, 228, 212, 0.4);
    position: relative;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border: 2px solid var(--cinnabar);
    border-radius: 2px;
    opacity: 0.25;
    transform: rotate(3deg);
}

.hero-eyebrow {
    color: var(--ink-light);
    font-size: 0.82rem;
    margin-bottom: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    letter-spacing: 0.1em;
}

.mono-tag {
    font-size: 0.72rem;
    color: var(--cinnabar);
    border: 1px solid rgba(168, 50, 50, 0.35);
    background: rgba(168, 50, 50, 0.06);
    border-radius: 0;
    padding: 3px 10px;
    letter-spacing: 0.15em;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.hero-subtitle {
    color: var(--ink-light);
    margin-bottom: 32px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 400;
    transition: all 0.35s ease;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
}

.btn-primary {
    padding: 12px 28px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink-mid);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--paper);
    border-color: var(--ink);
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

/* Sections */
section {
    padding: 88px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--cinnabar), transparent);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.65rem;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: 0.06em;
}

.section-intro {
    color: var(--ink-light);
    max-width: 720px;
    font-weight: 300;
}

.games-section {
    border-top: 1px solid rgba(28, 28, 28, 0.08);
    border-bottom: 1px solid rgba(28, 28, 28, 0.08);
    background: rgba(235, 228, 212, 0.25);
}

.games-grid {
    display: grid;
    gap: 28px;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
    background: rgba(252, 248, 240, 0.7);
    border: 1px solid rgba(28, 28, 28, 0.09);
    box-shadow: 2px 6px 24px rgba(28, 28, 28, 0.05);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
}

.game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 28, 28, 0.08), transparent);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 4px 12px 36px rgba(28, 28, 28, 0.08);
}

.game-card:nth-child(even) .game-image {
    order: 2;
}

.game-image {
    border-radius: 0;
    border: 1px solid rgba(28, 28, 28, 0.1);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.game-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 {
    background:
        radial-gradient(ellipse 80% 70% at 30% 60%, rgba(60, 70, 65, 0.35), transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 30%, rgba(40, 40, 40, 0.15), transparent 65%),
        linear-gradient(160deg, #d8d0c0 0%, #c8bfb0 50%, #b8aea0 100%);
}

.game-2 {
    background:
        radial-gradient(ellipse 70% 60% at 60% 70%, rgba(74, 93, 82, 0.3), transparent 65%),
        radial-gradient(ellipse 50% 40% at 25% 25%, rgba(40, 40, 40, 0.12), transparent 60%),
        linear-gradient(145deg, #d0c8b8 0%, #c0b8a8 50%, #b0a898 100%);
}

.game-3 {
    background:
        radial-gradient(ellipse 75% 65% at 50% 50%, rgba(50, 55, 50, 0.25), transparent 70%),
        radial-gradient(ellipse 40% 35% at 80% 20%, rgba(168, 50, 50, 0.08), transparent 60%),
        linear-gradient(170deg, #ccc4b4 0%, #bcb4a4 50%, #aca494 100%);
}

.game-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.game-description {
    color: var(--ink-light);
    font-weight: 300;
}

.about-content {
    max-width: 860px;
    padding: 36px 40px;
    background: rgba(252, 248, 240, 0.65);
    border: 1px solid rgba(28, 28, 28, 0.09);
    border-right: 3px solid rgba(74, 93, 82, 0.4);
    box-shadow: 2px 6px 28px rgba(28, 28, 28, 0.05);
    position: relative;
}

.about-content::after {
    content: "意";
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-family: var(--font-brush);
    font-size: 3rem;
    color: rgba(28, 28, 28, 0.04);
    pointer-events: none;
}

.about-lead,
.about-description,
.careers-intro {
    color: var(--ink-light);
    font-weight: 300;
}

.about-lead {
    margin-bottom: 14px;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(252, 248, 240, 0.6);
    border: 1px solid rgba(28, 28, 28, 0.08);
    border-left: 2px solid var(--jade);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.position-item:hover {
    background: rgba(252, 248, 240, 0.9);
    box-shadow: 2px 6px 20px rgba(28, 28, 28, 0.06);
}

.position-item h4 {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.03em;
}

.position-meta {
    color: var(--ink-faint);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
}

.position-link {
    color: var(--cinnabar);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
}

.position-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-info,
.contact-form {
    padding: 28px;
    background: rgba(252, 248, 240, 0.65);
    border: 1px solid rgba(28, 28, 28, 0.09);
    box-shadow: 2px 6px 24px rgba(28, 28, 28, 0.05);
}

.contact-block-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    padding-left: 10px;
    border-left: 2px solid var(--cinnabar);
}

.contact-address,
.contact-info p,
.contact-note,
.form-intro {
    color: var(--ink-light);
    font-weight: 300;
}

.contact-link {
    color: var(--jade);
    text-decoration: none;
    font-weight: 400;
}

.contact-link:hover {
    color: var(--cinnabar);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid rgba(28, 28, 28, 0.18);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ink-mid);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-faint);
    letter-spacing: 0.05em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
    background: rgba(235, 228, 212, 0.3);
}

.footer {
    padding: 56px 0 28px;
    border-top: 1px solid rgba(28, 28, 28, 0.1);
    background: rgba(235, 228, 212, 0.4);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cinnabar), transparent);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.footer-logo {
    font-family: var(--font-brush);
    color: var(--ink);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

.footer-description,
.footer-bottom {
    color: var(--ink-faint);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--ink-light);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cinnabar);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid rgba(28, 28, 28, 0.18);
    border-radius: 0;
    background: transparent;
    color: var(--ink-mid);
    font-family: var(--font-body);
    font-weight: 300;
}

.newsletter-form input:focus {
    outline: none;
    border-bottom-color: var(--ink);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: rgba(244, 239, 228, 0.95);
        border-bottom: 1px solid rgba(28, 28, 28, 0.1);
        flex-direction: column;
        gap: 14px;
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(28, 28, 28, 0.06);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero::before {
        display: none;
    }

    .hero-content {
        padding: 32px 24px;
    }

    .game-card,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .game-card:nth-child(even) .game-image {
        order: 0;
    }

    .footer-content {
        flex-direction: column;
    }
}
