:root {
    --washi-white: #F0F0F2;
    --kintsugi-gold: #B39750;
    --kintsugi-gold-bright: #D4AF37;
    --ink-black: #1A1A1A;
    --cinnabar: #D9381E;
    --gold-glow: rgba(179, 151, 80, 0.4);
    --paper-texture: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.6" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    --container-bg: rgba(20, 20, 20, 0.95);
    --border-gold: rgba(179, 151, 80, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--ink-black);
    color: var(--washi-white);
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
    line-height: 1.6;
}

#app {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(to right, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.4) 50%, rgba(26, 26, 26, 0.8) 100%),
        url('/bg_base.png') no-repeat center center;
    background-size: cover;
}

#app::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--paper-texture);
    opacity: 0.03;
    pointer-events: none;
    z-index: 10;
}

/* Kintsugi Canvas for Dynamic Lines */
#kintsugi-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: transparent;
}

header {
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* 调高 z-index 确保置顶 */
    background: rgba(40, 40, 45, 0.5);
    /* 调高亮度，降低不透明度 */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* 增强磨砂感和色彩饱和 */
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(179, 151, 80, 0.15);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
}

.logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2rem;
    color: var(--kintsugi-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    /* Ink Stroke */
}

.nav-links {
    display: flex;
    gap: 2rem;
    /* Reduced from 3rem for more items */
    align-items: center;
}

.nav-item {
    color: var(--washi-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--kintsugi-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-item.active {
    color: var(--kintsugi-gold);
}

.nav-item.active::after {
    width: 100%;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--kintsugi-gold);
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

/* LANG SWITCHER */
/* LANG SWITCHER (MINIMALIST DROPDOWN) */
.lang-switcher-container {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(179, 151, 80, 0.2);
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.lang-current {
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--kintsugi-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: all 0.3s;
    opacity: 0.8;
}

.lang-current:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(179, 151, 80, 0.4);
}

.dropdown-arrow {
    font-size: 0.6rem;
    color: rgba(179, 151, 80, 0.6);
    transition: transform 0.3s;
}

/* DROPDOWN MENU */
.lang-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    width: 160px;
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(179, 151, 80, 0.3);
    border-radius: 2px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

/* Active State (Shown via JS) */
.lang-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    color: var(--washi-white);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    font-family: 'Roboto Mono', monospace;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option span {
    font-size: 0.7rem;
    opacity: 0.4;
    font-family: 'Noto Serif SC', serif;
}

.lang-option:hover {
    background: rgba(179, 151, 80, 0.1);
    color: var(--kintsugi-gold);
}

.lang-option:hover span {
    opacity: 0.8;
    color: var(--kintsugi-gold);
}

/* Kintsugi Decor Line on Top */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kintsugi-gold), transparent);
    opacity: 0.5;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 600px;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInSlide 1s forwards ease-out 0.5s;
}

.title {
    font-family: 'Noto Serif SC', serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--washi-white);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--kintsugi-gold);
    margin-bottom: 3rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    /* Strong contrast */
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    letter-spacing: 0.1rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--kintsugi-gold);
    color: var(--kintsugi-gold);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px black;
}

.btn-primary:hover {
    background: var(--kintsugi-gold);
    color: var(--ink-black);
    box-shadow: 0 0 30px rgba(179, 151, 80, 0.4);
}

.btn-full {
    width: 100%;
    display: block;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-row>.input-field {
    flex: 1;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* HERO CTA BUTTON (Special Sizing) */
.btn-play {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    border-width: 2px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(179, 151, 80, 0.2);
    animation: goldPulse 3s infinite;
}

.btn-play:hover {
    box-shadow: 0 0 50px rgba(179, 151, 80, 0.6);
    transform: scale(1.05);
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 20px rgba(179, 151, 80, 0.2);
        border-color: rgba(179, 151, 80, 0.8);
    }

    50% {
        box-shadow: 0 0 40px rgba(179, 151, 80, 0.5);
        border-color: rgba(212, 175, 55, 1);
    }

    100% {
        box-shadow: 0 0 20px rgba(179, 151, 80, 0.2);
        border-color: rgba(179, 151, 80, 0.8);
    }
}

.view-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
    /* Controlled by JS */
    min-height: 80vh;
    padding-top: 100px;
    /* Space for fixed header */
    flex: 1;
}

#content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-section.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInSlide 0.8s ease-out forwards;
}

/* INTRO SECTION */
.intro-container {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.3);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}


.intro-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.intro-card:hover {
    border-color: var(--kintsugi-gold);
    background: rgba(26, 26, 26, 0.8);
    transform: translateY(-5px);
}

.card-icon {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--kintsugi-gold);
    opacity: 0.4;
    /* Increased from 0.2 */
    position: absolute;
    top: -10px;
    right: 10px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

.intro-card h3 {
    color: var(--washi-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
}

.intro-card p {
    color: rgba(240, 240, 242, 0.7);
    font-size: 0.9rem;
}

.card-highlight {
    color: var(--kintsugi-gold-bright) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* PROTOCOL ZERO SECTION */
.protocol-zero {
    margin-top: 5rem;
    text-align: center;
    border-top: 1px solid rgba(179, 151, 80, 0.2);
    padding-top: 4rem;
}

.protocol-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5rem;
    margin-bottom: 3rem;
    text-shadow: none;
}

.protocol-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.protocol-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.protocol-val {
    font-family: 'Noto Serif SC', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--washi-white);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.protocol-desc {
    font-size: 0.8rem;
    color: var(--kintsugi-gold);
    line-height: 1.5;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* GENERIC SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--washi-white);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--kintsugi-gold);
    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    opacity: 1.0;
    /* Increased opacity for legibility */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

/* GAME PLACEHOLDER */
.game-placeholder {
    width: 90%;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--kintsugi-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--kintsugi-gold);
    gap: 2rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-top: 2px solid var(--kintsugi-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* EMPTY STATES & FORMS */
.empty-state {
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(179, 151, 80, 0.03);
    border: 1px solid rgba(179, 151, 80, 0.1);
}

.form-tabs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(179, 151, 80, 0.2);
    padding-bottom: 0.5rem;
}

.form-tab {
    font-size: 0.95rem;
    color: rgba(240, 240, 242, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.1rem;
}

.form-tab.active {
    color: var(--kintsugi-gold);
    text-shadow: 0 0 10px rgba(179, 151, 80, 0.3);
}

.form-footer {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(240, 240, 242, 0.8);
    margin-top: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.form-footer a {
    color: var(--kintsugi-gold);
    text-decoration: none;
    margin-left: 0.5rem;
}

.input-field {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: var(--washi-white);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.input-field:focus {
    border-color: var(--kintsugi-gold);
}

footer {
    padding: 2rem 5%;
    font-size: 0.7rem;
    color: rgba(240, 240, 242, 0.4);
    letter-spacing: 0.1rem;
    border-top: 1px solid rgba(179, 151, 80, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

/* Default Hidden Hamburger */
.hamburger-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {

    /* Hide desktop nav links by default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        /* Below header */
        right: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        padding: 2rem 0;
        border-bottom: 3px solid var(--kintsugi-gold);
        z-index: 1000;
        animation: slideDown 0.3s ease;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    /* Hamburger Button */
    .hamburger-btn {
        display: block;
        background: none;
        border: 1px solid var(--kintsugi-gold);
        padding: 0.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--kintsugi-gold);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Adjust nav container for flex row with space between */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    /* Mobile Nav Items */
    .nav-item {
        font-size: 1rem;
        /* Reduced from 1.2rem */
        padding: 0.6rem;
        /* Reduced from 1rem */
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(179, 151, 80, 0.2);
    }

    /* Lang Switcher in Mobile Menu */
    .lang-switcher-container {
        margin-top: 0.8rem;
        /* Reduced from 1.5rem */
        position: relative;
        /* Ensure relative layout */
    }

    /* Override absolute positioning for mobile dropdown */
    .lang-switcher-container .lang-dropdown {
        position: static;
        /* Flow naturally */
        width: 100%;
        max-width: 300px;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.05);
        /* Faint background to distinguish */
        border: none;
        backdrop-filter: none;
        display: none;
        /* Controlled by JS toggle still */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .lang-switcher-container .lang-dropdown.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Fix Hero Title Size specifically for English long text */
    .hero h1 {
        word-break: break-word;
        /* Allow breaking if needed */
        font-size: 2rem !important;
        /* Smaller for mobile */
    }

    .title {
        font-size: 3rem;
    }
}

/* --- SPLIT LAYOUT REFRACTOR --- */
.split-layout {
    display: flex;
    width: 100%;
    min-height: 80vh;
    padding-top: 4rem;
    gap: 4rem;
}

.left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

.right-col {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MINI HERO (Left Col) */
.hero-mini .hero-content {
    text-align: left;
    margin-bottom: 3rem;
}

.hero-mini .title {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero-mini .subtitle {
    font-size: 1.2rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--kintsugi-gold);
}

/* GAMEPLAY STACK (Left Col) */
.gameplay-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.intro-card.mini-card {
    padding: 1.5rem;
    margin: 0;
    text-align: left;
    border-left: 2px solid rgba(179, 151, 80, 0.3);
    border-top: none;
    border-right: none;
    border-bottom: none;
    background: linear-gradient(90deg, rgba(20, 20, 23, 0.8), transparent);
}

.mini-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--washi-white);
}

.mini-card p {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    opacity: 0.7;
}

/* CTA CONTAINER (Left Col) */
.cta-container {
    text-align: left;
    padding-left: 1rem;
}

/* CREATOR SHOWCASE (Right Col) */
.creator-showcase {
    width: 100%;
    height: 600px;
    background: rgba(20, 20, 23, 0.6);
    border: 1px solid var(--kintsugi-gold);
    border-radius: 4px;
    position: relative;
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(179, 151, 80, 0.1);
}

.creator-showcase:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.showcase-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    color: var(--kintsugi-gold-bright);
    line-height: 1;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(179, 151, 80, 0.4);
}

.showcase-title .en {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.5rem;
    color: var(--washi-white);
    opacity: 0.5;
    margin-top: 0.5rem;
}

.showcase-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .val {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    color: var(--washi-white);
    font-weight: bold;
}

.stat-item .label {
    font-size: 0.7rem;
    color: var(--kintsugi-gold);
    letter-spacing: 0.1rem;
}

/* Featured Badge (Zero Barrier) */
.stat-item.featured {
    background: var(--kintsugi-gold);
    color: var(--ink-black);
    padding: 0.8rem 1.2rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    justify-content: center;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-item.featured:hover {
    background: var(--kintsugi-gold-bright);
    box-shadow: 0 0 25px rgba(179, 151, 80, 0.5);
    transform: translateY(-3px);
}

.stat-item.featured .val,
.stat-item.featured .label {
    color: var(--ink-black) !important;
}

.stat-item.featured .val {
    font-size: 1.2rem;
    margin-bottom: 0px;
    line-height: 1;
}

.stat-item.featured .label {
    font-weight: 700;
    opacity: 0.8;
}

.showcase-desc {
    text-align: center;
    color: rgba(240, 240, 242, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* BLUEPRINT VISUAL PLACEHOLDER */
.blueprint-visual {
    position: relative;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(179, 151, 80, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.blueprint-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--kintsugi-gold);
    opacity: 0.3;
}

.blueprint-circle {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 1px solid var(--washi-white);
    border-radius: 50%;
    opacity: 0.2;
}

.blueprint-tag {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--kintsugi-gold);
    white-space: nowrap;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column-reverse;
        padding-top: 2rem;
    }

    .right-col {
        width: 100%;
        margin-bottom: 2rem;
    }

    .creator-showcase {
        height: auto;
        min-height: 400px;
        transform: none;
    }

    .left-col {
        padding: 0 1rem;
        text-align: center;
    }

    .hero-mini .hero-content,
    .intro-card.mini-card,
    .cta-container {
        text-align: center;
    }

    .hero-mini .subtitle {
        border-left: none;
        border-bottom: 2px solid var(--kintsugi-gold);
        padding-bottom: 0.5rem;
        display: inline-block;
    }

    .intro-card.mini-card {
        border-left: none;
        border-bottom: 1px solid rgba(179, 151, 80, 0.3);
    }
}

/* --- ARCHIVE & GALLERY --- */
.archive-container {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(20, 20, 23, 0.4));
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.archive-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border: 1px solid rgba(179, 151, 80, 0.2);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.archive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: desaturate(0.8) contrast(1.1);
    transition: all 0.8s ease;
}

.archive-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.archive-item:hover {
    border-color: var(--kintsugi-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.archive-item:hover .archive-img {
    transform: scale(1.1);
    filter: desaturate(0.2);
}

.archive-item:hover .archive-overlay {
    transform: translateY(0);
    opacity: 1;
}

.archive-overlay h3 {
    color: var(--kintsugi-gold);
    margin-bottom: 0.5rem;
}

/* --- WABI-SABI WINDOW SYSTEM --- */
.wabi-window {
    background: var(--container-bg);
    border: 1px solid var(--kintsugi-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.wabi-window::before,
.wabi-window::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
}

.wabi-window::before {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--kintsugi-gold-bright);
    border-left: 3px solid var(--kintsugi-gold-bright);
}

.wabi-window::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid var(--kintsugi-gold-bright);
    border-right: 3px solid var(--kintsugi-gold-bright);
}

/* Expansion Classes */
.large-view {
    max-width: 1200px !important;
    width: 90% !important;
    margin: 2rem auto !important;
}

.standard-view {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* --- THEMED TABLES --- */
.wabi-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid var(--border-gold);
}

.wabi-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--washi-white);
}

.wabi-table th {
    background: rgba(179, 151, 80, 0.1);
    color: var(--kintsugi-gold);
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--kintsugi-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    position: sticky;
    top: 0;
}

.wabi-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gold);
}

.wabi-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* --- ADMIN & CREATOR DASHBOARD CARDS --- */
.dashboard-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-gold);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 1rem;
}

.dashboard-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--kintsugi-gold);
    font-size: 1.5rem;
    margin: 0;
}

/* --- STATUS INDICATORS --- */
.status-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.status-pending {
    color: #ffc107;
    border: 1px solid #ffc107;
}

.status-approved {
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-rejected {
    color: #f44336;
    border: 1px solid #f44336;
}

/* --- STORE REDESIGN --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 强制 4 列，确保排布整齐 */
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1100px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 平板 2 列 */
    }
}

@media (max-width: 600px) {
    .store-grid {
        grid-template-columns: 1fr;
        /* 手机 1 列 */
    }
}

.wabi-store-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-gold);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.wabi-store-item:hover {
    border-color: var(--kintsugi-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.wabi-store-item.featured {
    border: 2px solid var(--kintsugi-gold-bright);
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95) 0%, rgba(50, 40, 20, 0.9) 100%);
    /* 加深不透明度 */
    grid-column: 1 / -1;
    padding: 3rem;
    /* 增加内边距使其更显眼 */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
    position: relative;
}

.wabi-store-item.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
    animation: featuredPulse 4s infinite;
}

@keyframes featuredPulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

.currency-val {
    color: #00e5ff;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

/* --- BUTTON EXTENSIONS --- */
.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--kintsugi-gold);
    color: var(--kintsugi-gold);
}

.btn-outline-gold:hover {
    background: var(--kintsugi-gold);
    color: var(--ink-black);
}

.btn-danger {
    border: 1px solid var(--cinnabar);
    color: var(--cinnabar);
}

.btn-danger:hover {
    background: var(--cinnabar);
    color: var(--washi-white);
}

.btn-featured {
    background: var(--kintsugi-gold) !important;
    color: var(--ink-black) !important;
    font-weight: bold !important;
    opacity: 1 !important;
    height: 70px !important;
    font-size: 1.2rem !important;
    box-shadow: 0 0 30px var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.btn-featured:hover {
    background: var(--kintsugi-gold-bright) !important;
    transform: scale(1.02);
}

/* --- SUB-NAVIGATION --- */
.sub-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 1rem;
}

/* --- UPLOAD ZONE REDESIGN --- */
.upload-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.upload-left {
    flex: 1;
}

.upload-right {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-zone {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(179, 151, 80, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone:hover {
    border-color: var(--kintsugi-gold);
    background: rgba(179, 151, 80, 0.05);
    box-shadow: inset 0 0 20px rgba(179, 151, 80, 0.1);
}

.upload-prompt {
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.upload-icon {
    font-size: 3rem;
    color: var(--kintsugi-gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.upload-prompt p {
    color: var(--washi-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

.upload-prompt .desc {
    color: var(--kintsugi-gold);
    font-size: 0.75rem;
    opacity: 0.6;
}

.upload-preview {
    position: absolute;
    inset: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
}

.input-label {
    display: block;
    font-size: 0.75rem;
    color: var(--kintsugi-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

.input-group {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .upload-container {
        flex-direction: column;
    }
}

.script-editor {
    min-height: 350px !important;
    font-family: 'Roboto Mono', 'Microsoft YaHei', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    background: rgba(10, 10, 12, 0.8) !important;
    border: 1px solid rgba(179, 151, 80, 0.4) !important;
    color: var(--washi-white);
    padding: 20px !important;
    resize: vertical;
}

.guide-box {
    margin-top: 1rem;
    padding: 20px;
    background: rgba(10, 20, 30, 0.6);
    border: 1px solid rgba(179, 151, 80, 0.3);
    border-left: 4px solid var(--kintsugi-gold);
    animation: fadeIn 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-view {
    width: 100%;
    max-width: 1200px;
    /* 显著增大最大宽度 */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

#mission-script-area {
    width: 100%;
    clear: both;
}

.script-editor {
    width: 100%;
    min-height: 450px !important;
    /* 进一步增大高度 */
    font-family: 'Consolas', 'Monaco', 'Roboto Mono', monospace;
    font-size: 1rem;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(179, 151, 80, 0.5) !important;
    color: var(--washi-white);
    padding: 25px !important;
    box-sizing: border-box;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MISC UI FIXES --- */
.loading-text {
    font-family: 'Roboto Mono', monospace;
    color: var(--kintsugi-gold);
    opacity: 0.6;
    font-style: italic;
}

/* --- MOBILE OPTIMIZATION (Global 768px) --- */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* Scale down base rem */
    }

    /* Global Section Padding */
    .section,
    footer {
        padding: 3rem 1.5rem;
    }

    /* Navigation Adjustment */
    nav {
        padding: 1rem;
        gap: 1rem;
    }

    /* Hero Text */
    .hero h1,
    .title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    /* Stack Grids */
    .split-section,
    .showcase-grid,
    .footer-content,
    .upload-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
    }

    /* Upload Zone */
    .upload-right {
        width: 100%;
    }

    .upload-zone {
        min-height: 200px;
    }

    /* Buttons */
    .btn,
    .btn-full {
        padding: 1.2rem;
        font-size: 1rem;
        width: 100%;
    }

    /* Stack Login Inputs */
    .input-row {
        flex-direction: column !important;
        gap: 1rem;
    }

    .input-row input {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Store Grid (Force 1 col) */
    .store-grid {
        grid-template-columns: 1fr !important;
    }

    /* Table Responsive */
    .wabi-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    /* Language Switcher Position */
    .lang-switcher-container {
        margin-top: 1rem;
        align-self: center;
    }

    /* Hide some heavy decorative elements if needed */
    .blueprint-visual {
        display: none;
        /* Hide heavy animation on mobile */
    }
}