/* 指板练习册 · 一屏日课设计系统 */
:root {
  --bg: #0a0d12;
  --card: #131a22;
  --soft: #1a222d;
  --line: #2a3544;
  --text: #e8edf4;
  --dim: #7d8fa3;
  --soft-t: #b6c2d1;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.14);
  --accent-line: rgba(94, 234, 212, 0.3);
  --root: #fb923c;
  --degree: #38bdf8;
  --ok: #86efac;
  --ok-bg: rgba(134, 239, 172, 0.1);
  --font: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --display: "Fraunces", "Noto Sans SC", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}
html {
  /* 与页面同底，超滚/回弹时不露默认浅色 */
  background-color: var(--bg);
  height: 100%;
  margin: 0;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  /* 内容层透明，底色与光晕由 fixed 层承担 → 滚动时色感不变 */
  background: transparent;
  position: relative;
}
/* 视口固定背景（比 background-attachment:fixed 更稳，含移动端） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 35% at 18% -8%, rgba(94, 234, 212, 0.09), transparent),
    radial-gradient(ellipse 40% 28% at 92% 100%, rgba(251, 146, 60, 0.05), transparent);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
body.scroll-page {
  overflow: auto;
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
}

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

.app {
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 0.55rem;
}
body.scroll-page .app {
  height: auto;
  max-height: none;
  min-height: 100dvh;
}

/* —— 顶栏 —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.32rem 0;
  font-size: 0.88rem;
  color: var(--dim);
  font-family: var(--mono);
  border-bottom: 1px solid var(--line);
  gap: 0.5rem;
  flex-wrap: wrap;
}
.topbar strong {
  color: var(--accent);
  font-weight: 500;
}
.topbar a {
  color: var(--dim);
  text-decoration: none;
  margin-left: 0.75rem;
}
.topbar a:hover {
  color: var(--accent);
}
.topbar .nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  align-items: center;
}

/* —— 主区 —— */
.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.4rem;
  overflow: auto;
}

/* —— 标题 —— */
.head {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}
.head h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pill {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.pill.mute {
  background: var(--soft);
  color: var(--dim);
  border-color: var(--line);
}
.goal {
  flex: 1;
  min-width: 11rem;
  font-size: 0.95rem;
  color: var(--soft-t);
}
.goal b {
  color: var(--text);
  font-weight: 600;
}
.timer {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.32rem 0.7rem;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.16), rgba(94, 234, 212, 0.05));
  border: 1px solid var(--accent-line);
  white-space: nowrap;
}
.timer .n {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.timer .u {
  font-size: 0.85rem;
  color: var(--dim);
}

/* —— 面板 —— */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem 0.65rem 0.55rem;
}
.panel-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.panel-h h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.panel-h span {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--dim);
}

/* —— 指法 —— */
.panel-chords {
  flex: 0 0 auto;
}
.frets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.frets.cols-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 28rem;
}
.frets.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.frets.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.frets.cols-n {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.fret-card {
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem 0.45rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.fret-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0 0.12rem;
}
.fret-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.fret-card .bass {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--root);
  font-weight: 500;
  white-space: nowrap;
}
.fret-card .meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  margin: 0;
  padding: 0 0.12rem;
}
.fret-host {
  line-height: 0;
  margin-top: 0.08rem;
  border-radius: 8px;
  overflow: hidden;
  background: #0e141c;
}
.fret-host .fretboard {
  display: block;
  width: 100%;
  height: auto;
}

.chords-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.9rem;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--dim);
}
.legend i {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.legend .r {
  background: var(--root);
}
.legend .d {
  background: var(--degree);
}
.legend .o {
  background: transparent;
  border: 1.5px solid var(--degree);
  box-sizing: border-box;
}
.cue {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dim);
}
.cue b {
  color: var(--text);
  font-weight: 600;
}
.cue em {
  color: var(--root);
  font-style: normal;
  font-weight: 500;
}

/* —— 步骤 —— */
.panel-steps {
  flex-shrink: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.step {
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.step-rail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.55rem;
  background: #10161e;
  border-bottom: 1px solid var(--line);
}
.step-letter {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--accent);
  color: #042f2e;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-rail h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.step-time {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
}
.step-body {
  padding: 0.5rem 0.55rem 0.55rem;
}
.step-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--soft-t);
  line-height: 1.42;
}
.step-body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

/* —— 过关 —— */
.pass {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(94, 234, 212, 0.1) 0%, rgba(94, 234, 212, 0.02) 42%, transparent 70%),
    var(--card);
  border: 1px solid var(--accent-line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  position: relative;
}
.pass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
}
.pass-brand h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.08rem;
}
.pass-count {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
}
.pass-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  min-width: 0;
}
.pass-list.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.pass-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: rgba(10, 13, 18, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--soft-t);
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.pass-item:hover {
  border-color: var(--accent-line);
  background: rgba(94, 234, 212, 0.07);
}
.pass-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pass-item.done {
  border-color: rgba(134, 239, 172, 0.5);
  background: var(--ok-bg);
  color: var(--text);
}
.pass-item .check {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 5px;
  border: 1.5px solid var(--dim);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: transparent;
}
.pass-item.done .check {
  background: var(--ok);
  border-color: var(--ok);
  color: #052e16;
}
.foot {
  margin: 0;
  max-width: 12rem;
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.4;
  text-align: right;
}
.foot strong {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.06rem;
}
.pass.all-done {
  border-color: rgba(134, 239, 172, 0.55);
  background:
    linear-gradient(105deg, rgba(134, 239, 172, 0.14) 0%, transparent 55%),
    var(--card);
}
.pass.all-done .pass-count {
  color: var(--ok);
}
.pass.all-done::before {
  background: linear-gradient(90deg, transparent, var(--ok), transparent);
}

/* —— 索引 / 周页（可滚动） —— */
.prose {
  max-width: 52rem;
}
.prose h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.prose h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}
.prose p,
.prose li {
  color: var(--soft-t);
  font-size: 0.98rem;
}
.prose .lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.55;
}
.prose ul {
  padding-left: 1.2rem;
  margin: 0.35rem 0;
}
.prose li {
  margin: 0.25rem 0;
}

/* —— 总目录 index —— */
body.index-page .app {
  max-width: 72rem;
  padding-bottom: 2.5rem;
}
.index-main {
  gap: 0;
  padding-top: 0;
  overflow: visible;
}

/* Hero：指板弦线氛围 + 单一主行动 */
.index-hero {
  position: relative;
  isolation: isolate;
  margin: 0.85rem 0 1.75rem;
  padding: 1.6rem 1.35rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(26, 34, 45, 0.95) 0%, rgba(19, 26, 34, 0.98) 55%, rgba(10, 13, 18, 0.99) 100%);
  overflow: hidden;
}
.index-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(16.666% - 1px),
      rgba(94, 234, 212, 0.045) calc(16.666% - 1px),
      rgba(94, 234, 212, 0.045) 16.666%
    ),
    radial-gradient(ellipse 70% 80% at 8% 20%, rgba(94, 234, 212, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 60% at 92% 90%, rgba(251, 146, 60, 0.08), transparent 50%);
}
.index-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.index-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.index-h1-accent {
  background: linear-gradient(105deg, var(--accent) 0%, #99f6e4 45%, var(--root) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.index-hero .lead {
  max-width: 34rem;
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--soft-t);
}
.index-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin: 0 0 1.25rem;
}
.index-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.45);
}
.index-stat .n {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.index-stat .l {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.index-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 55%, #14b8a6 100%);
  border: none;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.35),
    0 10px 28px rgba(45, 212, 191, 0.18);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.5),
    0 14px 32px rgba(45, 212, 191, 0.26);
  color: #042f2e;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soft-t);
  border: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

/* 阶段目录 */
.index-catalog {
  margin-bottom: 1.75rem;
}
.phase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.phase-head-2 {
  margin-top: 1.75rem;
}
.phase-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.phase-head-2 .phase-kicker {
  color: var(--root);
}
.phase-head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.phase-range {
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 500;
  color: var(--dim);
  margin-left: 0.35rem;
}
.phase-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dim);
  font-family: var(--mono);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.65rem;
  margin: 0 0 0.25rem;
}
.week-card {
  --card-glow: rgba(94, 234, 212, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 8.5rem;
  background:
    linear-gradient(160deg, rgba(26, 34, 45, 0.5) 0%, transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem 1rem;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.week-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.75;
}
.week-card.p2::before {
  background: var(--root);
}
.week-card:hover {
  border-color: var(--accent-line);
  background: var(--soft);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--card-glow);
}
.week-card.p2:hover {
  border-color: rgba(251, 146, 60, 0.35);
  --card-glow: rgba(251, 146, 60, 0.12);
}
.week-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.week-num {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  opacity: 0.92;
}
.week-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.week-card.p2 .week-tag {
  background: rgba(251, 146, 60, 0.12);
  color: var(--root);
  border-color: rgba(251, 146, 60, 0.28);
}
.week-card h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
  line-height: 1.3;
}
.week-card p {
  margin: auto 0 0;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.4;
}

/* 折叠说明：默认收起，减噪 */
.index-guide {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}
.guide-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.guide-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  user-select: none;
  transition: background 0.15s;
}
.guide-panel > summary::-webkit-details-marker {
  display: none;
}
.guide-panel > summary:hover {
  background: var(--soft);
}
.guide-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}
.guide-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.guide-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  flex-shrink: 0;
}
.guide-hint::after {
  content: "点开";
}
.guide-panel[open] .guide-hint {
  color: var(--accent);
}
.guide-panel[open] .guide-hint::after {
  content: "收起";
}
.guide-body {
  padding: 1rem 1.1rem 1.15rem;
}
.guide-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--soft-t);
}
.guide-steps li {
  margin: 0.35rem 0;
  line-height: 1.45;
}
.guide-steps strong {
  color: var(--text);
}
.guide-foot {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.5;
}
.index-footer-links {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.index-footer-links a {
  color: var(--dim);
}
.index-footer-links a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .week-card {
    transition: none;
  }
  .btn-primary:hover,
  .week-card:hover {
    transform: none;
  }
}

.day-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.day-track a {
  display: block;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.45rem;
  text-decoration: none;
  color: inherit;
  min-height: 4.5rem;
  transition: border-color 0.15s;
}
.day-track a:hover {
  border-color: var(--accent-line);
  text-decoration: none;
}
.day-track .d {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}
.day-track .t {
  font-size: 0.85rem;
  color: var(--soft-t);
  line-height: 1.3;
}

/* 周页 · 指法图鉴 */
.atlas-block {
  margin: 1.35rem 0 1.1rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(26, 34, 45, 0.55) 0%, transparent 50%),
    var(--card);
}
.atlas-head {
  margin: 0 0 0.45rem;
}
.atlas-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.atlas-block h2 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.atlas-note {
  margin: 0 0 0.7rem;
  color: var(--soft-t);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 40rem;
}
.atlas-legend {
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(10, 13, 18, 0.45);
  border: 1px solid var(--line);
}
.atlas-legend b {
  color: var(--text);
  font-weight: 600;
}
.atlas-block .frets {
  margin-top: 0.55rem;
}
.atlas-memo {
  margin-top: 0.85rem !important;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  gap: 0.35rem;
}
.meta-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.meta-list .lab {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}
.checks li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--soft-t);
}
.checks .box {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--dim);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.rule {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.rule h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: var(--accent);
}
.rule p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft-t);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  .app {
    height: auto;
    max-height: none;
    min-height: 100dvh;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .pass {
    grid-template-columns: 1fr;
  }
  .foot {
    text-align: left;
    max-width: none;
  }
  .pass-list,
  .pass-list.cols-2 {
    grid-template-columns: 1fr;
  }
  .day-track {
    grid-template-columns: 1fr 1fr;
  }
  .frets.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index-hero {
    padding: 1.25rem 1rem 1.2rem;
    margin-bottom: 1.35rem;
  }
  .phase-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .frets,
  .frets.cols-2,
  .frets.cols-3,
  .frets.cols-4,
  .steps {
    grid-template-columns: 1fr;
  }
  .timer {
    margin-left: 0;
  }
  .day-track {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 780px) {
  .step-body {
    padding: 0.4rem 0.5rem 0.45rem;
  }
  .step-body p {
    font-size: 0.88rem;
  }
  .panel {
    padding: 0.4rem 0.55rem 0.45rem;
  }
}

/* SVG */
.fretboard .fb-bg {
  fill: #0e141c;
}
.fretboard .string,
.fretboard .fret {
  stroke: #445366;
}
.fretboard .nut {
  stroke: #e8edf4;
}
.fretboard .fret-num {
  fill: #8b9bb0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.fretboard .dot-degree {
  fill: #0ea5e9;
}
.fretboard .dot-root {
  fill: #fb923c;
}
.fretboard .dot-ring {
  stroke: #fb923c;
  fill: none;
}
.fretboard .dot-label {
  fill: #0c0f14;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  text-anchor: middle;
  dominant-baseline: central;
}
.fretboard .mute {
  fill: #8b9bb0;
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}
/* 空弦：空心圆；描边/数字颜色与按弦点一致（橙根 / 蓝其他），不用第三色 */
.fretboard .open-circle {
  fill: #0e141c;
  stroke-width: 1.75;
}
.fretboard .open-circle.open-root {
  stroke: #fb923c;
}
.fretboard .open-circle.open-degree {
  stroke: #0ea5e9;
}
.fretboard .open-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  text-anchor: middle;
  dominant-baseline: central;
}
.fretboard .open-label.open-root {
  fill: #fb923c;
}
.fretboard .open-label.open-degree {
  fill: #0ea5e9;
}
.fretboard .note-name {
  fill: #5eead4;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  text-anchor: middle;
}
