:root {
  --ink: #1f2430;
  --ink-2: #5b6472;
  --ink-3: #8a93a3;
  --line: #e6e9ef;
  --line-2: #eef1f6;
  --card: #ffffff;
  --bg: #f5f7fa;
  --accent: #2f6bff;
  --accent-2: #14b8a6;
  --accent-soft: #eaf1ff;
  --band-a: #16a34a;
  --band-b: #2563eb;
  --band-c: #7c3aed;
  --good: #16a34a;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 36, 48, .04), 0 8px 24px rgba(31, 36, 48, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

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

button { font: inherit; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 44px 0 36px;
  background:
    radial-gradient(900px 380px at 12% -20%, rgba(47, 107, 255, .42), transparent 60%),
    radial-gradient(700px 320px at 92% 0%, rgba(20, 184, 166, .26), transparent 62%),
    linear-gradient(135deg, #171c28 0%, #232c42 58%, #2c3a5c 100%);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 90%);
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 2.2px;
  color: #9db4e6;
  font-weight: 600;
}
.brand h1 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.22;
  letter-spacing: .5px;
  font-weight: 800;
}
.subtitle {
  margin: 12px 0 0;
  max-width: 640px;
  color: #c3cde0;
  font-size: 14.5px;
}
.jump {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 13.5px;
}
.jump a {
  color: #dbe5ff;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(219, 229, 255, .35);
}
.jump a:hover { color: #fff; text-decoration: none; border-color: #fff; }

.meta { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #e8eefc;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  white-space: nowrap;
}
.badge-updated { background: rgba(47, 107, 255, .32); border-color: rgba(120, 158, 255, .5); }

/* ---------- how to read ---------- */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -18px;
  position: relative;
  z-index: 2;
}
.how-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.how-no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-top: 1px;
}
.how-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.how-item strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 2px;
}

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 10px;
  margin-top: 12px;
  background: var(--bg);
}

/* 锚点跳转时给吸顶工具栏留出空间 */
#levels, #vocab, #sources, #packs, #wordlist, #tenses, #cando, #syllabus, .section { scroll-margin-top: 132px; }
.search-wrap { position: relative; }
#search {
  width: 100%;
  padding: 13px 44px 13px 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
#search::placeholder { color: var(--ink-3); }
#search::-webkit-search-cancel-button,
#search::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
#search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
}
.clear:hover { background: #e2e6ee; }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip .count {
  margin-left: 6px;
  font-size: 11.5px;
  opacity: .62;
}

.stats {
  color: var(--ink-2);
  font-size: 12.5px;
  margin-top: 10px;
}

/* ---------- sections ---------- */
.section { padding: 6px 0 10px; }
.section[hidden] { display: none; }

.section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 26px 0 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.section-no {
  flex: none;
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .3px;
}
.section-desc {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* ---------- cards ---------- */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
  gap: 14px;
  padding-bottom: 8px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--band, var(--accent));
  border-radius: var(--radius);
  padding: 16px 17px 14px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d9dfe9;
  border-top-color: var(--band, var(--accent));
}
.card.band-A { --band: var(--band-a); }
.card.band-B { --band: var(--band-b); }
.card.band-C { --band: var(--band-c); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.exam {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--ink-3);
  text-transform: uppercase;
}
.cefr-pill {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--band, var(--accent));
  background: #eef3ff;
  background: color-mix(in srgb, var(--band, var(--accent)) 11%, white);
  border: 1px solid #dde7fa;
  border-color: color-mix(in srgb, var(--band, var(--accent)) 22%, white);
}
.card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: .2px;
}
.card .sub {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 12px;
  padding: 10px 12px;
  background: #f8fafd;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.kpi-k {
  display: block;
  font-size: 10.5px;
  letter-spacing: .6px;
  color: var(--ink-3);
  margin-bottom: 1px;
}
.kpi-v {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}
.kpi-v.small { font-size: 12.5px; font-weight: 600; }

.grammar {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: #f1f4f9;
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: 1px;
}

.skills {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.skills li {
  display: flex;
  gap: 7px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.skills .s-ico {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--band, var(--accent));
  background: #f1f5ff;
  background: color-mix(in srgb, var(--band, var(--accent)) 9%, white);
  margin-top: 1px;
}

.note {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.src {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-3);
}
.src:hover { color: var(--accent); }

/* ---------- empty ---------- */
.empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin: 10px 0 30px;
}
.empty p { margin: 0 0 8px; font-size: 14px; }
.empty-hint { font-size: 12.5px; color: var(--ink-3); }
.linkbtn {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0 2px;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- vocab tables ---------- */
.vocab-section { padding-bottom: 10px; }
.table-title {
  margin: 18px 0 8px;
  font-size: 14.5px;
  color: var(--ink);
}
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12.8px;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .4px;
  color: var(--ink-2);
  background: #f3f6fb;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fafd; }
.data-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.cefr-code {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 5px;
  color: #fff;
  background: var(--ink-3);
}
.cefr-code.A { background: var(--band-a); }
.cefr-code.B { background: var(--band-b); }
.cefr-code.C { background: var(--band-c); }
.table-note {
  margin: 8px 0 0;
  font-size: 11.8px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- sources ---------- */
.source-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.source-list li {
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.source-list a { color: var(--ink-2); }
.source-list a:hover { color: var(--accent); }
.source-list .ext { color: var(--ink-3); margin-left: 4px; font-size: 11px; }

.disclaimer {
  margin: 22px 0 36px;
  background: #fffdf5;
  border: 1px solid #f1e6c8;
  border-radius: var(--radius);
  padding: 16px 20px;
}
.disclaimer > p { margin: 0 0 8px; font-size: 13.5px; }
.disclaimer ul { margin: 0; padding-left: 18px; }
.disclaimer li {
  font-size: 12.8px;
  color: #6b5a2e;
  line-height: 1.7;
}

/* ---------- footer ---------- */
.site-footer {
  background: #171c28;
  color: #9aa6bd;
  padding: 26px 0;
  font-size: 12.5px;
}
.site-footer p { margin: 0 0 5px; }
.site-footer p:last-child { margin-bottom: 0; }

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.to-top:hover { color: var(--accent); border-color: var(--accent); }


/* ---------- 词汇 & 语法包 ---------- */
.card-pack {
  margin: 0 0 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.card-pack summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  user-select: none;
}
.card-pack summary::-webkit-details-marker { display: none; }
.card-pack summary:hover { color: var(--accent); }
.card-pack .lv {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--band, var(--accent));
  background: #f1f5ff;
  background: color-mix(in srgb, var(--band, var(--accent)) 9%, white);
}
.card-pack .caret { display: inline-block; transition: transform .15s; }
.card-pack[open] .caret { transform: rotate(180deg); }
.pack-inner { padding: 10px 0 2px; }
.pack-warn {
  margin: 0 0 8px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.word-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.word {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f6f8fc;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  white-space: nowrap;
}
.word b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}
.grammar-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.grammar-list li {
  font-size: 11.5px;
  line-height: 1.55;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.grammar-list li:last-child { border-bottom: 0; }
.grammar-list b { color: var(--ink); font-weight: 600; }
.grammar-list span { color: var(--ink-3); }
.pack-link {
  margin-top: 8px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-size: 11.5px;
  cursor: pointer;
}
.pack-link:hover { text-decoration: underline; }

/* 全局词表区 */
.packs-section { padding-bottom: 8px; }
.pack-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.pack-tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.pack-tab:hover { border-color: var(--accent); color: var(--accent); }
.pack-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pack-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
}
.pack-head h3 {
  margin: 0;
  font-size: 18px;
}
.pack-head h3 span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 8px;
}
.pack-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}
.pack-cols {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  margin-top: 16px;
}
.pack-col h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: .3px;
  color: var(--ink-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.pack-col h4 span { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.word-group { margin-bottom: 12px; }
.word-group h5 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .4px;
}
.pack-col .grammar-list { margin-top: 0; }
.pack-col .grammar-list li { font-size: 12.5px; padding: 7px 0; }
.pack-col .grammar-list span { font-size: 11.5px; }


/* ---------- 完整词表 ---------- */
.wordlist-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 18px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
}
.wordlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.wl-info strong { font-size: 16px; }
.wl-info span { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
#wl-search {
  width: 280px;
  max-width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
#wl-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#wl-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.wl-note {
  margin: 6px 0 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.word-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-height: 68vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.word-row {
  display: grid;
  grid-template-columns: 150px 170px 1fr;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12.5px;
  align-items: baseline;
}
.wr-w {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  word-break: break-word;
}
.wr-w:hover { color: var(--accent); }
.wr-p { color: var(--ink-3); font-size: 12px; word-break: break-word; }
.wr-t { color: var(--ink-2); line-height: 1.55; }
.wl-loading {
  padding: 26px 10px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.wl-empty {
  margin: 18px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.wl-more-wrap { text-align: center; padding-top: 12px; }
.wl-more {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
}
.wl-more:hover { border-color: var(--accent); color: var(--accent); }
.pack-tab .count { margin-left: 5px; font-size: 10.5px; opacity: .6; }


/* ---------- 时态表 / CEFR 对照 ---------- */
.group-row td {
  background: #f3f6fb;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 7px 12px !important;
}
.tense-table { min-width: 900px; }
.cefr-map-table { min-width: 620px; }
.tense-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
.tense-table em {
  display: block;
  font-style: normal;
  font-size: 10.8px;
  color: var(--ink-3);
}
.tense-form {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.8px;
  color: var(--ink-2);
  white-space: nowrap;
}
.tense-ex { color: var(--ink-2); font-size: 12.3px; }
.mini-tag {
  display: inline-block;
  font-size: 9.5px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: 1px;
}
.map-exam { font-weight: 600; color: var(--ink) !important; }
.data-table .cefr-code { font-size: 11px; }


/* ---------- CEFR Can-Do 自评 ---------- */
.cando-result {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
}
.cando-summary { border-right: 1px solid var(--line); padding-right: 20px; }
.cando-k { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .5px; }
#cando-level {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  margin: 4px 0 6px;
  font-weight: 800;
}
#cando-level.cd-band-A, .cando-skill-lv.cd-band-A { color: var(--band-a); }
#cando-level.cd-band-B, .cando-skill-lv.cd-band-B { color: var(--band-b); }
#cando-level.cd-band-C, .cando-skill-lv.cd-band-C { color: var(--band-c); }
#cando-exams { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.cando-skills { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.cando-skill {
  display: grid;
  grid-template-columns: 64px 40px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
}
.cando-skill-lv { font-weight: 700; color: var(--ink-3); font-size: 12px; }
.cando-bar {
  height: 7px;
  background: #eef1f6;
  border-radius: 999px;
  overflow: hidden;
}
.cando-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s ease;
}
.cando-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.cando-actions button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.cando-actions button:hover { border-color: var(--accent); color: var(--accent); }
.cando-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cando-level {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.cando-level-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.cando-level-head strong { font-size: 13.5px; }
.cando-count { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.cando-item {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
  align-items: flex-start;
}
.cando-item:last-child { border-bottom: 0; }
.cando-item input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.cando-item:hover { color: var(--ink); }
.cando-item:has(input:checked) { color: var(--ink); }
.cando-tag {
  flex: none;
  width: 52px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: #f4f6fa;
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  margin-top: 1px;
}


/* ---------- 目录 ---------- */
.toc-card {
  max-width: 1040px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.toc-title {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: var(--ink-3);
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.toc-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  transition: border-color .15s, background .15s;
}
.toc-item:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.toc-no {
  flex: none;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 1px 5px;
  line-height: 1.5;
}
.toc-text b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.toc-text em { display: block; font-style: normal; font-size: 10.8px; color: var(--ink-3); margin-top: 1px; }
.toc-item.active { border-color: var(--accent); background: #f7faff; }

.toc-btn {
  position: fixed;
  right: 22px;
  bottom: 74px;
  z-index: 45;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.toc-btn:hover { color: var(--accent); border-color: var(--accent); }

.toc-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 28, 40, .42);
  opacity: 0;
  transition: opacity .2s ease;
}
.toc-overlay.open { opacity: 1; }
.toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  width: 300px;
  max-width: 86vw;
  background: var(--card);
  padding: 18px 16px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .22s ease;
  box-shadow: -12px 0 40px rgba(23, 28, 40, .18);
}
.toc-drawer.open { transform: none; }
.toc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.toc-drawer-head strong { font-size: 14px; }
.toc-close {
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 2px 6px;
}
.toc-drawer-list { display: flex; flex-direction: column; }
.toc-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink-2);
  font-size: 13.5px;
}
.toc-drawer-item:hover { color: var(--accent); text-decoration: none; }
.toc-drawer-item.active { color: var(--accent); font-weight: 600; }
.toc-drawer-item .toc-no { margin-top: 0; }
body.toc-open { overflow: hidden; }


/* ---------- 各级学什么 ---------- */
.syllabus-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, .03);
}
.syll-head h3 { margin: 0; font-size: 19px; }
.syll-head h3 span {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 8px;
}
.syll-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.syll-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  margin-top: 16px;
}
.syll-col h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.syll-col h4 + h4 { margin-top: 16px; }
.syll-col h4 span { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.syll-grammar {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}
.syll-grammar li {
  font-size: 12.2px;
  line-height: 1.5;
  padding: 4px 0;
  color: var(--ink-2);
  break-inside: avoid;
}
.syll-grammar li::before {
  content: "·";
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
.syll-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.syll-chip {
  font-size: 11.5px;
  background: #f6f8fc;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink-2);
}
.syll-tasks { list-style: none; margin: 0; padding: 0; }
.syll-tasks li { font-size: 12.3px; padding: 4px 0; color: var(--ink-2); }
.syll-tasks li::before {
  content: "✓";
  color: var(--good);
  font-weight: 700;
  margin-right: 6px;
}
.syll-tools {
  margin: 16px 0 0;
  padding: 10px 12px;
  background: #f8fafd;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 12.3px;
  color: var(--ink-2);
}
.app-table { min-width: 720px; }
.book-table { min-width: 760px; }


/* ---------- 教材对应 ---------- */
.book-ref {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
}
.book-ref span {
  display: inline-block;
  font-size: 10px;
  background: #f1f4f9;
  border-radius: 4px;
  padding: 0 5px;
  margin-right: 6px;
  color: var(--ink-3);
}
.syll-books {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f8fafd;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.syll-books h4 { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
.syll-books h4 span { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.syll-books ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.syll-books li { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.syll-books b { color: var(--ink); font-weight: 600; }
.syll-books em { font-style: normal; color: var(--ink-3); }
.book-matrix { min-width: 720px; }


/* ---------- 时态人话 ---------- */
.tense-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.tense-legend div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.tense-legend b {
  display: block;
  font-size: 12px;
  color: var(--ink);
}
.tense-legend span {
  font-size: 11.5px;
  color: var(--ink-3);
}
.tense-plain {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.tense-table { min-width: 1000px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; margin-top: 14px; }
  .source-list { grid-template-columns: 1fr; }
  .toc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 30px 0 26px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .container { padding: 0 14px; }
  .toolbar { position: static; padding-top: 14px; }
  .card-list { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 14px 14px 12px; }
  .section-head { margin-top: 20px; }
  .section-head h2 { font-size: 18px; }
  .skills { grid-template-columns: 1fr; gap: 6px; }
  .pack-cols { grid-template-columns: 1fr; gap: 18px; }
  .pack-panel { padding: 14px 14px 16px; }
  .word { white-space: normal; }
  .wordlist-panel { padding: 12px 12px 14px; }
  #wl-search { width: 100%; }
  .word-row { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 2px; }
  .wr-p { font-size: 11px; text-align: right; }
  .wr-t { grid-column: 1 / -1; font-size: 12px; }
  .word-rows { max-height: 65vh; }
  .cando-result { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .cando-summary { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .cando-list { grid-template-columns: 1fr; }
  .syllabus-panel { padding: 14px; }
  .syll-grid { grid-template-columns: 1fr; gap: 18px; }
  .syll-grammar { columns: 1; }
  .tense-legend { grid-template-columns: 1fr 1fr; }
  .to-top { right: 14px; bottom: 14px; }
  .toc-card { padding: 0 14px; }
  .toc-btn { right: 14px; bottom: 66px; }
  .toc-text em { display: none; }
}
