/* ============================================================
   蘑菇动漫 · taiqiedu.net.cn 全站样式
   风格: 渐变紫罗兰 + 暗色模式 + 毛玻璃 + 滚动动画
   ============================================================ */

/* ---------- 基础变量与重置 ---------- */
:root {
    --primary: #6B4CFF;
    --primary-light: #8B6CFF;
    --primary-dark: #5437d6;
    --bg: #f8f4ff;
    --bg-card: #ffffff;
    --text-main: #1A1A2E;
    --text-sub: #2D2D44;
    --border: #e4d9ff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --navbar-bg: linear-gradient(135deg, #1A1A2E 0%, #3B2A5E 100%);
    --hero-bg: linear-gradient(120deg, #1A1A2E 0%, #2D2D44 60%, #3B2A5E 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --footer-bg: #1A1A2E;
    --badge-bg: rgba(107, 76, 255, 0.12);
    --badge-text: var(--primary);
}

/* 暗色模式变量覆盖 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12121f;
        --bg-card: #1e1e30;
        --text-main: #f0ecff;
        --text-sub: #c8c2e8;
        --border: #3a3550;
        --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
        --glass-bg: rgba(30, 30, 48, 0.7);
        --glass-border: rgba(255, 255, 255, 0.08);
        --navbar-bg: linear-gradient(135deg, #0d0d1a 0%, #241a3a 100%);
        --hero-bg: linear-gradient(120deg, #0d0d1a 0%, #1a1a2e 60%, #241a3a 100%);
        --footer-bg: #0d0d1a;
        --badge-bg: rgba(139, 108, 255, 0.15);
        --badge-text: #b4a5ff;
    }
}

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* 背景动态渐变装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(107, 76, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(139, 108, 255, 0.06) 0%, transparent 40%);
    animation: bgFloat 30s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

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

/* ---------- 链接 ---------- */
a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

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

/* ---------- 滚动动画 ---------- */
@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.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 通用滚动显示类（配合JS可触发） */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟变体 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- 顶部导航 ---------- */
.site-header {
    background: var(--navbar-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

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

.logo h1 {
    color: #FFFFFF;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #f5f0ff, #d4bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease;
}

.nav-menu a {
    color: #FFFFFF;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: #fff;
}

.nav-menu a:hover::after {
    width: 60%;
}

/* ---------- 主视觉 Hero ---------- */
.hero {
    background: var(--hero-bg);
    color: #F5F0FF;
    padding: 3.5rem 0;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

/* 毛玻璃装饰圆 */
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(107, 76, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 108, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    color: #FFFFFF;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    color: #F5F0FF;
    font-size: 1.2rem;
    max-width: 700px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ---------- 区块标题 ---------- */
.section-title {
    color: var(--text-main);
    font-size: 1.9rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    border-left: 6px solid var(--primary);
    padding-left: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    opacity: 0.3;
    margin-left: 1rem;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* ---------- 动漫卡片 ---------- */
.anime-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid var(--border);
    position: relative;
    animation: fadeInUp 0.6s ease both;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.anime-card:nth-child(odd) { animation-delay: 0.05s; }
.anime-card:nth-child(even) { animation-delay: 0.1s; }

.anime-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.anime-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e6def0, #d4c8e8);
    transition: transform 0.5s ease;
}

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

.anime-info {
    padding: 1rem;
    background: var(--bg-card);
    transition: background 0.3s ease;
}

.anime-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.anime-meta {
    color: var(--text-sub);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.3rem;
}

.anime-meta span {
    background: var(--badge-bg);
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
    color: var(--text-main);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.anime-meta span:hover {
    background: var(--primary);
    color: #fff;
}

.rating {
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---------- 新番卡片特殊样式 ---------- */
.anime-card p {
    color: var(--text-sub);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 深度专题 ---------- */
article > div {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.7s ease;
}

article > div:hover {
    box-shadow: var(--shadow-md);
}

article h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article p {
    margin: 0.8rem 0;
    color: var(--text-sub);
    line-height: 1.8;
}

article strong {
    color: var(--text-main);
}

/* 标签组 */
article div p:last-child span {
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 0.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

article div p:last-child span:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 76, 255, 0.3);
}

/* ---------- 角色卡片 ---------- */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.char-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    animation: scaleIn 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.char-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

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

.char-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 3px solid var(--primary);
    transition: all 0.4s ease;
}

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

.char-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
}

.char-card p {
    color: var(--text-sub);
    font-size: 0.85rem;
    margin: 0.1rem 0;
}

.char-desc {
    color: var(--text-sub);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

/* ---------- 评论区 ---------- */
.comment-item {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease both;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

.comment-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: #a78bfa;
}

.comment-user {
    font-weight: 700;
    color: var(--primary);
}

.comment-time {
    color: var(--text-sub);
    font-size: 0.8rem;
    margin-left: 1rem;
    opacity: 0.7;
}

.comment-text {
    color: var(--text-main);
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

/* ---------- 下载区块 ---------- */
.download-section {
    background: var(--hero-bg);
    color: #F5F0FF;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(107, 76, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.download-section h2 {
    color: #FFFFFF;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.download-section p {
    color: #F5F0FF;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn {
    background: var(--primary);
    color: #FFFFFF;
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(107, 76, 255, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 76, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* ---------- 布局：主内容 + 侧边栏 ---------- */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 2.5rem;
}

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

/* ---------- 侧边栏 ---------- */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
    align-self: start;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.8s ease;
    transition: var(--transition);
}

.sidebar:hover {
    box-shadow: var(--shadow-md);
}

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

.rank-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.rank-list li {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-sub);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.rank-list li span:first-child {
    color: var(--text-main);
    transition: color 0.2s;
}

.rank-list li:hover span:first-child {
    color: var(--primary);
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin: 0.15rem;
}

.badge:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.sidebar p {
    color: var(--text-sub);
    margin: 0.4rem 0;
    font-size: 0.92rem;
}

.sidebar p strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ---------- 页脚 ---------- */
footer {
    background: var(--footer-bg);
    color: #F5F0FF;
    padding: 2.5rem 0;
    margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(107, 76, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    padding: 0 1rem;
}

.footer-links a {
    color: #b4a5ff;
    margin: 0 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(180, 165, 255, 0.5);
}

.footer-links a::after {
    content: '|';
    position: absolute;
    right: -1rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.footer-links a:last-child::after {
    display: none;
}

.copyright {
    color: #c9c0f0;
    font-size: 0.88rem;
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
    line-height: 1.8;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #a78bfa);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

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

/* ---------- 选择文本 ---------- */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- 焦点可见性 ---------- */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-menu a {
        font-size: 0.88rem;
        padding: 0.4rem 0.7rem;
    }
    
    .hero {
        padding: 2.5rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 1rem;
    }
    
    .download-section {
        padding: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
    }
    
    article > div {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin: 1.8rem 0 1rem;
    }
    
    .anime-info {
        padding: 0.8rem;
    }
    
    .anime-info h3 {
        font-size: 1rem;
    }
    
    .anime-meta {
        font-size: 0.78rem;
        gap: 0.3rem 0.5rem;
    }
    
    .anime-meta span {
        font-size: 0.75rem;
        padding: 0.1rem 0.45rem;
    }
    
    .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .char-card img {
        width: 90px;
        height: 90px;
    }
    
    .char-card h4 {
        font-size: 1rem;
    }
    
    .download-section {
        padding: 1.8rem 1.2rem;
    }
    
    .btn-group {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .comment-item {
        padding: 0.8rem 1rem;
    }
    
    .comment-time {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
    }
    
    .sidebar {
        padding: 1.2rem;
    }
    
    .sidebar h3 {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        margin: 0.3rem;
    }
    
    .footer-links a::after {
        display: none;
    }
    
    article h3 {
        font-size: 1.4rem;
    }
    
    article p {
        font-size: 0.92rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
}

@media (max-width: 380px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .anime-info h3 {
        font-size: 0.9rem;
    }
    
    .anime-meta span {
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 1.8rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
}

/* ---------- 减少动效偏好 ---------- */
@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 {
    .site-header, .hero, .download-section, footer, .sidebar {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .container {
        max-width: 100%;
    }
    
    .anime-card, .char-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}