@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', '宋体', serif;
    background: #FDF8E6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" opacity="0.06"><path fill="none" stroke="%238B6B4A" stroke-width="0.4" d="M20 30 Q 60 10, 100 25 T 180 20 M10 70 Q 50 50, 90 65 T 170 60"/></svg>');
    background-repeat: repeat;
    color: #3A3226;
    line-height: 1.5;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.glass-card {
    background: rgba(255, 249, 239, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid rgba(199, 130, 90, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 32px -8px rgba(139, 30, 45, 0.12);
    border-color: rgba(199, 130, 90, 0.6);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 90%);
    transform: rotate(25deg);
    transition: left 0.5s;
}

.btn-shimmer:hover::after {
    left: 100%;
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(217, 180, 139, 0.5);
    transform: translate(-50%, -50%);
    animation: rippleAnim 0.5s ease-out;
}

@keyframes rippleAnim {
    0% { width: 0; height: 0; opacity: 0.5; }
    100% { width: 80px; height: 80px; opacity: 0; }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-header, .site-footer {
    background: #1A1612;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 100;
}

.site-header {
    border-bottom: 1px solid rgba(217, 180, 139, 0.3);
}

.site-footer {
    border-top: 1px solid rgba(217, 180, 139, 0.3);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.site-header::before, .site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #8B1E2D, transparent);
}

.site-header::before { top: 0; }
.site-footer::before { top: -3px; }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #F0E2C5;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 42px;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #E8DDD0;
    padding: 6px 0;
    position: relative;
}

.nav-link i {
    font-size: 16px;
    color: #D9B48B;
}

.nav-link:hover i {
    color: #F0E2C5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #C77A5A;
    transition: width 0.25s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #F0E2C5;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: #ECE3D8;
    margin: 5px 0;
    transition: 0.3s;
}

.hero {
    text-align: center;
    padding: 48px 0 32px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #8B1E2D;
    letter-spacing: 8px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.hero h1::before, .hero h1::after {
    content: '✧';
    font-size: 2rem;
    color: #D9B48B;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hero h1::before { left: -48px; }
.hero h1::after { right: -48px; }

.hero .slogan {
    font-size: 1.3rem;
    color: #8B1E2D;
    font-weight: 500;
    margin: 8px 0;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1rem;
    color: #6A4E2E;
    max-width: 600px;
    margin: 12px auto 0;
    opacity: 0.8;
}

.progress-area {
    max-width: 550px;
    margin: 20px auto 40px;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 16px 24px;
    border: 1px solid rgba(199, 130, 90, 0.4);
}
.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.progress-label span:first-child {
    font-weight: 600;
    color: #8B1E2D;
}
.progress-label span:last-child {
    font-family: monospace;
    font-size: 1rem;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 30px;
    color: #6A4E2E;
}
.progress-bar-container {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 40px;
    padding: 3px;
    border: 1px solid #D9B48B;
}
.progress-fill {
    height: 14px;
    background: linear-gradient(90deg, #D9B48B, #E6C27A);
    border-radius: 40px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}
.progress-fill::after {
    content: "⚡";
    position: absolute;
    right: -8px;
    top: -4px;
    font-size: 16px;
    color: #C77A5A;
    text-shadow: 0 0 2px #FFF;
}

.scrolls-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin: 50px 0 80px;
}
.scroll-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: rgba(255, 249, 239, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid rgba(199, 130, 90, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-align: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.scroll-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(139, 30, 45, 0.4);
    box-shadow: 0 24px 48px -12px rgba(139, 30, 45, 0.15),
                0 0 0 1px rgba(199, 130, 90, 0.4);
}
.scroll-card:hover .scroll-icon {
    transform: scale(1.1) translateY(-4px);
    color: #8B1E2D;
}
.scroll-icon {
    font-size: 4rem;
    color: #D9B48B;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}
.scroll-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #8B1E2D;
    margin-bottom: 12px;
    transition: 0.3s;
}
.scroll-card:hover .scroll-title {
    letter-spacing: 1px;
}
.scroll-sub {
    font-size: 0.95rem;
    color: #6A4E2E;
    margin-bottom: 30px;
}
.seal {
    width: 70px;
    height: 70px;
    margin: 20px auto 0;
    background: rgba(139,30,45,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #F0E2C5;
    border: 2px solid #D9B48B;
    transition: 0.3s;
}
.scroll-card:hover .seal {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(139,30,45,0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #FFF9EF;
    color: #3A3226;
    max-width: 750px;
    width: 90%;
    border-radius: 48px 24px 48px 24px;
    border: 3px solid #D9B48B;
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    animation: modalFlip 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
}
@keyframes modalFlip {
    from { opacity: 0; transform: perspective(800px) rotateX(-15deg) scale(0.9); }
    to { opacity: 1; transform: perspective(800px) rotateX(0) scale(1); }
}
.modal-header {
    padding: 28px 32px 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #E8DDD0;
}
.modal-header h2 {
    font-size: 2rem;
    color: #8B1E2D;
}
.close-modal {
    font-size: 40px;
    cursor: pointer;
    color: #8B1E2D;
    transition: 0.2s;
    line-height: 1;
}
.close-modal:hover {
    transform: scale(1.2);
    color: #C0392B;
}
.modal-body {
    padding: 28px 32px;
    max-height: 60vh;
    overflow-y: auto;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" opacity="0.03"><path fill="none" stroke="%238B6B4A" stroke-width="0.6" d="M10 20 L190 20 M20 40 L180 40 M30 60 L170 60"/></svg>');
}
.modal-footer {
    padding: 20px 32px 32px;
    text-align: right;
    border-top: 1px solid #E8DDD0;
}
.deep-btn, .btn-primary {
    background: linear-gradient(135deg, #8B1E2D, #A82F3D);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.deep-btn:hover, .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(139,30,45,0.5);
}

.mini-game {
    background: #F0E8D8;
    border-radius: 32px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,200,0.8), 0 6px 12px rgba(0,0,0,0.1);
}
.lantern-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.lantern {
    width: 55px;
    height: 80px;
    background: #8B1E2D;
    border-radius: 50% 50% 35% 35%;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}
.lantern.lit {
    background: #FFB347;
    box-shadow: 0 0 20px #FFB347;
}
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 12px 18px;
    background: white;
    border-radius: 60px;
}
.task-complete {
    background: #D9B48B;
    color: #3A3226;
    border: none;
    border-radius: 40px;
    padding: 6px 20px;
    cursor: pointer;
    font-weight: 600;
}
.task-complete:disabled {
    background: #BCAE9C;
    cursor: default;
}
.identity-select {
    padding: 12px;
    border-radius: 60px;
    border: 1px solid #D9B48B;
    width: 100%;
    background: white;
    font-family: inherit;
}
.dart-target {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.dart {
    width: 70px;
    height: 70px;
    background: #8B1E2D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    transition: 0.05s linear;
}
.dart:active { transform: scale(0.9); }
.drum {
    width: 100px;
    height: 100px;
    background: #C2A060;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}
.ripple-dot {
    width: 40px;
    height: 40px;
    background: #D9B48B;
    border-radius: 50%;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.1s;
    color: #3A3226;
    font-weight: bold;
}
.mood-btn {
    background: #D9B48B;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    margin: 5px;
    cursor: pointer;
    font-family: inherit;
}

.hidden-scroll {
    text-align: center;
    margin: 40px 0 80px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.hidden-scroll.revealed {
    opacity: 1;
    pointer-events: auto;
}
.hidden-scroll .token-card {
    background: linear-gradient(135deg, #8B1E2D, #A82F3D);
    color: white;
    padding: 14px 32px;
    border-radius: 60px;
    display: inline-block;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(139,30,45,0.6);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 240px;
}

.footer-column h3 {
    font-size: 20px;
    color: #D9B48B;
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
}

.footer-column h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #8B1E2D;
    border-radius: 50%;
}

.footer-column.narrative ul {
    list-style: none;
    line-height: 1.8;
}

.footer-column.narrative li {
    position: relative;
    padding-left: 20px;
    color: #BCAE9C;
    transition: all 0.2s ease;
}

.footer-column.narrative li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #8B1E2D;
    font-weight: bold;
}

.footer-column.narrative li:hover {
    color: #F0E2C5;
    transform: translateX(4px);
    padding-left: 22px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.social-icon {
    width: 28px;
    height: 28px;
    background: rgba(217, 180, 139, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D9B48B;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(217, 180, 139, 0.3);
}

.social-text {
    color: #BCAE9C;
    font-size: 15px;
    line-height: 1.5;
}

.social-item:hover .social-icon {
    background: #8B1E2D;
    color: #FDF8E6;
    transform: scale(1.15);
    border-color: #8B1E2D;
    box-shadow: 0 0 8px rgba(139,30,45,0.5);
}

.social-item:hover .social-text {
    color: #F0E2C5;
    font-weight: 500;
}

.gre-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.gre-title {
    font-size: 16px;
    color: #D9B48B;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.gre-path {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 60px;
    margin: 0 auto;
}

.gre-path::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, transparent, #8B1E2D, transparent);
    z-index: 1;
}

.gre-node {
    width: 40px;
    height: 40px;
    background: rgba(30,26,23,0.8);
    border: 2px solid #8B1E2D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #D9B48B;
    position: relative;
    z-index: 2;
    cursor: help;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.gre-node:hover {
    background: #8B1E2D;
    color: #FDF8E6;
    transform: scale(1.25) translateY(-5px);
    box-shadow: 0 4px 12px rgba(139, 30, 45, 0.7);
    z-index: 10;
}

.gre-node:hover::after {
    content: attr(data-fullname);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #F0E2C5;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 11;
}

.gre-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.gre-label {
    font-size: 12px;
    color: #8A7E6E;
    text-align: center;
    width: 80px;
    transform: translateX(-50%);
}

.gre-label:first-child { transform: translateX(0); }
.gre-label:last-child { transform: translateX(0); text-align: right; }

.footer-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(217,180,139,0.2);
    font-size: 13px;
    color: #8A7E6E;
    margin-top: 20px;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .footer-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h1::before, .hero h1::after {
        display: none;
    }
    .scrolls-grid {
        gap: 30px;
    }
    .lantern {
        width: 40px;
        height: 60px;
    }
    .dart {
        width: 50px;
        height: 50px;
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    .footer-column.narrative ul {
        justify-content: center;
    }
    .footer-column.narrative li {
        justify-content: center;
        text-align: center;
    }
    .social-links {
        align-items: center;
    }
    .gre-path {
        flex-direction: column;
        height: auto;
        gap: 25px;
    }
    .gre-path::before {
        display: none;
    }
    .gre-labels {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .gre-label {
        transform: none;
        text-align: center;
        width: auto;
    }
}