/* anime-clock 站点样式（暗色玻璃卡，与二次元工具箱原型同一视觉体系）
   模板请严格使用以下类名，样式由本文件统一控制。 */

:root {
  --ink-0: #0b0812;
  --ink-1: #120d1c;
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --mint: #34d399;
  --amber: #fbbf24;
  --coral: #fb7185;
  --t-hi: #f7f2ff;
  --t-mid: #c8bce0;
  --t-low: #8f83ab;
  --card-line: rgba(167, 139, 250, 0.22);
  --card-line-strong: rgba(167, 139, 250, 0.45);
  --font-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body.site {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 12% -10%, rgba(124, 58, 237, 0.26), transparent 60%),
    radial-gradient(900px 480px at 88% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(700px 700px at 50% 115%, rgba(244, 114, 182, 0.16), transparent 60%),
    var(--ink-0);
  color: var(--t-hi);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11, 8, 18, 0.94), rgba(11, 8, 18, 0.72));
  border-bottom: 1px solid rgba(167, 139, 250, 0.22);
}
.site-head-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-deep), var(--cyan));
  color: #0b0812; font-weight: 900; font-size: 16px;
}
.brand-name { font-size: 15px; font-weight: 900; }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: 0.18em; color: var(--violet); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  color: var(--t-mid); text-decoration: none; font-size: 12.5px;
  padding: 7px 11px; border-radius: 999px; border: 1px solid transparent;
}
.nav a:hover { color: var(--t-hi); border-color: rgba(167, 139, 250, 0.45); background: rgba(124, 58, 237, 0.15); }
.nav a.is-on {
  color: #140f22; font-weight: 800;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
}

/* ---------- 布局 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 18px 80px; }

/* ---------- 今日 hero ---------- */
.today-hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 24px 26px;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(38, 28, 60, 0.94), rgba(16, 11, 26, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-kicker {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.25); background: rgba(8, 5, 14, 0.5);
}
.hero-title { margin: 12px 0 6px; font-size: clamp(22px, 3.6vw, 32px); font-weight: 900; line-height: 1.2; }
.hero-title .grad {
  background: linear-gradient(100deg, #fff 10%, var(--violet) 50%, var(--cyan) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0; color: var(--t-mid); font-size: 13px; line-height: 1.7; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }
.hero-stats > div { display: grid; grid-template-columns: auto auto; column-gap: 3px; align-items: baseline; min-width: 76px; }
.hero-stats .k { grid-column: 1 / -1; }
.hero-stats .k { font-size: 10px; letter-spacing: 0.12em; color: var(--t-low); text-transform: uppercase; }
.hero-stats .v { font-family: var(--font-mono); font-size: 20px; font-weight: 800; }
.hero-stats .u { font-size: 11px; color: var(--t-mid); margin-left: 3px; }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; flex-wrap: wrap; }
.section-head h2 {
  margin: 0; font-size: 17px; font-weight: 900;
  display: flex; align-items: center; gap: 9px;
}
.section-head h2::before {
  content: ""; width: 5px; height: 18px; border-radius: 3px;
  background: linear-gradient(to bottom, var(--violet), var(--cyan));
}
.section-head .sub { font-size: 10.5px; letter-spacing: 0.18em; color: var(--t-low); text-transform: uppercase; }
.section-head .more { margin-left: auto; font-size: 12px; color: var(--cyan); text-decoration: none; }

/* ---------- 星期 tabs ---------- */
.week-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.week-tabs a, .week-tabs button {
  flex: 0 0 auto; font-family: var(--font-sans); font-size: 12.5px; font-weight: 800;
  padding: 8px 14px; border-radius: 11px; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(253, 248, 242, 0.18);
  background: rgba(253, 248, 242, 0.05); color: var(--t-mid);
}
.week-tabs .is-on {
  background: linear-gradient(120deg, var(--violet), var(--pink));
  color: #180f26; border-color: transparent;
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.4);
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.anime-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--card-line);
  background: linear-gradient(165deg, rgba(38, 28, 60, 0.92), rgba(16, 11, 26, 0.95));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-decoration: none; color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.anime-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-line-strong);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.28);
}
.anime-card .cover { position: relative; aspect-ratio: 3 / 4; background: #221a33; overflow: hidden; }
.anime-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anime-card .cover .fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; color: rgba(253, 248, 242, 0.35);
  background: linear-gradient(160deg, #3a2a5c, #191125);
}
.badge-score {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 800;
  color: var(--amber); background: rgba(11, 8, 18, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 7px; padding: 2px 7px;
}
.badge-time {
  position: absolute; left: 7px; bottom: 7px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 800;
  color: var(--cyan); background: rgba(11, 8, 18, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.45); border-radius: 6px; padding: 2px 6px;
}
.anime-card .body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 6px; }
.anime-card .title {
  font-size: 12.5px; font-weight: 800; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.anime-card .meta-row { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--t-low); }

/* 平台徽标 */
.plat {
  font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(11, 8, 18, 0.55);
  color: var(--t-mid);
}
.plat--bilibili { color: #f472b6; border-color: rgba(244, 114, 182, 0.45); }
.plat--iqiyi { color: #34d399; border-color: rgba(52, 211, 153, 0.45); }
.plat--tencent { color: #fbbf24; border-color: rgba(251, 191, 36, 0.45); }
.plat--youku { color: #38bdf8; border-color: rgba(56, 189, 248, 0.45); }
.plat--unknown { color: var(--t-low); border-style: dashed; }

/* ---------- 详情页 ---------- */
.detail {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  padding: 20px; border-radius: 20px;
  border: 1px solid var(--card-line);
  background: linear-gradient(165deg, rgba(38, 28, 60, 0.92), rgba(16, 11, 26, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.detail .cover { border-radius: 14px; overflow: hidden; border: 1px solid var(--card-line); }
.detail .cover img { width: 100%; display: block; }
.detail h1 { margin: 0 0 6px; font-size: 24px; font-weight: 900; line-height: 1.3; }
.detail .jp { color: var(--t-low); font-size: 12.5px; margin: 0 0 14px; }
.detail dl { display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; margin: 0; font-size: 13px; }
.detail dt { color: var(--t-low); }
.detail dd { margin: 0; color: var(--t-hi); }
.detail dd a { color: var(--cyan); text-decoration: none; }
.detail dd a:hover { text-decoration: underline; }

/* ---------- 提示条 ---------- */
.notice {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08);
  color: #ffeec2; font-size: 12px; line-height: 1.7;
}
.notice--stale { border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.1); color: #fecdd3; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 46px; padding-top: 18px;
  border-top: 1px dashed rgba(253, 248, 242, 0.14);
  font-size: 11.5px; color: var(--t-low); line-height: 1.9;
}
.site-foot a { color: var(--cyan); text-decoration: none; }

/* ---------- 空态 ---------- */
.empty { padding: 36px 16px; text-align: center; color: var(--t-low); font-size: 13px; }

@media (max-width: 720px) {
  .wrap { padding: 16px 14px 64px; }
  .today-hero { padding: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .detail .cover { max-width: 200px; }
  .nav { display: none; }
}
