/* ===== 妖精动漫 全局样式 ===== */
:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --bg-dark: #0a0a18;
    --bg-card: rgba(26, 26, 53, 0.85);
    --bg-card-solid: #1a1a35;
    --bg-section: rgba(20, 20, 46, 0.9);
    --border: rgba(45, 45, 85, 0.8);
    --text-light: #f0f0ff;
    --text-base: #e0e0f0;
    --text-dim: #d0d0e8;
    --text-muted: #b0b0d0;
    --text-faint: #8888aa;
    --gradient-primary: linear-gradient(135deg, #7c3aed, #6d28d9);
    --gradient-accent: linear-gradient(135deg, #a78bfa, #8b5cf6);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-body: 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
    background: linear-gradient(135deg, #0a0a18 0%, #14142a 100%);
    color: var(--text-base);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(109, 40, 217, 0.06) 0%, transparent 40%),
                radial-gradient(ellipse at 50% 80%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, 2%) rotate(3deg); }
}

/* 链接 */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

a:hover {
    color: #c4b5fd;
    text-decoration: none;
}

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

/* ===== 头部导航 ===== */
header {
    background: rgba(13, 13, 32, 0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.logo h1 {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all var(--transition-base);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.logo h1:hover {
    transform: scale(1.02);
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

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

nav a {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 4px;
    position: relative;
    transition: color var(--transition-fast);
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

nav a:hover::after {
    width: 100%;
}

/* ===== 主内容区 ===== */
main {
    padding: 40px 0;
    position: relative;
}

section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease both;
}

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

/* 标题 */
h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
    font-weight: 700;
    position: relative;
    letter-spacing: 0.5px;
}

h2::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
    opacity: 0.6;
}

h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 600;
}

/* 网格 */
.grid {
    display: grid;
    gap: 25px;
}

.grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(139, 92, 246, 0.4);
}

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

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

.card-body {
    padding: 18px;
    position: relative;
    background: linear-gradient(to top, rgba(26, 26, 53, 0.95) 0%, rgba(26, 26, 53, 0.8) 100%);
}

.card-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--primary-light);
}

.card-text {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.card-text strong {
    color: var(--text-muted);
    font-weight: 600;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    align-items: center;
}

/* 标签 */
.tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all var(--transition-fast);
    cursor: default;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* 按钮 */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    color: #ffffff;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.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: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    text-decoration: none;
    color: #fff;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
}

/* 详情盒子 */
.detail-box {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.detail-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.6;
}

.detail-box p {
    color: var(--text-base);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.detail-box p strong {
    color: var(--primary-light);
    font-weight: 600;
}

.detail-box h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.detail-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

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

.char-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.char-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(139, 92, 246, 0.4);
}

.char-card img {
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
    transition: all var(--transition-base);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.char-card:hover img {
    border-color: var(--primary-light);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.char-card h4 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.char-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 平台介绍 */
.platform-box {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.platform-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.6;
}

.platform-box p {
    color: var(--text-base);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.platform-box p strong {
    color: var(--primary-light);
    font-weight: 600;
}

.platform-box h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.platform-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* 评论 */
.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.comment-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

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

.comment-user {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.05rem;
}

.comment-time {
    color: var(--text-faint);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--text-base);
    line-height: 1.7;
}

/* 侧边栏 */
.sidebar {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 40px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar h3 {
    color: var(--text-light);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

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

.rank-list {
    list-style: none;
    margin-bottom: 30px;
}

.rank-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.rank-list li:last-child {
    border-bottom: none;
}

.rank-list li:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.rank-num {
    color: var(--primary);
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.stat-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

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

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

/* 下载区域 */
.download-section {
    background: linear-gradient(135deg, #1c1c3a, #14142e);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    text-align: center;
}

.download-section h2::after {
    display: none;
}

.download-desc {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 页脚 */
footer {
    background: rgba(10, 10, 24, 0.95);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.footer-links a {
    color: var(--primary-light);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    padding: 5px 10px;
    border-radius: 20px;
}

.footer-links a:hover {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.9rem;
    line-height: 2;
}

.copyright a {
    color: var(--primary-light);
}

.copyright a:hover {
    text-decoration: underline;
}

/* 双栏布局 */
.two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 徽章 */
.badge {
    background: var(--gradient-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    white-space: nowrap;
}

.update-time {
    color: var(--primary-light);
    font-size: 0.85rem;
}

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

.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-base);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.feature-list li:hover {
    padding-left: 10px;
    color: var(--primary-light);
}

.feature-list li::before {
    content: "✦";
    color: var(--primary);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* 侧边栏卡片 */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.sidebar-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.sidebar-card h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .grid-cards {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        gap: 15px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    nav a {
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .grid-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .detail-box {
        padding: 25px;
    }
    
    .platform-box {
        padding: 25px;
    }
    
    .download-section {
        padding: 30px 20px;
    }
    
    .download-section h2 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .char-card {
        padding: 15px;
    }
    
    .char-card img {
        width: 120px;
        height: 120px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .grid-cards {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .card-meta {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-box {
        padding: 20px;
    }
    
    .platform-box {
        padding: 20px;
    }
    
    .download-section {
        padding: 25px 15px;
    }
    
    .download-desc {
        font-size: 1rem;
    }
    
    .stat-num {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav a {
        padding: 6px 3px;
        font-size: 0.9rem;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

/* 选中文本 */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-light);
}

/* 焦点样式 */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 滚动动画 */
@media (prefers-reduced-motion: no-preference) {
    .card, .char-card, .comment-item, .stat-box {
        animation: fadeInUp 0.6s ease both;
    }
    
    .card:nth-child(2n), .char-card:nth-child(2n), .comment-item:nth-child(2n) {
        animation-delay: 0.1s;
    }
    
    .card:nth-child(3n), .char-card:nth-child(3n), .comment-item:nth-child(3n) {
        animation-delay: 0.2s;
    }
}

/* 暗色模式支持（默认即为暗色） */
@media (prefers-color-scheme: light) {
    /* 保持暗色主题，因为这是网站设计的一部分 */
}

/* 打印样式 */
@media print {
    header, footer, .btn-group, .download-section {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .card, .char-card, .comment-item, .detail-box, .platform-box {
        break-inside: avoid;
        border: 1px solid #ddd;
        background: #fff;
    }
}

/* 无障碍 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* 渐变边框 */
.gradient-border {
    border: 1px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, var(--primary), var(--primary-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* 发光效果 */
.glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    }
}

/* 悬浮提升 */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 图片占位符 */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-card-solid), var(--bg-section));
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式字体 */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

/* 性能优化 */
.card, .char-card, .comment-item {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 滚动容器 */
.scroll-container {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
    -webkit-overflow-scrolling: touch;
}

/* 链接下划线动画 */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}