/* Medimate — Simplified Chinese pages (/zh/).
   Reuses the shared design tokens, navbar, footer and app-download buttons from styles.css.
   Only layout for the Chinese content blocks lives here. */

html[lang="zh-Hans"] {
  --font-display: "Inter", "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
}
html[lang="zh-Hans"] body {
  font-family: var(--font-display);
  background: #ffffff;
  color: var(--color-text-secondary, #4B5058);
  line-height: 1.8;
}
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4 {
  font-family: var(--font-display);
  color: var(--color-ink, #404F68);
  letter-spacing: 0;
}

.zh-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.zh-narrow { max-width: 820px; }

/* ---------- Hero (home) ---------- */
.zh-hero {
  background: linear-gradient(180deg, #E9F1FB 0%, #F6FAFF 62%, #ffffff 100%);
  padding: 72px 0 80px;
}
.zh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.zh-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-strong, #2E6BB8);
  background: var(--color-primary-soft, rgba(92,156,235,0.13));
  border: 1px solid var(--color-primary-border, rgba(92,156,235,0.38));
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.zh-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 20px;
}
.zh-hero-sub {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-secondary, #4B5058);
  margin: 0 0 28px;
  max-width: 600px;
}
.zh-store-group { margin: 4px 0 14px; }
.zh-nb { display: inline-block; }
.zh-note { font-size: 0.88rem; color: #5b6573; margin: 0 0 6px; line-height: 1.7; }
.zh-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 24px 60px rgba(15,23,42,0.14);
}

/* ---------- Sub-page heading ---------- */
.zh-pagehero {
  background: linear-gradient(180deg, #E9F1FB 0%, #F6FAFF 100%);
  padding: 56px 0 52px;
}
.zh-crumbs { font-size: 0.85rem; margin-bottom: 18px; color: #6b7280; }
.zh-crumbs a { color: var(--color-primary-strong, #2E6BB8); text-decoration: none; }
.zh-crumbs a:hover { text-decoration: underline; }
.zh-crumbs span { margin: 0 6px; }
.zh-pagehero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
}
.zh-pagehero p { font-size: 1.08rem; line-height: 1.9; margin: 0; max-width: 760px; }

/* ---------- Sections ---------- */
.zh-section { padding: 68px 0; }
.zh-section-tint { background: #F4F8FE; }
.zh-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary-strong, #2E6BB8);
  margin-bottom: 10px;
}
.zh-title { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; line-height: 1.4; margin: 0 0 14px; }
.zh-lead { font-size: 1.05rem; line-height: 1.9; max-width: 760px; margin: 0 0 32px; }
.zh-prose p { margin: 0 0 16px; line-height: 1.9; }

.zh-grid { display: grid; gap: 22px; }
.zh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zh-card {
  background: #ffffff;
  border: 1px solid rgba(13,17,24,0.12);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(13,17,24,0.05);
}
.zh-card h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.5; margin: 0 0 10px; }
.zh-card p { margin: 0 0 12px; line-height: 1.85; font-size: 0.98rem; }
.zh-card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-strong, #2E6BB8);
  background: var(--color-primary-soft, rgba(92,156,235,0.13));
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

/* ---------- Lists ---------- */
.zh-list { list-style: none; margin: 0; padding: 0; }
.zh-list li {
  position: relative;
  padding: 0 0 0 28px;
  margin: 0 0 10px;
  line-height: 1.8;
  font-size: 0.98rem;
}
.zh-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #5C9CEB);
}
.zh-list-no li::before { background: #e7476a; }

/* ---------- Boundary callout ---------- */
.zh-callout {
  background: #FFF8F8;
  border: 1px solid #f3d3d8;
  border-radius: 18px;
  padding: 30px 30px 22px;
}
.zh-callout h2, .zh-callout h3 { margin-top: 0; }
.zh-callout-blue { background: #F2F7FE; border-color: rgba(92,156,235,0.38); }

/* ---------- Price ---------- */
.zh-price-card { text-align: center; }
.zh-price-big { font-size: 2.2rem; font-weight: 900; color: var(--color-ink, #404F68); line-height: 1.2; margin: 6px 0 6px; }
.zh-price-big small { font-size: 1rem; font-weight: 600; color: #6b7280; }
.zh-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.zh-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.zh-table th, .zh-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e8edf4; font-size: 0.98rem; line-height: 1.7; }
.zh-table th { background: #F4F8FE; color: var(--color-ink, #404F68); font-weight: 700; white-space: nowrap; }
.zh-table tr:last-child td { border-bottom: 0; }

/* ---------- Steps ---------- */
.zh-steps { display: grid; gap: 18px; counter-reset: zhstep; }
.zh-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(13,17,24,0.12);
  border-radius: 18px;
  padding: 24px 26px;
}
.zh-step-num {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-primary-soft, rgba(92,156,235,0.13));
  color: var(--color-primary-strong, #2E6BB8);
  font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.zh-step h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; }
.zh-step p { margin: 0; line-height: 1.85; }
.zh-step-flag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #5b6573; background: #eef1f5; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.zh-faq-item { border-top: 1px solid #e4e9f0; padding: 26px 0; }
.zh-faq-item:first-child { border-top: 0; padding-top: 0; }
.zh-faq-item h2, .zh-faq-item h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.55; margin: 0 0 10px; }
.zh-faq-item p { margin: 0 0 10px; line-height: 1.9; }

/* ---------- CTA band ---------- */
.zh-cta {
  background: linear-gradient(135deg, #2E6BB8 0%, #5C9CEB 100%);
  border-radius: 28px;
  padding: 48px 36px;
  text-align: center;
  color: #ffffff;
}
.zh-cta h2 { color: #ffffff !important; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 12px; }
.zh-cta p { color: rgba(255,255,255,0.92); margin: 0 0 22px; }
.zh-cta .zh-store-group { justify-content: center; }
.zh-links-row { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.zh-links-row a { color: var(--color-primary-strong, #2E6BB8); font-weight: 600; text-decoration: none; }
.zh-links-row a:hover { text-decoration: underline; }
.zh-inline-link { color: var(--color-primary-strong, #2E6BB8); font-weight: 600; }

.zh-legal-note { font-size: 0.9rem; color: #5b6573; line-height: 1.8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .zh-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .zh-hero-photo { max-width: 440px; }
  .zh-grid-3, .zh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .zh-wrap { padding: 0 18px; }
  .zh-hero { padding: 40px 0 52px; }
  .zh-section { padding: 48px 0; }
  .zh-grid-3, .zh-grid-2, .zh-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .zh-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
  .zh-step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .zh-cta { padding: 36px 22px; border-radius: 22px; }
  .zh-table th, .zh-table td { padding: 12px 12px; font-size: 0.92rem; }
}
