/* ==========================================
   古德堡联合口腔 — 官方网站
   Design inspired by Apple.com
   ========================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-bg-dark: #122653;  /* 古德堡品牌色 rgb(18,38,83) */
  --color-bg-section: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-light: #f5f5f7;
  --color-text-secondary: #6e6e73;
  --color-text-secondary-light: #a1a1a6;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: #d2d2d7;
  --color-border-dark: #424245;
  --color-card-bg: #ffffff;

  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'SF Pro Display', 'Helvetica Neue', 'PingFang SC', sans-serif;

  --nav-height: 52px;
  --section-padding: 120px 0;
  --section-padding-mobile: 80px 0;
  --content-max: 980px;
  --content-wide: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.58824;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: -0.022em;
}

a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

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

.loop-carousel {
  cursor: grab;
  scroll-behavior: auto;
  touch-action: pan-y;
  will-change: scroll-position;
}

.loop-carousel.is-dragging,
.loop-carousel.is-gliding,
.loop-carousel.is-scrolling {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(18, 38, 83, 0.92);  /* 古德堡VI蓝 */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  color: var(--color-text-light);
  opacity: 0.8;
}

.nav-logo-icon {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-text {
  height: 18px;
  width: auto;
  display: block;
  transform: translateY(-2px);
}

.nav-logo-en {
  height: 18px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary-light);
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text-light);
}

.nav-menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  border: 0;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease;
}

.nav-menu-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-menu-toggle span:last-child {
  transform: translateY(4px);
}

.nav.is-mobile-open .nav-menu-toggle span:first-child {
  transform: rotate(45deg);
}

.nav.is-mobile-open .nav-menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 113, 227, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 113, 227, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero 背景图片 — 上下边缘渐变模糊 (毛玻璃) */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('../images/optimized/hero-bg.webp') center/cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 8%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.2) 92%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 8%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.2) 92%,
    transparent 100%
  );
  pointer-events: none;
}

/* Hero 背景图上下边缘毛玻璃模糊过渡 */
.hero-bg-blur-top {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--color-bg-dark), rgba(18, 38, 83, 0)),
    url('../images/optimized/hero-bg.webp') center/cover no-repeat;
  opacity: 0.65;
  filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 32%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 32%);
  pointer-events: none;
}

.hero-bg-blur-bottom {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg-dark), rgba(18, 38, 83, 0)),
    url('../images/optimized/hero-bg.webp') center/cover no-repeat;
  opacity: 0.65;
  filter: blur(14px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 32%);
          mask-image: linear-gradient(to top, #000 0%, transparent 32%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px 120px;
  max-width: 700px;
}

.hero-eyebrow-img {
  height: 16px;
  width: auto;
  display: block;
  margin: 0 auto 20px;
  opacity: 0.63;
}

.hero-title {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-secondary-light);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: scale(1.02);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-full {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-padding);
  scroll-margin-top: var(--nav-height);
}

.section.dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section.dark .section-heading {
  color: var(--color-text-light);
}

.section.dark .section-sub {
  color: var(--color-text-secondary-light);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  padding-left: 5px;
  text-transform: uppercase;
}

.label-light {
  color: var(--color-text-secondary-light);
}

.section-heading {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.heading-light {
  color: var(--color-text-light);
}

.section-sub {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 60px;
}

/* ---------- 品牌简介 ---------- */
.brand {
  background: var(--color-bg);
  padding: 80px 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.brand-card {
  padding: 28px 36px;
  background: var(--color-bg-section);
  border-radius: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.brand-card-num {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.brand-card-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.brand-card-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ---------- 医资实力 (Medical Team) ---------- */
.medical {
  background: var(--color-bg-dark);
}

.medical-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 60px;
  padding-bottom: 8px;
  user-select: none;
}

.medical-grid::-webkit-scrollbar {
  display: none;
}

.medical-doctor {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.medical-doctor:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.medical-doctor.is-card-active {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg-section);
  position: relative;
  z-index: 1;
  transition: transform 0.62s cubic-bezier(0.22, 0.1, 0.16, 1);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medical-doctor:hover .doctor-photo,
.medical-doctor:hover .doctor-namebar,
.medical-doctor.is-card-active .doctor-photo,
.medical-doctor.is-card-active .doctor-namebar {
  transform: translateX(-100%);
}

.doctor-namebar {
  height: 60px;
  padding: 0 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.62s cubic-bezier(0.22, 0.1, 0.16, 1);
}

.doctor-name {
  font-family: 'PingFang SC', -apple-system, sans-serif;
  font-weight: 200;
  margin: 0;
  white-space: nowrap;
  color: var(--color-text);
}

.doctor-name-cn {
  font-size: 13px;
  font-weight: 200;
}

.doctor-name-title {
  font-size: 11px;
  font-weight: 200;
  color: var(--color-text-secondary);
}

.doctor-right {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  z-index: 2;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.62s cubic-bezier(0.22, 0.1, 0.16, 1);
}

.medical-doctor:hover .doctor-right,
.medical-doctor.is-card-active .doctor-right {
  transform: translateX(0);
}

.doctor-credentials {
  list-style: none;
  padding: 20px 16px 20px 15px;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}

.doctor-credentials li {
  font-family: 'PingFang SC', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 200;
  line-height: 1.34;
  color: var(--color-text-secondary);
  padding-left: 14px;
  position: relative;
}

.doctor-credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(13, 38, 83);
  opacity: 1;
}

/* ---------- 设备实力 (Equipment) ---------- */
.equipment {
  background: var(--color-bg);
}

.equipment-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: 370px;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 60px;
  padding-bottom: 8px;
  user-select: none;
}

.equipment-grid::-webkit-scrollbar {
  display: none;
}

.equipment-item {
  min-height: 270px;
  padding: 36px 32px;
  background-color: var(--color-bg-section);
  border-radius: 20px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  outline: none;
  transition: background-color 0.35s ease;
}

.equipment-item:hover,
.equipment-item:focus-visible,
.equipment-item.is-card-active {
  background-color: rgb(18, 38, 83);
}

.equipment-icon {
  color: var(--color-bg-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: color 0.28s ease;
}

.equipment-name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: color 0.28s ease;
}

.equipment-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
  transition: color 0.28s ease;
}

.equipment-item:hover .equipment-icon,
.equipment-item:focus-visible .equipment-icon,
.equipment-item.is-card-active .equipment-icon,
.equipment-item:hover .equipment-name,
.equipment-item:focus-visible .equipment-name,
.equipment-item.is-card-active .equipment-name,
.equipment-item:hover .equipment-desc,
.equipment-item:focus-visible .equipment-desc,
.equipment-item.is-card-active .equipment-desc {
  color: #ffffff;
}

/* ---------- 口碑实力 (Reputation) ---------- */
.reputation {
  background: var(--color-bg-dark);
}

.reputation-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 60px 0 80px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text-light);
}

.stat-unit {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-secondary-light);
}

.stat-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary-light);
  margin-top: 8px;
}

.testimonial-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: 380px;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
}

.testimonial-grid::-webkit-scrollbar {
  display: none;
}

.testimonial {
  min-height: 230px;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  scroll-snap-align: start;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.testimonial:hover,
.testimonial.is-card-active {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (hover: none), (pointer: coarse) {
  .medical-doctor:not(.is-card-active):hover {
    box-shadow: none;
  }

  .medical-doctor:not(.is-card-active):hover .doctor-photo,
  .medical-doctor:not(.is-card-active):hover .doctor-namebar {
    transform: translateX(0);
  }

  .medical-doctor:not(.is-card-active):hover .doctor-right {
    transform: translateX(100%);
  }

  .equipment-item:not(.is-card-active):hover {
    background-color: var(--color-bg-section);
  }

  .equipment-item:not(.is-card-active):hover .equipment-icon {
    color: var(--color-bg-dark);
  }

  .equipment-item:not(.is-card-active):hover .equipment-name {
    color: var(--color-text);
  }

  .equipment-item:not(.is-card-active):hover .equipment-desc {
    color: var(--color-text-secondary);
  }

  .testimonial:not(.is-card-active):hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.testimonial-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary-light);
}

.testimonial-author cite {
  font-style: normal;
}

/* ---------- 联系我们 ---------- */
.contact {
  background: var(--color-bg);
}

.contact .section-heading {
  max-width: 1120px;
}

.contact-heading-start,
.contact-heading-rest,
.contact-heading-memory {
  display: inline;
}

.contact-map-card {
  margin-top: 56px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-bg-section);
}

.branch-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.branch-tab {
  min-height: 58px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.28s ease, color 0.28s ease;
}

.branch-tab:last-child {
  border-right: 0;
}

.branch-tab:hover,
.branch-tab.active {
  background: rgb(18, 38, 83);
  color: #ffffff;
}

.branch-tab:focus-visible {
  outline: 2px solid rgba(18, 38, 83, 0.28);
  outline-offset: -4px;
}

.branch-map-stage {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: var(--color-bg-section);
}

.branch-clean-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-section);
  overflow: hidden;
}

.branch-map-tiles {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.branch-map-tiles.ready {
  opacity: 1;
}

.branch-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  pointer-events: none;
}

.branch-map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 4px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: rgb(18, 38, 83);
  box-shadow: 0 12px 26px rgba(18, 38, 83, 0.28);
  transform: translate(-50%, -100%) rotate(-45deg);
  z-index: 3;
}

.branch-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.branch-map-attribution {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(43, 47, 58, 0.62);
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
}

.branch-map-info {
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: min(360px, calc(100% - 60px));
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(18, 38, 83, 0.08);
  z-index: 4;
}

.branch-map-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 300;
}

.branch-map-info h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 8px;
}

.branch-map-info p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.branch-map-info a {
  font-size: 14px;
  font-weight: 300;
  color: rgb(18, 38, 83);
}

.contact-service-row {
  display: grid;
  grid-template-columns: minmax(0, 340px) 148px;
  gap: 20px;
  align-items: center;
  max-width: 508px;
  margin: 34px auto 0;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  font-family: var(--font-sans);
  height: 126px;
}

.contact-lines p {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.28;
  white-space: nowrap;
}

.contact-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: rgb(18, 38, 83);
}

.contact-line-icon svg {
  width: 16px;
  height: 16px;
}

.wechat-card {
  justify-self: start;
  width: 148px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
}

.wechat-card p {
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
}

.wechat-card img {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-section);
  padding: 46px 0 34px;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.footer-logo-img {
  display: block;
  width: min(360px, 72vw);
  height: auto;
}

.footer-tagline {
  width: min(240px, 48vw);
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.35;
  text-align: justify;
  text-align-last: justify;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-copy,
.footer-icp {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- Scroll Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.10s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.20s; }

@media (min-width: 900px) {
  .section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 56px 0 42px;
  }

  .section-inner {
    width: 100%;
  }

  .section-sub {
    margin-bottom: 26px;
  }

  .brand {
    padding: 56px 0 42px;
  }

  .brand-grid {
    gap: 18px;
    margin-top: 28px;
  }

  .brand-card {
    min-height: 205px;
    padding: 22px 26px;
  }

  .brand-card-num {
    margin-bottom: 12px;
  }

  .brand-card-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .brand-card-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  .medical-grid {
    margin-top: 34px;
  }

  .equipment-grid {
    grid-auto-columns: 340px;
    gap: 18px;
    margin-top: 32px;
  }

  .equipment-item {
    min-height: 205px;
    padding: 22px 26px;
    border-radius: 16px;
  }

  .equipment-icon {
    margin-bottom: 12px;
  }

  .equipment-icon svg {
    width: 34px;
    height: 34px;
  }

  .equipment-name {
    font-size: 17px;
    margin-bottom: 7px;
  }

  .equipment-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  .reputation-stats {
    gap: 56px;
    margin: 24px 0 28px;
  }

  .stat-number {
    font-size: 48px;
  }

  .stat-unit {
    font-size: 21px;
  }

  .testimonial-grid {
    grid-auto-columns: 350px;
    gap: 18px;
  }

  .testimonial {
    min-height: 190px;
    padding: 24px 26px;
    border-radius: 16px;
  }

  .testimonial-text {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .contact-map-card {
    margin-top: 26px;
  }

  .branch-tab {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .branch-map-stage {
    height: 300px;
  }

  .branch-map-info {
    left: 24px;
    bottom: 22px;
    width: min(340px, calc(100% - 48px));
    padding: 20px 22px;
  }

  .branch-map-info h3 {
    font-size: 22px;
  }

  .branch-map-info p {
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .contact-service-row {
    margin-top: 18px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }

  .section-heading {
    font-size: 40px;
  }

  .medical-doctor {
    flex: 0 0 180px;
    width: 180px;
  }
  .doctor-namebar {
    height: 54px;
  }
  .doctor-credentials {
    padding: 17px 13px 17px 12px;
    gap: 3.5px;
  }

  .equipment-grid {
    grid-auto-columns: 330px;
  }

  .testimonial-grid {
    grid-auto-columns: 340px;
  }

  .equipment-item {
    min-height: 260px;
  }

  .branch-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-tab:nth-child(2) {
    border-right: 0;
  }

  .branch-tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .contact-service-row {
    grid-template-columns: minmax(0, 340px) 148px;
    gap: 20px;
  }

  .brand-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reputation-stats {
    gap: 48px;
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .equipment-grid {
    grid-auto-columns: 330px;
    gap: 18px;
    margin-top: 32px;
  }

  .equipment-item {
    min-height: 205px;
    padding: 22px 26px;
  }

  .testimonial-grid {
    grid-auto-columns: 330px;
    gap: 18px;
  }

  .testimonial {
    min-height: 190px;
    padding: 24px 26px;
  }

  .branch-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .branch-tab {
    min-height: 48px;
    padding: 10px 10px;
    font-size: 13px;
  }

  .branch-tab:nth-child(2) {
    border-right: 1px solid var(--color-border);
  }

  .branch-tab:nth-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 734px) {
  .section {
    padding: var(--section-padding-mobile);
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .section-heading {
    font-size: 32px;
  }

  .contact-heading-start,
  .contact-heading-rest {
    display: block;
  }

  .contact-heading-memory {
    display: inline-block;
  }

  .section-sub {
    font-size: 17px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-toggle {
    display: block;
  }

  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    max-height: 0;
    padding: 0 28px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    background: rgba(18, 38, 83, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    transition:
      max-height 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
      padding 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.24s ease,
      transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 0.46s;
  }

  .nav.is-mobile-open .mobile-nav-panel {
    max-height: 330px;
    padding: 12px 28px 22px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
      padding 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.24s ease,
      transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s;
  }

  .mobile-nav-panel a {
    display: block;
    padding: 14px 0;
    color: var(--color-text-light);
    font-size: 21px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a:focus-visible {
    color: rgba(255, 255, 255, 0.72);
  }

  .nav.is-mobile-open .mobile-nav-panel a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.is-mobile-open .mobile-nav-panel a:nth-child(1) {
    transition-delay: 0.03s;
  }

  .nav.is-mobile-open .mobile-nav-panel a:nth-child(2) {
    transition-delay: 0.07s;
  }

  .nav.is-mobile-open .mobile-nav-panel a:nth-child(3) {
    transition-delay: 0.11s;
  }

  .nav.is-mobile-open .mobile-nav-panel a:nth-child(4) {
    transition-delay: 0.15s;
  }

  .nav.is-mobile-open .mobile-nav-panel a:nth-child(5) {
    transition-delay: 0.19s;
  }

  .medical-doctor {
    flex: 0 0 160px;
    width: 160px;
  }
  .doctor-namebar {
    height: 48px;
  }
  .doctor-credentials {
    padding: 16px 12px 16px 10px;
    gap: 4px;
  }
  .doctor-credentials li {
    font-size: 9.2px;
    line-height: 1.35;
    padding-left: 12px;
  }

  .equipment-grid {
    grid-auto-columns: 280px;
  }

  .equipment-item {
    min-height: 250px;
    padding: 30px 24px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-auto-columns: 300px;
  }

  .brand-card {
    padding: 28px 24px;
  }

  .reputation-stats {
    gap: 32px;
    flex-direction: column;
    align-items: center;
  }

  .stat-number {
    font-size: 48px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-map-card {
    margin-top: 40px;
  }

  .branch-tabs {
    grid-template-columns: 1fr;
  }

  .branch-tab {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
  }

  .branch-tab:last-child {
    border-bottom: 0;
  }

  .branch-map-stage {
    height: 380px;
  }

  .branch-map-info {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
    padding: 20px;
  }

  .branch-map-info h3 {
    font-size: 20px;
  }

  .contact-service-row {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
  }

  .contact-lines {
    height: auto;
    min-height: auto;
  }

  .contact-lines p {
    font-size: 16px;
  }

  .wechat-card {
    justify-self: center;
    width: 100%;
    min-height: auto;
    text-align: center;
  }

  .wechat-card img {
    width: 148px;
    height: 148px;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .contact-heading-memory {
    display: block;
  }
}
