:root {
        --theme: #00a4fe;
        --light-blue: #CFEBFF;
        --dark-blue: #0069B8;
        --ink: #0B1B2B;
        --paper: #FAFAFA;
        --wood: #E8D5C4;
        --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
        --font-mono: "Courier New", Courier, monospace;
    }

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

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: var(--font-main);
        background-color: var(--paper);
        color: var(--ink);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    img {
        max-width: 100%;
        display: block;
    }

    /* 全局组件：社员证下载按钮 */
    .member-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--theme);
        color: var(--ink);
        border: 2px solid var(--paper);
        box-shadow: inset 0 0 0 1px var(--theme), 0 2px 4px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 0.6rem 1.2rem;
        font-weight: 800;
        font-size: 1rem;
        transition: transform 0.2s ease, background-color 0.2s;
        cursor: pointer;
        position: relative;
    }
    .member-btn::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 24px;
        background-color: var(--dark-blue);
        margin-right: 12px;
        border-radius: 2px;
    }
    .member-btn:hover {
        transform: translateY(-2px);
    }
    .bg-theme .member-btn {
        background-color: var(--paper);
        border-color: var(--theme);
        box-shadow: inset 0 0 0 1px var(--paper), 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Header */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--paper);
        z-index: 100;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 5%;
        max-width: 1400px;
        margin: 0 auto;
    }
    .header-brand {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: 1.2rem;
        font-weight: 800;
    }
    .header-brand img {
        height: 32px;
        width: auto;
    }
    .header-btn {
        height: 44px;
        padding: 0 1.2rem;
        font-size: 1rem;
    }

    /* 导航黑板条 */
    .nav-blackboard-wrap {
        background-color: var(--ink);
        color: var(--paper);
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .nav-blackboard-wrap::-webkit-scrollbar {
        display: none;
    }
    .nav-blackboard {
        display: flex;
        gap: 1.5rem;
        padding: 0.5rem 5%;
        max-width: 1400px;
        margin: 0 auto;
        font-size: 0.9rem;
        font-family: var(--font-mono);
    }
    .nav-blackboard a {
        position: relative;
        padding: 0.2rem 0.5rem;
        transition: color 0.2s;
    }
    .nav-blackboard a.active {
        color: var(--theme);
    }

    /* 首屏 Hero */
    .hero {
        background-color: var(--theme);
        color: var(--ink);
        padding: 120px 5% 60px;
        position: relative;
        overflow: hidden;
    }
    .hero-inner {
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        position: relative;
        z-index: 2;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        font-weight: 900;
    }
    .hero-sub {
        font-size: 1rem;
        font-weight: 600;
        opacity: 0.9;
    }
    .hero-btns {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .hero-stats {
        display: flex;
        gap: 1.5rem;
        font-size: 0.85rem;
        font-family: var(--font-mono);
        background: rgba(255,255,255,0.2);
        padding: 0.8rem;
        border-radius: 4px;
        flex-wrap: wrap;
    }
    .hero-visual {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .phone-frame {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        border: 8px solid var(--ink);
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background-color: var(--paper);
    }
    .phone-frame img {
        width: 100%;
        aspect-ratio: 9/16;
        object-fit: cover;
    }
    .phone-caption {
        position: absolute;
        bottom: 0;
        width: 100%;
        background: linear-gradient(transparent, rgba(11,27,43,0.9));
        color: var(--paper);
        padding: 2rem 1rem 1rem;
        text-align: center;
    }
    .phone-caption strong {
        display: block;
        font-size: 1.1rem;
    }
    .hero-grid-mini {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .hero-grid-mini::-webkit-scrollbar {
        height: 4px;
    }
    .hero-grid-mini .mini-item {
        flex: 0 0 80px;
        background: var(--paper);
        padding: 0.2rem;
        border-radius: 4px;
        text-align: center;
        font-size: 0.7rem;
        border: 1px solid rgba(0,0,0,0.1);
    }
    .hero-grid-mini .mini-item img {
        width: 100%;
        aspect-ratio: 9/16;
        object-fit: cover;
        border-radius: 2px;
        margin-bottom: 0.2rem;
    }

    /* 通用 Section */
    section {
        padding: 4rem 5%;
    }
    .section-inner {
        max-width: 1200px;
        margin: 0 auto;
    }
    .section-title {
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }
    .section-desc {
        font-size: 1rem;
        color: var(--dark-blue);
        margin-bottom: 2rem;
    }

    /* 简介 */
    .intro-section {
        background-color: var(--paper);
        background-image: radial-gradient(var(--wood) 1px, transparent 0);
        background-size: 20px 20px;
        border-bottom: 2px solid var(--wood);
    }
    .intro-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .intro-corkboard {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    .cork-poster {
        flex: 0 0 140px;
        background: var(--paper);
        padding: 0.5rem;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
        position: relative;
    }
    .cork-poster::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 10px;
        height: 10px;
        background-color: var(--theme);
        border-radius: 50%;
        box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    .cork-poster img {
        width: 100%;
        aspect-ratio: 9/16;
        object-fit: cover;
        margin-bottom: 0.5rem;
    }
    .cork-poster p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .intro-text h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .intro-text p {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    .intro-rules {
        background-color: var(--light-blue);
        padding: 1rem;
        border-left: 4px solid var(--theme);
        font-size: 0.9rem;
    }

    /* 更新公告栏 */
    .update-section {
        background-color: var(--light-blue);
    }
    .board-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .board-main {
        background: var(--wood);
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
        position: relative;
    }
    .board-item {
        background: var(--paper);
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
        position: relative;
    }
    .board-item::after {
        content: '';
        position: absolute;
        top: 5px;
        right: 5px;
        width: 8px;
        height: 8px;
        background: var(--dark-blue);
        border-radius: 50%;
    }
    .latest-chapter {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }
    .latest-chapter img {
        width: 80px;
        aspect-ratio: 9/16;
        object-fit: cover;
    }
    .latest-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .time-table {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        margin-top: 1rem;
    }
    .time-table span {
        background: var(--light-blue);
        text-align: center;
        padding: 0.3rem 0;
        font-size: 0.8rem;
        font-family: var(--font-mono);
    }
    .time-table span.has-update {
        background: var(--theme);
        color: var(--ink);
        font-weight: bold;
    }

    /* 章节活动日志 */
    .chapter-section {
        background-color: var(--paper);
    }
    .notebook-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        background: var(--paper);
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1.5rem;
        position: relative;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .notebook-layout::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: rgba(0,0,0,0.1);
        display: none;
    }
    .chapter-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .chapter-row {
        display: flex;
        gap: 1rem;
        align-items: center;
        padding: 0.5rem;
        border-bottom: 1px dashed #eee;
        cursor: pointer;
        transition: background 0.2s;
    }
    .chapter-row:hover {
        background: var(--light-blue);
    }
    .chapter-row img {
        width: 40px;
        aspect-ratio: 9/16;
        object-fit: cover;
    }
    .chapter-row .info {
        flex-grow: 1;
    }
    .chapter-row .info h4 {
        font-size: 0.95rem;
    }
    .chapter-row .info p {
        font-size: 0.75rem;
        color: #666;
        font-family: var(--font-mono);
    }
    .chapter-preview {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .chapter-preview img {
        width: 100%;
        max-width: 250px;
        aspect-ratio: 9/16;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 1rem;
    }

    /* 名场面相册 */
    .gallery-section {
        background-color: var(--light-blue);
    }
    .gallery-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .gallery-main {
        width: 100%;
        max-width: 300px;
        position: relative;
    }
    .gallery-main img {
        width: 100%;
        aspect-ratio: 9/16;
        object-fit: cover;
        border: 4px solid var(--paper);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .gallery-caption {
        background: var(--paper);
        padding: 1rem;
        text-align: center;
        font-size: 0.9rem;
    }
    .gallery-thumbs {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
    }
    .gallery-thumbs img {
        width: 60px;
        aspect-ratio: 9/16;
        object-fit: cover;
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.2s;
    }
    .gallery-thumbs img.active {
        opacity: 1;
        border: 2px solid var(--theme);
    }

    /* 角色名册 */
    .character-section {
        background-color: var(--paper);
    }
    .character-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .seat-map {
        background: var(--light-blue);
        padding: 2rem;
        border-radius: 8px;
        position: relative;
        min-height: 300px;
    }
    .seat-item {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .seat-item:hover {
        transform: scale(1.1);
    }
    .seat-item img {
        width: 50px;
        aspect-ratio: 9/16;
        object-fit: cover;
        border: 2px solid var(--paper);
        border-radius: 4px;
    }
    .seat-item span {
        font-size: 0.75rem;
        background: var(--paper);
        padding: 2px 6px;
        border-radius: 4px;
        margin-top: 4px;
        white-space: nowrap;
    }
    .char-card {
        background: var(--paper);
        padding: 1.5rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .char-card img {
        width: 120px;
        aspect-ratio: 9/16;
        object-fit: cover;
        border-radius: 4px;
    }

    /* 预告黑板 */
    .preview-section {
        background-color: var(--ink);
        color: var(--paper);
    }
    .preview-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .chalkboard {
        border: 4px solid var(--wood);
        padding: 2rem;
        border-radius: 8px;
        position: relative;
        background: #1a2a3a;
    }
    .chalk-text {
        font-size: 1.2rem;
        line-height: 1.8;
        letter-spacing: 1px;
    }
    .chalk-date {
        display: block;
        margin-top: 1rem;
        font-family: var(--font-mono);
        color: var(--theme);
    }
    .preview-image {
        display: flex;
        justify-content: center;
    }
    .preview-image img {
        width: 200px;
        aspect-ratio: 9/16;
        object-fit: cover;
        border: 4px solid var(--paper);
    }

    /* 日历 */
    .calendar-section {
        background-color: var(--paper);
    }
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
        background: #eee;
        padding: 4px;
        border-radius: 4px;
    }
    .calendar-cell {
        background: var(--paper);
        aspect-ratio: 1;
        padding: 4px;
        position: relative;
    }
    .calendar-cell.header {
        font-weight: bold;
        text-align: center;
        font-size: 0.8rem;
        background: var(--light-blue);
        aspect-ratio: auto;
        padding: 0.5rem 0;
    }
    .calendar-cell img {
        width: 100%;
        aspect-ratio: 9/16;
        object-fit: cover;
        border-radius: 2px;
    }
    .calendar-cell.today {
        border: 2px solid var(--theme);
    }

    /* 作者信 */
    .author-section {
        background-color: var(--wood);
    }
    .author-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        background: var(--paper);
        padding: 2rem;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .letter-content {
        background: #fff9f0;
        padding: 2rem;
        border-radius: 2px;
        line-height: 1.8;
        font-family: "Kaiti SC", serif;
        position: relative;
    }
    .letter-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20px;
        bottom: 0;
        width: 1px;
        background: rgba(255,0,0,0.1);
    }

    /* 口碑纸条 */
    .reviews-section {
        background-color: var(--light-blue);
        overflow: hidden;
    }
    .marquee-track {
        display: flex;
        gap: 1rem;
        animation: scroll 20s linear infinite;
        width: max-content;
    }
    .review-note {
        background: var(--paper);
        padding: 1rem;
        border-radius: 4px;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        min-width: 200px;
        max-width: 250px;
        font-size: 0.85rem;
        position: relative;
    }
    .review-note::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 10px;
        width: 16px;
        height: 16px;
        background: var(--theme);
        border-radius: 50%;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    @media (prefers-reduced-motion: reduce) {
        .marquee-track { animation: none; }
    }

    /* FAQ */
    .faq-section {
        background-color: var(--paper);
    }
    .faq-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    details {
        border-bottom: 1px solid #ddd;
        padding: 1rem 0;
    }
    summary {
        font-weight: bold;
        cursor: pointer;
        list-style: none;
        position: relative;
    }
    summary::-webkit-details-marker {
        display: none;
    }
    summary::after {
        content: '+';
        position: absolute;
        right: 0;
        font-size: 1.2rem;
    }
    details[open] summary::after {
        content: '-';
    }
    details p {
        margin-top: 1rem;
        font-size: 0.9rem;
        color: #444;
    }

    /* 收尾下载 */
    .cta-section {
        background-color: var(--theme);
        color: var(--ink);
        padding: 4rem 5%;
        text-align: center;
    }
    .id-card {
        background: var(--theme);
        border: 4px solid var(--paper);
        border-radius: 8px;
        max-width: 400px;
        margin: 0 auto;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        position: relative;
    }
    .id-card::before, .id-card::after {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        height: 2px;
        background: var(--paper);
    }
    .id-card::before { top: 10px; }
    .id-card::after { bottom: 10px; }
    .id-photo {
        width: 80px;
        aspect-ratio: 9/16;
        object-fit: cover;
        background: var(--dark-blue);
        border: 2px solid var(--paper);
        margin: 0 auto 1rem;
    }
    .id-name {
        font-size: 1.5rem;
        font-weight: 900;
        border-bottom: 2px dashed var(--ink);
        display: inline-block;
        margin-bottom: 1rem;
    }

    /* 页脚 */
    footer {
        background-color: var(--paper);
        color: #666;
        font-size: 0.8rem;
        padding: 2rem 5%;
        border-top: 1px solid #eee;
    }
    .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .site-about {
        cursor: pointer;
        color: #666;
        font-size: 0.8rem;
    }
    .site-about::-webkit-details-marker {
        display: none;
    }

    /* 响应式 */
    @media (min-width: 768px) {
        .hero-inner {
            grid-template-columns: 1fr 1fr;
        }
        .board-layout {
            grid-template-columns: 2fr 1fr;
        }
        .notebook-layout {
            grid-template-columns: 1fr 1fr;
        }
        .notebook-layout::before {
            display: block;
        }
        .character-layout {
            grid-template-columns: 1fr 1fr;
        }
        .faq-layout {
            grid-template-columns: 1fr 2fr;
        }
        .author-layout {
            grid-template-columns: 1fr 1fr;
        }
        .calendar-grid {
            gap: 8px;
            padding: 8px;
        }
    }

    @media (min-width: 1024px) {
        .hero-grid-mini {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            overflow: visible;
        }
        .hero-grid-mini .mini-item {
            flex: auto;
        }
        .hero h1 {
            font-size: 3rem;
        }
        .section-title {
            font-size: 2.2rem;
        }
    }