/* ===== 人人影视 · 众享4K 影迷共生体 ===== */
/* ===== 全局重置与变量 ===== */
:root {
    --bg-primary: #0a0a18;
    --bg-secondary: #14142a;
    --bg-card: #1a1a35;
    --bg-elevated: #161630;
    --bg-sidebar: #14142e;
    --bg-footer: #0a0a18;
    --border-color: #2d2d55;
    --border-hover: #8b5cf6;
    --text-primary: #f0f0ff;
    --text-secondary: #d0d0e8;
    --text-muted: #b0b0d0;
    --text-dim: #8888aa;
    --accent-1: #8b5cf6;
    --accent-2: #7c3aed;
    --accent-3: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --gradient-accent: linear-gradient(135deg, #c4b5fd, #8b5cf6);
    --gradient-btn: linear-gradient(135deg, #7c3aed, #6d28d9);
    --gradient-btn-hover: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --shadow-card: 0 6px 14px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 30px rgba(139, 92, 246, 0.2);
    --shadow-header: 0 15px 30px rgba(0, 0, 0, 0.6);
    --shadow-btn: 0 8px 20px rgba(109, 40, 217, 0.4);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #05050f;
        --bg-secondary: #0d0d1f;
        --bg-card: #12122a;
        --bg-elevated: #101024;
        --bg-sidebar: #0f0f22;
        --bg-footer: #05050f;
        --border-color: #1e1e40;
        --text-primary: #e8e8ff;
        --text-secondary: #c8c8e0;
        --text-muted: #a0a0c0;
        --text-dim: #707090;
    }
}

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

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

body {
    font-family: var(--font-family);
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
    padding: 0 1rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(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 gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    }
}

/* 滚动动画应用 */
section {
    animation: fadeInUp 0.8s ease forwards;
}

.card {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.05s);
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== 头部导航 ===== */
.site-header {
    background: var(--bg-secondary);
    background: rgba(13, 13, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 0.8rem 2rem;
    margin: 1.5rem 0 2rem 0;
    box-shadow: var(--shadow-header);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 1rem;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.1);
}

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

.logo h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px var(--accent-glow);
    position: relative;
    cursor: default;
    transition: text-shadow 0.3s ease;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo h1:hover::after {
    transform: scaleX(1);
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    position: relative;
    display: inline-block;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-3);
}

.nav-menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu .active {
    color: var(--accent-1);
    border-bottom-color: var(--accent-1);
}

/* ===== 主区块 ===== */
main {
    display: block;
}

section {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    border-left: 6px solid var(--accent-1);
    padding-left: 1.2rem;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 1.2rem;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.section-sub {
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -1rem;
    margin-bottom: 2rem;
    padding-left: 2rem;
    font-size: 0.95rem;
}

/* ===== 卡片网格 ===== */
.grid-common {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.8rem;
}

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

.card {
    background: var(--bg-card);
    background: rgba(26, 26, 53, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), 0 0 15px rgba(139, 92, 246, 0.15);
    animation: pulseGlow 2s ease-in-out infinite;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover img {
    transform: scale(1.05) rotate(0.5deg);
    filter: brightness(1.1) saturate(1.1);
}

.card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.5rem 0 0.2rem 0;
    transition: color 0.2s;
}

.card:hover h3 {
    color: var(--accent-3);
}

.card .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.card:hover .meta {
    color: var(--text-secondary);
}

.card .tag {
    display: inline-block;
    background: var(--border-color);
    color: var(--accent-3);
    border-radius: 30px;
    padding: 0.1rem 0.9rem;
    font-size: 0.75rem;
    margin: 0.5rem 0.2rem 0 0;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.card .tag:hover {
    background: var(--accent-1);
    color: var(--text-primary);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* ===== 详细介绍区域 ===== */
.detail-area {
    background: var(--bg-elevated);
    background: rgba(22, 22, 48, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.detail-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.detail-area:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.detail-area h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.detail-area h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40%;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.detail-area h3 {
    color: var(--accent-3);
    margin-top: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-left: 0.8rem;
}

.detail-area h3::before {
    content: '◆';
    position: absolute;
    left: -0.5rem;
    color: var(--accent-1);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.detail-area p {
    margin-top: 0.8rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.character-card {
    background: var(--bg-card);
    background: rgba(26, 26, 53, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.character-card img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--accent-2);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
}

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

.character-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.character-card .identity {
    color: var(--accent-3);
    font-weight: 600;
    font-size: 0.9rem;
}

.character-card .desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.7rem;
    line-height: 1.5;
}

/* ===== 平台介绍 ===== */
.platform-box {
    background: var(--bg-elevated);
    background: rgba(20, 20, 46, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border-left: 6px solid var(--accent-1);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.platform-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent 60%);
    pointer-events: none;
}

.platform-box:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.platform-box h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-box p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.8;
}

/* ===== 侧边栏 ===== */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    margin-top: 1rem;
}

.sidebar {
    background: var(--bg-sidebar);
    background: rgba(20, 20, 46, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    align-self: start;
    position: sticky;
    top: 6rem;
    transition: box-shadow 0.3s ease;
}

.sidebar:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.sidebar h3 {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-1);
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar li:hover {
    color: var(--accent-3);
    padding-left: 0.5rem;
    border-bottom-color: var(--accent-1);
}

.sidebar li span:first-child {
    font-weight: 500;
}

.sidebar li span:last-child {
    color: var(--accent-3);
    font-size: 0.9rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.stats {
    margin-top: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.stats p {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
}

.stats span {
    color: var(--accent-3);
    font-weight: 700;
}

/* ===== APP下载 ===== */
.download-section {
    background: var(--bg-elevated);
    background: rgba(16, 16, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a78bfa, #8b5cf6, #7c3aed);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.download-section:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.download-section h2 {
    color: var(--text-primary);
    font-size: 2.2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.download-section p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem auto;
    font-size: 1.05rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    background: var(--gradient-btn);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    letter-spacing: 0.5px;
    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: left 0.5s ease;
}

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

.btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.5);
}

.btn:active {
    transform: scale(0.98);
}

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

.comment-card {
    background: var(--bg-card);
    background: rgba(26, 26, 53, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.comment-card::after {
    content: '"';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.comment-card:hover::after {
    color: rgba(139, 92, 246, 0.3);
}

.comment-card .username {
    color: var(--accent-3);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-card .username::before {
    content: '👤';
    font-size: 0.9rem;
}

.comment-card .time {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-left: 0.8rem;
    font-style: italic;
}

.comment-card p {
    color: var(--text-secondary);
    margin-top: 0.6rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== 底部 ===== */
footer {
    background: var(--bg-footer);
    margin-top: 4rem;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 30px 30px 0 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #a78bfa, #8b5cf6, transparent);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.footer-links a {
    color: var(--accent-3);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.2rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copyright, .icp {
    color: var(--text-dim);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.icp {
    font-size: 0.8rem;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-1), var(--accent-2));
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-3), var(--accent-1));
}

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

/* ===== 链接通用样式 ===== */
a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== 图片通用 ===== */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
    
    .grid-common {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .nav-wrap {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 1.2rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .site-header {
        padding: 0.8rem 1.5rem;
        position: relative;
        top: 0;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .detail-area {
        padding: 2rem 1.5rem;
    }
    
    .detail-area h2 {
        font-size: 1.6rem;
    }
    
    .detail-area h3 {
        font-size: 1.3rem;
    }
    
    .download-section {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0 0.5rem;
    }
    
    .container {
        padding: 0.5rem 0.25rem;
    }
    
    .site-header {
        margin: 0.5rem 0 1.5rem 0;
        border-radius: 20px;
        padding: 0.6rem 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding-left: 0.8rem;
        border-left-width: 4px;
    }
    
    .grid-common {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .grid-recommend {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .card {
        padding: 0.8rem 0.6rem;
        border-radius: 16px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card .meta {
        font-size: 0.8rem;
    }
    
    .detail-area {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .detail-area h2 {
        font-size: 1.4rem;
    }
    
    .detail-area h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .detail-area p {
        font-size: 0.95rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .character-card {
        padding: 1rem 0.5rem;
        border-radius: 18px;
    }
    
    .character-card img {
        width: 90px;
        height: 90px;
    }
    
    .platform-box {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .platform-box h2 {
        font-size: 1.3rem;
    }
    
    .download-section {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .download-section h2 {
        font-size: 1.6rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .comment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comment-card {
        padding: 1.2rem;
    }
    
    .footer-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 2rem 1rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }
}

/* ===== 键盘导航支持 ===== */
:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== 文章卡片动画增强 ===== */
.card:hover {
    animation: none;
}

/* ===== 渐变Banner效果 ===== */
#hot {
    position: relative;
}

#hot::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

/* ===== 装饰性背景光斑 ===== */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -20%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 6s ease-in-out infinite reverse;
}

/* ===== 无障碍支持 ===== */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0ff;
        --text-muted: #c0c0e0;
        --border-color: #4a4a80;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .site-header, .btn-group, .sidebar, footer, .comment-card::after {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .card, .detail-area, .platform-box, .download-section, .comment-card, .character-card {
        background: #fff;
        border: 1px solid #ccc;
        box-shadow: none;
        color: #000;
    }
    
    .section-title {
        color: #000;
        border-left-color: #666;
    }
    
    .card h3, .detail-area h2, .detail-area h3, .platform-box h2, .download-section h2, .character-card h3 {
        color: #000;
    }
    
    .card .meta, .detail-area p, .platform-box p, .comment-card p {
        color: #333;
    }
}