/* ===== 星漫影视 - 全局样式 ===== */
:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-lighter: #c4b5fd;
    --primary-dark: #6d28d9;
    --bg-dark: #0a0a18;
    --bg-card: #1a1a35;
    --bg-card-light: #1c1c3e;
    --bg-widget: #14142e;
    --border-color: #2d2d55;
    --text-primary: #f0f0ff;
    --text-secondary: #e0e0f0;
    --text-muted: #d0d0e8;
    --text-dark: #8888aa;
    --text-bright: #b0b0d0;
    --gradient-main: linear-gradient(135deg, #7c3aed, #6d28d9);
    --gradient-hero: linear-gradient(135deg, #0a0a18 0%, #14142a 50%, #1a1a35 100%);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 8px 25px rgba(139, 92, 246, 0.3);
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
    --glass-bg: rgba(26, 26, 53, 0.7);
    --glass-border: rgba(139, 92, 246, 0.2);
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #06060f;
        --bg-card: #14142a;
        --bg-card-light: #161630;
        --bg-widget: #101024;
        --border-color: #252545;
        --text-primary: #f5f5ff;
        --text-secondary: #e8e8f8;
        --text-muted: #d8d8f0;
        --text-dark: #7a7a9a;
        --glass-bg: rgba(16, 16, 36, 0.8);
    }
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--gradient-hero);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

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

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

/* 链接 */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

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

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* ===== 毛玻璃效果 ===== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* ===== 顶部导航 ===== */
.site-header {
    background: rgba(13, 13, 32, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-card);
    animation: slideDown 0.5s ease;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-smooth);
}

.logo h1:hover {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-smooth);
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

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

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

.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ===== 主内容区 ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 0;
    animation: fadeIn 0.8s ease;
}

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

.content-area {
    min-width: 0;
}

/* ===== 区块标题 ===== */
.section-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: -5px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.section-title span {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 10px;
}

/* ===== 卡片通用样式 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.comic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInUp 0.5s ease backwards;
}

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

.comic-card:nth-child(1) { animation-delay: 0.05s; }
.comic-card:nth-child(2) { animation-delay: 0.1s; }
.comic-card:nth-child(3) { animation-delay: 0.15s; }
.comic-card:nth-child(4) { animation-delay: 0.2s; }
.comic-card:nth-child(5) { animation-delay: 0.25s; }
.comic-card:nth-child(6) { animation-delay: 0.3s; }
.comic-card:nth-child(7) { animation-delay: 0.35s; }
.comic-card:nth-child(8) { animation-delay: 0.4s; }
.comic-card:nth-child(9) { animation-delay: 0.45s; }
.comic-card:nth-child(10) { animation-delay: 0.5s; }
.comic-card:nth-child(11) { animation-delay: 0.55s; }
.comic-card:nth-child(12) { animation-delay: 0.6s; }

.comic-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.comic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.5s ease;
}

.comic-card:hover::before {
    left: 100%;
}

.comic-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background: var(--bg-widget);
    transition: transform var(--transition-smooth);
}

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

.comic-card .card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comic-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color var(--transition-smooth);
}

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

.comic-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.comic-card .tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 5px;
    transition: background var(--transition-smooth), color var(--transition-smooth);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.comic-card .tag:hover {
    background: rgba(139, 92, 246, 0.3);
    color: var(--primary-lighter);
}

/* ===== 精品推荐横排 ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.featured-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    animation: fadeInUp 0.5s ease backwards;
}

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

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

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

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

.featured-card .featured-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.featured-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: color var(--transition-smooth);
}

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

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

.featured-card .meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-bright);
    flex-wrap: wrap;
}

.featured-card .meta span {
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ===== 详细介绍 ===== */
.detail-section {
    background: var(--bg-card-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.detail-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 25px 0 15px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    position: relative;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    left: 12px;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

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

.detail-section .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-section .tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-lighter);
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.detail-section .tag:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

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

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    animation: fadeInUp 0.5s ease backwards;
}

.character-card:nth-child(1) { animation-delay: 0.1s; }
.character-card:nth-child(2) { animation-delay: 0.2s; }
.character-card:nth-child(3) { animation-delay: 0.3s; }
.character-card:nth-child(4) { animation-delay: 0.4s; }
.character-card:nth-child(5) { animation-delay: 0.5s; }
.character-card:nth-child(6) { animation-delay: 0.6s; }

.character-card:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.character-card img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
    background: var(--bg-widget);
    border: 3px solid var(--border-color);
    transition: all var(--transition-smooth);
    object-fit: cover;
}

.character-card:hover img {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.character-card h3 {
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: color var(--transition-smooth);
}

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

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

.character-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== 平台介绍 ===== */
.platform-section {
    background: var(--bg-widget);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.platform-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.platform-section h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.platform-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.platform-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.platform-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.platform-item h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.platform-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== APP下载 ===== */
.app-section {
    background: linear-gradient(135deg, #14142e, #1c1c3e);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.app-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.app-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.app-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.app-btn {
    background: var(--gradient-main);
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

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

.app-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    color: #fff;
}

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

.app-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

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

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}

.comment-card:nth-child(1) { animation-delay: 0.05s; }
.comment-card:nth-child(2) { animation-delay: 0.1s; }
.comment-card:nth-child(3) { animation-delay: 0.15s; }
.comment-card:nth-child(4) { animation-delay: 0.2s; }
.comment-card:nth-child(5) { animation-delay: 0.25s; }
.comment-card:nth-child(6) { animation-delay: 0.3s; }
.comment-card:nth-child(7) { animation-delay: 0.35s; }
.comment-card:nth-child(8) { animation-delay: 0.4s; }
.comment-card:nth-child(9) { animation-delay: 0.45s; }
.comment-card:nth-child(10) { animation-delay: 0.5s; }
.comment-card:nth-child(11) { animation-delay: 0.55s; }
.comment-card:nth-child(12) { animation-delay: 0.6s; }

.comment-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.comment-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 80px;
    color: rgba(139, 92, 246, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.comment-card .user {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-card .time {
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: normal;
}

.comment-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== 侧边栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 5px;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar-widget {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.sidebar-widget:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.sidebar-widget h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light);
}

.rank-list {
    list-style: none;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

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

.rank-list li:hover {
    background: rgba(139, 92, 246, 0.05);
    padding-left: 10px;
}

.rank-list .rank-num {
    background: var(--gradient-main);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.rank-list li:nth-child(1) .rank-num {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-list li:nth-child(2) .rank-num {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.rank-list li:nth-child(3) .rank-num {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.rank-list .rank-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    transition: color var(--transition-smooth);
}

.rank-list li:hover .rank-name {
    color: var(--primary-light);
}

.rank-list .rank-value {
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-list {
    list-style: none;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

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

.stats-list li:hover {
    background: rgba(139, 92, 246, 0.05);
    padding: 10px 10px;
}

.stats-list .label {
    color: var(--text-muted);
}

.stats-list .value {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1rem;
}

/* ===== 底部 ===== */
.site-footer {
    background: rgba(10, 10, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 50px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.footer-links a {
    color: var(--primary-light);
    font-size: 0.9rem;
    position: relative;
    transition: all var(--transition-smooth);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-lighter);
}

.footer-links a:hover::after {
    width: 100%;
}

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

.footer-legal a {
    color: var(--text-dark);
    font-size: 0.8rem;
    transition: color var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.copyright p {
    margin-bottom: 5px;
}

/* ===== 滚动动画 ===== */
@keyframes scrollReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: scrollReveal 0.8s ease both;
}

/* ===== 响应式布局 ===== */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
    
    .sidebar {
        top: 70px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .detail-section,
    .platform-section,
    .app-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
    }
    
    .main-nav {
        justify-content: center;
        gap: 12px;
        width: 100%;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .comic-card .card-body {
        padding: 12px;
    }
    
    .comic-card h3 {
        font-size: 1rem;
    }
    
    .comic-card p {
        font-size: 0.8rem;
    }
    
    .detail-section,
    .platform-section,
    .app-section {
        padding: 20px;
        margin: 25px 0;
    }
    
    .detail-section h2 {
        font-size: 1.5rem;
    }
    
    .detail-section h3 {
        font-size: 1.1rem;
    }
    
    .app-section h2 {
        font-size: 1.5rem;
    }
    
    .app-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .app-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .character-card {
        padding: 15px;
    }
    
    .comments-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .comic-card .card-body {
        padding: 10px;
    }
    
    .comic-card h3 {
        font-size: 0.9rem;
    }
    
    .comic-card p {
        font-size: 0.75rem;
    }
    
    .comic-card .tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .main-nav {
        gap: 8px;
    }
    
    .main-nav a {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .section-title {
        font-size: 1.1rem;
        padding-left: 10px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .character-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .character-card {
        padding: 12px;
    }
    
    .character-card img {
        max-width: 120px;
    }
    
    .detail-section {
        padding: 15px;
    }
    
    .detail-section h2 {
        font-size: 1.3rem;
    }
    
    .app-section {
        padding: 25px 15px;
    }
    
    .app-section h2 {
        font-size: 1.3rem;
    }
    
    .footer-links {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .footer-legal {
        gap: 10px;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
}

/* ===== 性能优化 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

/* ===== 打印样式 ===== */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .app-section {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .main-content {
        display: block;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ===== 加载动画 ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== 工具类 ===== */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.hover-lift {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

/* ===== 滚动指示器 ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-main);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 10px 0;
    }
}

/* ===== 卡片悬浮光效 ===== */
.comic-card,
.featured-card,
.character-card,
.comment-card {
    position: relative;
    overflow: hidden;
}

.comic-card::after,
.featured-card::after,
.character-card::after,
.comment-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.comic-card:hover::after,
.featured-card:hover::after,
.character-card:hover::after,
.comment-card:hover::after {
    opacity: 1;
}

/* ===== 侧边栏小工具动画 ===== */
.sidebar-widget {
    animation: slideInRight 0.5s ease backwards;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.3s; }

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

/* ===== 底部链接动画 ===== */
.footer-links a,
.footer-legal a {
    position: relative;
    transition: all var(--transition-smooth);
}

/* ===== 文本选择样式 ===== */
::selection {
    background: var(--primary);
    color: #fff;
    text-shadow: none;
}

/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .comic-card .card-body {
        gap: 3px;
    }
    
    .comic-card .tag {
        margin-top: 3px;
    }
    
    .detail-section p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .platform-section p {
        font-size: 0.9rem;
    }
    
    .comment-card {
        padding: 15px;
    }
    
    .comment-card p {
        font-size: 0.85rem;
    }
    
    .rank-list .rank-name {
        font-size: 0.85rem;
    }
    
    .stats-list .label,
    .stats-list .value {
        font-size: 0.85rem;
    }
}

/* ===== 高亮动画 ===== */
@keyframes highlight {
    0% {
        background: rgba(139, 92, 246, 0.3);
    }
    100% {
        background: transparent;
    }
}

.highlight {
    animation: highlight 1.5s ease-out;
}

/* ===== 渐变边框 ===== */
.gradient-border {
    border: 2px 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;
}

.gradient-border:hover {
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* ===== 最终优化 ===== */
.main-content {
    min-height: 70vh;
}

.content-area > section {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    .content-area > section {
        scroll-margin-top: 60px;
    }
}