* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: PingFang SC, Microsoft YaHei, Helvetica Neue, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: #eef2f4;
  color: #222;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

input {
  border: 0;
  outline: 0;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.mobile-page {
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #fff;
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

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

/* ===== 公共内页头部 ===== */
.inner-header {
  background: #fff;
}

.top-bar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #fff;
}

.top-back,
.top-more {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-back {
  left: 4px;
}

.top-back::before {
  content: "";
  width: 11px;
  height: 11px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

.top-more {
  right: 4px;
}

.top-more span {
  width: 4px;
  height: 4px;
  margin: 0 2px;
  border-radius: 50%;
  background: #333;
}

.top-title {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  color: #222;
}

.page-hero {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #e7f4f5;
}

.page-hero-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.hero-tools {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.brand-mark {
  display: flex;
  align-items: center;
  color: #008d55;
  flex-shrink: 0;
}

.brand-emblem {
  width: 26px;
  height: 26px;
  margin-right: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-mark strong {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 700;
}

.brand-mark small {
  display: block;
  margin-top: 2px;
  font-size: 4px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.hero-search {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}

.hero-search button {
  width: 15px;
  height: 15px;
  position: relative;
}

.hero-search button::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 1px;
  top: 1px;
  border: 1.6px solid #009354;
  border-radius: 50%;
}

.hero-search button::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.6px;
  right: 0;
  bottom: 2px;
  background: #009354;
  transform: rotate(45deg);
  transform-origin: center;
}

.hero-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-caption strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 400;
}

.hero-caption span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.95;
}

.hero-caption::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  background: #d9a63b;
}

/* ===== 公共底部 ===== */
.site-footer {
  padding: 26px 20px 20px;
  background: #009354;
  color: #fff;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-emblem {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.footer-logo strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 1px;
}

.footer-logo small {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  line-height: 1;
  text-align: left;
}

.footer-contact {
  margin-top: 22px;
}

.footer-contact p {
  margin-bottom: 11px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
}

.qrcode-list {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 49px;
}

.qrcode-list img {
  width: 41px;
  height: 41px;
  margin: 0 auto;
  background: #fff;
}

.qrcode-list figcaption {
  margin-top: 6px;
  font-size: 8px;
  line-height: 1;
}

/* ===== 新版公共内页头部 ===== */
.mobile-page {
  --inner-unit: min(1px, 0.133333vw);
}

.inner-header {
  position: relative;
  background: #fff;
}

.inner-header .top-bar {
  display: none;
}

.inner-header .page-hero {
  position: relative;
  height: calc(344 * var(--inner-unit));
  overflow: hidden;
  background: #d9edf7;
}

.inner-header .page-hero-image {
  width: 100%;
  height: calc(344 * var(--inner-unit));
  object-fit: cover;
  object-position: center top;
}

.inner-header .hero-tools {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(68 * var(--inner-unit));
  padding: calc(20 * var(--inner-unit)) calc(44 * var(--inner-unit)) 0 calc(42 * var(--inner-unit));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  z-index: 5;
}

.inner-header .brand-mark {
  display: flex;
  align-items: center;
  width: calc(166 * var(--inner-unit));
  height: calc(31 * var(--inner-unit));
  flex-shrink: 0;
}

.inner-header .brand-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.inner-header .hero-search {
  width: calc(184 * var(--inner-unit));
  height: calc(24 * var(--inner-unit));
  margin-left: auto;
  margin-right: calc(24 * var(--inner-unit));
  padding: 0 calc(10 * var(--inner-unit)) 0 calc(16 * var(--inner-unit));
  border: 1px solid rgba(178, 188, 196, 0.9);
  border-radius: calc(13 * var(--inner-unit));
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: none;
  flex-shrink: 0;
}

.inner-header .hero-search input {
  width: calc(142 * var(--inner-unit));
  min-width: 0;
  font-size: calc(12 * var(--inner-unit));
  color: #777;
  background: transparent;
}

.inner-header .hero-search button {
  width: calc(16 * var(--inner-unit));
  height: calc(16 * var(--inner-unit));
  position: relative;
  flex-shrink: 0;
}

.inner-header .hero-search button::before {
  content: "";
  position: absolute;
  width: calc(9 * var(--inner-unit));
  height: calc(9 * var(--inner-unit));
  left: calc(1 * var(--inner-unit));
  top: calc(1 * var(--inner-unit));
  border: calc(1.6 * var(--inner-unit)) solid #555;
  border-radius: 50%;
}

.inner-header .hero-search button::after {
  content: "";
  position: absolute;
  width: calc(6 * var(--inner-unit));
  height: calc(1.6 * var(--inner-unit));
  right: calc(1 * var(--inner-unit));
  bottom: calc(2 * var(--inner-unit));
  background: #555;
  transform: rotate(45deg);
}

.inner-header .menu-toggle {
  width: calc(31 * var(--inner-unit));
  height: calc(24 * var(--inner-unit));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inner-header .menu-toggle img {
  width: calc(29 * var(--inner-unit));
  height: calc(24 * var(--inner-unit));
  max-width: none;
  object-fit: contain;
}

.inner-header .hero-caption {
  position: absolute;
  left: 0;
  right: calc(350 * var(--inner-unit));
  bottom: calc(0 * var(--inner-unit));
  min-height: calc(78 * var(--inner-unit));
  padding: calc(17 * var(--inner-unit)) calc(38 * var(--inner-unit)) calc(12 * var(--inner-unit));
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
  background: linear-gradient(90deg, rgba(0, 147, 84, 0.82) 0%, rgba(0, 147, 84, 0.54) 58%, rgba(0, 147, 84, 0) 100%);
}

.inner-header .hero-caption strong {
  display: block;
  font-size: calc(30 * var(--inner-unit));
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: calc(2 * var(--inner-unit));
}

.inner-header .hero-caption span {
  display: block;
  margin-top: calc(8 * var(--inner-unit));
  font-size: calc(16 * var(--inner-unit));
  line-height: 1;
  opacity: 0.96;
}

.inner-header .hero-caption::after {
  display: none;
}

.inner-header .fold-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(550 * var(--inner-unit));
  min-height: calc(802 * var(--inner-unit));
  padding: calc(34 * var(--inner-unit)) calc(28 * var(--inner-unit)) 0 calc(39 * var(--inner-unit));
  background: #eee;
  z-index: 10;
  transform: translateX(-104%);
  transition: transform 0.3s ease;
}

.inner-header .fold-nav.is-open {
  transform: translateX(0);
}

.inner-header .fold-nav-title {
  width: 100%;
  min-height: calc(72 * var(--inner-unit));
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: calc(28 * var(--inner-unit));
  line-height: 1;
  color: #333;
}

.inner-header .fold-nav-title i {
  width: calc(17 * var(--inner-unit));
  height: calc(17 * var(--inner-unit));
  border-right: calc(2 * var(--inner-unit)) solid #777;
  border-bottom: calc(2 * var(--inner-unit)) solid #777;
  transform: rotate(-45deg);
  margin-right: calc(25 * var(--inner-unit));
}

.inner-header .fold-nav-item.is-open .fold-nav-title i {
  transform: rotate(45deg);
  margin-top: calc(-4 * var(--inner-unit));
}

.inner-header .fold-submenu {
  display: none;
  padding: 0 0 calc(8 * var(--inner-unit));
}

.inner-header .fold-nav-item.is-open .fold-submenu {
  display: block;
}

.inner-header .fold-submenu a {
  display: block;
  margin-bottom: calc(7 * var(--inner-unit));
  font-size: calc(12 * var(--inner-unit));
  line-height: 1.2;
  color: #05905a;
}

/* ===== 患者服务专用内页头部 ===== */
.patient-header .page-hero {
  height: calc(421 * var(--inner-unit));
}

.patient-header .page-hero-image {
  height: calc(421 * var(--inner-unit));
}

.patient-header .patient-hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18 * var(--inner-unit));
  height: calc(118 * var(--inner-unit));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.patient-header .patient-hero-cards {
  width: calc(490 * var(--inner-unit));
  height: calc(118 * var(--inner-unit));
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  background: transparent;
  pointer-events: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.patient-header .patient-hero-cards::-webkit-scrollbar {
  display: none;
}

.patient-header .patient-hero-card {
  flex: 0 0 25%;
  min-width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--inner-unit));
  color: #fff;
  background: rgba(0, 147, 84, 0.88);
  scroll-snap-align: start;
}

.patient-header .patient-hero-card.is-active {
  background: #e9c86c;
  color: #009354;
}

.patient-header .patient-hero-card strong {
  font-size: calc(22 * var(--inner-unit));
  line-height: 1;
  font-weight: 700;
}

.patient-header .patient-card-icon {
  width: calc(42 * var(--inner-unit));
  height: calc(42 * var(--inner-unit));
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient-header .patient-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.patient-header .patient-hero-prev,
.patient-header .patient-hero-next {
  position: absolute;
  top: 50%;
  width: calc(56 * var(--inner-unit));
  height: calc(56 * var(--inner-unit));
  border-radius: 50%;
  background: #009354;
  transform: translateY(-50%);
  pointer-events: auto;
}

.patient-header .patient-hero-prev {
  left: calc(31 * var(--inner-unit));
}

.patient-header .patient-hero-next {
  right: calc(31 * var(--inner-unit));
}

.patient-header .patient-hero-prev::before,
.patient-header .patient-hero-next::before {
  content: "";
  position: absolute;
  top: calc(17 * var(--inner-unit));
  width: calc(18 * var(--inner-unit));
  height: calc(18 * var(--inner-unit));
  border-top: calc(6 * var(--inner-unit)) solid #fff;
  border-right: calc(6 * var(--inner-unit)) solid #fff;
}

.patient-header .patient-hero-prev::before {
  left: calc(21 * var(--inner-unit));
  transform: rotate(-135deg);
}

.patient-header .patient-hero-next::before {
  right: calc(21 * var(--inner-unit));
  transform: rotate(45deg);
}

/* ===== 新版公共底部 ===== */
.site-footer {
  min-height: calc(760 * var(--inner-unit));
  padding: calc(90 * var(--inner-unit)) calc(40 * var(--inner-unit)) calc(48 * var(--inner-unit));
  background:
    linear-gradient(rgba(0, 147, 84, 0.9), rgba(0, 147, 84, 0.9)),
    url("../images/index/hzfw_bg3.png") center bottom / cover no-repeat,
    #009354;
  color: #fff;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: calc(364 * var(--inner-unit));
  height: auto;
}

.footer-emblem,
.footer-logo strong,
.footer-logo small {
  display: none;
}

.footer-contact {
  margin-top: calc(60 * var(--inner-unit));
}

.footer-contact p {
  margin-bottom: calc(26 * var(--inner-unit));
  font-size: calc(24 * var(--inner-unit));
  line-height: 1;
  letter-spacing: calc(2 * var(--inner-unit));
}

.qrcode-list {
  margin-top: calc(42 * var(--inner-unit));
  display: flex;
  justify-content: center;
  gap: calc(118 * var(--inner-unit));
}

.qrcode-list img {
  width: calc(82 * var(--inner-unit));
  height: calc(82 * var(--inner-unit));
  margin: 0 auto;
}

.qrcode-list figcaption {
  margin-top: calc(12 * var(--inner-unit));
  font-size: calc(18 * var(--inner-unit));
  line-height: 1;
}
