:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#17202b;background:#fff}*{box-sizing:border-box}body{min-height:100vh;margin:0;display:flex;flex-direction:column}a{color:inherit;text-decoration:none}.site-header{height:64px;padding:0 max(24px,calc((100vw - 1040px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dbe2e9}.site-header span,.back-link{color:#64748b;font-size:13px}.site-name{font-size:18px;font-weight:700}.page{width:min(1040px,calc(100% - 32px));margin:0 auto;padding:72px 0 90px;flex:1}.page.narrow{width:min(760px,calc(100% - 32px))}.intro{margin-bottom:42px}.intro.compact{margin-bottom:32px}.kicker{margin:0 0 10px;color:#1d4ed8;font-size:11px;font-weight:700;letter-spacing:.16em}.intro h1{margin:0 0 12px;font-size:38px;line-height:1.2}.intro p:last-child{margin:0;color:#64748b;line-height:1.7}.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.subject-card{min-height:230px;padding:24px;border:1px solid #dbe2e9;background:#fff}.subject-card.available:hover{border-color:#1d4ed8}.subject-card.unavailable{background:#f8fafc;color:#7b8794}.subject-letter{width:34px;height:34px;display:grid;place-items:center;margin-bottom:32px;border:1px solid #dbe2e9;color:#1d4ed8;font-weight:700}.subject-card h2{margin:0 0 10px;font-size:22px}.subject-card p{min-height:48px;margin:0 0 30px;color:#64748b;font-size:14px;line-height:1.6}.enter{color:#1d4ed8;font-size:13px;font-weight:700}.state{color:#94a3b8;font-size:13px}.simple-list{border-top:1px solid #dbe2e9}.simple-list a{display:grid;grid-template-columns:1fr 180px 24px;align-items:center;gap:16px;padding:22px 4px;border-bottom:1px solid #dbe2e9}.simple-list a:hover{color:#1d4ed8}.simple-list strong{font-size:18px}.simple-list span{color:#64748b;font-size:13px}.simple-list b{text-align:right}.demo-note{margin-top:28px;color:#94a3b8;font-size:12px}.placeholder{padding:28px;border:1px dashed #94a3b8;background:#f8fafc}.placeholder p{margin:8px 0 0;color:#64748b}footer{padding:22px;text-align:center;border-top:1px solid #dbe2e9;color:#94a3b8;font-size:12px}@media(max-width:760px){.site-header{height:58px;padding:0 16px}.site-header>span{display:none}.page{padding-top:48px}.intro h1{font-size:31px}.subject-grid{grid-template-columns:1fr 1fr}.subject-card{min-height:210px}.simple-list a{grid-template-columns:1fr 24px}.simple-list span{display:none}}@media(max-width:440px){.subject-grid{grid-template-columns:1fr}.subject-card{min-height:185px}.subject-letter{margin-bottom:22px}}
/* ===== Unified top nav (injected by nav.js) — 视觉对齐阅读站 topbar ===== */
.site-header{position:sticky;top:0;z-index:60;height:68px;min-height:68px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap;background:#fff;border-bottom:1px solid #dbe2e9}
.site-header .brand{display:flex;align-items:center;gap:4px;color:inherit;font-weight:700;letter-spacing:-.02em;text-decoration:none;flex:0 0 auto}
.site-header .brand:hover{color:inherit}
.site-header .brand-logo-wrap{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.site-header .brand-logo-wrap small{margin-top:4px;color:#111827;font-size:8px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.site-header .brand-logo{width:40px;height:32px;border-radius:3px;object-fit:contain}
.site-header .brand-wordmark{display:inline-flex;align-items:center;height:38px;color:#111827;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1;white-space:nowrap}
.site-header .back-link{flex:0 0 auto;margin-left:6px;color:#64748b;font-size:13px;text-decoration:none;white-space:nowrap}
.site-header .back-link:hover{color:#1d4ed8}
.site-nav{display:flex;align-items:center;gap:6px;flex:1 1 auto;justify-content:center}
.site-nav .nav-link{position:relative;padding:8px 14px;border-radius:8px;color:#1f2937;font-size:14px;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.site-nav .nav-link:hover{background:#f1f5f9;color:#0f172a}
.site-nav .nav-link.active{background:#1d4ed8;color:#fff;font-weight:700}
.site-nav .nav-link.active:hover{background:#1e40af;color:#fff}
.site-nav .nav-link.soon{color:#94a3b8;cursor:default}
.site-nav .nav-link.soon:hover{background:none;color:#94a3b8}
.site-nav .nav-link.soon em{font-style:normal;font-size:10px;background:#f1f5f9;color:#94a3b8;padding:1px 5px;border-radius:6px;margin-left:5px;vertical-align:middle}
.nav-cta{flex:0 0 auto;background:#16a34a;color:#fff;font-size:14px;font-weight:700;padding:8px 16px;border-radius:999px;white-space:nowrap;text-decoration:none;transition:background .15s}
.nav-cta:hover{background:#15803d}
/* ===== 顶栏下拉（mega-dropdown）折叠规则：全局共享，所有页面统一 ===== */
.nav-item{position:relative;display:inline-flex;align-items:center}
.nav-item .nav-dropdown{visibility:hidden;opacity:0;position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(-4px);min-width:224px;padding:8px;background:#fff;border:1px solid #dbe2e9;border-radius:12px;box-shadow:0 16px 36px rgba(15,23,42,.18);z-index:200;transition:visibility 0s linear .18s,opacity .18s ease,transform .18s ease}
.nav-item:hover .nav-dropdown,.nav-item:focus-within .nav-dropdown,.nav-item .nav-dropdown:hover{visibility:visible;opacity:1;transform:translateX(-50%) translateY(0);transition:visibility 0s linear 0s,opacity .18s ease,transform .18s ease}
.nav-dropdown::before{content:"";position:absolute;top:-6px;left:50%;transform:translateX(-50%) rotate(45deg);width:12px;height:12px;background:#fff;border-left:1px solid #dbe2e9;border-top:1px solid #dbe2e9}
.nav-dropdown a{display:flex;flex-direction:column;gap:2px;padding:10px 14px;font-size:14px;color:#17202b;text-decoration:none;border-radius:6px;white-space:nowrap;transition:background .15s,color .15s}
.nav-dropdown a:hover{background:#f1f5f9;color:#1d4ed8}
.nav-dropdown a small{font-size:11px;color:#475569;font-weight:500}
.nav-dropdown a.no-link{color:#94a3b8;cursor:default}
.nav-dropdown a.no-link:hover{background:none;color:#94a3b8}
.nav-dropdown a.no-link em{font-style:normal;font-size:10px;background:#f1f5f9;color:#94a3b8;padding:1px 5px;border-radius:6px;margin-left:4px;vertical-align:middle}
@media (max-width:760px){.nav-item .nav-dropdown{min-width:200px}}
@media (max-width:760px){
  .site-header{height:auto;min-height:60px;padding:6px 12px;gap:8px;flex-wrap:wrap}
  .site-header .brand-wordmark{font-size:22px;height:30px}
  .site-header .brand-logo{width:32px;height:26px}
  .site-nav{order:3;flex:1 0 100%;justify-content:flex-start;overflow-x:auto;gap:0}
  .site-nav .nav-link{padding:7px 9px;font-size:13px}
  .nav-cta{padding:7px 12px;font-size:13px}
}
/* reading entry */
.subject-products{list-style:none;margin:0 0 22px;padding:0}
.subject-products li{padding:7px 0;border-top:1px dashed #e2e8f0;font-size:14px}
.subject-products li a{color:#17202b;text-decoration:none}
.subject-products li a:hover{color:#1d4ed8}
.subject-products .pending{color:#94a3b8}
.subject-products .pending em{font-style:normal;font-size:10px;background:#f1f5f9;color:#94a3b8;padding:1px 5px;border-radius:6px;margin-left:5px;vertical-align:middle}
@media (max-width:900px){.subject-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.subject-grid{grid-template-columns:1fr}.subject-card{min-height:0}}
.enter-reading{display:inline-block;margin-top:6px;padding:14px 26px;background:#1d4ed8;color:#fff;font-weight:700;border-radius:10px;text-decoration:none}
.enter-reading:hover{background:#1e40af}
.reading-note{margin-top:14px;color:#64748b;font-size:14px;line-height:1.7}
/* pricing */
.price-group{margin:34px 0 14px;font-size:20px}
.price-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.price-card-p{border:1px solid #dbe2e9;border-radius:12px;padding:18px;background:#fff;display:flex;flex-direction:column;gap:6px}
.price-card-p small{color:#64748b;font-size:13px}
.price-card-p strong{font-size:26px;color:#0f172a}
.price-card-p strong em{font-style:normal;font-size:13px;color:#64748b;font-weight:400;margin-left:4px}
.price-card-p span{color:#64748b;font-size:13px;line-height:1.6}
.price-card-p.highlight{border-color:#1d4ed8;background:#f5f8ff}
.delivery-note{margin-top:34px;padding:18px 20px;border:1px solid #dbe2e9;border-radius:12px;background:#f8fafc}
.delivery-note strong{display:block;margin-bottom:4px}
.delivery-note p{margin:0;color:#64748b;font-size:14px;line-height:1.7}
/* contact */
.contact-page{text-align:center}
.qr-box{margin:24px 0;display:flex;justify-content:center}
.qr-image{width:min(320px,80vw);border-radius:14px;border:1px solid #dbe2e9}
.qr-placeholder{border:2px dashed #94a3b8;border-radius:14px;padding:48px 32px;color:#64748b;font-size:15px;line-height:1.8}
.qr-placeholder small{color:#94a3b8;font-size:12px}
.contact-tips{color:#64748b;font-size:14px;line-height:1.7}

/* ===== 主题色变量（按听说读写） =====
 * 与 home.css 同步定义，供所有页面 styles.css 共用。
 * 各科目页面 body.theme-* 应用对应主题色，覆盖默认蓝。
 * 当前硬编码主题色已分别在 speaking/crash/score/reading-course.css 中替换；此处补充
 * 顶栏 nav / 下拉 / 通用 hover 等共享组件的主题色覆盖。
 */
:root {
  --brand: #1d4ed8;          /* 默认蓝 */
  --brand-soft: #eff6ff;
  --brand-edge: #bfdbfe;
  --brand-hover: #1e40af;
}
body.theme-speaking {
  --brand: #dc2626;
  --brand-soft: #fef2f2;
  --brand-edge: #fecaca;
  --brand-hover: #b91c1c;
}
body.theme-reading {
  --brand: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-edge: #bfdbfe;
  --brand-hover: #1e40af;
}
body.theme-listening {
  --brand: #16a34a;
  --brand-soft: #f0fdf4;
  --brand-edge: #bbf7d0;
  --brand-hover: #15803d;
}
body.theme-writing {
  --brand: #7c3aed;
  --brand-soft: #f5f3ff;
  --brand-edge: #ddd6fe;
  --brand-hover: #6d28d9;
}

/* 顶栏 nav / 下拉 / 通用组件随主题色 */
body.theme-speaking .site-nav .nav-link.active,
body.theme-reading .site-nav .nav-link.active,
body.theme-listening .site-nav .nav-link.active,
body.theme-writing .site-nav .nav-link.active { background: var(--brand); }
/* 下拉项 hover：按所属科目上色（不受当前页主题影响）。
   口语=浅红 / 阅读=浅蓝 / 听力=浅绿 / 写作=浅紫。 */
.nav-item-speaking .nav-dropdown a:hover { background: #fef2f2; color: #dc2626; }
.nav-item-reading  .nav-dropdown a:hover { background: #eff6ff; color: #1d4ed8; }
.nav-item-listening .nav-dropdown a:hover { background: #f0fdf4; color: #16a34a; }
.nav-item-writing  .nav-dropdown a:hover { background: #f5f3ff; color: #7c3aed; }
body.theme-speaking .site-header .back-link:hover,
body.theme-reading .site-header .back-link:hover,
body.theme-listening .site-header .back-link:hover,
body.theme-writing .site-header .back-link:hover { color: var(--brand); }
body.theme-speaking .site-header .nav-cta,
body.theme-reading .site-header .nav-cta,
body.theme-listening .site-header .nav-cta,
body.theme-writing .site-header .nav-cta { background: var(--brand); }
body.theme-speaking .site-header .nav-cta:hover,
body.theme-reading .site-header .nav-cta:hover,
body.theme-listening .site-header .nav-cta:hover,
body.theme-writing .site-header .nav-cta:hover { background: var(--brand-hover); }
/* ===== 全站「加微信」CTA 统一微信绿 (#16a34a)，不随科目主题色 ===== */
.site-header .nav-cta,
body.theme-speaking .site-header .nav-cta,
body.theme-reading .site-header .nav-cta,
body.theme-listening .site-header .nav-cta,
body.theme-writing .site-header .nav-cta { background: #16a34a !important; color: #fff !important; }
.site-header .nav-cta:hover,
body.theme-speaking .site-header .nav-cta:hover,
body.theme-reading .site-header .nav-cta:hover,
body.theme-listening .site-header .nav-cta:hover,
body.theme-writing .site-header .nav-cta:hover { background: #15803d !important; }
a.hm-btn, .hm-btn,
a.primary-button, .primary-button,
.cc-pricecard .primary-button,
.sc-pricecard .primary-button,
.rc-hero .primary-button,
.rc-buy .primary-button,
.hm-cta .hm-btn { background: #16a34a !important; color: #fff !important; }
a.hm-btn:hover, .hm-btn:hover,
a.primary-button:hover, .primary-button:hover,
.cc-pricecard .primary-button:hover,
.sc-pricecard .primary-button:hover,
.rc-hero .primary-button:hover,
.rc-buy .primary-button:hover,
.hm-cta .hm-btn:hover { background: #15803d !important; color: #fff !important; }


/* ============================================================
   [全站顶栏品牌区 v2] 马上过图 + 雅思备考(黑) + By 齐哥
   替换原 favicon-over.png + REQ 版式（favicon 浏览器 tab 仍用 favicon-over.png）
   ============================================================ */
.site-header .brand-logo-msg,
.topbar .brand-logo-msg {
  height: 30px;
  width: auto;
  margin-right: 4px;
  border-radius: 0;
  clip-path: none;
  object-fit: contain;
}
.site-header .brand-stack,
.topbar .brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
  gap: 2px;
}
.site-header .brand-stack .brand-wordmark,
.topbar .brand-stack .brand-wordmark {
  height: auto;
  font-family: "Microsoft YaHei","PingFang SC",sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #111827;
  line-height: 1;
  white-space: nowrap;
}
.site-header .brand-stack small,
.topbar .brand-stack small {
  margin: 0;
  color: #111827;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .site-header .brand-logo-msg,
  .topbar .brand-logo-msg { height: 26px; }
  .site-header .brand-stack .brand-wordmark,
  .topbar .brand-stack .brand-wordmark { font-size: 16px; }
  .site-header .brand-stack small,
  .topbar .brand-stack small { font-size: 7px; }
}


/* 详情页顶栏「返回首页」改为 home 图标按钮 */
.site-header .back-link-home {
  flex: 0 0 auto;
  margin-left: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2e9;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.site-header .back-link-home:hover {
  color: #1d4ed8;
  border-color: #1d4ed8;
  background-color: #eff6ff;
}
body.theme-speaking .site-header .back-link-home:hover,
body.theme-reading .site-header .back-link-home:hover,
body.theme-listening .site-header .back-link-home:hover,
body.theme-writing .site-header .back-link-home:hover { color: var(--brand); border-color: var(--brand); background-color: var(--brand-bg); }

/* ============================================================
   [全站中文排版] 消除"一换行就俩字仨字"的孤行
   text-wrap: balance —— 多行文本按视觉均衡重新分行，
   不再出现末行只剩 2-3 个字的难看孤行。
   实测：首页 hero 副标（620px 宽）原为 39 字 + 孤行"先摘了。"，
   加此规则后均衡为两行；900px 下 6 处孤行全部清零。
   渐进增强：浏览器不支持则自动忽略，不改动原有排版。
   注：balance 仅对 ≤6 行的块生效，长段落自动回退普通换行。
   ============================================================ */
h1, h2, h3, h4, h5, h6,
p, li, blockquote,
figcaption, dd, dt {
  text-wrap: balance;
}
