/* ============================================================
   满天星漫画 - 极速追番 | 高清在线免费动漫大全
   风格：暗夜紫罗兰 · 梦幻星空 · 毛玻璃 · 响应式
   ============================================================ */

/* ---------- 基础重置与全局变量 ---------- */
:root {
    --bg-primary: #F8F4FF;
    --bg-secondary: #FFFFFF;
    --bg-elevated: rgba(255, 255, 255, 0.72);
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-primary: #1A1A2E;
    --text-secondary: #2D2D44;
    --text-muted: #4A4A68;
    --accent: #6B4CFF;
    --accent-light: #B7A6FF;
    --accent-dark: #4A6CF7;
    --accent-gradient: linear-gradient(145deg, #8B5CF6, #6B4CFF, #4A6CF7);
    --border-soft: rgba(107, 76, 255, 0.12);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(107, 76, 255, 0.15);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 40px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* 暗色模式变量 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #12121F;
        --bg-secondary: #1E1E32;
        --bg-elevated: rgba(30, 30, 50, 0.75);
        --bg-card: rgba(30, 30, 50, 0.88);
        --text-primary: #F0EAF8;
        --text-secondary: #D4C5FF;
        --text-muted: #A89BC8;
        --accent: #8B5CF6;
        --accent-light: #B7A6FF;
        --accent-dark: #6B4CFF;
        --border-soft: rgba(183, 166, 255, 0.15);
        --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 16px 40px rgba(139, 92, 246, 0.25);
    }
}

/* ---------- 全局样式 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 10%, rgba(107, 76, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(74, 108, 247, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(183, 166, 255, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: #E4DCF0;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h2 {
    color: var(--text-primary);
    border-left: 6px solid var(--accent);
    padding-left: 12px;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin-top: 8px;
}

h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ---------- 头部导航 ---------- */
.site-header {
    background: linear-gradient(145deg, #2D2D44, #1A1A2E);
    padding: 1rem 0;
    border-bottom: 4px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

h1.logo {
    color: #FFFFFF;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #FFFFFF 60%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(183, 166, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(183, 166, 255, 0.6)); }
}

.logo span {
    color: var(--accent-light);
    -webkit-text-fill-color: var(--accent-light);
}

nav.main-nav ul {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 2rem);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav.main-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: 4px;
}

nav.main-nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

nav.main-nav a:hover {
    color: var(--accent-light);
    border-bottom-color: transparent;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(183, 166, 255, 0.5);
}

nav.main-nav a:hover::before {
    width: 100%;
}

/* ---------- 主内容区 ---------- */
main.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.main-content {
    flex: 3 1 600px;
    min-width: 0;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    position: relative;
    animation: cardIn 0.5s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card:nth-child(1) { --i: 1; }
.card:nth-child(2) { --i: 2; }
.card:nth-child(3) { --i: 3; }
.card:nth-child(4) { --i: 4; }
.card:nth-child(5) { --i: 5; }
.card:nth-child(6) { --i: 6; }
.card:nth-child(7) { --i: 7; }
.card:nth-child(8) { --i: 8; }
.card:nth-child(9) { --i: 9; }
.card:nth-child(10) { --i: 10; }
.card:nth-child(11) { --i: 11; }
.card:nth-child(12) { --i: 12; }

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 76, 255, 0.3);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card:hover::after {
    left: 100%;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #E4DCF0;
    transition: transform 0.5s ease, filter 0.3s ease;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.card-body {
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.02), transparent);
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.2rem 0;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.rating {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(107, 76, 255, 0.3);
}

/* ---------- 徽章 ---------- */
.badge {
    background: var(--accent-gradient);
    color: #FFFFFF;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.75rem;
    display: inline-block;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(107, 76, 255, 0.3);
    transition: transform var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
}

/* ---------- 按钮 ---------- */
.btn {
    background: var(--accent-gradient);
    color: #FFFFFF;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 76, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover {
    background: linear-gradient(145deg, var(--accent-dark), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 76, 255, 0.4);
    text-decoration: none;
    color: #FFFFFF;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 25px rgba(107, 76, 255, 0.3);
}

/* ---------- 弹性布局 ---------- */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    flex: 1 1 280px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar h3 {
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
}

.sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
}

.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-soft);
    transition: all var(--transition-fast);
    cursor: pointer;
    border-radius: 4px;
}

.rank-item:hover {
    background: rgba(107, 76, 255, 0.05);
    padding-left: 8px;
    padding-right: 8px;
    transform: translateX(4px);
}

.rank-item span:first-child {
    font-weight: 500;
}

.rank-item span:last-child {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- 评论 ---------- */
.comment-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-soft);
    transition: all var(--transition-smooth);
    animation: commentIn 0.5s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes commentIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item:nth-child(1) { --i: 1; }
.comment-item:nth-child(2) { --i: 2; }
.comment-item:nth-child(3) { --i: 3; }
.comment-item:nth-child(4) { --i: 4; }
.comment-item:nth-child(5) { --i: 5; }
.comment-item:nth-child(6) { --i: 6; }
.comment-item:nth-child(7) { --i: 7; }
.comment-item:nth-child(8) { --i: 8; }

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(107, 76, 255, 0.3);
}

.comment-user {
    font-weight: 700;
    color: var(--text-secondary);
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 1rem;
}

.comment-item p {
    margin-top: 0.5rem;
    color: var(--text-primary);
}

/* ---------- 底部 ---------- */
.footer-links a {
    color: var(--accent-dark);
    text-decoration: none;
    margin-right: 1rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--accent);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(208, 197, 232, 0.3);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom {
    background: linear-gradient(145deg, #1A1A2E, #2D2D44);
    color: #F0F0F0;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--accent);
    backdrop-filter: blur(10px);
}

.footer-bottom a {
    color: var(--accent-light);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ---------- 介绍文本 ---------- */
.intro-text {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    margin: 1.5rem 0;
    transition: transform var(--transition-smooth);
}

.intro-text:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.intro-text strong {
    color: var(--accent);
}

/* ---------- 角色卡片 ---------- */
.role-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    transition: all var(--transition-smooth);
    animation: roleIn 0.5s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes roleIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.role-card:nth-child(1) { --i: 1; }
.role-card:nth-child(2) { --i: 2; }
.role-card:nth-child(3) { --i: 3; }
.role-card:nth-child(4) { --i: 4; }

.role-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(107, 76, 255, 0.3);
}

.role-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(107, 76, 255, 0.2);
    transition: transform var(--transition-smooth);
}

.role-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* ---------- APP徽章 ---------- */
.app-badge {
    background: linear-gradient(145deg, #2D2D44, #1A1A2E);
    color: #FFFFFF;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
    margin: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.app-badge:hover {
    transform: scale(1.05);
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(107, 76, 255, 0.3);
}

/* ---------- 内联列表 ---------- */
.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.inline-list a {
    color: var(--accent-dark);
    text-decoration: none;
    background: rgba(240, 234, 248, 0.6);
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.inline-list a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(107, 76, 255, 0.3);
    text-decoration: none;
}

/* ---------- 数据统计 ---------- */
.data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.stat-box {
    background: var(--bg-primary);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: all var(--transition-smooth);
    cursor: default;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- 滚动动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .comment-item,
    .role-card,
    .intro-text,
    .sidebar,
    .main-content {
        opacity: 0;
        animation: scrollReveal 0.6s ease-out forwards;
    }

    .card { animation-delay: calc(var(--i, 0) * 0.05s); }
    .comment-item { animation-delay: calc(var(--i, 0) * 0.08s); }
    .role-card { animation-delay: calc(var(--i, 0) * 0.1s); }

    @keyframes scrollReveal {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 滚动进入视口的元素 */
    .card, .comment-item, .role-card, .intro-text, .sidebar {
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
    .header-grid {
        flex-direction: column;
        text-align: center;
    }

    nav.main-nav ul {
        justify-content: center;
    }

    main.container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        max-height: none;
        width: 100%;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1.logo {
        font-size: 1.6rem;
    }

    nav.main-nav ul {
        gap: 0.5rem;
    }

    nav.main-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.8rem;
    }

    .card-body {
        padding: 0.6rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-meta {
        font-size: 0.75rem;
    }

    .role-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 1rem;
    }

    .role-card img {
        width: 100px;
        height: 100px;
    }

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

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .intro-text {
        padding: 1.5rem;
    }

    .footer-bottom .container > div {
        flex-direction: column;
        gap: 1.5rem;
    }

    .comment-time {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

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

    .card-body {
        padding: 0.5rem;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .card-meta {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .rating {
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .data-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .app-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }

    .inline-list a {
        padding: 0.2rem 0.7rem;
        font-size: 0.85rem;
    }

    .comment-item {
        padding: 0.8rem;
    }

    .role-card img {
        width: 80px;
        height: 80px;
    }
}

/* ---------- 暗色模式细节调整 ---------- */
@media (prefers-color-scheme: dark) {
    .card img,
    .role-card img {
        background-color: #2D2D44;
    }

    .card-body {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    }

    .inline-list a {
        background: rgba(30, 30, 50, 0.6);
    }

    .comment-item {
        background: rgba(30, 30, 50, 0.5);
    }

    .stat-box {
        background: rgba(30, 30, 50, 0.5);
    }

    .btn-outline {
        border-color: var(--accent-light);
        color: var(--accent-light);
    }

    .btn-outline:hover {
        background: var(--accent);
        color: #fff;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    .site-header,
    .sidebar,
    .footer-bottom,
    .btn,
    .app-badge {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .card,
    .comment-item,
    .role-card,
    .intro-text {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 焦点可见性 ---------- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---------- 渐变分隔线 ---------- */
.gradient-divider {
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin: 2rem 0;
    opacity: 0.6;
}

/* ---------- 星尘背景动画 ---------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(183, 166, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(183, 166, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 100px;
    animation: starMove 60s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

@keyframes starMove {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

/* ---------- 平台介绍区块样式 ---------- */
.platform-intro {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.platform-intro:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* ---------- APP下载区块 ---------- */
.app-download {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.app-download:hover {
    box-shadow: var(--shadow-lg);
}

/* ---------- 评论区网格 ---------- */
.comment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* ---------- 响应式评论网格 ---------- */
@media (max-width: 768px) {
    .comment-grid {
        grid-template-columns: 1fr;
    }
}