/* ==========================================================================
   drzhangchina.com — pages.css (layout blocks used by one page or template)
   Requires global.css. Sections: Home · About · Treatments · Treatment detail ·
   Plan your trip · Blog list/post · Contact · Legal · 404
   ========================================================================== */

/* ==========================================================================
   Home  (.page-home)
   ========================================================================== */
/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; overflow: hidden; background: radial-gradient(1200px 520px at 85% 10%, var(--highlight-soft) 0%, rgba(255,240,244,0) 60%), radial-gradient(900px 520px at 5% 90%, var(--tertiary-soft) 0%, rgba(241,235,251,0) 60%), var(--hh-background); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.05; margin-bottom: .5rem; }
.hero .hero-zh { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.hero .lead { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; }
.hero-badges { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; box-shadow: var(--shadow-sm); }
.hero-badges i { color: var(--hh-tertiary); margin-right: .35rem; }
.hero-figure { position: relative; max-width: 460px; margin-left: auto; }
.hero-figure::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border-radius: 220px 220px var(--radius) var(--radius); background: var(--hh-highlight); z-index: 0; }
.hero-figure .frame { position: relative; z-index: 1; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; background: var(--hh-secondary); box-shadow: var(--shadow-md); }
.hero-figure img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease); }
.hero-figure:hover img { transform: scale(1.03); }
.hero-note { font-size: .8rem; color: var(--text-muted); margin-top: 1rem; }

/* ---------- Trust stats ---------- */
.stats { margin-top: -40px; position: relative; z-index: 3; }
.stats-inner { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px 18px; }
.stat { text-align: center; padding: 10px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--hh-headline); line-height: 1; }
.stat-num sup { font-size: .5em; top: -.9em; color: var(--hh-tertiary); }
.stat-label { font-size: .88rem; color: var(--text-muted); margin-top: .45rem; }

/* Home responsive */
@media (max-width: 991.98px) {
  .hero { padding: 120px 0 72px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-figure { margin: 48px auto 0; max-width: 380px; }
  .about-stack { margin-bottom: 56px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 575.98px) {
  .stat-label { font-size: .72rem; }
  .stats { margin-top: -24px; }
  .stat { padding: 14px 6px; }
  .stat-num { font-size: 2.1rem; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-stack .img-small { display: none; }
}

/* ==========================================================================
   About  (.page-about)
   ========================================================================== */
.about-portrait { position: relative; max-width: 420px; margin: 0 auto; }
.about-portrait img { border-radius: 220px 220px 24px 24px; width: 100%; height: auto; box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.about-portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 220px 220px 24px 24px; background: var(--hh-highlight); }
.about-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.about-facts li { background: var(--hh-main); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.about-facts b { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--hh-headline); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 6px; bottom: 6px; width: 2px; background: var(--hh-secondary); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 0 32px; padding-bottom: 28px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 104px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--hh-tertiary); }
.timeline .t-year { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--hh-headline); line-height: 1.2; }
.timeline h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.timeline p { color: var(--text-muted); margin: 0; }
.pillar { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pillar .p-num { font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--hh-tertiary); display: block; margin-bottom: .6rem; }
.pillar h3 { font-size: 1.35rem; }
.work-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.work-grid figure { margin: 0; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .6s var(--ease); }
.work-grid figure:hover img { transform: scale(1.04); }
.work-grid figure { background: transparent; border-radius: 0; }
.work-grid figure > img { border-radius: var(--radius); }
.work-grid .img-clip { border-radius: var(--radius); overflow: hidden; }
.work-grid figcaption { padding: 10px 2px 0; font-size: .88rem; color: var(--text-muted); }
.cred-groups { columns: 2; column-gap: 40px; }
.cred-group { break-inside: avoid; margin-bottom: 28px; }
.cred-group h3 { font-size: 1.3rem; display: flex; align-items: baseline; gap: .6rem; }
.cred-group h3 .count { font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--accent-ink); background: var(--tertiary-soft); border-radius: 999px; padding: 2px 10px; }
.cred-group ol { list-style: none; padding: 0; margin: 0; }
.cred-group li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.cred-group li .yr { white-space: nowrap; color: var(--text-muted); font-size: .88rem; }
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cert-thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); overflow: hidden; text-align: left; cursor: zoom-in; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cert-thumb:hover, .cert-thumb:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cert-thumb span { display: block; padding: 10px 12px; font-size: .8rem; line-height: 1.35; color: var(--hh-headline); }

/* ==========================================================================
   Treatments index (.page-treatments)
   ========================================================================== */
.tx-jump { position: sticky; top: 96px; }
.tx-jump a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--text-muted); text-decoration: none; font-size: .92rem; }
.tx-jump a:hover { color: var(--hh-headline); border-color: var(--hh-tertiary); }
.tx-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 28px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .3s; }
.tx-row:last-child { border-bottom: 1px solid var(--line); }
.tx-row:hover { color: inherit; background: linear-gradient(90deg, var(--highlight-soft), rgba(255,240,244,0)); }
.tx-row .tx-num { font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--hh-secondary); transition: color .3s; }
.tx-row:hover .tx-num { color: var(--hh-tertiary); }
.tx-row h2 { font-size: 1.75rem; margin-bottom: .35rem; }
.tx-row p { color: var(--text-muted); margin-bottom: .6rem; max-width: 620px; }
.tx-row .tx-go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--hh-stroke); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), background-color .3s; }
.tx-row:hover .tx-go { background: var(--hh-button); color: var(--hh-button-text); transform: translateX(4px); }
.principles { counter-reset: pr; }
.principles li { list-style: none; padding: 14px 0 14px 46px; position: relative; border-bottom: 1px solid var(--line); }
.principles li::before { counter-increment: pr; content: counter(pr, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-weight: 700; color: var(--accent-ink); }

/* ==========================================================================
   Treatment detail (.page-treatment)
   ========================================================================== */
.tx-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tx-hero-tags span { background: #fff; border: 1px solid var(--hh-secondary); border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; font-weight: 600; }
.tx-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.tx-block:first-child { padding-top: 0; }
.tx-block h2 { font-size: 1.7rem; display: flex; align-items: center; gap: .7rem; }
.tx-block h2 i { font-size: 1.1rem; width: 40px; height: 40px; border-radius: 12px; background: var(--tertiary-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.glance { position: sticky; top: 100px; background: var(--hh-main); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.glance h2 { font-size: 1.3rem; }
.glance dl { margin: 0 0 1.25rem; }
.glance dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: .9rem; }
.glance dd { margin: .15rem 0 0; color: var(--hh-headline); }
.q-list { list-style: none; padding: 0; }
.q-list li { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; display: flex; gap: .7rem; }
.q-list li i { color: var(--accent-ink); }

/* ==========================================================================
   Plan your trip (.page-trip)
   ========================================================================== */
.phase-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.phase-nav a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.phase-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--hh-headline); }
.phase-nav b { display: block; font-family: var(--font-serif); font-size: 1.25rem; }
.phase-nav small { color: var(--text-muted); }
.phase { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.phase-label { position: sticky; top: 100px; align-self: start; }
.phase-label .ph-num { font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--hh-highlight); -webkit-text-stroke: 1px var(--hh-tertiary); display: block; }
.phase-label h2 { font-size: 1.8rem; margin-top: .4rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { margin-bottom: .5rem; }
.checklist label { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; cursor: pointer; margin: 0; transition: border-color .2s, background-color .2s; }
.checklist input { margin-top: .35rem; accent-color: var(--hh-tertiary); width: 18px; height: 18px; flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--text-muted); }
.checklist label:hover { border-color: var(--hh-tertiary); }

/* ==========================================================================
   Blog list (.page-blog) and post (.page-post)
   ========================================================================== */
.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease); }
.featured-post:hover { box-shadow: var(--shadow-md); }
.featured-post .img-placeholder, .featured-post .featured-img { border-radius: 0; border: 0; height: 100%; min-height: 320px; }
.featured-post .featured-media { height: 100%; }
.featured-post .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.featured-post h2 a { text-decoration: none; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card .meta-line { margin-top: .6rem; }
.post-grid [hidden] { display: none !important; }
.post-head { padding: 140px 0 32px; text-align: center; background: linear-gradient(180deg, var(--hh-main), var(--hh-background)); }
.post-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 900px; margin: .6rem auto 1rem; line-height: 1.1; }
.post-head .breadcrumb-hh { justify-content: center; }
.post-cover { max-width: 1040px; margin: 0 auto; }
.post-cover .img-placeholder { border-radius: 24px; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 48px; }
.toc { position: sticky; top: 100px; font-size: .88rem; }
.toc .toc-title { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--hh-headline); border-left-color: var(--hh-tertiary); }
.author-card { display: flex; gap: 1rem; align-items: center; background: var(--hh-main); border-radius: var(--radius); padding: 20px; }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.author-card b { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--hh-headline); }
.sources-box { background: var(--hh-main); border-radius: var(--radius-sm); padding: 20px 22px; font-size: .9rem; }
.sources-box ol { padding-left: 1.2rem; margin: 0; }
.sources-box li { margin-bottom: .35rem; word-break: break-word; }

/* ==========================================================================
   Contact (.page-contact)
   ========================================================================== */
.method-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.method-card.featured { background: linear-gradient(160deg, var(--hh-highlight) 0%, var(--hh-secondary) 100%); border: 0; }
.method-card .m-icon { font-size: 1.6rem; color: var(--accent-ink); }
.method-card.featured .m-icon { color: var(--hh-headline); }
.method-card h2 { font-size: 1.45rem; margin: .6rem 0 .4rem; }
.address-card { background: var(--hh-button); color: var(--hh-button-text); border-radius: var(--radius); padding: 32px; }
.address-card h2, .address-card h3 { color: var(--hh-button-text); }
.address-card .zh-address { font-size: 1.35rem; line-height: 1.6; color: #fff; }
.address-card .btn-light { border-radius: 999px; }
.transit-steps { list-style: none; padding: 0; margin: 0; counter-reset: ts; }
.transit-steps li { position: relative; padding: 0 0 18px 48px; }
.transit-steps li::before { counter-increment: ts; content: counter(ts); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--tertiary-soft); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.form-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-md); padding: 40px; }

/* ==========================================================================
   Legal (.page-legal) and 404
   ========================================================================== */
.legal-nav { position: sticky; top: 100px; }
.legal-nav a { display: block; padding: 6px 0; color: var(--text-muted); text-decoration: none; font-size: .92rem; }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--hh-headline); }
.legal-nav a[aria-current] { font-weight: 700; }
.nf-wrap { min-height: min(72vh, 760px); display: flex; align-items: center; padding: 140px 0 80px; text-align: center; }
.nf-code { font-family: var(--font-serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--hh-highlight); -webkit-text-stroke: 2px var(--hh-tertiary); }

/* ---------- Responsive (page blocks) ---------- */
@media (max-width: 991.98px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; background: var(--hh-main); border-radius: var(--radius-sm); padding: 16px 18px; }
  .post-aside { order: 3; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .img-placeholder, .featured-post .featured-img { min-height: 220px; }
  .featured-post .body { padding: 28px; }
  .phase { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .phase-label { position: static; }
  .phase-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-groups { columns: 1; }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glance, .tx-jump, .legal-nav { position: static; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid figure:first-child { grid-column: span 2; }
  .work-grid figure:first-child img { aspect-ratio: 4 / 3; }
}
@media (max-width: 575.98px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 34px; }
  .timeline li::after { left: 1px; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tx-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .tx-row .tx-num { font-size: 2.2rem; }
  .tx-row .tx-go { display: none; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 26px 20px; }
  .address-card { padding: 24px; }
  .cred-group li { flex-direction: column; gap: 0; }
  .featured-post .body { padding: 22px; }
}

/* Home: focus cards are fully clickable (stretched link to the detail page) */
.page-home .card-hh { position: relative; }
.page-home .card-hh h3 a { text-decoration: none; }
.page-home .card-hh:hover h3 a { color: var(--accent-ink); }

/* Decorative panel shown where no image has been supplied yet (no text; keeps data-slot/data-prompt) */
.art-panel { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(420px 260px at 85% 15%, var(--hh-highlight) 0%, rgba(254,199,215,0) 70%), radial-gradient(420px 300px at 10% 90%, var(--hh-secondary) 0%, rgba(217,212,231,0) 70%), var(--hh-main); }
.art-panel.ratio-4x3 { aspect-ratio: 4 / 3; } .art-panel.ratio-16x10 { aspect-ratio: 16 / 10; } .art-panel.ratio-2x1 { aspect-ratio: 2 / 1; }
.art-panel i { font-size: clamp(2.6rem, 6vw, 4.5rem); color: var(--hh-tertiary); opacity: .9; }
.art-panel .art-num { position: absolute; left: 24px; top: 14px; font-family: var(--font-serif); font-size: 4.5rem; line-height: 1; color: #fff; opacity: .9; }
.post-card .art-panel { border-radius: 0; }
.page-contact .form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.page-contact .hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.page-contact .form-hh .opt { font-weight: 400; color: var(--text-muted); }
.page-contact .consent-check { padding-left: 1.75rem; }
.page-contact .consent-check .custom-control-label { font-weight: 400; font-size: .9rem; line-height: 1.5; }
.page-contact .consent-check .custom-control-label::before, .page-contact .consent-check .custom-control-label::after { top: .15rem; left: -1.75rem; }
.page-contact .consent-check .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--hh-button); border-color: var(--hh-button); }
.form-status.is-success { background: #effaf3; border-color: #9fd8b4; }
.form-status.is-error { background: #fff4f4; border-color: #e6a3a3; }
.page-contact .consent-check a { text-decoration: underline; }

/* ---------- SEO 2026-11-22 ---------- */
.hero .hero-doctor { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; color: var(--hh-headline); margin-bottom: 1.2rem; }
.hero .hero-doctor .zh { font-family: var(--font-sans); font-size: 1rem; font-weight: 400; color: var(--text-muted); margin-left: .35rem; }
.expect-list { list-style: none; padding: 0; margin: 0; }
.expect-list li { position: relative; padding-left: 2.1rem; margin-bottom: 1rem; }
.expect-list li i { position: absolute; left: 0; top: .1rem; font-size: 1.2rem; color: var(--hh-tertiary); }
.travel-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--hh-main); border-radius: var(--radius-md, 16px); padding: 28px 32px; }
.travel-slim p { margin: 0; max-width: 680px; color: var(--text-muted); }
.tx-intro { max-width: 820px; }
.tx-intro p { font-size: 1.06rem; }
.faq-plain h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.faq-plain p { color: var(--text-muted); margin-bottom: 0; }
