/* ==========================================================================
   English edition — layout and typography overrides
   Loaded after site.css. Keeps the same design system, retuned for Latin text.
   ========================================================================== */

body.lang-en {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Helvetica, Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  font-size: 16.5px;
  letter-spacing: 0;
}

/* 英文标题不需要中文那样大的字号，长标题同样占三行 */
body.lang-en h1 { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.025em; line-height: 1.15; }
body.lang-en h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.2; }
body.lang-en h3 { font-size: clamp(1.06rem, 1.5vw, 1.24rem); letter-spacing: -.012em; }
body.lang-en h4 { letter-spacing: -.01em; }

body.lang-en p { margin: 0 0 1.05em; }
body.lang-en .lead { font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 62ch; line-height: 1.6; }
body.lang-en .hero__sub { max-width: 54ch; line-height: 1.6; }
body.lang-en .hero h1 { max-width: 20em; }

/* 全大写小标签在英文里需要更明显的字距 */
body.lang-en .eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
}
body.lang-en .topbar { letter-spacing: .01em; }
body.lang-en .btn { letter-spacing: .01em; }
body.lang-en .tag, body.lang-en .cert__tag { letter-spacing: .08em; text-transform: uppercase; }

body.lang-en .prose p { max-width: 68ch; }
body.lang-en .prose ul { max-width: 68ch; }

/* 价格数字用等宽数字，表格纵向对齐 */
body.lang-en table { font-variant-numeric: tabular-nums; }
body.lang-en .card p { line-height: 1.55; }

/* ---------- 语言切换 ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  transition: .18s;
}
.lang-switch:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}
@media (max-width: 1024px) {
  .nav .lang-switch { margin-left: 0; margin-top: 6px; align-self: flex-start; }
}

/* ---------- 流程列表（带时间标签，英文站专用结构） ---------- */
.proc-list {
  list-style: none;
  counter-reset: proc;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.proc-list > li {
  counter-increment: proc;
  display: grid;
  grid-template-columns: 54px 190px 1fr 132px;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.proc-list > li::before {
  content: counter(proc, decimal-leading-zero);
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .06em;
}
.proc-list > li b { color: var(--ink); font-size: 1.02rem; }
.proc-list > li span { color: var(--gray-600); font-size: .95rem; }
.proc-list > li em {
  font-style: normal;
  font-size: .8rem;
  font-weight: 650;
  color: var(--red);
  text-align: right;
  white-space: nowrap;
}
.proc-list--compact > li {
  grid-template-columns: 44px 165px 1fr;
  padding: 15px 0;
  gap: 16px;
}
.proc-list--compact > li em { display: none; }

@media (max-width: 820px) {
  .proc-list > li {
    grid-template-columns: 40px 1fr;
    gap: 8px 14px;
    padding: 16px 0;
  }
  .proc-list > li b { grid-column: 2; }
  .proc-list > li span { grid-column: 2; font-size: .92rem; }
  .proc-list > li em { grid-column: 2; text-align: left; }
  .proc-list--compact > li { grid-template-columns: 34px 1fr; }
}

/* ---------- 价格单元格 ---------- */
.price-cell b { font-size: 1.08rem; color: var(--ink); }
.price-cell .muted { font-size: .8rem; }

/* ---------- 资质卡补充字段 ---------- */
.cert__meta {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: .84rem;
  color: var(--gray-600);
}
.cert__meta li { padding: 2px 0; }
.cert__meta b {
  display: inline-block;
  min-width: 68px;
  color: var(--gray-400);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* 英文卡片标题行高更紧 */
.card h3 { line-height: 1.3; }
.case-card h3 { line-height: 1.3; }

/* 首页四张痛点卡对齐 */
.grid--2 .card { height: 100%; }

/* 表格内链接颜色 */
table a { color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
table a:hover { color: var(--red); border-color: var(--red); }

/* ---------- 数字条：英文站带副说明行 ---------- */
body.lang-en .factrow--four { grid-template-columns: repeat(4, 1fr); }
body.lang-en .factrow > div { padding: 22px 20px; }
body.lang-en .factrow b {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -.02em;
  line-height: 1.05;
}
body.lang-en .factrow b small {
  font-size: .46em;
  font-weight: 650;
  color: var(--red);
  margin-left: 4px;
  letter-spacing: 0;
}
body.lang-en .factrow span {
  display: block;
  margin-top: 8px;
  font-size: .84rem;
  color: var(--gray-600);
  font-weight: 600;
  line-height: 1.35;
}
body.lang-en .factrow em {
  display: block;
  font-style: normal;
  margin-top: 7px;
  font-size: .76rem;
  color: var(--gray-400);
  line-height: 1.5;
}
@media (max-width: 900px) {
  body.lang-en .factrow--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body.lang-en .factrow--four { grid-template-columns: 1fr; }
}

/* ---------- 信任条 ---------- */
body.lang-en .trustbar__item svg { flex: 0 0 auto; color: var(--red); }
body.lang-en .trustbar__item { gap: 7px; }

/* ---------- 数字条：英文站带副说明行 ---------- */
body.lang-en .factrow--four { grid-template-columns: repeat(4, 1fr); }
body.lang-en .factrow > div { padding: 22px 20px; }
body.lang-en .factrow b {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -.02em;
  line-height: 1.05;
}
body.lang-en .factrow b small {
  font-size: .46em;
  font-weight: 650;
  color: var(--red);
  margin-left: 4px;
  letter-spacing: 0;
}
body.lang-en .factrow span {
  display: block;
  margin-top: 8px;
  font-size: .84rem;
  color: var(--gray-600);
  font-weight: 600;
  line-height: 1.35;
}
body.lang-en .factrow em {
  display: block;
  font-style: normal;
  margin-top: 7px;
  font-size: .76rem;
  color: var(--gray-400);
  line-height: 1.5;
}
@media (max-width: 900px) {
  body.lang-en .factrow--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body.lang-en .factrow--four { grid-template-columns: 1fr; }
}

/* ---------- 信任条 ---------- */
body.lang-en .trustbar__item svg { flex: 0 0 auto; color: var(--red); }
body.lang-en .trustbar__item { gap: 7px; }

/* ---------- 案例卡：图片 + 角标 ---------- */
body.lang-en .case-card__thumb { display: block; }
body.lang-en .case-card__thumb span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  background: rgba(12, 14, 17, .74);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: .95;
}
body.lang-en .case-card__thumb::before { display: none; }

/* ---------- 移动端紧凑化 ---------- */
@media (max-width: 760px) {
  body.lang-en .trustbar { padding: 14px 0; }
  body.lang-en .trustbar .wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
  }
  body.lang-en .trustbar__item { font-size: .8rem; }
  body.lang-en .trustbar__label { margin-bottom: 3px; }
  body.lang-en .factrow--four > div { padding: 16px 18px; }
  body.lang-en .factrow span { margin-top: 6px; }
}

/* 表格横向滚动提示：宽表在窄屏需要滑动 */
.table-hint {
  display: none;
  margin: 0 0 10px;
  font-size: .78rem;
  color: var(--gray-400);
}
@media (max-width: 720px) {
  .table-hint { display: block; }
}

/* ---------- 移动端紧凑化 ---------- */
@media (max-width: 760px) {
  body.lang-en .trustbar { padding: 14px 0; }
  body.lang-en .trustbar .wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
  }
  body.lang-en .trustbar__item { font-size: .8rem; }
  body.lang-en .trustbar__label { margin-bottom: 3px; }
  body.lang-en .factrow--four > div { padding: 16px 18px; }
  body.lang-en .factrow span { margin-top: 6px; }
}

/* 表格横向滚动提示：宽表在窄屏需要滑动 */
.table-hint {
  display: none;
  margin: 0 0 10px;
  font-size: .78rem;
  color: var(--gray-400);
}
@media (max-width: 720px) {
  .table-hint { display: block; }
}
