:root {
  --bg: #0a0e1a;
  --bg-soft: #121829;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8edf6;
  --text-dim: #9aa5bd;
  --accent-a: #55EFC4;
  --accent-b: #74B9FF;
  --accent-c: #FDCB6E;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo .logo-img {
  width: 30px; height: 30px; object-fit: contain; flex-shrink: 0;
}
.topbar a.back { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.topbar a.back:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 56px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(85, 239, 196, 0.12), transparent),
    radial-gradient(500px 300px at 80% 10%, rgba(116, 185, 255, 0.10), transparent);
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 13px; color: var(--text-dim); margin-bottom: 22px;
}
.hero .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-a); box-shadow: 0 0 10px var(--accent-a); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -0.5px; }
.hero p { margin: 18px auto 0; max-width: 620px; color: var(--text-dim); font-size: 16px; }

/* ---------- Subject quick nav ---------- */
.subnav {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
}
.subnav-inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.subnav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13.5px; text-decoration: none;
  color: var(--text-dim);
  background: var(--card); border: 1px solid var(--card-border);
  transition: all .18s ease;
}
.subnav a:hover { color: var(--text); border-color: var(--accent-b); transform: translateY(-1px); }

/* ---------- Subject sections ---------- */
.subjects { padding: 48px 0 30px; }
.subject {
  margin-bottom: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 28px 14px;
  scroll-margin-top: 130px;
}
.subject-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.subject-emoji {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center; font-size: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(85,239,196,0.16), rgba(116,185,255,0.16));
  border: 1px solid var(--card-border);
}
.subject-head h2 { font-size: 22px; font-weight: 700; }
.subject-head .count { color: var(--text-dim); font-size: 13px; font-weight: 400; margin-left: 4px; }

table { width: 100%; border-collapse: collapse; margin-top: 6px; }
thead th {
  text-align: left; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); text-transform: none;
  padding: 10px 12px; border-bottom: 1px solid var(--card-border);
}
tbody td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; font-size: 14.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }
td.want { color: var(--text); width: 46%; }
.pick-tag {
  display: inline-block;
  padding: 4px 12px; margin: 2px 6px 2px 0;
  border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: #d6fff2;
  background: rgba(85, 239, 196, 0.10);
  border: 1px solid rgba(85, 239, 196, 0.28);
  white-space: nowrap;
}

/* ---------- Tip ---------- */
.tip {
  margin: 10px 0 60px;
  padding: 18px 22px; border-radius: 14px;
  background: rgba(116, 185, 255, 0.07);
  border: 1px solid rgba(116, 185, 255, 0.22);
  color: var(--text-dim); font-size: 14.5px;
}
.tip strong { color: var(--text); }

footer {
  border-top: 1px solid var(--card-border);
  padding: 30px 0; text-align: center; color: var(--text-dim); font-size: 13px;
}

/* ---------- English week path ---------- */
.day-block {
  margin: 18px 0 10px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.015);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
}
.day-block h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--accent-c); }
.day-block p, .day-block li { font-size: 14.5px; line-height: 1.8; color: var(--text-dim); }
.day-block ul, .day-block ol { padding-left: 22px; margin: 6px 0; }
.day-block li { margin-bottom: 4px; }
.day-block strong { color: var(--text); }
.day-note { margin-top: 10px; padding: 8px 14px; border-radius: 8px; background: rgba(116,185,255,0.05); border-left: 3px solid var(--accent-b); color: var(--text-dim); font-size: 14px; }
.dialogue {
  margin: 8px 0; padding: 12px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.02);
  font-size: 14px; line-height: 1.7;
}
.dialogue p { margin-bottom: 2px; }
.table-wrap { margin: 10px 0; overflow-x: auto; }

@media (max-width: 640px) {
  .subject { padding: 20px 16px 8px; }
  td.want { width: 50%; }
  thead { display: none; }
  .pick-tag { white-space: normal; }
}
