/* ============================================================
   QQ Music Analytics — 暖色唱片杂志风
   米白底 / 奶油卡片 / 黄色点缀 / 大圆角 / 大数字
   无外部依赖
   ============================================================ */
:root {
  color-scheme: light;
  --bg: #f2efe6;
  --bg-deep: #ece7da;
  --card: #fffdf7;
  --card-soft: #faf7ee;
  --ink: #17150f;
  --ink-2: #4a463c;
  --muted: #8b8578;
  --faint: #b7b1a2;
  --line: rgba(23, 21, 15, 0.08);
  --line-strong: rgba(23, 21, 15, 0.14);
  --yellow: #f5c842;
  --yellow-deep: #e8b52b;
  --yellow-soft: #fbeec2;
  --dark: #1b1a16;
  --dark-2: #24231d;
  --green: #6fae7c;
  --red: #d97757;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 18px 48px -24px rgba(76, 66, 38, 0.35);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 8% -8%, #fff6da 0%, rgba(255, 246, 218, 0) 62%),
    radial-gradient(900px 520px at 100% 2%, #f8e9c9 0%, rgba(248, 233, 201, 0) 55%),
    linear-gradient(180deg, #f4f1e8 0%, var(--bg) 38%, #efece2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  padding-top: 14px;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(76, 66, 38, 0.4);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe9a8, var(--yellow) 55%, #e8a33d);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #4a3608;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.12);
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
  margin-left: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: rgba(23, 21, 15, 0.05); }
.nav-links a.active {
  background: var(--dark);
  color: #fdf9ee;
  font-weight: 600;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  cursor: default;
  font-size: 15px;
}

/* ---------------- 页面标题 ---------------- */
.page-head { padding: 46px 0 22px; }

.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.page-head .sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}

.eyebrow {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 20px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.hero h1 .accent {
  color: var(--yellow-deep);
}

.hero p {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 520px;
}
.hero p b { font-variant-numeric: tabular-nums; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--ink-2);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------------- Bento 网格 ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding-bottom: 26px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------------- 卡片 ---------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card:hover { border-color: var(--line-strong); }

.card.dark {
  background: linear-gradient(160deg, #23221c, var(--dark) 70%);
  color: #f6f1e3;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px -28px rgba(20, 18, 10, 0.8);
}
.card.dark .muted { color: #a9a294; }
.card.dark .card-title { color: #f6f1e3; }

.card.yellow {
  background: linear-gradient(155deg, #ffe9a0 0%, var(--yellow) 62%, #efb92f 100%);
  border-color: rgba(160, 110, 0, 0.18);
  color: #3c2b00;
}
.card.yellow .muted { color: rgba(60, 43, 0, 0.62); }
.card.yellow .card-title { color: #3c2b00; }

.card.photo { padding: 0; }
.card.photo .photo-body { padding: 26px; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }

.link-more {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  white-space: nowrap;
}
.link-more:hover { color: var(--ink); }

/* ---------------- 个人卡 / 封面 ---------------- */
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #ffe9a8, var(--yellow));
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #4a3608;
  flex: none;
  box-shadow: 0 8px 20px -8px rgba(120, 90, 10, 0.5);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-link { flex: none; }
.me-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 26px; }
.me-avatar { width: 128px; height: 128px; font-size: 40px; margin-bottom: 16px; }
.me-name { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.me-growth .big-num { font-size: clamp(30px, 4vw, 44px); }
.me-growth .report-hero { border-bottom: 0; padding-bottom: 0; }

.cover {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #efe9d8, #e3dcc8);
  flex: none;
  position: relative;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: inherit;
  pointer-events: none;
}

.cover-sm { width: 46px; height: 46px; border-radius: 12px; }
.cover-md { width: 62px; height: 62px; border-radius: 14px; }
.cover-lg { width: 96px; height: 96px; }
.cover-xl { width: 100%; aspect-ratio: 1; border-radius: 22px; }
.cover-wide { width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; }

.portrait {
  width: 120px;
  height: 120px;
  border-radius: 26px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-name {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.profile-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 21, 15, 0.055);
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip.gold { background: var(--yellow-soft); color: #7a5600; font-weight: 600; }
.chip.dark-chip { background: rgba(255, 255, 255, 0.1); color: #f6f1e3; }

/* ---------------- 数字 ---------------- */
.big-num {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.big-num .unit {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.card.dark .big-num .unit { color: #a9a294; }
.card.yellow .big-num .unit { color: rgba(60, 43, 0, 0.6); }

.mid-num {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* 统计卡 2x2 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.stat-grid .stat {
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.stat-grid .stat:first-child,
.stat-grid .stat:nth-child(2) { border-top: 0; }

/* ---------------- 进度 / 圆环 ---------------- */
.ring-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.growth-ring { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(23, 21, 15, 0.08); stroke-width: 12; }
.ring-value {
  fill: none;
  stroke: var(--yellow-deep);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.ring-center { position: absolute; }
.ring-pct { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ring-label { font-size: 11px; color: var(--muted); }

.ring-holder { position: relative; display: grid; place-items: center; }
.ring-holder .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 21, 15, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd968, var(--yellow-deep));
}
.card.dark .progress-track { background: rgba(255, 255, 255, 0.12); }

.figure-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.figure { min-width: 0; }
.figure .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.figure .v { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------------- 列表 ---------------- */
.list { display: flex; flex-direction: column; gap: 2px; }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 14px;
  transition: background 0.16s ease;
}
.row:hover { background: rgba(23, 21, 15, 0.04); }
.row-link { text-decoration: none; color: inherit; }
.row-play {
  font-size: 10px;
  color: var(--faint);
  margin-left: 6px;
  opacity: 0;
  transition: opacity .16s ease;
}
.row-link:hover .row-play { opacity: 1; }
.card.dark .row-play { color: #f5c842; }
.card.dark .row:hover { background: rgba(255, 255, 255, 0.06); }

.row-rank {
  width: 22px;
  text-align: right;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.row-main { min-width: 0; flex: 1; }
.row-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-count {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 列表里的播放量条 */
.count-bar {
  width: 74px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 21, 15, 0.08);
  overflow: hidden;
  flex: none;
}
.count-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow-deep);
}
.card.dark .count-bar { background: rgba(255, 255, 255, 0.14); }

/* ---------------- 歌单墙 ---------------- */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.wall-item { min-width: 0; }
a.wall-item { display: block; text-decoration: none; color: inherit; }
a.mv-item:hover .cover { box-shadow: 0 0 0 2px rgba(232, 163, 61, .55); }
.wall-item .cover { width: 100%; aspect-ratio: 1; }
.wall-item .name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wall-item .meta { font-size: 11px; color: var(--muted); }

/* ---------------- 标签页 ---------------- */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.seg button[aria-selected="true"],
.seg button.active {
  background: var(--dark);
  color: #fdf9ee;
  font-weight: 600;
}

/* ---------------- 日历热力图 ---------------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 15px;
}
.month-nav select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-dow {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
}
.cal-week {
  font-size: 10px;
  color: var(--faint);
  display: grid;
  place-items: center;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(23, 21, 15, 0.05);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-2);
  position: relative;
}
.cal-cell.empty { background: transparent; }
.cal-cell.l0 { background: rgba(23, 21, 15, 0.05); }
.cal-cell.l1 { background: #fdf0c8; }
.cal-cell.l2 { background: #fbe08e; }
.cal-cell.l3 { background: #f5c842; }
.cal-cell.l4 { background: #e8a33d; color: #fff; }
.cal-cell.today { outline: 2px solid var(--dark); outline-offset: -2px; }
.cal-legend {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); margin-top: 14px;
}
.cal-legend i {
  width: 12px; height: 12px; border-radius: 4px; display: inline-block;
}

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }

/* ---------------- 输入 ---------------- */
.search {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.search:focus { border-color: var(--ink); }
.search::placeholder { color: var(--faint); }

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filters select {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
}

/* ---------------- 空状态 / 提示 ---------------- */
.empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.banner-error { border-color: rgba(217, 119, 87, 0.4); background: #fdf1ec; color: #7c3a22; }

.missing {
  color: var(--faint);
  font-style: normal;
}
.big-num .dash, .v .dash { color: var(--faint); font-weight: 300; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 40px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bits { display: flex; gap: 14px; flex-wrap: wrap; }


/* ---------------- 封面大图卡（个人卡） ---------------- */
.card.photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  color: #fffaf0;
  border: 0;
}
.photo-bg { position: absolute; inset: 0; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 10, 0.05) 0%, rgba(20, 18, 10, 0.25) 45%, rgba(18, 16, 9, 0.88) 100%),
    radial-gradient(80% 60% at 20% 0%, rgba(245, 200, 66, 0.18), transparent 60%);
}
.photo-body { position: relative; padding: 26px; z-index: 1; }
.card.photo .profile-name { color: #fffaf0; }
.card.photo .profile-meta { color: rgba(255, 250, 240, 0.72); }
.photo-song {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-song .row-name { color: #fffaf0; }
.photo-song .row-sub { color: rgba(255, 250, 240, 0.66); }
.photo-song .row-count {
  color: #8be04e;
  text-shadow: 0 0 16px rgba(120, 255, 80, 0.35);
}

/* ---------------- 概览补充 ---------------- */
.stat-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.month-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.card.yellow .chip { background: rgba(60, 43, 0, 0.1); color: #3c2b00; }
.month-note { margin-top: 16px; font-size: 12px; color: rgba(60, 43, 0, 0.62); line-height: 1.5; }

/* ---------------- 活跃柱状 ---------------- */
.activity-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 132px;
  padding-top: 8px;
}
.activity-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 6px;
  min-width: 0;
}
.activity-bar {
  width: 100%;
  max-width: 26px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, #ffd968, var(--yellow-deep));
  min-height: 4px;
}
.activity-col span { font-size: 10px; color: var(--faint); }

/* ---------------- 数据来源 ---------------- */
.prov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.prov-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.prov-name { font-size: 13px; font-weight: 600; }
.prov-status { font-size: 11px; margin-top: 4px; }
.prov-status.ok { color: var(--green); }
.prov-status.bad { color: var(--red); }
.prov-fields { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------- 排行榜 ---------------- */
.rank-list { gap: 0; }
.rank-row { padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.rank-row:last-child { border-bottom: 0; }
.rank-no {
  width: 34px;
  font-size: 18px;
  font-weight: 650;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.rank-row:nth-child(1) .rank-no,
.rank-row:nth-child(2) .rank-no,
.rank-row:nth-child(3) .rank-no { color: var(--yellow-deep); }
.rank-row .row-name { font-size: 15px; }
.artist-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.artist-item { text-align: center; }
.artist-avatar { margin: 0 auto 10px; width: 88px; height: 88px; font-size: 28px; }
.artist-item .name { font-size: 13px; }
.mv-wall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mv-item .name {
  white-space: normal;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 成长页 ---------------- */
.growth-hero { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.growth-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 18px 30px;
  flex: 1;
}
.rule-list { display: flex; flex-direction: column; }
.rule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.rule-row:last-child { border-bottom: 0; }
.rule-row b { font-weight: 600; color: var(--ink); text-align: right; }

/* ---------------- 报告页 ---------------- */
.report-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.report-songs { margin-top: 18px; }

/* ---------------- 移动端补充 ---------------- */
@media (max-width: 620px) {
  .card.photo { min-height: 360px; }
  .growth-hero { flex-direction: column; align-items: stretch; gap: 18px; }
  .growth-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .growth-figures .v { font-size: 22px; }
  .growth-figures .tiny { font-size: 11px; }
  .ring-wrap { gap: 14px; }
  .report-hero { grid-template-columns: 1fr; gap: 10px; }
  .rank-no { width: 26px; font-size: 15px; }
}


/* ---------------- 总览：绿黑基调 ---------------- */
body[data-page="index"] {
  background:
    radial-gradient(85vh 70vh at 6% -12%, rgba(184, 255, 61, 0.55) 0%, rgba(184, 255, 61, 0) 62%),
    radial-gradient(70vh 60vh at 96% -10%, rgba(120, 220, 50, 0.35) 0%, rgba(120, 220, 50, 0) 58%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(
      135deg,
      #b8ff3d 0vh,
      #a8f431 32vh,
      #58dd28 56vh,
      #0c7a1d 78vh,
      #053a10 98vh,
      #050505 116vh,
      #050505 100%
    );
  background-attachment: scroll;
}
body[data-page="index"] .hero h1 {
  color: #0a1a06;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}
body[data-page="index"] .hero h1 .accent {
  color: #2c0a5e;
  text-shadow: 0 0 30px rgba(120, 60, 220, 0.35);
}
body[data-page="index"] .hero p { color: rgba(10, 26, 6, 0.82); }
body[data-page="index"] .hero p b { color: #05180a; }
body[data-page="index"] .eyebrow { color: rgba(10, 40, 8, 0.72); }
body[data-page="index"] .eyebrow::before { background: rgba(10, 40, 8, 0.72); opacity: 0.55; }

/* ---------------- 本月卡：黑紫渐变 ---------------- */
.card.month-purple {
  color: #f7f2ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 85% at 82% -8%, rgba(183, 120, 255, 0.65) 0%, rgba(183, 120, 255, 0) 58%),
    radial-gradient(95% 65% at 4% 12%, rgba(124, 58, 237, 0.45) 0%, rgba(124, 58, 237, 0) 62%),
    linear-gradient(168deg, #7c3aed 0%, #54209f 26%, #2a1450 52%, #120c1c 76%, #08070b 100%);
  box-shadow:
    0 34px 80px -34px rgba(124, 58, 237, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.card.month-purple::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 210, 255, 0.55) 0%, rgba(236, 210, 255, 0) 68%);
  filter: blur(6px);
  pointer-events: none;
}
.card.month-purple::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 72% 12%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.card.month-purple .card-title { color: #ffffff; }
.card.month-purple .tiny { color: rgba(255, 255, 255, 0.72); }
.card.month-purple .big-num {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(196, 145, 255, 0.55), 0 1px 0 rgba(255, 255, 255, 0.25);
}
.card.month-purple .big-num .unit { color: rgba(255, 255, 255, 0.62); }
.card.month-purple .chip {
  background: rgba(255, 255, 255, 0.16);
  color: #f6ecff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card.month-purple .month-note { color: rgba(255, 255, 255, 0.64); }


/* ---------------- 近期活跃：荧光绿卡 ---------------- */
.card.activity-lime {
  color: #0a2408;
  border: 1px solid rgba(20, 80, 10, 0.16);
  background:
    radial-gradient(90% 120% at 88% -20%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(70% 90% at 8% 110%, rgba(40, 130, 10, 0.28) 0%, rgba(40, 130, 10, 0) 60%),
    linear-gradient(150deg, #d2ff6a 0%, #b8ff3d 34%, #93ef2f 68%, #6fd41f 100%);
  box-shadow: 0 24px 55px -30px rgba(90, 180, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.card.activity-lime::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 28%);
}
.card.activity-lime .card-title { color: #0a2408; }
.card.activity-lime .link-more { color: rgba(10, 36, 8, 0.7); border-color: rgba(10, 36, 8, 0.28); }
.card.activity-lime .activity-bar {
  background: linear-gradient(180deg, #123f14 0%, #071a08 100%);
  box-shadow: 0 4px 12px -4px rgba(5, 25, 5, 0.6);
}
.card.activity-lime .activity-col span { color: rgba(10, 36, 8, 0.52); }
.card.activity-lime .card-note { color: rgba(10, 36, 8, 0.62); }



/* ---------------- 悬浮听歌 ---------------- */
.float-player {
  position: fixed;
  left: auto;
  top: 50%;
  right: 8px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity .3s ease, filter .3s ease, transform .25s ease, left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1);
}
.float-player.is-dragging { transition: none; }
.float-player.is-docked {
  opacity: .42;
  filter: grayscale(.7) brightness(.85);
  transform: scale(.88);
}
.float-player.is-visible.is-pop { transform: scale(1.08); }
.float-player.is-docked-right .fp-prev,
.float-player.is-docked-left .fp-next {
  opacity: 0;
  pointer-events: none;
}
.fp-core {
  -webkit-touch-callout: none;
  user-select: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: none;
  cursor: pointer;
  background: #111;
  box-shadow: 0 10px 26px -10px rgba(40, 30, 10, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.fp-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #222;
  animation: fp-spin 16s linear infinite;
  animation-play-state: paused;
}
.float-player.is-visible.is-playing .fp-cover { animation-play-state: running; }
.fp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.fp-nav {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: none;
  box-shadow: 0 6px 14px -8px rgba(40, 30, 10, 0.5);
}
.fp-nav:hover { background: #fff; }
.fp-panel {
  position: fixed;
  left: 12px;
  top: 50%;
  width: 264px;
  max-height: 52vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 60px -26px rgba(40, 30, 10, 0.45);
  padding: 14px;
  z-index: 200;
}
.fp-panel[hidden] { display: none; }
.fp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 10px;
}
.fp-close {
  border: 0;
  background: rgba(23, 21, 15, 0.06);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
}
.fp-search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.fp-list { overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.fp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.fp-item:hover { background: rgba(23, 21, 15, 0.05); }
.fp-item.on { background: rgba(245, 200, 66, 0.18); }
.fp-thumb { width: 30px; height: 30px; border-radius: 8px; flex: none; background-color: #eee; background-size: cover; background-position: center; }
.fp-item-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fp-item-main b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-item-main i { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-item-play { font-size: 9px; color: var(--faint); }
.fp-empty { padding: 18px 0; text-align: center; color: var(--muted); font-size: 12px; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .float-player { right: 0; }
  .fp-core { width: 48px; height: 48px; }
  .fp-nav { width: 22px; height: 22px; font-size: 13px; }
  .fp-panel { width: 232px; right: 8px; top: calc(50% + 44px); }
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 980px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .hero { padding-top: 38px; }
  .nav-bar { gap: 10px; padding-left: 14px; }
  .brand-sub { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .brand > span:nth-child(2) { display: none; }
  .brand { gap: 0; }
  .nav-bar { padding: 6px 8px 6px 6px; gap: 4px; }
  .nav-links { margin-left: 2px; gap: 0; }
  .nav-links a { padding: 6px 7px; font-size: 11.5px; letter-spacing: -0.02em; }
  .wrap { width: calc(100% - 24px); }
  .site-header { top: 8px; padding-top: 8px; }
  .icon-btn { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 12px; }
  .nav-right .avatar { width: 28px !important; height: 28px !important; }
  .card { padding: 20px; border-radius: 26px; }
  .page-head { padding: 30px 0 16px; }
  .hero h1 { font-size: 46px; }
  .big-num { font-size: 40px; }
  .stat-grid { gap: 10px 14px; }
  .ring-wrap { gap: 16px; }
  .growth-ring { width: 112px; height: 112px; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-item .name { font-size: 12px; }
  .count-bar { display: none; }
  .cal-grid { gap: 4px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cal-cell { border-radius: 7px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------- 页面切换过渡 ---------------- */
@view-transition { navigation: auto; }
@keyframes qqm-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes qqm-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: qqm-fade-out .16s ease both; }
::view-transition-new(root) { animation: qqm-fade-in .28s cubic-bezier(.22,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
