:root {
    --primary: #ff6b81;       /* 樱花粉 */
    --secondary: #2ed573;     /* 追番绿 */
    --accent: #70a1ff;        /* 活力蓝 */
    --bg-main: #f5f6fa;       /* 干净的纯白偏灰底色 */
    --text-main: #2f3542;     /* 深色字 */
    --text-muted: #a4b0be;    /* 噪点灰字 */
    --radius-lg: 16px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; background: var(--bg-main); color: var(--text-main); font-size: 14px; line-height: 1.5; padding-bottom: 60px; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

/* 极致流线型的 Header */
.anime-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.logo-img { height: 32px; width: auto; display: block; }

.search-bar { flex: 1; margin-left: 16px; position: relative; }
.search-bar input { width: 100%; height: 36px; background: var(--bg-main); border: none; border-radius: 20px; padding: 0 40px 0 16px; font-size: 13px; color: var(--text-main); transition: all 0.3s; }
.search-bar input:focus { background: #fff; box-shadow: 0 0 0 2px var(--primary); }
.search-bar button { position: absolute; right: 4px; top: 3px; width: 30px; height: 30px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; }

/* 手机横向滚动菜单 */
.nav-scroll { overflow-x: auto; white-space: nowrap; padding: 8px 16px; border-top: 1px solid rgba(0,0,0,0.03); scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-list { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav-list a { padding: 4px 0; position: relative; color: #57606f; }
.nav-list li.active a { color: var(--primary); }
.nav-list li.active a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 2px; }

/* 动漫板块间距与标题 */
.anime-section { padding: 16px; margin-top: 8px; background: #fff; border-radius: var(--radius-lg); margin-inline: 10px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-title h2 { font-size: 18px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.section-title h2::before { content: ''; display: inline-block; width: 4px; height: 18px; background: linear-gradient(to bottom, var(--primary), var(--accent)); border-radius: 2px; }
.section-title .more-btn { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* 2026全新移动优先卡片流（手机端一行3个，大屏自动平铺） */
.anime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 768px) { .anime-grid { grid-template-columns: repeat(6, 1fr); } }

.anime-card { display: flex; flex-direction: column; overflow: hidden; }
.anime-cover { position: relative; width: 100%; padding-top: 140%; border-radius: var(--radius-sm); overflow: hidden; background: #e1e2e6; }
.anime-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.anime-card:hover .anime-cover img { transform: scale(1.05); }

/* 追番剧集数标签 - 二次元圆润气泡 */
.tag-note { position: absolute; bottom: 6px; right: 6px; background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(4px); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.anime-info { margin-top: 6px; }
.anime-name { font-size: 13px; font-weight: 600; color: var(--text-main); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }

/* 极简底部声明 */
.anime-footer { text-align: center; padding: 24px 16px; font-size: 11px; color: var(--text-muted); line-height: 1.6; }