/* ========== 全局变量 ========== */
:root {
    --color-primary: #835af1;
    --color-blue: #7fa6ee;
    --color-teal: #6fe7db;
    --color-mint: #b8f7d4;
    --color-primary-dark: #6a3fd9;
    --color-blue-dark: #5b8ad9;
    --color-teal-dark: #4ec9bd;
    --color-mint-dark: #8de8b8;
    --color-bg: #f8f9fc;
    --color-white: #ffffff;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-border: #e8ecf1;
    --color-card-bg: #ffffff;
    --color-footer-bg: #1a1d2e;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 36px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --max-width: 1320px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 顶部导航 ========== */
.top-nav {
    width: 100%;
    height: var(--nav-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    transition: box-shadow var(--transition-smooth);
}

.top-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.nav-brand h1:hover {
    color: var(--color-primary-dark);
}

.nav-brand h1 .icon-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-teal);
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(111, 231, 219, 0.6);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(111, 231, 219, 0);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
    background: rgba(131, 90, 241, 0.08);
    color: var(--color-primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login {
    padding: 9px 20px;
    border-radius: 22px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

.btn-login:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(131, 90, 241, 0.35);
}

.btn-login.logged-in {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: scale(1.08);
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.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);
}

/* ========== 主容器 ========== */
.main-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== Banner 轮播区 ========== */
.banner-section {
    width: 100%;
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding: 0 16px;
    position: relative;
}

.banner-carousel {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 7;
    min-height: 280px;
    max-height: 500px;
    box-shadow: var(--shadow-lg);
    background: #e0e5ec;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 5vw, 48px);
    z-index: 3;
    pointer-events: none;
}

.banner-overlay h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

.banner-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    max-width: 600px;
}

.banner-dots {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 4;
    pointer-events: auto;
}

.banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.banner-dots button.active {
    background: #fff;
    transform: scale(1.3);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.banner-arrow:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.06);
}

.banner-arrow.prev {
    left: 16px;
}

.banner-arrow.next {
    right: 16px;
}

/* ========== 通用区块 ========== */
.section {
    margin: 40px auto;
    max-width: var(--max-width);
    padding: 0 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 16px;
    font-family: var(--font-heading);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 26px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-teal));
}

.section-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.section-more:hover {
    color: var(--color-primary-dark);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(131, 90, 241, 0.2);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef1f5;
    flex-shrink: 0;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
    max-width: 100%;
    max-height: 100%;
}

.card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.02em;
}

.card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 650;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body .meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.4;
}

.card-body .meta span {
    background: #f5f7fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.card-body .meta .type-tag {
    background: rgba(111, 231, 219, 0.25);
    color: #0d7a6e;
    font-weight: 600;
}

/* ========== 左右布局 ========== */
.layout-row {
    display: flex;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    align-items: flex-start;
}

.layout-main {
    flex: 1 1 68%;
    min-width: 0;
}

.layout-sidebar {
    flex: 0 0 30%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.sidebar-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 .dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-teal);
    animation: pulse-dot 2s ease-in-out infinite;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-val {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.rank-list li:hover {
    background: rgba(131, 90, 241, 0.05);
}

.rank-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-num.top1 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-num.top2 {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.rank-num.top3 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info .rn {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info .rs {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* ========== 平台介绍 ========== */
.intro-block {
    background: linear-gradient(135deg, #f9f7ff 0%, #f0fcfa 100%);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 40px);
    text-align: center;
    border: 1px solid rgba(131, 90, 241, 0.12);
}

.intro-block h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.intro-block p {
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== 评论卡片 ========== */
.comment-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-teal);
    transition: all var(--transition-smooth);
    margin-bottom: 12px;
}

.comment-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-primary);
}

.comment-card .comment-user {
    font-weight: 650;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.comment-card .comment-text {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.comment-card .comment-time {
    font-size: 0.75rem;
    color: #aab5c0;
    margin-top: 8px;
}

/* ========== 下载区块 ========== */
.download-section {
    background: linear-gradient(160deg, #1a1d2e 0%, #252a3d 100%);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 44px);
    color: #fff;
}

.download-section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.download-section .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-download.android {
    background: #3ddc84;
    color: #1a1d2e;
}

.btn-download.ios {
    background: #ffffff;
    color: #1a1d2e;
}

.btn-download.pc {
    background: #52616b;
    color: #fff;
}

.btn-download.mac {
    background: #333;
    color: #fff;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.app-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    max-width: 22px;
    max-height: 22px;
}

/* ========== FAQ ========== */
.faq-item {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 650;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 20px 18px;
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========== 友情链接 ========== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
}

.friend-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 16px;
    transition: all var(--transition-fast);
    background: #f5f7fa;
    white-space: nowrap;
}

.friend-links a:hover {
    background: rgba(131, 90, 241, 0.1);
    color: var(--color-primary);
}

/* ========== 底部导航 ========== */
.footer-nav {
    width: 100%;
    background: var(--color-footer-bg);
    color: #c5cdd8;
    padding: 32px 16px 20px;
    font-size: 0.85rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col h5 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #a0aab4;
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--transition-fast);
    font-size: 0.82rem;
}

.footer-col a:hover {
    color: var(--color-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    color: #7a8490;
    font-size: 0.78rem;
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 500;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .card-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-row {
        flex-direction: column;
    }

    .layout-sidebar {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .layout-sidebar .sidebar-card {
        height: fit-content;
    }

    .banner-carousel {
        aspect-ratio: 16 / 8;
        min-height: 200px;
        max-height: 350px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 16px;
        box-shadow: var(--shadow-lg);
        gap: 2px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding: 12px 16px;
        border-radius: 8px;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .banner-carousel {
        aspect-ratio: 16 / 10;
        min-height: 180px;
        max-height: 260px;
        border-radius: var(--radius-md);
    }

    .banner-overlay h2 {
        font-size: 1.1rem;
    }

    .banner-overlay p {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .download-btns {
        gap: 10px;
    }

    .btn-download {
        padding: 11px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .comment-card {
        padding: 14px;
    }

    .card-body {
        padding: 10px 12px;
    }

    .card-body h3 {
        font-size: 0.88rem;
    }

    .card-body .meta {
        font-size: 0.7rem;
    }

    .card-body .meta span {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 380px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .banner-carousel {
        aspect-ratio: 16 / 11;
        min-height: 150px;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .btn-login {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

/* ========== 详情页样式 ========== */
.detail-hero {
    background: linear-gradient(135deg, #f9f7ff 0%, #f0fcfa 100%);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 36px);
    margin: 24px auto;
    max-width: var(--max-width);
    border: 1px solid rgba(131, 90, 241, 0.12);
}

.detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.detail-poster {
    flex: 0 0 280px;
    max-width: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    max-height: 420px;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.detail-info .info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-info .info-meta span {
    background: rgba(131, 90, 241, 0.08);
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-info .info-row {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
}

.detail-info .info-row:last-child {
    border-bottom: none;
}

.detail-info .info-row .label {
    flex: 0 0 80px;
    color: var(--color-text-light);
    font-weight: 500;
}

.detail-info .info-row .val {
    flex: 1;
    color: var(--color-text);
    font-weight: 600;
}

.detail-info .plot {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    border: 1px solid var(--color-border);
}

.detail-info .plot p {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 0.92rem;
}

.detail-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

    .detail-poster {
        flex: 0 0 auto;
        max-width: 240px;
        margin: 0 auto;
    }
}

/* ========== 单栏文本页面 ========== */
.doc-page {
    max-width: 920px;
    margin: 40px auto;
    padding: clamp(24px, 4vw, 40px);
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.doc-page h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-primary);
}

.doc-page h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 24px 0 12px;
}

.doc-page h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--color-text);
    margin: 18px 0 10px;
}

.doc-page p {
    color: var(--color-text-light);
    line-height: 1.85;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.doc-page ul,
.doc-page ol {
    color: var(--color-text-light);
    line-height: 1.85;
    font-size: 0.95rem;
    padding-left: 24px;
    margin-bottom: 12px;
}

.doc-page li {
    margin-bottom: 6px;
}

.doc-page strong {
    color: var(--color-text);
}

.doc-page .updated-time {
    color: #aab5c0;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ========== 列表筛选 ========== */
.filter-bar {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px auto;
    max-width: var(--max-width);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-bar .filter-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.filter-bar a {
    text-decoration: none;
    color: var(--color-text-light);
    padding: 6px 14px;
    border-radius: 16px;
    background: #f5f7fa;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.filter-bar a:hover,
.filter-bar a.active {
    background: var(--color-primary);
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px auto;
    max-width: var(--max-width);
    padding: 0 16px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--color-card-bg);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination a.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ========== 通用图片限制 ========== */
img {
    max-width: 100%;
    max-height: 600px;
}