/* site-zh.css — Simplified Chinese typography overrides for jadewise.ai/zh/ */

:root {
  --serif: "DM Sans", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --sans: "DM Sans", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

body {
  font-size: 17px;
  line-height: 1.8;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  font-synthesis: none;
}

/* 1. 标题：移除西文负字距，改用 500–600 字重并收敛字号，确保手机端不产生碎行 */
h1, h2, .service-card h3, .system-panel .result {
  font-weight: 600;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.22;
}

.page-head h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.24;
  letter-spacing: 0.015em;
  max-width: 18em;
}

h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.28;
}

.mission p:not(.mission-more) {
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.48;
  letter-spacing: 0.015em;
  max-width: 24em;
}

.service-card h3 {
  font-size: 26px;
  line-height: 1.32;
  min-height: 0;
  margin-bottom: 22px;
}

.steps h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.question h3, .prose h3, .practice h3, .get-list h3, .after-submit h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.system-panel .result {
  font-size: 26px;
  line-height: 1.35;
  max-width: 8em;
}

/* 2. 正文与行宽：控制在每行约 32–38 个汉字，字号与行高照顾 40–60 岁读者 */
p, li {
  text-wrap: pretty;
}

.hero-copy {
  max-width: 560px;
}

.hero-body {
  font-size: 18px;
  line-height: 1.8;
  max-width: 28em;
}

.hero-line {
  font-size: 15px;
  line-height: 1.75;
  max-width: 30em;
}

.page-head .lead {
  font-size: 18px;
  line-height: 1.8;
  max-width: 34em;
}

.services-lead,
.mission .mission-more {
  font-size: 17px;
  line-height: 1.8;
  max-width: 36em;
}

.prose p,
.example-intro p,
.contact-copy p,
.form-intro {
  font-size: 17px;
  line-height: 1.85;
  max-width: 36em;
}

.steps p,
.question p,
.practice p,
.get-list p,
.after-submit p {
  font-size: 16px;
  line-height: 1.85;
  max-width: 36em;
}

.pain-list li,
.card-out,
.io-row p,
.related li a {
  font-size: 17px;
  line-height: 1.65;
}

.card-in,
.card-small,
.services-tail p,
.pain-list .note,
.demo-notes p,
.form-email {
  font-size: 14px;
  line-height: 1.75;
}

.demo-note,
.flag-list li,
.form-purpose,
.disclaimer,
.footer-lines,
.footer-links a {
  font-size: 13.5px;
  line-height: 1.8;
}

/* 英文邮件样本保持紧凑清晰 */
.email-message,
.email-raw {
  font-size: 14px;
  line-height: 1.7;
  line-break: auto;
}

/* 3. 小标签与表头：取消过度拉宽的西文字距，适度放大字号以保证清晰度 */
.eyebrow,
.page-head .crumb,
.mission-eyebrow,
.related h3,
.demo-label,
.run-meta {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
}

.lines thead th,
.io-row .label,
.sample-tag,
.pill {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.details-table,
.order-head,
.lines {
  font-size: 14px;
  line-height: 1.65;
}

.details-table th,
.order-head th {
  font-weight: 500;
  white-space: nowrap;
}

/* 4. 导航、按钮、表单与语言切换 */
.navigation > a,
.services-menu > summary,
.service-dropdown a {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.lang-switch {
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.button {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.header-cta {
  font-size: 14px;
  padding: 10px 18px;
  white-space: nowrap;
}

.text-link,
.hero-actions .text-link {
  font-size: 15px;
  text-underline-offset: 6px;
}

.field label {
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* 5. 响应式微调（含 390px 手机端适配） */
@media (min-width: 1800px) {
  h1 { font-size: 68px; }
}

@media (max-width: 1100px) {
  .navigation { gap: 20px; }
  .service-card h3 { font-size: 24px; }
}

@media (max-width: 850px) {
  .navigation { gap: 16px; }
  .navigation > a, .services-menu > summary { font-size: 14px; }
  .header-cta { font-size: 13px; padding-inline: 14px; }
  .service-card h3 { font-size: 23px; min-height: 0; }
  .contact-copy h2 { font-size: clamp(28px, 4vw, 36px); }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
    line-height: 1.78;
  }

  /* 顶栏在 390px 宽度下保持清晰可读，避免 10px 极小按钮字 */
  .header-cta {
    font-size: 13px;
    padding: 8px 12px;
    min-height: 38px;
  }

  .navigation.is-open > a,
  .services-menu > summary {
    font-size: 16px;
    padding-block: 13px;
  }

  .service-dropdown a {
    font-size: 15px;
    padding: 10px 12px;
  }

  .navigation.is-open .lang-switch {
    align-self: flex-start;
    margin-top: 12px;
    padding: 6px 16px;
    font-size: 14px;
    border: 1px solid var(--line);
  }

  .eyebrow,
  .page-head .crumb {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  /* 390px 屏宽下确保主标题每行 7–9 字完整不断行 */
  h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.25;
  }

  .page-head h1 {
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.28;
  }

  h2,
  .contact-copy h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.32;
  }

  .mission p:not(.mission-more) {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.52;
  }

  .hero-body,
  .page-head .lead,
  .prose p,
  .example-intro p,
  .contact-copy p,
  .form-intro {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-line {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions .button {
    font-size: 15px;
    width: 100%;
  }

  .service-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .steps h3 {
    font-size: 19px;
  }

  .steps p,
  .question p {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .lines td {
    grid-template-columns: 76px 1fr;
  }

  .lines td::before {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}

@media (max-width: 380px) {
  .header-cta {
    font-size: 12px;
    padding-inline: 10px;
  }

  h1 {
    font-size: 30px;
  }

  .page-head h1 {
    font-size: 26px;
  }
}

/* 11/24 他定：字体用 Gemini 推荐的方案 A（系统黑体）；标题统一 600 字重 */
h1, h2, h3, .services-heading, .mission p, .page-head h1, .system-panel .result { font-weight: 600; }
/* 11/24：中文标题尽量在标点处换行，不在词中间断开；放不下时才任意断 */
/* 11/24 他定：中文标题宁可提前换行、两行均衡，也不要最后一行只剩一个字 */
h1, h2, h3, .mission p { word-break: normal; overflow-wrap: normal; text-wrap: balance; }
/* 11/24：手机上内页大标题再小一点，让"从客户下单到系统接单，"这样 11 个字的一行放得下 */
@media (max-width: 700px) { .page-head h1 { font-size: clamp(26px, 7.6vw, 38px); } }

/* 11/24：分好词的标题只在词边界（<wbr>）换行 */
.zh-seg { word-break: keep-all; overflow-wrap: anywhere; }
