/* ===== 生活片·高清影院 主题样式 ===== */
/* 基础重置与主题变量 */
:root {
    --bg-primary: #0a0a18;
    --bg-secondary: #14142a;
    --bg-card: #1a1a35;
    --bg-widget: #14142e;
    --bg-glass: rgba(26, 26, 53, 0.6);
    --border-color: #2d2d55;
    --border-hover: #8b5cf6;
    --text-primary: #f0f0ff;
    --text-secondary: #d0d0e8;
    --text-muted: #8888aa;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-lighter: #c4b5fd;
    --gradient-accent: linear-gradient(135deg, #a78bfa, #8b5cf6);
    --gradient-bg: linear-gradient(145deg, #0a0a18 0%, #14142a 100%);
    --gradient-btn: linear-gradient(145deg, #7c3aed, #6d28d9);
    --gradient-btn-hover: linear-gradient(145deg, #8b5cf6, #7c3aed);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.25);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s ease;
    --glass-blur: blur(12px);
}

/* 深色模式变量（默认即为深色，此处为备用） */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #0a0a18;
        --bg-secondary: #14142a;
        --bg-card: #1a1a35;
        --bg-widget: #14142e;
        --bg-glass: rgba(26, 26, 53, 0.6);
        --border-color: #2d2d55;
        --text-primary: #f0f0ff;
        --text-secondary: #d0d0e8;
        --text-muted: #8888aa;
    }
}

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

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    background: #1c1c3a;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ===== 头部导航 ===== */
header {
    background: rgba(13, 13, 32, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 0 0 28px 28px;
    padding: 18px 28px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.6s ease;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo h1 {
    font-size: 2.2rem;
    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 18px rgba(139, 92, 246, 0.2);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

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

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    position: relative;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-slow);
    border-radius: 2px;
}

nav a:hover {
    color: var(--accent-light);
    border-bottom-color: transparent;
    text-decoration: none;
}

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

nav .active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent);
}

nav .active::after {
    width: 100%;
}

/* ===== 主区域flex ===== */
.main-grid {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease;
}

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

aside {
    flex: 1.2;
    min-width: 260px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

aside::-webkit-scrollbar {
    width: 4px;
}

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

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s ease backwards;
}

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

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

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

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

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    background: #12122a;
    transition: transform var(--transition-slow);
}

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

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

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

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: 40px;
    padding: 2px 12px;
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.badge:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== 区块标题 ===== */
section {
    margin-bottom: 50px;
    position: relative;
}

section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-bottom: 30px;
}

section:first-of-type::before {
    display: none;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-left: 6px solid var(--accent);
    padding-left: 18px;
    background: linear-gradient(90deg, var(--bg-card), transparent);
    border-radius: 0 12px 12px 0;
    position: relative;
    animation: fadeInRight 0.5s ease;
    line-height: 1.4;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 24px;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

section:hover h2::after {
    opacity: 1;
}

h3 {
    color: var(--text-primary);
    line-height: 1.5;
}

/* ===== 详情区域 ===== */
.detail-block, .platform-block, .comment-item, .rank-item, .app-download {
    background: var(--bg-widget);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.detail-block:hover, .platform-block:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.detail-block h3, .platform-block h3 {
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.detail-block h3:first-child, .platform-block h3:first-child {
    margin-top: 0;
}

.detail-block p, .platform-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.detail-block ul, .platform-block ul {
    padding-left: 20px;
    color: var(--text-secondary);
    margin: 12px 0;
}

.detail-block li, .platform-block li {
    margin-bottom: 8px;
    padding-left: 4px;
}

/* ===== 角色网格 ===== */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.char-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px 12px;
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.char-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
    transform-origin: left;
}

.char-card:hover::before {
    transform: scaleX(1);
}

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

.char-card img {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: all var(--transition-slow);
}

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

.char-card h3 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.char-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ===== 评论样式 ===== */
.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 14px;
    transition: all var(--transition-fast);
    animation: slideIn 0.4s ease backwards;
}

.comment-item:nth-child(1) { animation-delay: 0.1s; }
.comment-item:nth-child(2) { animation-delay: 0.15s; }
.comment-item:nth-child(3) { animation-delay: 0.2s; }
.comment-item:nth-child(4) { animation-delay: 0.25s; }
.comment-item:nth-child(5) { animation-delay: 0.3s; }
.comment-item:nth-child(6) { animation-delay: 0.35s; }
.comment-item:nth-child(7) { animation-delay: 0.4s; }
.comment-item:nth-child(8) { animation-delay: 0.45s; }

.comment-item:hover {
    border-color: var(--border-hover);
    background: rgba(26, 26, 53, 0.8);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.comment-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 12px;
}

.comment-item p {
    margin-top: 8px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    margin: 8px 8px 0 0;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
    cursor: pointer;
    font-size: 1rem;
}

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

.btn:hover {
    background: var(--gradient-btn-hover);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

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

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

/* ===== 侧边栏 ===== */
aside .widget {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 28px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--bg-glass);
    transition: all var(--transition-fast);
    animation: slideInRight 0.5s ease backwards;
}

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

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

aside .widget h3 {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.rank-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

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

.rank-list li:hover {
    color: var(--accent-light);
    padding-left: 8px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
}

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

.rank-list li span:last-child {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
}

aside .widget p {
    color: var(--text-secondary);
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(45, 45, 85, 0.5);
}

aside .widget p:last-child {
    border-bottom: none;
}

/* ===== 底部 ===== */
.footer-links {
    background: var(--bg-primary);
    padding: 36px 20px;
    border-radius: 32px 32px 0 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-links a {
    margin: 0 12px 12px 0;
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--bg-card);
    margin-top: 20px;
    padding-top: 20px;
    line-height: 1.8;
}

.copyright a {
    color: var(--text-muted);
    margin: 0 4px;
}

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

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

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

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

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

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

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

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6));
    }
}

/* 滚动进度条 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
    pointer-events: none;
    animation: progressBar 1s ease;
}

@keyframes progressBar {
    from {
        transform: scaleX(0);
    }
}

/* ===== 响应式布局 ===== */
@media (max-width: 1200px) {
    .main-grid {
        gap: 20px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 16px;
    }
    
    aside {
        min-width: 230px;
    }
}

@media (max-width: 992px) {
    body {
        padding: 0 15px;
    }
    
    header {
        padding: 15px 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    .main-grid {
        flex-direction: column;
    }
    
    aside {
        min-width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    aside .widget {
        margin-bottom: 0;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 12px;
    }
    
    header {
        border-radius: 0 0 20px 20px;
        padding: 12px 16px;
        margin-bottom: 20px;
        position: relative;
        top: 0;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    
    nav::-webkit-scrollbar {
        display: none;
    }
    
    nav ul {
        flex-wrap: nowrap;
        gap: 18px;
        padding-bottom: 4px;
    }
    
    nav a {
        font-size: 0.95rem;
        white-space: nowrap;
        padding: 4px 0;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .card {
        padding: 10px;
        border-radius: 16px;
    }
    
    .card img {
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-right: 4px;
    }
    
    section {
        margin-bottom: 35px;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 14px;
        padding-left: 14px;
        border-left-width: 4px;
    }
    
    .detail-block, .platform-block {
        padding: 18px;
        border-radius: 18px;
    }
    
    .detail-block p, .platform-block p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .char-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .char-card {
        padding: 14px 8px;
        border-radius: 16px;
    }
    
    .char-card img {
        width: 90px;
        height: 90px;
        border-radius: 45px;
        margin-bottom: 10px;
    }
    
    .char-card h3 {
        font-size: 1rem;
    }
    
    .char-card p {
        font-size: 0.8rem;
    }
    
    .comment-item {
        padding: 14px 16px;
        border-radius: 14px;
        margin-bottom: 10px;
    }
    
    .comment-user {
        font-size: 0.9rem;
    }
    
    .comment-time {
        font-size: 0.8rem;
        margin-left: 8px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        margin: 6px 6px 0 0;
    }
    
    aside {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    aside .widget {
        padding: 16px;
        border-radius: 18px;
        margin-bottom: 0;
    }
    
    aside .widget h3 {
        font-size: 1.1rem;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    
    .rank-list li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .footer-links {
        padding: 24px 16px;
        border-radius: 24px 24px 0 0;
        margin-top: 30px;
    }
    
    .footer-links a {
        margin: 0 8px 8px 0;
        font-size: 0.85rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .detail-block ul, .platform-block ul {
        columns: 1 !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card {
        padding: 8px;
        border-radius: 14px;
    }
    
    .card img {
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .card h3 {
        font-size: 0.9rem;
    }
    
    .card p {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
    
    h2 {
        font-size: 1.3rem;
        padding-left: 12px;
    }
    
    .char-grid {
        gap: 10px;
    }
    
    .char-card {
        padding: 10px 6px;
        border-radius: 14px;
    }
    
    .char-card img {
        width: 80px;
        height: 80px;
        border-radius: 40px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 4px 4px 0 0;
    }
    
    .detail-block, .platform-block {
        padding: 14px;
        border-radius: 16px;
    }
    
    .detail-block h3, .platform-block h3 {
        font-size: 1.1rem;
    }
    
    .comment-item {
        padding: 12px;
    }
    
    .comment-time {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
    
    .rank-list li {
        font-size: 0.85rem;
    }
    
    .footer-links {
        padding: 20px 12px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

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

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

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

/* ===== 减少动画偏好 ===== */
@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;
    }
}

/* ===== 打印样式 ===== */
@media print {
    body {
        background: #fff;
        color: #000;
        padding: 0;
    }
    
    header, aside, .btn, .footer-links {
        display: none;
    }
    
    .main-grid {
        flex-direction: column;
    }
    
    .card, .detail-block, .platform-block, .comment-item {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}