/* StudyInChina v8 — additive styles for the one-stop modules.
   Existing theme.css variables, fonts, plates and breakpoints are untouched. */

.promise-band{
  background:var(--red);
  color:#fff;
  text-align:center;
  padding:clamp(20px,3vw,34px) var(--pad);
  font-family:var(--serif);
  font-size:clamp(1.25rem,2.6vw,2.1rem);
  line-height:1.15;
  letter-spacing:-.02em;
}

/* first-screen numbers: compact, not cards (W-04) */
.stats-grid .stat{padding:14px clamp(10px,2vw,24px)}
.stats-grid .stat .n{font-size:20px!important;line-height:1.1}
.stats-grid .stat .l{font-size:10px!important;margin-top:4px;letter-spacing:.09em}
.stats{padding:0}

.hero-actions{margin-top:22px}
.wa-text-link{
  display:inline-flex;align-items:center;gap:7px;
  margin-top:14px;font-size:13px;color:var(--muted);
  border-bottom:1px solid var(--rule-2);padding-bottom:2px;
}
.wa-text-link:hover{color:var(--red);border-color:var(--red)}
.wa-text-link .wa-ic{width:14px;height:14px}

.deep-block{
  margin-top:clamp(32px,5vw,64px);
  padding:clamp(28px,4.6vw,58px);
  background:var(--ink);color:var(--paper);
}
.deep-block .kicker{font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(252,252,252,.65)}
.deep-block h3{margin:12px 0 0;font-family:var(--serif);font-size:clamp(1.55rem,3vw,2.5rem);font-weight:500;letter-spacing:-.025em;line-height:1.1}
.deep-block p{margin:14px 0 0;max-width:52rem;color:rgba(252,252,252,.82);font-size:.94rem}
.your-four{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(252,252,252,.22);border:1px solid rgba(252,252,252,.22)}
.your-four li{padding:16px 14px;background:var(--ink);font-size:.82rem;line-height:1.4}
.your-four li::before{content:counter(y4,decimal-leading-zero) "  ";counter-increment:y4;color:var(--red);font-family:var(--serif)}
.your-four{counter-reset:y4}
.deep-block .one-stop-cta{margin-top:26px;background:var(--paper);color:var(--ink)}
.deep-block .one-stop-cta:hover{background:var(--red);color:#fff}

.mini-stat{margin-top:12px;font-family:var(--serif);font-size:20px;color:var(--red)}

.pk-tier{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.fee-boundary{margin:-2px 0 0;font-size:12px;color:var(--muted)}
.pk .link-inline{align-self:flex-start;margin-top:auto;font-size:.78rem;color:var(--red);border-bottom:1px solid currentColor}

.timeline{margin-top:clamp(34px,4.6vw,60px);border-top:1px solid var(--rule-2);padding-top:26px}
.timeline h3{margin:10px 0 22px;font-family:var(--serif);font-weight:500;font-size:clamp(1.2rem,2vw,1.65rem)}
.timeline-row{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:12px 0;border-top:1px solid var(--rule);font-size:.86rem}
.timeline-row span:first-child{color:var(--red);font-size:.74rem;letter-spacing:.08em;text-transform:uppercase}
.timeline > p{margin:20px 0 0;font-family:var(--serif);font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.5}
.closing-cta{margin:26px 0 0;font-size:.9rem}
.closing-cta a{color:var(--red);border-bottom:1px solid currentColor;padding-bottom:3px}

/* WhatsApp is always reachable (W-41) */
.wa-float{left:auto!important;right:18px;bottom:18px;z-index:80}

/* sub-pages */
.sub-head{padding:calc(var(--nav-h) + 30px) 0 10px}
.sub-head h1{margin:14px 0 12px;font-family:var(--serif);font-weight:500;font-size:clamp(1.8rem,3.4vw,3rem);line-height:1.1;letter-spacing:-.03em}
.sub-head p{max-width:60rem;color:var(--muted)}
.sub-back{display:inline-block;margin-top:18px;font-size:.78rem;color:var(--red);border-bottom:1px solid currentColor;padding-bottom:2px}
.sub-section{padding:clamp(26px,4vw,52px) 0;border-top:1px solid var(--rule)}
.sub-section h2{font-family:var(--serif);font-weight:500;font-size:clamp(1.25rem,2.2vw,1.8rem);margin:0 0 18px}
.sub-section p,.sub-section li{max-width:68rem;color:var(--ink-2);line-height:1.85}
.sub-section ul{padding-left:20px}
.sub-section .checked-date{font-size:.74rem;color:var(--muted);letter-spacing:.04em}
.sub-nav a{display:inline-block;margin-right:18px;font-size:.78rem;color:var(--red)}

@media (max-width:640px){
  .promise-band{font-size:1.35rem;padding:22px 18px}
  .your-four{grid-template-columns:repeat(2,1fr)}
  .timeline-row{grid-template-columns:84px 1fr;gap:10px;font-size:.8rem}
  .wa-float{right:14px;bottom:14px;width:44px;height:44px}
  .sub-head{padding-top:calc(var(--nav-h) + 22px)}
}


/* v8.2 — W-51: collapsible 20-step checklist (additive only) */
.step-list{margin:18px 0 0;border-top:1px solid rgba(252,252,252,.22)}
.step-list>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;
  padding:12px 0;color:rgba(252,252,252,.86);font-size:.86rem;letter-spacing:.02em}
.step-list>summary::-webkit-details-marker{display:none}
.step-list>summary::before{content:"+";font-family:var(--serif);font-size:1.15rem;color:var(--red);line-height:1}
.step-list[open]>summary::before{content:"\2212"}
.step-list-body{padding:4px 0 10px}
.step-list-ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 22px}
.step-list-ol li{position:relative;padding:5px 0 5px 26px;font-size:.8rem;line-height:1.45;
  color:rgba(252,252,252,.76);border-bottom:1px solid rgba(252,252,252,.09)}
.step-list-ol li::before{content:counter(s20,decimal-leading-zero);counter-increment:s20;
  position:absolute;left:0;top:5px;font-family:var(--serif);font-size:.7rem;color:var(--red)}
.step-list-body{counter-reset:s20}
@media(max-width:640px){.step-list-ol{grid-template-columns:1fr}}

/* v8.2 — W-49 assertion 6: RTL stays intact, additive corrections only */
html[dir=rtl] .step-list>summary{flex-direction:row-reverse;text-align:right}
html[dir=rtl] .step-list-ol li{padding:5px 26px 5px 0}
html[dir=rtl] .step-list-ol li::before{left:auto;right:0}
html[dir=rtl] .timeline-row{grid-template-columns:1fr 110px}
html[dir=rtl] .deep-block,html[dir=rtl] .your-four,html[dir=rtl] .hero-title,html[dir=rtl] .lead{text-align:right}

/* v8.2.1 — 中文/阿语：撤销英文版式规则套在非拉丁文字上的伤害。
   --serif 首选 Bodoni Moda / Times New Roman 都不含汉字，中文会回退系统宋体，
   却又继承 .grad 的 italic 与 hero 的负字距，导致汉字被机械倾斜、挤压。
   纯追加，theme.css 与英文/法文视觉一律不动。 */
html[lang=zh] .hero-title,html[lang=zh] .promise-band,
html[lang=ar] .hero-title,html[lang=ar] .promise-band{letter-spacing:0}
html[lang=zh] .hero-title,html[lang=zh] .promise-band{
  font-family:var(--sans);font-weight:600}
html[lang=ar] .hero-title,html[lang=ar] .promise-band{
  font-family:"Noto Naskh Arabic","Geeza Pro","Segoe UI",serif}
html[lang=zh] .grad,html[lang=zh] .hero-title .grad,
html[lang=ar] .grad,html[lang=ar] .hero-title .grad{font-style:normal}


/* v8.2.2-spec — 板块规格统一。仅 >=900px 生效，移动端断点完全保留。
   H1(45.5px) 原小于 H2(51.8px) 的层级倒挂 -> H2 收回 38px 档并补 H3 中间档；
   7 个板块 padding-bottom 原为 328/101/101/227/290/379/101 -> 统一节奏；
   首屏数字带 4 列却只有 3 项，右侧空 1/4 -> 补足 3 列并恢复数字字号。 */
@media (min-width:900px){
  .v822-spec{}
  .sec-head h2{font-size:clamp(1.6rem,3vw,2.65rem);line-height:1.16;letter-spacing:-.022em;max-width:24ch}
  .card h3,.pk h3{font-size:clamp(1.12rem,1.6vw,1.42rem);line-height:1.3}
  .lead{font-size:clamp(1rem,1.35vw,1.12rem);line-height:1.75}
  /* theme.css 用 #cost / #packages / #faq 等 id 选择器压过类选择器，
     这里显式带上 id 才能把 7 个板块收进同一节奏 */
  section.sec-bed,section#why.sec-bed,section#programs.sec-bed,section#cost.sec-bed,
  section#packages.sec-bed,section#faq.sec-bed{padding-bottom:clamp(130px,14vw,190px)}
  section#apply.sec-bed{padding-bottom:clamp(80px,8vw,116px)}
  .stats-grid{grid-template-columns:repeat(3,1fr)!important}
  .stats-grid .stat{padding:20px clamp(10px,2vw,24px)}
  .stats-grid .stat .n{font-size:clamp(1.55rem,2.5vw,2.15rem)!important;line-height:1.05;letter-spacing:-.02em}
  .stats-grid .stat .l{font-size:11px!important;margin-top:8px}
  .promise-band{padding:clamp(18px,2.4vw,28px) var(--pad);font-size:clamp(1.15rem,2.1vw,1.7rem)}
  .pk{gap:11px;padding:clamp(20px,2.2vw,26px) clamp(16px,2.2vw,26px) clamp(22px,2.6vw,30px)}
  .pk li{line-height:1.55}
}

/* v8.2.1 只修了 H1 与色带；全站其余 serif 标题在中文下仍回退系统宋体，
   还继承 -.028em 负字距挤压汉字。这里统一改用无衬线 / 阿语 Naskh。 */
html[lang=zh] .sec-head h2,html[lang=zh] .card h3,html[lang=zh] .pk h3,
html[lang=zh] .deep-block h3,html[lang=zh] .timeline h3,html[lang=zh] .timeline>p,
html[lang=zh] .mini-stat,html[lang=zh] .sub-head h1,html[lang=zh] .sub-section h2{
  font-family:var(--sans);font-weight:600;letter-spacing:0
}
html[lang=ar] .sec-head h2,html[lang=ar] .card h3,html[lang=ar] .pk h3,
html[lang=ar] .deep-block h3,html[lang=ar] .timeline h3,html[lang=ar] .mini-stat{
  font-family:"Noto Naskh Arabic","Geeza Pro","Segoe UI",serif;letter-spacing:0
}


/* v8.2.3-spec — ① why 三卡底部指标统一基线。
   三卡标题行数不同（2/2/1 行），.mini-stat 原本只跟 margin-top:12px，
   于是第三卡红字明显偏高。改为 flex column + margin-top:auto 贴底。 */
@media (min-width:900px){
  .v823-spec{}
  #why .grid.g3 > .card{display:flex;flex-direction:column;padding-bottom:clamp(22px,2.6vw,32px)}
  #why .grid.g3 > .card h3{min-height:2.5em;margin-bottom:12px}
  #why .grid.g3 > .card p{max-width:32ch}
  #why .mini-stat{
    margin-top:auto;padding-top:16px;border-top:1px solid var(--rule-2);
    font-size:clamp(1.05rem,1.5vw,1.28rem);line-height:1.3;letter-spacing:-.01em
  }

  /* ② 套餐区：三张卡真正成卡，而不是被竖线切开的表格列 */
  #packages .pk-grid{gap:16px;border-top:0}
  #packages .pk{
    border:1px solid var(--rule);border-radius:3px;background:rgba(255,255,255,.5);
    padding:clamp(28px,2.8vw,36px) clamp(20px,2.2vw,28px) clamp(22px,2.4vw,30px);
    gap:12px
  }
  #packages .pk:first-child{padding-left:clamp(20px,2.2vw,28px)}
  #packages .pk.featured{background:var(--ink);border-color:var(--ink);color:var(--paper)}

  /* 档位标签脱离流：三卡 h3 同一起跑线；首卡用一条红线平衡视觉，不新增文本 */
  #packages .pk .pk-tier{position:absolute;top:clamp(12px,1.3vw,16px);left:clamp(20px,2.2vw,28px);
    font-size:10px;letter-spacing:.18em;color:var(--red)}
  #packages .pk.featured .pk-tier{color:rgba(252,252,252,.66)}
  #packages .pk:first-child::before{content:"";position:absolute;
    top:clamp(17px,1.8vw,21px);left:clamp(20px,2.2vw,28px);
    width:26px;height:1px;background:var(--red)}
  #packages .pk-badge{border-radius:0 2px 0 0}

  /* 列表撑开，说明句与链接成组贴底；黑卡文字提亮 */
  #packages .pk ul{flex:1 1 auto;align-content:start;gap:11px}
  #packages .pk li{font-size:.85rem;line-height:1.62}
  #packages .pk.featured li{color:rgba(252,252,252,.92)}
  #packages .pk.featured .pk-desc{color:rgba(252,252,252,.78)}
  #packages .fee-boundary{margin:0;font-size:12px;color:var(--ink-2)}
  #packages .pk.featured .fee-boundary{color:rgba(252,252,252,.64)}
  #packages .pk .link-inline{align-self:flex-start;margin-top:2px;
    font-size:.85rem;font-weight:500;padding-bottom:3px}
  #packages .pk.featured .link-inline{color:#fff}
  #packages .pk .link-inline::after{content:" →";margin-left:5px;font-size:.9em}

  /* 附加服务：胶囊化，不再挤成一行小字 */
  #packages .addons{gap:9px;align-items:center;margin-top:26px;padding-top:19px}
  #packages .addons b{margin-right:5px}
  #packages .addons span{border:1px solid var(--rule);border-radius:999px;
    padding:5px 13px;font-size:.74rem;color:var(--ink-2)}

  /* RTL：标签与箭头镜像，避免与右上角 badge 重叠 */
  html[dir=rtl] #packages .pk .pk-tier,
  html[dir=rtl] #packages .pk:first-child::before{left:auto;right:clamp(20px,2.2vw,28px)}
  html[dir=rtl] #packages .pk-badge{right:auto;left:0;border-radius:2px 0 0 0}
  html[dir=rtl] #packages .pk .link-inline::after{content:" ←";margin-left:0;margin-right:5px}
}

/* ===== BRAND-LOGO v8.2.5 ===== */
/* 导航/页脚 img 尺寸用内联 style（法务页不加载本文件），此处只补装饰与 RTL */
.mh-meta .seal-badge{box-shadow:0 2px 12px rgba(44,68,114,.18)}
/* 品牌标识不随 RTL 镜像；仅让印章在窄屏 grid 中贴起始边 */
[dir="rtl"] .mh-meta .seal-badge{justify-self:start}
@media (max-width:600px){
  .mh-meta .seal-badge{margin-top:-4px}
}
