/* ==========================================================================
   新东方 · 南京雨花校区｜方案 B（移动端延伸）：美术馆纯白 × 碳黑 × 新东方翡翠绿
   零金色 · 高留白 · 0.01rem 发丝边框 · 碳黑字阶与翡翠绿唯一强调
   ========================================================================== */
#root {
  --ground: #fafafa;
  --surface: #ffffff;
  --stone: #f2f4f3;
  --well: #e8ecea;

  --brand: #006b4f;
  --brand-hover: #00533d;
  --brand-deep: #003e2d;
  --brand-soft: rgba(0, 107, 79, 0.08);
  --signal: #00a878;

  --ink: #111312;
  --ink-2: #2c3330;
  --sub: #58635e;
  --mute: #7c8782;

  --line: rgba(17, 19, 18, 0.10);
  --line-2: rgba(17, 19, 18, 0.06);
  --line-strong: rgba(17, 19, 18, 0.18);

  --sub-c: #006b4f;
  --sub-bg: #ebf5f1;
  --sub-edge: #bfe0d4;

  background: #fafafa;
  min-height: 100vh;
  color: #111312;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", sans-serif;
  font-size: 0.28rem;
  -webkit-font-smoothing: antialiased;
}

view, text, scroll-view { box-sizing: border-box; }

/* ===== 九大学科克制低饱和色票（同步 Web 方案 B） ===== */
[data-subject="数学"] { --sub-c: #1d4ed8; --sub-bg: #eff4ff; --sub-edge: #c3d6fd; }
[data-subject="英语"] { --sub-c: #b45309; --sub-bg: #fcf6eb; --sub-edge: #f3dbb2; }
[data-subject="物理"] { --sub-c: #6d28d9; --sub-bg: #f4effe; --sub-edge: #d8c7fb; }
[data-subject="语文"] { --sub-c: #b91c1c; --sub-bg: #fdf1f1; --sub-edge: #f5c6c6; }
[data-subject="化学"] { --sub-c: #0f766e; --sub-bg: #edf8f7; --sub-edge: #b7e3de; }
[data-subject="生物"] { --sub-c: #15803d; --sub-bg: #eef8f1; --sub-edge: #bce4c8; }
[data-subject="政治"] { --sub-c: #be185d; --sub-bg: #fcf0f5; --sub-edge: #f4c4d8; }
[data-subject="历史"] { --sub-c: #92400e; --sub-bg: #faf3eb; --sub-edge: #ebd0b5; }
[data-subject="地理"] { --sub-c: #0369a1; --sub-bg: #edf6fc; --sub-edge: #badcf2; }

/* ===== 版块通用：画廊版式与瑞士标头 ===== */
.section { padding: 0.36rem 0.32rem 0.48rem; }

.sec-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin-bottom: 0.2rem;
  padding-bottom: 0.18rem;
  border-bottom: 0.01rem solid rgba(17, 19, 18, 0.08);
}
.sec-head .bar {
  width: 0.24rem;
  height: 0.03rem;
  border-radius: 0.02rem;
  background: #006b4f;
  flex: none;
}
.sec-head .h2 {
  font-size: 0.38rem;
  font-weight: 800;
  color: #111312;
  letter-spacing: -0.008rem;
  line-height: 1.15;
}
.sec-head .en {
  font-size: 0.19rem;
  font-weight: 650;
  color: #58635e;
  background: #f2f4f3;
  border: 0.01rem solid rgba(17, 19, 18, 0.08);
  padding: 0.04rem 0.14rem;
  border-radius: 9.99rem;
  margin-left: auto;
  letter-spacing: 0.008rem;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ===== 美术馆纯白发丝卡片体系 ===== */
.card, .pcard, .rank, .frame-card, .entry-card, .exam-card, .gcard, .case-stats, .school-row {
  background: #ffffff;
  border: 0.01rem solid rgba(17, 19, 18, 0.10);
  border-radius: 0.2rem;
  box-shadow: 0 0.02rem 0.06rem rgba(17, 19, 18, 0.03), 0 0.12rem 0.28rem -0.16rem rgba(17, 19, 18, 0.09);
}

.card { padding: 0.28rem; margin-bottom: 0.22rem; }

.page-lead { font-size: 0.26rem; color: #58635e; line-height: 1.7; margin: 0 0 0.26rem; }

.note { font-size: 0.22rem; color: #7c8782; line-height: 1.68; text-align: center; margin-top: 0.28rem; }

.sub-title {
  font-size: 0.28rem;
  font-weight: 750;
  margin: 0.36rem 0 0.18rem;
  padding-left: 0.16rem;
  border-left: 0.04rem solid #006b4f;
  color: #111312;
  letter-spacing: -0.003rem;
}

.intro-text { font-size: 0.25rem; line-height: 1.85; color: #58635e; }

.chips { display: flex; flex-wrap: wrap; margin-top: 0.14rem; }
.chip {
  background: #ffffff;
  color: #2c3330;
  border: 0.01rem solid rgba(17, 19, 18, 0.10);
  font-size: 0.22rem;
  font-weight: 550;
  padding: 0.09rem 0.2rem;
  border-radius: 9.99rem;
  margin: 0 0.12rem 0.12rem 0;
}

/* ===== 两列网格 ===== */
.grid2 { display: flex; flex-wrap: wrap; margin: 0 -0.1rem; }
.grid2 .cell { width: 50%; padding: 0 0.1rem; margin-bottom: 0.2rem; }

/* ===== 图片占位 ===== */
.ph {
  background: #f2f4f3;
  border: 0.01rem dashed rgba(17, 19, 18, 0.22);
  border-radius: 0.14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #58635e;
  font-size: 0.22rem;
  font-weight: 600;
}

/* ===== 四宫格特色 ===== */
.feature {
  background: #ffffff;
  border: 0.01rem solid rgba(17, 19, 18, 0.10);
  border-radius: 0.2rem;
  padding: 0.24rem 0.22rem;
  box-shadow: 0 0.02rem 0.06rem rgba(17, 19, 18, 0.03);
}
.feature .ic {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 0.14rem;
  background: rgba(0, 107, 79, 0.08);
  color: #006b4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.24rem;
  font-weight: 750;
  margin-bottom: 0.14rem;
}
.feature .ft { font-size: 0.26rem; font-weight: 700; display: block; margin-bottom: 0.06rem; color: #111312; }
.feature .fp { font-size: 0.21rem; color: #58635e; line-height: 1.5; }

/* ===== 框架卡 ===== */
.frame-grid { display: flex; flex-wrap: wrap; margin: 0 -0.1rem; }
.frame-grid .cell { width: 50%; padding: 0 0.1rem; margin-bottom: 0.22rem; display: flex; }
.frame-grid .cell > .frame-card { width: 100%; flex: 1 1 100%; }
.frame-card { overflow: hidden; height: 100%; position: relative; transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease; }
.frame-card:active { transform: scale(0.98); border-color: rgba(0, 107, 79, 0.36); }
.frame-card .fc-hit { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 9; }
.frame-card .fc-top {
  display: flex;
  align-items: center;
  padding: 0.18rem 0.2rem 0.16rem;
  border-bottom: 0.01rem solid rgba(17, 19, 18, 0.07);
  background: #ffffff;
}
.frame-card .fc-num {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0.08rem;
  background: #111312;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.19rem;
  font-weight: 700;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  margin-right: 0.12rem;
  flex-shrink: 0;
}
.frame-card .fc-title { font-size: 0.25rem; font-weight: 700; line-height: 1.35; flex: 1; color: #111312; }
.frame-card .fc-arrow { color: #7c8782; font-size: 0.3rem; font-weight: 500; }
.frame-card .fc-locked { font-size: 0.18rem; color: #7c8782; }
.frame-card .fc-body { padding: 0.18rem 0.2rem 0.2rem; }
.frame-card .fc-ph {
  height: 1.68rem;
  border-radius: 0.12rem;
  background: #f2f4f3;
  border: 0.01rem dashed rgba(17, 19, 18, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #58635e;
  font-size: 0.21rem;
  font-weight: 600;
  overflow: hidden;
}
.frame-card .fc-img { width: 100%; height: 100%; display: block; }
.frame-card .fc-cover { width: 100%; height: 2.02rem; display: block; border-radius: 0.12rem; background: #f2f4f3; }
.frame-card .fc-lines { margin-top: 0.18rem; }
.frame-card .fc-lines .l { display: block; height: 0.12rem; border-radius: 0.06rem; background: #eef1ef; margin-bottom: 0.1rem; }
.frame-card .fc-lines .l.short { width: 62%; margin-bottom: 0; }
.frame-card .fc-tip { font-size: 0.21rem; color: #58635e; margin-top: 0.14rem; line-height: 1.5; text-align: center; font-weight: 550; }
.frame-card.link .fc-tip { color: #006b4f; font-weight: 650; }
.frame-card.disabled { opacity: 0.72; }

/* ===== 入口卡 ===== */
.entry-card { padding: 0.26rem 0.28rem; margin-bottom: 0.2rem; transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.entry-card:active { transform: scale(0.985); }
.entry-card .ec-row { display: flex; align-items: center; }
.entry-card .ec-ic {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.14rem;
  background: #111312;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.24rem;
  font-weight: 700;
  margin-right: 0.22rem;
  flex-shrink: 0;
}
.entry-card .ec-txt { flex: 1; }
.entry-card .ec-txt .b { font-size: 0.28rem; font-weight: 750; display: block; color: #111312; }
.entry-card .ec-txt .p { font-size: 0.22rem; color: #58635e; margin-top: 0.06rem; line-height: 1.5; }
.entry-card .ec-arrow { color: #7c8782; font-size: 0.34rem; font-weight: 500; margin-left: 0.1rem; }

/* ===== 年份 × 考试卡 ===== */
.exam-card { padding: 0.24rem; transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease; }
.exam-card:active { transform: scale(0.98); border-color: rgba(0, 107, 79, 0.36); }
.exam-card .ex-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.18rem; }
.exam-card .ex-tag {
  font-size: 0.2rem;
  font-weight: 650;
  color: #006b4f;
  background: rgba(0, 107, 79, 0.08);
  padding: 0.05rem 0.16rem;
  border-radius: 9.99rem;
  letter-spacing: 0.005rem;
}
.exam-card .ex-arrow { color: #7c8782; font-size: 0.3rem; font-weight: 500; }
.exam-card .ex-title { font-size: 0.27rem; font-weight: 750; line-height: 1.45; color: #111312; }
.exam-card .ex-meta { font-size: 0.21rem; color: #58635e; margin-top: 0.1rem; line-height: 1.5; }

/* ===== 学校行 ===== */
.school-row { display: flex; align-items: center; padding: 0.24rem 0.26rem; margin-bottom: 0.16rem; transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.school-row:active { transform: scale(0.985); }
.school-row .sr-name { font-size: 0.27rem; font-weight: 700; flex: 1; color: #111312; }
.school-row .sr-tag { font-size: 0.2rem; color: #006b4f; background: rgba(0, 107, 79, 0.08); padding: 0.04rem 0.14rem; border-radius: 9.99rem; font-weight: 600; }
.school-row .sr-arrow { color: #7c8782; font-size: 0.3rem; font-weight: 500; margin-left: 0.1rem; }

/* ===== 年级卡 ===== */
.grade-grid { display: flex; flex-wrap: wrap; margin: 0 -0.09rem; }
.grade-grid .cell { width: 33.333%; padding: 0 0.09rem; margin-bottom: 0.18rem; }
.gcard { padding: 0.26rem 0.1rem 0.22rem; text-align: center; transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.gcard:active { transform: scale(0.97); }
.gcard .g-name { font-size: 0.31rem; font-weight: 800; color: #111312; }
.gcard .g-info { font-size: 0.2rem; color: #58635e; margin-top: 0.1rem; }
.gcard .g-up { font-size: 0.21rem; color: #006b4f; font-weight: 700; margin-top: 0.06rem; }

/* ===== 瑞士通栏数据统计条（方案 B：纯白发丝 + 0.03rem 碳黑顶线） ===== */
.case-stats {
  display: flex;
  background: #ffffff;
  border: 0.01rem solid rgba(17, 19, 18, 0.10);
  border-top: 0.03rem solid #111312;
  border-radius: 0.18rem;
  box-shadow: 0 0.02rem 0.06rem rgba(17, 19, 18, 0.03);
  padding: 0.24rem 0;
  margin-bottom: 0.24rem;
}
.case-stats .cs-item { flex: 1; text-align: center; padding: 0.04rem 0.06rem; }
.case-stats .cs-item .v { display: block; font-size: 0.34rem; color: #111312; font-weight: 800; }
.case-stats .cs-item .k { font-size: 0.2rem; color: #58635e; margin-top: 0.04rem; display: block; font-weight: 550; }
.case-stats .cs-item.divided { border-left: 0.01rem solid rgba(17, 19, 18, 0.10); }

/* ===== 分段视图切换（碳黑激活） ===== */
.view-switch { display: flex; align-items: center; margin-bottom: 0.22rem; }
.vs-btn {
  font-size: 0.23rem;
  padding: 0.11rem 0.24rem;
  border-radius: 9.99rem;
  background: #ffffff;
  color: #58635e;
  border: 0.01rem solid rgba(17, 19, 18, 0.10);
  font-weight: 600;
  margin-right: 0.12rem;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease, color 0.16s ease;
}
.vs-btn:active { transform: scale(0.96); }
.vs-btn.on { background: #111312; color: #ffffff; border-color: #111312; }
.vs-hint { font-size: 0.2rem; color: #7c8782; margin-left: auto; }

/* ===== 提分榜卡片（零金色、翡翠绿提分语义） ===== */
.rank { display: flex; align-items: flex-start; padding: 0.24rem; margin-bottom: 0.16rem; }
.rank .rk-idx { width: 0.44rem; height: 0.44rem; border-radius: 0.1rem; background: #f2f4f3; color: #58635e; font-size: 0.22rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-right: 0.18rem; margin-top: 0.02rem; flex-shrink: 0; }
.rank .rk-body { flex: 1; min-width: 0; }
.rank .rk-line { display: flex; align-items: flex-start; }
.rank .rk-idx.top { background: #111312; color: #ffffff; }
.rank .rk-mid { flex: 1; min-width: 0; }
.rank .rk-name { font-size: 0.28rem; font-weight: 750; color: #111312; }
.rank .rk-sub { font-size: 0.2rem; color: #006b4f; background: rgba(0, 107, 79, 0.08); padding: 0.03rem 0.12rem; border-radius: 9.99rem; margin-left: 0.1rem; font-weight: 600; }
.rank .rk-meta { font-size: 0.21rem; color: #58635e; margin-top: 0.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .rk-score { text-align: right; width: 1.5rem; flex-shrink: 0; }
.rank .rk-score .sc { font-size: 0.24rem; color: #58635e; }
.rank .rk-score .sc .b { font-size: 0.3rem; font-weight: 800; color: #111312; }
.rank .rk-score .up { font-size: 0.24rem; color: #006b4f; font-weight: 800; margin-top: 0.04rem; }
.rank .rk-score .up .up-l { font-size: 0.18rem; font-weight: 600; color: #58635e; margin-right: 0.04rem; }
.rank .rk-score .sc-u { font-size: 0.18rem; color: #7c8782; margin-left: 0.02rem; }

.rk-ft { font-size: 0.18rem; color: #111312; background: #f2f4f3; border: 0.01rem solid rgba(17, 19, 18, 0.12); border-radius: 0.06rem; padding: 0.02rem 0.1rem; margin-left: 0.08rem; font-weight: 700; }
.rk-subs { display: flex; flex-wrap: wrap; gap: 0.08rem; margin-top: 0.12rem; }
.rk-subs .sb {
  font-size: 0.2rem;
  color: var(--sub-c);
  background: var(--sub-bg);
  border-radius: 0.08rem;
  padding: 0.04rem 0.12rem;
  line-height: 1.35;
  font-weight: 600;
}
.rk-subs .sb-v { font-weight: 800; color: var(--sub-c); margin-left: 0.04rem; }

/* ===== 权益条目 ===== */
.right-item { display: flex; align-items: flex-start; padding: 0.22rem 0; border-bottom: 0.01rem solid rgba(17, 19, 18, 0.06); }
.right-item:last-child { border-bottom: none; padding-bottom: 0.04rem; }
.right-item .ic { width: 0.64rem; height: 0.64rem; border-radius: 0.14rem; background: rgba(0, 107, 79, 0.08); color: #006b4f; display: flex; align-items: center; justify-content: center; font-size: 0.23rem; font-weight: 750; margin-right: 0.2rem; flex-shrink: 0; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.right-item .rt { flex: 1; }
.right-item .rt .b { font-size: 0.28rem; font-weight: 750; display: block; color: #111312; }
.right-item .rt .p { font-size: 0.23rem; color: #58635e; line-height: 1.65; margin-top: 0.06rem; }

/* ===== 查看更多按钮（翡翠绿主钮） ===== */
.more-btn {
  margin-top: 0.24rem;
  text-align: center;
  font-size: 0.25rem;
  font-weight: 650;
  color: #ffffff;
  background: #006b4f;
  border-radius: 0.12rem;
  padding: 0.24rem 0;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease;
}
.more-btn:active { transform: scale(0.985); background: #00533d; }

.load-tip, .load-end { text-align: center; font-size: 0.22rem; color: #7c8782; padding: 0.24rem 0 0.12rem; }

/* ===== 空状态 ===== */
.empty-state {
  background: #ffffff;
  border: 0.01rem solid rgba(17, 19, 18, 0.10);
  border-radius: 0.2rem;
  padding: 0.6rem 0.4rem;
  text-align: center;
}
.empty-state .es-ic { width: 0.88rem; height: 0.88rem; margin: 0 auto; border-radius: 0.16rem; background: #f2f4f3; color: #58635e; font-size: 0.24rem; font-weight: 750; display: flex; align-items: center; justify-content: center; }
.empty-state .es-t { font-size: 0.28rem; font-weight: 750; color: #111312; margin-top: 0.18rem; }
.empty-state .es-d { font-size: 0.22rem; color: #58635e; line-height: 1.7; margin-top: 0.1rem; }

/* ===== 常规生大卡片 ===== */
.pcard { padding: 0.26rem 0.24rem 0.22rem; margin-bottom: 0.18rem; }
.pc-top { display: flex; align-items: center; }
.pc-rank { width: 0.42rem; height: 0.42rem; border-radius: 0.1rem; background: #f2f4f3; color: #58635e; font-size: 0.21rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-right: 0.14rem; flex-shrink: 0; }
.pc-rank.top { background: #111312; color: #ffffff; }
.pc-name { font-size: 0.31rem; font-weight: 750; color: #111312; }
.pc-tag { font-size: 0.19rem; color: #006b4f; background: rgba(0, 107, 79, 0.08); padding: 0.04rem 0.12rem; border-radius: 9.99rem; margin-left: 0.1rem; font-weight: 600; }
.pc-tag.track { color: #111312; background: #f2f4f3; border: 0.01rem solid rgba(17, 19, 18, 0.10); }
.pc-school { font-size: 0.23rem; color: #58635e; margin: 0.08rem 0 0.14rem; }
.pc-fields { border-top: 0.01rem solid rgba(17, 19, 18, 0.06); padding-top: 0.14rem; }
.pc-f { display: flex; align-items: flex-start; padding: 0.06rem 0; }
.pc-k { font-size: 0.22rem; color: #7c8782; width: 1.5rem; flex-shrink: 0; line-height: 1.6; }
.pc-v { font-size: 0.23rem; color: #111312; line-height: 1.6; flex: 1; font-weight: 500; }
.pc-f.col { display: block; }
.pc-f.col .pc-k { display: block; width: auto; margin-bottom: 0.04rem; }
.pc-bottom { display: flex; align-items: center; margin-top: 0.14rem; padding-top: 0.16rem; border-top: 0.01rem solid rgba(17, 19, 18, 0.06); }
.pc-up { display: flex; align-items: baseline; background: rgba(0, 107, 79, 0.08); border-radius: 0.1rem; padding: 0.08rem 0.18rem; margin-right: 0.12rem; }
.pc-lab { font-size: 0.19rem; color: #58635e; margin-right: 0.08rem; font-weight: 600; }
.pc-upv { font-size: 0.3rem; font-weight: 800; color: #006b4f; }
.pc-tot { display: flex; align-items: baseline; background: #f2f4f3; border-radius: 0.1rem; padding: 0.08rem 0.18rem; }
.pc-tot .pc-lab { color: #58635e; }
.pc-totv { font-size: 0.26rem; font-weight: 800; color: #111312; }
.pc-none { font-size: 0.21rem; color: #7c8782; }
.pc-pairs { display: flex; flex-wrap: wrap; gap: 0.08rem; margin-top: 0.14rem; }
.pc-p { display: inline-block; font-size: 0.2rem; font-weight: 600; color: var(--sub-c); background: var(--sub-bg); border-radius: 0.08rem; padding: 0.05rem 0.12rem; }
.pc-p.neg { background: #f2f4f3; color: #58635e; }
.pc-d { font-weight: 750; margin-left: 0.06rem; }

/* ===== 数值排版 ===== */
.num-tabular, .rk-idx, .rk-score, .pc-upv, .pc-totv, .case-stats .v { font-variant-numeric: tabular-nums; letter-spacing: -0.005rem; }
.traj-bar { display: flex; overflow: hidden; height: 0.1rem; margin: 0.1rem 0; border-radius: 0.99rem; background: #eef1ef; }
.traj-base { background: #cbd5d0; }
.traj-up { background: #006b4f; }
.archive-btn { box-sizing: border-box; background: transparent; margin: 0; padding: 0; border-radius: 0; line-height: 1.35; color: inherit; font-weight: inherit; }
.archive-btn::after { border: 0; }
