/* 德视佳 EuroEyes — 按 Figma PC(1728) / Mobile(483) 稿还原 */
:root {
  --color-primary: #031e3a;
  --color-brand: #005696;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-border: #e5e5e5;
  --color-bg: #ffffff;
  --color-bg-muted: #f7f7f7;
  --container-max: 1280px;
  --container-doctors-max: 1728px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Times New Roman", "Songti SC", "SimSun", serif;
  --header-pc-h: 160px;
  --logo-brand-max-h: 52px;
  --nav-color: #000000;
  --transition: 0.25s ease;

  /* 字号 token（对齐 Figma PC 1728 稿，单位 px） */
  --fs-nav: 14px;
  --fs-hero-text: 40px;
  --fs-hero-btn: 14px;
  --fs-section-title: 28px;
  --fs-stat-num: 88px;
  --fs-stat-label: 16px;
  --fs-doctor-name: 18px;
  --fs-doctor-title: 14px;
  --fs-doctor-meta: 12px;
  --fs-service-title: 18px;
  --fs-service-desc: 14px;
  --fs-news-title: 15px;
  --fs-news-date: 15px;
  --fs-store-name: 15px;
  --fs-store-addr: 13px;
  --fs-btn: 14px;
  --fs-footer-title: 14px;
  --fs-footer-text: 12px;
  --fs-footer-hotline: 16px;
  --fs-footer-wechat: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-pc-h);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 页头（Figma：白底 / Logo 上导航下 / 底部分割线） ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-mobile {
  display: none;
}

.header-pc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 22px;
  gap: 22px;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img,
.site-footer__brand img {
  display: block;
  height: auto;
  width: auto;
  max-height: var(--logo-brand-max-h);
  margin: 0 auto;
}

.site-nav {
  width: 100%;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
}

.header-pc .site-nav__list > li > a,
.header-pc .site-nav__lang .lang-trigger {
  display: inline-flex;
  align-items: center;
  padding: 6px 20px;
  font-size: var(--fs-nav);
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--transition), opacity var(--transition);
}

.header-pc .site-nav__list > li > a:hover,
.header-pc .site-nav__list > li > a.is-active,
.header-pc .site-nav__lang .lang-trigger:hover,
.header-pc .site-nav__lang.is-open .lang-trigger {
  color: #000000;
}

.site-nav__lang {
  position: relative;
}

.lang-trigger {
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.lang-trigger .icon-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.site-nav__lang.is-open .lang-trigger .icon-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 6px 0;
  z-index: 10;
}

.site-nav__lang.is-open .lang-menu {
  display: block;
}

.header-pc .lang-menu a {
  display: block;
  padding: 10px 16px;
  font-size: var(--fs-nav);
  color: #000000;
}

.header-pc .lang-menu a:hover {
  background: var(--color-bg-muted);
  color: #000000;
}

/* ========== Hero（Figma：文案块靠左 + 块内居中 + 垂直居中） ========== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 42vw, 720px);
  overflow: hidden;
  background: #1a1a1a;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img,
.hero-grad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-grad--1 { z-index: 1; }
.hero-grad--2 { z-index: 2; }

.hero-inner.container {
  max-width: none;
  width: 100%;
  padding-right: clamp(24px, 4vw, 48px);
  padding-left: clamp(40px, 9vw, 168px);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(480px, 42vw, 720px);
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-caption {
  flex: 0 1 auto;
  max-width: 520px;
  width: auto;
  margin: 0;
  color: #fff;
  text-align: center;
}

.hero-caption__eyebrow,
.hero-caption__title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero-text);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.hero-caption__eyebrow {
  margin: 0 0 16px;
}

.hero-caption__title {
  margin: 0 0 32px;
}

/* ========== 通用区块标题 ========== */
.section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* 最新资讯 / 门店地址 / 联系方式 — 标题字号一致 */
.section-heading--news,
.site-footer__heading {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.2vw, var(--fs-section-title));
}

.section-action {
  text-align: center;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 40px;
  font-size: var(--fs-btn);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-brand);
  color: #fff;
}

/* Hero「联系我们」：白描边胶囊按钮（需高于 .btn 的 border:none） */
.btn.btn--hero,
a.btn--hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 56px;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  background: transparent;
  background-color: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--fs-hero-btn);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn.btn--hero:hover,
a.btn--hero:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid #ffffff;
  color: #ffffff;
}

/* ========== 医生团队（Figma：方图 + 左对齐文案） ========== */
.section--doctors {
  background: var(--color-bg);
}

.section--doctors .container {
  max-width: min(var(--container-doctors-max), 100vw);
  padding-left: clamp(32px, 3.7vw, 64px);
  padding-right: clamp(32px, 3.7vw, 64px);
}

.section-heading--doctors {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(28px, 3.2vw, 56px);
  row-gap: 32px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  z-index: 0;
  transition: transform 0.35s ease;
  transform-origin: center center;
  cursor: pointer;
}

/* 覆盖整个卡片的隐形链接，让卡片整体可点 */
.doctor-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
}

.doctor-card__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.doctor-card__photo {
  background: var(--color-bg-muted) url("../images/医生照片背景.png") center / cover no-repeat;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 14px;
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (hover: hover) {
  .doctor-card:hover {
    z-index: 2;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-card {
    transition: none;
  }

  .doctor-card:hover {
    transform: none;
  }
}

.doctor-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.doctor-card__name {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: var(--fs-doctor-name);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 10px;
  padding-bottom: 6px;
  line-height: 1.25;
  border-bottom: 1px solid var(--color-primary);
}

.doctor-card__title {
  font-size: var(--fs-doctor-title);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.doctor-card__desc {
  font-size: var(--fs-doctor-meta);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.section-action--doctors {
  margin-top: 48px;
}

.doctors-carousel__dots {
  display: none;
}

.btn--consultant {
  background: var(--color-primary);
  color: #fff;
  border-radius: 0;
  min-width: 220px;
  padding: 14px 48px;
  letter-spacing: 0.08em;
}

.btn--consultant:hover {
  background: var(--color-brand);
  color: #fff;
}

/* ========== 数据栏（背景 EuroEyes 水印需完整显示，切图 3456×656） ========== */
.section--stats {
  padding: 0;
}

.stats-bar {
  position: relative;
  background: var(--color-bg-muted);
  overflow: hidden;
  min-height: clamp(280px, calc(100vw * 656 / 3456), 380px);
}

.stats-bar__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.35;
  pointer-events: none;
}

.stats-bar__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  gap: 24px;
  min-height: inherit;
  padding: clamp(56px, 6vw, 88px) 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item__num {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-stat-num);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  transform: scale(var(--stat-scale, 1));
  transform-origin: center bottom;
  will-change: transform;
}

.stat-item__num.is-done {
  transform: scale(1);
}

.stat-item__value {
  display: inline-block;
  min-width: 1.1em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stat-item__unit {
  font-family: var(--font-sans);
  font-size: 0.36em;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.12em 0.08em;
}

.stat-item__desc {
  margin-top: 16px;
  max-width: 220px;
  text-align: center;
}

.stat-item__desc p {
  margin: 0;
  font-size: var(--fs-stat-label);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.stat-item__desc p + p {
  margin-top: 2px;
}

/* ========== 诊疗项目（Figma：引导文案窄 / 列表三栏 25·55·20 / 底部 CTA） ========== */
.section--services {
  background: var(--color-bg);
  padding: clamp(72px, 8vw, 104px) 0 clamp(24px, 2.8vw, 35px);
}

.section--services__inner {
  max-width: min(1280px, calc(100vw - clamp(48px, 8vw, 120px)));
  margin: 0 auto;
  padding-left: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
}

.services-intro {
  max-width: 100%;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
  font-size: var(--fs-service-desc);
  color: var(--color-text);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.services-intro__br {
  display: block;
}

.services-heading--mobile {
  display: none;
}

.service-list--desktop {
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.service-list__item {
  border-bottom: 1px solid var(--color-border);
}

.service-list__item a {
  display: grid;
  grid-template-columns: minmax(96px, 22%) minmax(0, 1fr) minmax(112px, 18%);
  align-items: center;
  column-gap: clamp(28px, 4vw, 56px);
  padding: clamp(36px, 4.5vw, 52px) 0;
  transition: background var(--transition);
}

.service-list__item a:hover {
  background: var(--color-bg-muted);
}

.service-list__item a:hover .service-list__more {
  background: var(--color-primary);
  color: #fff;
}

.service-list__icon {
  justify-self: center;
  width: clamp(80px, 8vw, 104px);
  height: clamp(80px, 8vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-list__icon img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.service-list__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding-right: clamp(8px, 2vw, 24px);
}

.service-list__body strong {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.35;
}

.service-list__desc {
  font-size: var(--fs-service-desc);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 42em;
}

.service-list__more {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 24px;
  border: 1px solid var(--color-primary);
  font-size: var(--fs-btn);
  font-weight: 400;
  color: var(--color-primary);
  background: transparent;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.section-action--services {
  margin-top: clamp(19px, 2.3vw, 27px);
}

.btn--vision-plan {
  min-width: 0;
  width: min(320px, 72%);
  max-width: 360px;
  padding: 14px 40px;
  letter-spacing: 0.06em;
}

.service-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.service-cards-mobile__item img {
  width: 100%;
}

/* ========== 最新资讯（Figma：1728 宽容器、大图 50/50、大标题） ========== */
.section.section--news {
  padding: clamp(29px, 3.3vw, 43px) 0 clamp(32px, 3.5vw, 48px);
  background: var(--color-bg);
}

.section--news .container {
  max-width: min(var(--container-doctors-max), 100vw);
  padding-left: clamp(40px, 4.5vw, 80px);
  padding-right: clamp(40px, 4.5vw, 80px);
}

.section-heading--news {
  margin-bottom: clamp(56px, 6.5vw, 88px);
}

.news-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(48px, 5.5vw, 80px);
  width: 100%;
  margin: 0 auto;
}

.news-duo__item a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  height: 100%;
}

.news-duo__img {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  background: #ddd;
}

.news-duo__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-duo__item a:hover .news-duo__img img {
  transform: scale(1.03);
}

.news-duo__date {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-news-date);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.news-duo__title {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .news-list--extra {
  display: none;
}

/* （门店地址已并入页脚 .site-footer__stores） */

.news-list--extra {
  max-width: 900px;
  margin: 40px auto 0;
  border-top: 1px solid var(--color-border);
}

.news-list--extra li {
  border-bottom: 1px solid var(--color-border);
}

.news-list--extra a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: var(--fs-service-desc);
}

.news-list--extra a:hover .news-list__title {
  color: var(--color-brand);
}

.news-list--extra time {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-doctor-meta);
}

/* ========== 页脚（Figma：门店 4×2 / 联系方式 / Logo / 备案） ========== */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: clamp(40px, 4.5vw, 56px) 0 clamp(40px, 5vw, 56px);
  color: var(--color-text-secondary);
  font-size: var(--fs-footer-text);
}

.site-footer__inner {
  max-width: min(var(--container-doctors-max), 100vw);
  margin: 0 auto;
  padding: 0 clamp(40px, 4.5vw, 80px);
  text-align: center;
}

.site-footer__heading {
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.site-footer__stores .site-footer__heading {
  margin-bottom: clamp(32px, 3.5vw, 44px);
}

.site-footer__contact .site-footer__heading {
  margin-bottom: 18px;
}

.site-footer__stores .stores-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 52px) clamp(24px, 3vw, 40px);
  text-align: left;
}

.site-footer__stores a.store-item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.site-footer__stores a.store-item:hover {
  opacity: 0.85;
}

.site-footer__stores .store-item__name {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-store-name);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.45;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-primary);
}

.site-footer__stores .store-item__addr {
  font-size: calc(var(--fs-store-name) - 6px);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.site-footer__contact {
  margin-top: clamp(40px, 4.5vw, 56px);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__hotline {
  margin: 0 0 clamp(40px, 5vw, 56px);
  font-family: var(--font-sans);
  font-size: var(--fs-footer-hotline);
  font-weight: 300;
  color: #888888;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.site-footer__hotline a {
  color: inherit;
  text-decoration: none;
}

.site-footer__hotline a:hover {
  color: var(--color-brand);
}

.site-footer__wechat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  min-width: 300px;
  padding: 14px 28px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-footer-wechat);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.site-footer__wechat-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-bg);
}

.site-footer__wechat-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.65;
}

.site-footer__wechat-label {
  flex: 0 1 auto;
  text-align: left;
  font-size: var(--fs-footer-wechat);
}

.site-footer__wechat-arrow {
  flex-shrink: 0;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1px solid #b0b0b0;
  border-top: 1px solid #b0b0b0;
  transform: rotate(45deg);
}

.site-footer__brand {
  margin-top: clamp(56px, 7vw, 80px);
}

.site-footer__brand a {
  display: inline-block;
  cursor: pointer;
}


.site-footer__legal {
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--color-border);
  font-size: 10px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ========== 移动端底栏 ========== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 52px;
}

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.mobile-bar a img,
.mobile-bar a svg {
  width: 20px;
  height: 20px;
}

.mobile-bar a.is-active {
  color: var(--color-brand);
}

/* ========== 抽屉菜单 ========== */
.menu-toggle {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle img {
  width: 25px;
  height: 25px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(3, 30, 58, 0.45);
}

.nav-overlay.is-active { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 1002;
  transition: right var(--transition);
  padding: 72px 24px 24px;
  overflow-y: auto;
}

.nav-drawer.is-open { right: 0; }

.nav-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
}

.nav-drawer__phone {
  color: var(--color-brand);
  font-weight: 600;
}

body.nav-open { overflow: hidden; }

body.wechat-modal-open { overflow: hidden; }

/* ========== 官方微信二维码弹层 ========== */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wechat-modal.is-open {
  display: flex;
}

.wechat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.wechat-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 85vw);
  aspect-ratio: 1 / 1;
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  cursor: default;
}

.wechat-modal__qr {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-modal__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 内页 ========== */
.page-banner {
  margin-top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.breadcrumb {
  margin-top: 12px;
  font-size: 0.875rem;
  opacity: 0.85;
}

.article-list,
.article-main {
  padding: 48px 0 80px;
}

.article-main .article-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.article-body {
  line-height: 1.9;
}

.article-body img { margin: 16px auto; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.pagination a:hover,
.pagination .current {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* ========== 响应式 ≤1100（诊疗列表略收窄按钮列） ========== */
@media (max-width: 1100px) {
  .service-list__item a {
    grid-template-columns: minmax(80px, 20%) minmax(0, 1fr) minmax(100px, 22%);
    column-gap: 24px;
  }

}


/* ========== 响应式 ≤1024 ========== */
@media (max-width: 1024px) {
  .site-footer__stores .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--doctors .container {
    max-width: var(--container-max);
    padding-left: 24px;
    padding-right: 24px;
  }

  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 28px;
  }

}

/* ========== 响应式 ≤768（Figma 移动端） ========== */
@media (max-width: 768px) {
  :root {
    --header-pc-h: 56px;
    /* Figma 移动稿 483px 宽度对应字号 */
    --fs-nav: 14px;
    --fs-hero-text: 22px;
    --fs-hero-btn: 14px;
    --fs-section-title: 20px;
    --logo-brand-max-h: 34px;
    --fs-stat-num: 56px;
    --fs-stat-label: 14px;
    --fs-doctor-name: 14px;
    --fs-doctor-title: 12px;
    --fs-doctor-meta: 11px;
    --fs-service-title: 16px;
    --fs-service-desc: 13px;
    --fs-news-title: 14px;
    --fs-btn: 14px;
  }

  .header-pc { display: none; }

  .header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
  }

  .hero {
    margin-top: 0;
    min-height: clamp(520px, 128vw, 680px);
  }

  .hero-inner.container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-inner {
    min-height: clamp(520px, 128vw, 680px);
    align-items: flex-end;
    justify-content: center;
    padding-top: 0;
    padding-bottom: clamp(52px, 11vw, 72px);
  }

  .hero-img {
    object-position: center 32%;
  }

  .hero-grad {
    display: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 58%;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(3, 30, 58, 0.72) 0%,
      rgba(3, 30, 58, 0.38) 42%,
      transparent 100%
    );
  }

  .hero-caption {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-caption__eyebrow,
  .hero-caption__title {
    width: 100%;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: #fff;
    text-shadow:
      0 1px 4px rgba(0, 0, 0, 0.55),
      0 4px 20px rgba(3, 30, 58, 0.45);
  }

  .hero-caption__eyebrow {
    margin-bottom: 10px;
  }

  .hero-caption__title {
    margin-bottom: 20px;
  }

  .btn.btn--hero,
  a.btn--hero {
    /* 与稿面首行「德视佳眼科 · 德国精工」视觉宽度一致 */
    width: 11.5em;
    max-width: min(72vw, 240px);
    min-width: 0;
    padding: 8px 0;
    min-height: 36px;
    box-sizing: border-box;
    font-size: 13px;
    letter-spacing: 0.1em;
    border: 0.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  }

  .section {
    padding: 40px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .doctors-carousel__viewport {
    overflow: hidden;
    width: 100%;
  }

  .doctors-carousel .doctors-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    column-gap: 0;
    row-gap: 0;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .doctors-carousel .doctor-card {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    transform: none;
  }

  .doctor-card__photo {
    max-width: min(320px, 88vw);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .doctor-card__body {
    align-items: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .doctor-card__title,
  .doctor-card__desc {
    text-align: center;
    width: 100%;
  }

  .doctor-card__name {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .doctor-card__title {
    margin-bottom: 12px;
  }

  .doctors-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
  }

  .doctors-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c8c8c8;
    cursor: pointer;
    transition: background var(--transition);
  }

  .doctors-carousel__dot.is-active {
    background: var(--color-primary);
  }

  .section-action--doctors {
    margin-top: 28px;
  }

  .section-action--doctors .btn--consultant {
    width: min(280px, 72vw);
    max-width: 100%;
  }

  .btn--consultant {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .stats-bar {
    min-height: clamp(240px, calc(100vw * 656 / 3456), 320px);
  }

  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
    padding: 48px 20px;
  }

  .stat-item__desc {
    max-width: 100%;
    margin-top: 12px;
  }

  .stat-item__desc p {
    font-size: var(--fs-stat-label);
    line-height: 1.5;
  }

  .section--services {
    padding: 48px 0 16px;
  }

  .section--services__inner {
    max-width: var(--container-max);
    padding-left: 20px;
    padding-right: 20px;
  }

  .services-heading--mobile {
    display: block;
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: var(--fs-section-title);
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  .services-intro {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: var(--fs-service-desc);
    line-height: 1.75;
    text-align: left;
    color: var(--color-text-secondary);
  }

  .services-intro__br {
    display: none;
  }

  .service-list--desktop {
    display: block;
    border-top: 1px solid var(--color-border);
  }

  .service-list__item a {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 0;
    padding: 22px 0;
  }

  .service-list__item a:hover {
    background: transparent;
  }

  .service-list__icon {
    width: 80px;
    height: 80px;
    justify-self: start;
  }

  .service-list__body {
    gap: 8px;
    padding-right: 0;
  }

  .service-list__body strong {
    font-size: var(--fs-service-title);
    line-height: 1.35;
    align-self: flex-start;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-primary);
  }

  .service-list__desc {
    font-size: var(--fs-service-desc);
    line-height: 1.65;
    max-width: none;
  }

  .service-list__more {
    display: none;
  }

  .section-action--services {
    margin-top: 12px;
    text-align: center;
  }

  .btn--vision-plan {
    width: 100%;
    max-width: none;
    padding: 14px 24px;
    border-radius: 0;
  }

  .service-cards-mobile {
    display: none;
  }

  .section.section--news {
    padding: 16px 0 24px;
  }

  .section--news .container {
    max-width: var(--container-max);
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    padding: 28px 0 32px;
  }

  .site-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  .section-heading--news,
  .site-footer__heading {
    font-size: var(--fs-section-title);
  }

  .section-heading--news {
    margin-bottom: 32px;
    text-align: center;
  }

  .news-duo {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 56px;
  }

  .news-duo__item a {
    align-items: center;
    text-align: center;
  }

  .news-duo__img {
    width: 100%;
    margin-bottom: 14px;
  }

  .news-duo__img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .news-duo__item a:hover .news-duo__img img {
    transform: none;
  }

  .news-duo__date {
    margin-bottom: 12px;
    text-align: center;
    font-size: var(--fs-news-date);
    color: var(--color-text-secondary);
  }

  .news-duo__title {
    font-family: var(--font-serif);
    font-size: clamp(15px, 4.2vw, 17px);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: var(--color-primary);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding: 0;
    max-width: 100%;
  }

  .site-footer__stores {
    text-align: center;
  }

  .site-footer__stores .site-footer__heading {
    margin-bottom: 28px;
  }

  .site-footer__stores .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 24px;
    text-align: left;
  }

  .site-footer__stores .store-item__name {
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .site-footer__stores .store-item__addr {
    font-size: 10px;
    line-height: 1.55;
    color: var(--color-text-secondary);
  }

  .site-footer__contact {
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

  .site-footer__contact .site-footer__heading {
    font-family: var(--font-serif);
    font-size: var(--fs-section-title);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 18px;
    letter-spacing: 0.04em;
  }

  .site-footer__hotline {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    text-align: center;
    margin: 0 0 28px;
    letter-spacing: 0.02em;
  }

  .site-footer__wechat-btn {
    display: flex;
    width: 66.666%;
    max-width: 66.666%;
    min-width: 0;
    margin: 0 auto;
    padding: 12px 16px;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #666666;
    font-size: 15px;
    font-weight: 400;
    box-sizing: border-box;
  }

  .site-footer__wechat-icon {
    width: 20px;
    height: 20px;
    opacity: 0.55;
  }

  .site-footer__wechat-label {
    flex: 1;
    text-align: left;
    font-size: 15px;
    font-weight: 400;
    color: #666666;
  }

  .site-footer__wechat-arrow {
    margin-left: auto;
    flex-shrink: 0;
    border-color: #b8b8b8;
  }

  .site-footer__brand {
    margin-top: 52px;
    margin-bottom: 22px;
    text-align: center;
  }

  .site-footer__brand img {
    max-height: 35px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__legal {
    margin: 0;
    padding: 18px 8px 0;
    border-top: 1px solid var(--color-border);
    font-size: 9px;
    line-height: 1.65;
    text-align: center;
    color: #999999;
    letter-spacing: 0.01em;
    max-width: 100%;
  }

  .mobile-bar {
    display: block;
  }

  body.page-home {
    padding-bottom: 52px;
  }

  .btn {
    min-width: 160px;
    width: 100%;
    max-width: 320px;
  }
}

