:root {
  --ink: #18211d;
  --ink-soft: #39473e;
  --jade: #1f6b54;
  --jade-dark: #124733;
  --cinnabar: #a74832;
  --gold: #c7963f;
  --paper: #fbf7ed;
  --paper-deep: #f1e5d0;
  --mist: #eef4ee;
  --line: rgba(24, 33, 29, 0.13);
  --shadow: 0 22px 60px rgba(29, 44, 36, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.announce {
  background: var(--jade-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.announce__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 237, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav__links a {
  position: relative;
  padding: 8px 0;
}

.nav__links a::after {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--cinnabar);
  transition: width 180ms ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--ink);
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-band::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(199, 150, 63, 0.18), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.4), rgba(31, 107, 84, 0.1)),
    url("../images/paper-pattern.svg");
}

.hero {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 24px 0;
}

.hero-slider {
  position: relative;
  width: min(100%, 1920px);
  margin: 0 auto;
}

.hero-slider__track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0;
  scroll-behavior: smooth;
}

.hero-slider__track::-webkit-scrollbar {
  display: none;
}

.hero-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
  width: 100%;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(24, 33, 29, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-slider__dot.is-active {
  background: var(--jade);
  transform: scale(1.1);
}

.hero-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  place-items: center;
  height: 500px;
  padding: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,241,233,0.95));
  box-shadow: 0 24px 60px rgba(11, 37, 18, 0.12);
}

.hero-slide__visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hero-slide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(31, 107, 84, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--jade-dark);
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(24, 33, 29, 0.12);
}

.hero-slider__prev {
  left: 16px;
}

.hero-slider__next {
  right: 16px;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 18px;
}

@media (max-width: 980px) {
  .hero-slide {
    display: block;
    min-height: auto;
    padding: 28px;
  }

  .hero-slide__visual {
    margin-top: 32px;
  }
}

@media (max-width: 680px) {
  .hero-slider__track {
    padding-left: 14px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-slider__nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: var(--jade);
  box-shadow: 0 14px 28px rgba(31, 107, 84, 0.22);
}

.btn--ghost {
  color: var(--jade-dark);
  border-color: rgba(31, 107, 84, 0.26);
  background: rgba(255, 255, 255, 0.48);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 16px;
}

.hero__stats div {
  padding: 16px;
  border: 1px solid rgba(31, 107, 84, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.hero__stats strong {
  display: block;
  color: var(--jade-dark);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.hero__stats span {
  color: var(--ink-soft);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero__visual img {
  width: 100%;
  filter: drop-shadow(0 28px 40px rgba(24, 33, 29, 0.16));
}

.consult-card {
  position: absolute;
  right: -6px;
  bottom: 42px;
  width: min(330px, 78%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.consult-card span {
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 700;
}

.consult-card strong {
  display: block;
  margin: 8px 0 14px;
  line-height: 1.5;
}

.consult-card a {
  color: var(--jade);
  font-weight: 700;
}

.trust-strip {
  background: var(--jade-dark);
  color: #fff;
}

.trust-strip__inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 18px;
  text-align: center;
}

.trust-strip span {
  position: relative;
  font-size: 16px;
}

.trust-strip span + span::before {
  position: absolute;
  left: -10px;
  color: rgba(255, 255, 255, 0.32);
  content: "•";
}

.section {
  padding: 104px 0;
}

.section--cream {
  background: var(--paper-deep);
}

.section--ink {
  color: #fff;
  background:
    linear-gradient(rgba(18, 45, 35, 0.94), rgba(18, 45, 35, 0.94)),
    url("../images/paper-pattern.svg");
}

.section__head {
  max-width: 690px;
  margin-bottom: 42px;
}

.section__head p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 17px;
}

.section__head--light p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.service-tabs,
.doctor-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.service-tabs button,
.doctor-filter button {
  min-height: 40px;
  padding: 0 18px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.service-tabs button.is-active,
.doctor-filter button.is-active {
  color: #fff;
  border-color: var(--jade);
  background: var(--jade);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 282px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 40px rgba(24, 33, 29, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card a {
  margin-top: auto;
  color: var(--jade);
  font-weight: 700;
}

.experts-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 50px;
  align-items: start;
}

.experts-copy {
  position: sticky;
  top: 112px;
}

.experts-copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.doctor-list {
  display: grid;
  gap: 18px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(24, 33, 29, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.doctor-card img {
  width: 132px;
  height: 132px;
  border-radius: var(--radius);
  object-fit: cover;
}

.doctor-card span {
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 700;
}

.doctor-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process__line {
  position: absolute;
  top: 42px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--cinnabar));
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-step span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #fff;
  background: var(--jade);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.process-step p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 52px;
  align-items: start;
}

/* Make the section header span full width above the article grid */
.knowledge-layout .section__head {
  grid-column: 1 / -1;
  max-width: 100%;
  margin-bottom: 28px;
}

/* Let the article grid span both columns so cards fill the full container */
.knowledge-layout .article-grid {
  grid-column: 1 / -1;
}


.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.article-card {
  display: block;
  min-height: 170px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(29,44,36,0.06);
}

.article-card--large {
  min-height: auto;
}


.article-card__thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
}

.article-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__content {
  margin-left: 0;
}

.article-card__content h3 {
  margin: 6px 0 8px;
  font-size: 1.08rem;
}

.article-card__content p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.article-card span {
  color: #efc06b;
  font-size: 13px;
  font-weight: 700;
}

.article-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 920px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-card {
    min-height: auto;
    padding: 18px;
  }

  .article-card__thumb {
    width: 64px;
    height: 64px;
    margin: 0 0 12px 0;
    display: block;
  }
}

.article-card__link {
  display: block;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card__link:hover {
  text-decoration: none;
}

.article-card--large:hover,
.article-card:hover {
  transform: translateY(-2px);
}

.preview-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  align-items: center;
}

.preview-title span {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f6a48;
  margin-bottom: 10px;
}

.preview-title h1 {
  font-size: clamp(2rem, 2.4vw, 3rem);
  margin: 0;
  color: var(--ink);
}

.preview-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
}

.preview-content {
  margin-top: 28px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.preview-content p {
  margin-bottom: 20px;
}

.article-preview-page {
  max-width: 900px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 54px;
}

.faq-layout > div:first-child p {
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
}

.faq-item button::after {
  content: "+";
  color: var(--cinnabar);
  font-size: 24px;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-item p {
  display: none;
  margin: -2px 0 24px;
  color: var(--ink-soft);
}

.faq-item.is-open p {
  display: block;
}

.booking {
  background:
    linear-gradient(130deg, rgba(241, 229, 208, 0.93), rgba(238, 244, 238, 0.94)),
    url("../images/paper-pattern.svg");
}

.booking__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: start;
}

.booking__copy p {
  color: var(--ink-soft);
}

.booking__copy ul {
  padding-left: 18px;
  color: var(--ink-soft);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(31, 107, 84, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 33, 29, 0.18);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.booking-form input,
.booking-form select {
  height: 48px;
  padding: 0 14px;
}

.booking-form textarea {
  resize: vertical;
  padding: 13px 14px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid rgba(31, 107, 84, 0.25);
  border-color: var(--jade);
}

/* Floating QR code (fixed on the right, follows scroll) */
.floating-qr {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 164px;
  padding: 12px;
  box-sizing: border-box;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 60;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.floating-qr img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
}

.floating-qr span {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 640px) {
  .floating-qr {
    display: none;
  }
}

.booking-form__full,
.form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--jade-dark);
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.form-message.is-error {
  color: var(--cinnabar);
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #122d23;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 34px;
}

.brand--footer {
  color: #fff;
}

.brand--footer small,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h3 {
  color: #fff;
  font-size: 17px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: none;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--cinnabar);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(167, 72, 50, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .announce__inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(251, 247, 237, 0.98);
    box-shadow: var(--shadow);
  }

  .nav__links a {
    padding: 14px 10px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid,
  .experts-layout,
  .knowledge-layout,
  .faq-layout,
  .booking__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: auto;
  }

  .service-grid,
  .process,
  .article-grid,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experts-copy {
    position: static;
  }

  .process__line {
    display: none;
  }

  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .announce {
    display: none;
  }

  .nav__inner {
    height: 68px;
  }

  .nav__links {
    top: 68px;
    right: 14px;
    left: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    display: none;
  }

  .hero__grid {
    gap: 32px;
    padding: 48px 0 62px;
  }

  .hero__stats,
  .service-grid,
  .process,
  .article-grid,
  .footer__grid,
  .booking-form,
  .trust-strip__inner {
    grid-template-columns: 1fr;
  }

  .hero__stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .consult-card {
    position: static;
    width: 100%;
    margin-top: -12px;
  }

  .section {
    padding: 72px 0;
  }

  .doctor-card {
    grid-template-columns: 92px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .doctor-card img {
    width: 92px;
    height: 92px;
  }

  .article-card--large {
    grid-row: span 1;
  }

  .booking-form {
    padding: 20px;
  }
}
