/* === TikTok 漫剧资讯中心 · 全局样式 === */

:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --text2: #5a5a6e;
  --text3: #999;
  --accent: #ff0050;
  --accent2: #00f2ea;
  --border: #e8e8ed;
  --tag-bg: #f0f0f5;
  --green: #22c55e;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --red: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --content-width: 780px;
  --site-width: 1200px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 15px; }

/* Nav */
nav { background: #111; padding: 0 24px; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--site-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.3 } }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a { color: #aaa; text-decoration: none; padding: 8px 16px; font-size: 14px; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }

/* Layout */
.container { max-width: var(--site-width); margin: 0 auto; padding: 32px 24px; }
.container-sm { max-width: var(--content-width); margin: 0 auto; padding: 32px 24px; }

/* Hero */
.hero { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%); padding: 56px 24px 48px; text-align: center; color: #fff; }
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.hero h1 span { color: var(--accent2); }
.hero p { font-size: 15px; color: #aaa; max-width: 520px; margin: 0 auto 28px; }
.hero-metrics { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.metric { text-align: center; }
.metric .num { font-size: 30px; font-weight: 800; }
.metric .num.green { color: var(--green); }
.metric .num.blue { color: var(--blue); }
.metric .num.purple { color: var(--purple); }
.metric .num.orange { color: var(--orange); }
.metric .label { font-size: 13px; color: #888; margin-top: 4px; }

/* Section Title */
.section-title { font-size: 20px; font-weight: 700; margin: 32px 0 18px; display: flex; align-items: center; gap: 10px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

/* Card */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: all 0.2s; border: 1px solid var(--border); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card a { color: inherit; text-decoration: none; display: block; }
.card-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.card-tag.red { background: #fee2e2; color: #dc2626; }
.card-tag.green { background: #dcfce7; color: #16a34a; }
.card-tag.blue { background: #dbeafe; color: #2563eb; }
.card-tag.purple { background: #ede9fe; color: #7c3aed; }
.card-tag.orange { background: #fff7ed; color: #ea580c; }
.card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.5; }
.card p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.card .meta { font-size: 12px; color: var(--text3); margin-top: 10px; }

/* Highlight Box */
.highlight { background: linear-gradient(135deg, #fef2f2, #fff7ed); border: 1px solid #fecaca; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; font-size: 14px; color: var(--text2); }
.highlight strong { color: #dc2626; }
.highlight h4 { font-size: 15px; color: #dc2626; margin-bottom: 6px; }

/* Data Card */
.data-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.data-card h4 { font-size: 14px; margin-bottom: 14px; color: var(--text2); }

/* Bar Chart */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 90px; font-size: 13px; text-align: right; color: var(--text2); flex-shrink: 0; }
.bar-track { flex: 1; height: 26px; background: var(--tag-bg); border-radius: 6px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 6px; position: relative; }
.bar-fill.red { background: linear-gradient(90deg, #ff0050, #ff4470); }
.bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bar-fill.green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.bar-fill.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bar-val { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: #fff; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-box { background: var(--card); border-radius: 10px; padding: 16px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-box .stat-num { font-size: 26px; font-weight: 800; }
.stat-box .stat-label { font-size: 12px; color: var(--text2); margin-top: 4px; }
.stat-box .stat-change { font-size: 11px; margin-top: 2px; }
.stat-box .stat-change.up { color: var(--green); }
.stat-box .stat-change.warn { color: var(--orange); }

/* Article Content */
.article-header { text-align: center; padding: 48px 24px 24px; }
.article-header .tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.article-header h1 { font-size: 28px; font-weight: 800; line-height: 1.4; max-width: 680px; margin: 0 auto 10px; }
.article-header .date { font-size: 13px; color: var(--text3); }
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.article-body h2 { font-size: 21px; font-weight: 700; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 10px 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text); }
.article-body blockquote { border-left: 3px solid var(--accent); background: #fef2f2; padding: 12px 18px; margin: 16px 0; font-style: italic; color: var(--text2); border-radius: 0 8px 8px 0; }
.article-body .data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.article-body .data-table th { background: #f8f8fa; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.article-body .data-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.article-body .summary-box { background: #f0f5ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.article-body .summary-box h4 { font-size: 14px; color: var(--blue); margin-bottom: 6px; }
.article-body .summary-box ul { margin: 0 0 0 18px; }
.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text3); }
.article-footer a { color: var(--blue); text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); text-decoration: none; font-size: 14px; margin-bottom: 20px; }
.back-link:hover { color: var(--accent); }

/* Footer */
footer { background: #111; color: #666; padding: 36px 24px; text-align: center; font-size: 13px; margin-top: 48px; }
footer a { color: #999; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero-metrics { gap: 16px; }
  .metric .num { font-size: 22px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 22px; }
  .article-body { font-size: 14px; }
}
