/* ============================================================
   蓝颜TV - 男性时尚生活指南，健身穿搭与科技新知
   风格：深色科技感 + 紫罗兰渐变 + 毛玻璃质感
   ============================================================ */

/* ---------- 重置与基础变量 ---------- */
:root {
    --primary: #7C5CFC;
    --primary-light: #9B7FFF;
    --primary-dark: #5B3DF0;
    --accent: #00D4FF;
    --accent-2: #FF6B9D;
    --bg-main: #0D0B1A;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(20, 15, 40, 0.7);
    --bg-glass-light: rgba(255, 255, 255, 0.08);
    --text-primary: #F0EDFF;
    --text-secondary: #B8B2D9;
    --text-muted: #7A749E;
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow-primary: 0 8px 32px rgba(124, 92, 252, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 背景光效 */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- 顶部导航 ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 11, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 0;
    gap: 10px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A78BFF 50%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(124, 92, 252, 0.3);
    line-height: 1.2;
}

.logo h1 span {
    background: inherit;
    -webkit-background-clip: inherit;
    -webkit-text-fill-color: inherit;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: var(--transition);
    display: inline-block;
}

nav ul li a:hover {
    color: #FFFFFF;
    background: rgba(124, 92, 252, 0.15);
    border-color: rgba(124, 92, 252, 0.3);
    text-decoration: none;
    transform: translateY(-2px);
}

/* 移动端导航 */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        padding: 12px 0;
    }
    nav ul {
        justify-content: center;
        gap: 8px;
    }
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .logo h1 {
        font-size: 1.6rem;
    }
}

/* ---------- Hero 区域 ---------- */
.hero {
    padding: 60px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(124, 92, 252, 0.1) 0%, 
        rgba(0, 212, 255, 0.05) 50%, 
        rgba(255, 107, 157, 0.05) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #C4B5FD 50%, #7DD3FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* ---------- 通用区块 ---------- */
section {
    padding: 50px 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-left: 18px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #A78BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 18px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

@media (max-width: 768px) {
    section {
        padding: 35px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

/* ---------- 漫画卡片网格 ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.comic-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.6s ease both;
}

.comic-card:nth-child(2n) { animation-delay: 0.1s; }
.comic-card:nth-child(3n) { animation-delay: 0.2s; }
.comic-card:nth-child(4n) { animation-delay: 0.3s; }

.comic-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: rgba(124, 92, 252, 0.4);
    box-shadow: 0 12px 40px rgba(124, 92, 252, 0.2);
}

.comic-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(0, 212, 255, 0.1));
    transition: var(--transition);
}

.comic-card:hover img {
    transform: scale(1.05);
}

.comic-card .info {
    padding: 16px;
}

.comic-card .info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic-card .info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic-card .info .type {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(0, 212, 255, 0.15));
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-top: 10px;
    font-weight: 500;
    border: 1px solid rgba(124, 92, 252, 0.3);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
    .comic-card .info {
        padding: 12px;
    }
    .comic-card .info h3 {
        font-size: 1rem;
    }
}

/* ---------- 精品推荐 ---------- */
.featured-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.featured-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
}

.featured-card:nth-child(2n) { animation-delay: 0.15s; }
.featured-card:nth-child(3n) { animation-delay: 0.3s; }

.featured-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1);
}

.featured-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(255, 107, 157, 0.1));
    transition: var(--transition);
}

.featured-card:hover img {
    transform: scale(1.03);
}

.featured-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.featured-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.featured-card .desc {
    margin-top: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .featured-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---------- 详细介绍 ---------- */
.detail-section {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.8s ease both;
}

.detail-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF, #A78BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--accent);
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.detail-section p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style: none;
}

.detail-section li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.detail-section li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .detail-section {
        padding: 24px;
    }
    .detail-section h3 {
        font-size: 1.3rem;
    }
}

/* ---------- 角色卡片 ---------- */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.character-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
}

.character-card:nth-child(2n) { animation-delay: 0.1s; }
.character-card:nth-child(3n) { animation-delay: 0.2s; }

.character-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: rgba(124, 92, 252, 0.4);
    box-shadow: 0 12px 40px rgba(124, 92, 252, 0.15);
}

.character-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.3), rgba(0, 212, 255, 0.2));
    border: 3px solid rgba(124, 92, 252, 0.3);
    transition: var(--transition);
}

.character-card:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.character-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.character-card .role {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.character-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    .character-card {
        padding: 16px 14px;
    }
    .character-card img {
        width: 90px;
        height: 90px;
    }
}

/* ---------- 平台介绍 ---------- */
.platform-content {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.8s ease both;
}

.platform-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFFFFF, #A78BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--accent);
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.platform-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.platform-content ul {
    margin-left: 0;
    margin-bottom: 15px;
    list-style: none;
}

.platform-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
    line-height: 1.7;
}

.platform-content li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.platform-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .platform-content {
        padding: 24px;
    }
    .platform-content h3 {
        font-size: 1.3rem;
    }
}

/* ---------- APP下载 ---------- */
.app-download {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.app-download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.app-download h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFFFFF, #A78BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-download p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    margin: 8px 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(124, 92, 252, 0.4);
    color: #FFFFFF;
    text-decoration: none;
}

.btn:hover::before {
    left: 100%;
    transition: 0.8s;
}

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

.btn-outline:hover {
    background: rgba(124, 92, 252, 0.15);
    border-color: var(--primary-light);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.2);
}

@media (max-width: 768px) {
    .app-download {
        padding: 28px 20px;
    }
    .app-download h3 {
        font-size: 1.4rem;
    }
    .btn {
        padding: 12px 24px;
        margin: 6px 8px;
        font-size: 0.9rem;
    }
}

/* ---------- 用户评论 ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
}

.review-card:nth-child(2n) { animation-delay: 0.1s; }
.review-card:nth-child(3n) { animation-delay: 0.2s; }
.review-card:nth-child(4n) { animation-delay: 0.3s; }

.review-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.3);
}

.review-card .username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-card .username::before {
    content: '👤';
    font-size: 1.1rem;
}

.review-card .time {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.review-card .content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ---------- 侧边栏 ---------- */
.main-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
    margin-bottom: 20px;
}

.sidebar {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 100px;
    animation: fadeInRight 0.8s ease both;
}

.sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar h3::before {
    content: '◆';
    color: var(--primary);
    font-size: 0.9rem;
}

.sidebar .rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.sidebar .rank-item:hover {
    padding-left: 8px;
    background: rgba(124, 92, 252, 0.05);
    border-radius: 8px;
}

.sidebar .rank-item .name {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
}

.sidebar .rank-item .value {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: center;
    background: rgba(124, 92, 252, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
}

.sidebar .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sidebar .stat-item .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .main-with-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-top: 20px;
    }
}

/* ---------- 页脚 ---------- */
footer {
    background: rgba(13, 11, 26, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 40px 0 25px;
    margin-top: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--accent);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
    text-decoration: none;
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 5px;
}

.footer-info a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* ---------- 滚动动画 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 11, 26, 0.9);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

/* 选中文本 */
::selection {
    background: rgba(124, 92, 252, 0.3);
    color: #FFFFFF;
}

/* 暗色模式（默认即暗色，提供亮色模式切换能力） */
@media (prefers-color-scheme: light) {
    :root {
        --bg-main: #F5F3FF;
        --bg-card: rgba(255, 255, 255, 0.8);
        --bg-card-hover: rgba(255, 255, 255, 1);
        --bg-glass: rgba(255, 255, 255, 0.85);
        --bg-glass-light: rgba(255, 255, 255, 0.9);
        --text-primary: #1A1A2E;
        --text-secondary: #4A4A6A;
        --text-muted: #7A7A9E;
        --border-glass: rgba(0, 0, 0, 0.1);
        --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    header {
        background: rgba(255, 255, 255, 0.85);
    }

    nav ul li a {
        color: var(--text-secondary);
    }

    nav ul li a:hover {
        color: var(--primary);
        background: rgba(124, 92, 252, 0.1);
    }

    .hero {
        background: linear-gradient(135deg, 
            rgba(124, 92, 252, 0.08) 0%, 
            rgba(0, 212, 255, 0.04) 50%, 
            rgba(255, 107, 157, 0.04) 100%);
    }

    .hero h2 {
        background: linear-gradient(135deg, #1A1A2E 0%, #4A4AF0 50%, #6B4CFF 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero p {
        color: #4A4A6A;
    }

    footer {
        background: rgba(255, 255, 255, 0.95);
    }

    .sidebar .rank-item .value {
        background: rgba(124, 92, 252, 0.1);
    }
}

/* 响应式微调 */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        padding-left: 14px;
    }
    
    .comic-card .info h3 {
        font-size: 0.95rem;
    }
    
    .comic-card .info p {
        font-size: 0.8rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .app-download {
        padding: 24px 16px;
    }
    
    .detail-section,
    .platform-content {
        padding: 20px 16px;
    }
    
    .featured-list {
        grid-template-columns: 1fr;
    }
    
    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .character-card {
        padding: 14px 12px;
    }
    
    .character-card img {
        width: 80px;
        height: 80px;
    }
    
    .character-card h4 {
        font-size: 1rem;
    }
    
    .character-card p {
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 0.82rem;
        padding: 4px 8px;
    }
}

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

/* 打印样式 */
@media print {
    header, footer, .hero, .app-download, .sidebar {
        display: none;
    }
    
    body {
        background: #FFFFFF;
        color: #000000;
    }
    
    .comic-card, .featured-card, .character-card, .review-card {
        break-inside: avoid;
        border: 1px solid #DDD;
        box-shadow: none;
    }
}