/* =========================================================
   Tianyi Health Tech - English site components (/en/)
   Loaded AFTER /styles.css. Only NEW components live here.
   Scope: body.en-page
   ========================================================= */

.en-page { font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; }
.en-page h1, .en-page h2 { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 700; }
.en-page h1 { font-size: clamp(34px, 4.2vw, 56px); }
.en-page h2 { font-size: clamp(27px, 3.2vw, 42px); }

/* ---------- TODO placeholder ---------- */
.todo {
  display: inline-block;
  padding: 0 .4em;
  border-radius: 4px;
  background: #ffe45c;
  color: #3a2f00;
  font-weight: 700;
  font-size: .92em;
  line-height: 1.5;
}

/* ---------- Header (English) ---------- */
.en-page .site-header {
  grid-template-columns: auto 1fr auto;
  gap: 20px;
}
.en-page .nav > a,
.en-page .nav-parent { padding: 6px 0; }
.nav-cta,
.en-page .header-actions .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #07090c;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .92; }
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.lang-link:hover { border-color: var(--accent); }
.en-page .nav-dropdown a { font-size: 14px; }
.en-page .nav-dropdown .nav-dd-label {
  display: block;
  padding: 6px 18px 2px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .en-page .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    row-gap: 8px;
    overflow: visible;
  }
  .en-page .site-header .brand { grid-area: brand; }
  .en-page .site-header .header-actions { grid-area: actions; width: auto; justify-content: flex-end; }
  .en-page .site-header .nav {
    grid-area: nav;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 22px;
    padding-bottom: 0;
  }
  .en-page .nav-dropdown {
    left: 0;
    max-width: calc(100vw - 28px);
  }
}
@media (max-width: 680px) {
  .en-page .site-header { padding: 10px 14px; }
  .nav-cta { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .lang-link { min-height: 38px; min-width: 40px; }
}

/* ---------- Hero tweaks ---------- */
.en-page .pp-hero-copy .lead { max-width: 640px; }
.en-page .pp-hero-media img { height: auto; }

/* ---------- Certificate / credibility strip ---------- */
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.cert-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.cert-strip li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}
.cert-strip a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA row ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}
.cta-row .primary-btn,
.cta-row .ghost-btn,
.cta-row .wa-btn { min-height: 48px; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #25d366;
  color: #06220f;
  font-weight: 800;
}
.wa-btn:hover { opacity: .92; }
.wa-btn svg { width: 20px; height: 20px; fill: currentColor; }
.cta-band {
  padding: clamp(28px, 4vw, 44px) clamp(18px, 5vw, 72px);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 8px; font-size: clamp(24px, 2.6vw, 34px); }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Prose helpers ---------- */
.en-page .pp-prose + .pp-prose,
.en-page .pp-prose + .pp-card-grid,
.en-page .pp-prose + .pp-list,
.en-page .pp-list + .pp-prose,
.en-page .table-wrap + .pp-prose,
.en-page .pp-card-grid + .pp-prose { margin-top: 18px; }
.en-page .pp-prose a,
.en-page .faq a,
.en-page .spec-note a,
.en-page .contact-intro a,
.en-page .refs a,
.en-page .pp-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.en-page .pp-prose strong { color: var(--text); }
.en-page .pp-section h3 { font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.en-page .pp-card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .en-page .pp-card-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .en-page .pp-card-grid.cols-3 { grid-template-columns: 1fr; } }
.en-page .pp-section { overflow-wrap: anywhere; }
.en-page .pp-section .section-head { margin-bottom: 20px; }

/* numbered process steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  max-width: 1100px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 44px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #07090c;
  font-size: 13px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}
.steps li strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ---------- Spec table ---------- */
.table-wrap {
  max-width: 1000px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.spec-table caption {
  padding: 14px 16px;
  text-align: left;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  caption-side: top;
}
.spec-table th,
.spec-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.spec-table tbody th {
  width: 34%;
  color: var(--text);
  font-weight: 700;
}
.spec-table td { color: var(--muted); }
.spec-table tr.spec-group th {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.spec-note { max-width: 1000px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 680px) {
  .spec-table { font-size: 14px; min-width: 460px; }
  .spec-table th, .spec-table td { padding: 9px 12px; }
  .spec-table tbody th { width: 38%; }
}

/* ---------- References ---------- */
.refs {
  max-width: 920px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.refs li { margin-bottom: 8px; padding-left: 4px; }
.refs-title { margin: 26px 0 0; color: var(--text); font-size: 15px; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div,
.faq details > p { margin: 0; padding: 14px 18px 18px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Quote form layout ---------- */
.quote-block {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.quote-block .contact-layout { align-items: start; }
.quote-block .contact-points li { color: var(--text); }
.quote-aside .contact-direct p { flex-wrap: wrap; }
.inq-row--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inquiry-form .inq-req { color: var(--accent); }
.inquiry-form select { width: 100%; }
.inq-note { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 960px) { .inq-row--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .inq-row--3 { grid-template-columns: 1fr; }
  .inquiry-form { padding: 18px 14px; }
}

/* ---------- Contact page cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-card h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card p { margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.contact-card strong { display: block; color: var(--text); font-size: 18px; }
.contact-card a { color: var(--accent); font-weight: 700; }
.badge-24h {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 960px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Related cards (6-8 items) ---------- */
.en-page .related-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .en-page .related-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .en-page .related-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Thank-you ---------- */
.thanks { max-width: 880px; margin: 0 auto; text-align: left; }
.thanks .badge-24h { margin-bottom: 18px; }

/* ---------- Footer (English) ---------- */
.en-footer { background: var(--surface); border-top: 1px solid var(--line); }
.en-footer .ft-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr .8fr 1.2fr;
  gap: clamp(24px, 3.5vw, 52px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 68px) clamp(18px, 5vw, 72px);
}
.en-footer h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.en-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.en-footer li, .en-footer p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.en-footer a:hover { color: var(--text); }
.en-footer .ft-brand p { margin: 12px 0 0; }
.en-footer .ft-contact p { margin: 0 0 8px; }
.en-footer .ft-contact a { color: var(--accent); font-weight: 700; }
.en-footer .ft-sister { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.en-footer .ft-sister a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.en-footer .footer-bottom { border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .en-footer .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .en-footer .ft-grid { grid-template-columns: 1fr; padding: 36px 16px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #06220f;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
@media (max-width: 680px) {
  .wa-float { right: 12px; bottom: 12px; min-height: 48px; padding: 0 14px 0 12px; font-size: 14px; }
  .en-page .site-footer, .en-footer { padding-bottom: 56px; }
}

/* ---------- Misc ---------- */
.en-page main > section.pp-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.en-page .breadcrumb span:last-child { color: var(--text); }
.en-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Homepage + AKK/quality additions ---------- */
.home-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.home-stats li { color: var(--muted); font-size: 14px; font-weight: 600; }
.home-stats strong { display: block; color: var(--accent); font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; line-height: 1.05; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.feature-card .fc-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature-card .fc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; font-size: 14px; font-weight: 700; }
.feature-card .fc-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr; } }
.en-page .related-card p { margin: 0; padding: 0 14px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.en-page .related-card h3 { padding-bottom: 6px; }
.stat-card .stat-num { display: block; margin-bottom: 6px; color: var(--accent); font-family: "Cormorant Garamond", Georgia, serif; font-size: 40px; font-weight: 700; line-height: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip-row li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; }
.team-block { margin-top: 34px; }
.team-block .expert-list--wide { margin-top: 18px; }
.team-block h3 { margin: 0 0 6px; }
.partner-line { max-width: 920px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cert-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cert-card h3 { margin: 0 0 4px; font-size: 20px; }
.cert-card .cc-sub { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.cert-card dl { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 6px 14px; font-size: 14.5px; line-height: 1.5; }
.cert-card dt { color: var(--muted); font-weight: 700; }
.cert-card dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.cert-card .cc-note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 800px) { .cert-grid { grid-template-columns: 1fr; } .cert-card dl { grid-template-columns: 96px 1fr; } }
.award-list { max-width: 920px; margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.award-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 22px 0 0; }
.award-figs figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.award-figs img { display: block; width: 100%; height: auto; }
.award-figs figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; }
@media (max-width: 680px) { .award-figs { grid-template-columns: 1fr; } }
.en-page .table-wrap + .table-wrap { margin-top: 22px; }
.spec-table.wide { min-width: 640px; }
.en-page .pp-card-grid.cols-4-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .en-page .pp-card-grid.cols-4-home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .en-page .pp-card-grid.cols-4-home { grid-template-columns: 1fr; } }

/* images with width/height attributes must keep their aspect ratio */
.related-card img, .pp-hero-media img { height: auto; }

/* Contact page: form first, contact details beside it */
.contact-first .contact-layout { grid-template-columns: 1.2fr .8fr; margin-top: 8px; }
.contact-first .quote-aside .contact-direct { border-top: 0; padding-top: 0; margin-bottom: 22px; }
.contact-first .quote-aside .contact-direct p { flex-wrap: wrap; }
@media (max-width: 960px) { .contact-first .contact-layout { grid-template-columns: 1fr; } }

/* Feature cards: the whole card is clickable (stretched first link); extra links stay above it */
.feature-card { position: relative; transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.feature-card .fc-links a:first-child::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-card .fc-links a:not(:first-child) { position: relative; z-index: 2; }
.feature-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Knowledge Center ---------- */
.kb-head { padding-bottom: 8px; }
.kb-head .breadcrumb { margin-bottom: 18px; }
.kb-head h1 { max-width: 920px; margin: 0 0 14px; }
.kb-meta { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.kb-quick { max-width: 920px; margin: 0; padding: 20px 24px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.kb-quick-label { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kb-quick p:last-child { margin: 0; color: var(--text); font-size: 17px; line-height: 1.7; }
.kb-article .pp-prose, .kb-article .pp-list, .kb-article .table-wrap, .kb-article .spec-note { max-width: 920px; }
.kb-pointer { max-width: 920px; margin: 18px 0 0; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px; }
.kb-pointer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.kb-cta { max-width: 920px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kb-cta h2 { margin: 0 0 10px; font-size: 24px; }
.kb-cta p { margin: 0 0 8px; color: var(--muted); }
.kb-cta .cta-row { margin-top: 16px; }
.kb-cta a:not(.primary-btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.kb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kb-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kb-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.kb-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.kb-card .kb-tag { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kb-card .kb-read { margin-top: auto; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .kb-grid { grid-template-columns: 1fr; } .kb-quick { padding: 16px 18px; } }

/* Section header right-side link */
.section-more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.section-more:hover { opacity: .85; }

/* Interactive application chips */
.chip-row li.chip-link {
  transition: border-color .15s ease, color .15s ease;
}
.chip-row li.chip-link a {
  color: inherit;
  text-decoration: none;
}
.chip-row li.chip-link:hover,
.chip-row li.chip-link:hover a {
  border-color: var(--accent);
  color: var(--accent);
}

