/* ===== 合发医疗 - 现代化响应式样式 ===== */
:root {
  --brand: #0a4d8c;
  --brand-2: #00a8e1;
  --ink: #2f3f54;
  --ink-soft: #5b6b7e;
  --bg: #ffffff;
  --muted: #f4f8fb;
  --line: #e4ecf3;
  --accent: #f47b20;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 46, 84, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 46, 84, 0.14);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== 滚动进入动画 ===== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(48px); }
[data-reveal="down"]  { transform: translateY(-48px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 50px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand); background: var(--muted); }
.nav-links li.active a { color: #fff; background: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: clamp(360px, 60vh, 620px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 40, 74, 0.82) 0%, rgba(10, 40, 74, 0.45) 60%, rgba(10, 40, 74, 0.25) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #bfe6f8;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero p {
  font-size: clamp(15px, 2.4vw, 19px);
  color: #e6f2fb;
  max-width: 560px;
  text-wrap: pretty;
}
.hero .btn-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,168,225,.4); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ===== 通用区块 ===== */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brand-2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-2);
  margin: 14px auto 0;
}

/* ===== 关于我们 ===== */
.about { background: var(--muted); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  text-align: justify;
  text-indent: 2rem;
}
.about-text p strong { color: var(--ink); }
.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

/* 承诺 / 理念 / 方针 */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar .num {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 20px; color: var(--brand); margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; }

/* ===== 图片画廊 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  color: #cfd8e3;
  padding: 48px 0 32px;
  text-align: center;
}
.site-footer .foot-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer .foot-info {
  font-size: 14px;
  line-height: 2;
  color: #a9b7c8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  max-width: 1200px;
  margin: 0 auto 18px;
}
.site-footer .foot-info span { white-space: nowrap; }
.site-footer .foot-copy {
  font-size: 13px;
  color: #8496a9;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
}
.site-footer .foot-copy a { color: var(--brand-2); }
.site-footer .foot-copy a:hover { text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-height: 360px; }
  .pillars { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 200px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; border-radius: 10px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== 滚动进入动画 ===== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translate3d(0, 60px, 0); }
[data-reveal="down"]  { transform: translate3d(0, -60px, 0); }
[data-reveal="left"]  { transform: translate3d(-80px, 0, 0); }
[data-reveal="right"] { transform: translate3d(80px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(.85); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 依次进入的延迟 */
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== 栏目大图 Banner ===== */
.page-banner {
  position: relative;
  height: clamp(220px, 32vw, 420px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 40, 74, 0.55) 0%, rgba(10, 40, 74, 0.15) 55%, rgba(10, 40, 74, 0) 100%);
  z-index: 1;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .banner-title {
  color: #fff;
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(10, 40, 74, 0.4);
}
.page-banner .banner-sub {
  color: #dceffa;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ===== 联系方式 ===== */
.contact-lead {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--brand-2);
  margin-bottom: 36px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: transform .2s, background .2s;
}
.contact-item:hover { background: var(--muted); transform: translateX(6px); border-radius: 10px; }
.contact-item .ic {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--ink-soft);
}
.contact-item .ic svg { width: 100%; height: 100%; stroke-width: 1.6; }
.contact-item .label {
  flex: none;
  width: 72px;
  font-size: 17px;
  color: var(--ink-soft);
}
.contact-item .value {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.contact-item a.value:hover { color: var(--brand-2); }

@media (max-width: 560px) {
  .contact-item { gap: 12px; padding: 14px 4px; }
  .contact-item .ic { width: 30px; height: 30px; }
  .contact-item .label { width: 58px; font-size: 15px; }
}

/* ===== 产品中心 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s, border-color .3s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 40, 74, 0.14);
  border-color: transparent;
}
.product-thumb {
  aspect-ratio: 7 / 4;
  background: var(--muted);
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-title {
  padding: 20px 18px;
  text-align: center;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.product-card:hover .product-title { color: var(--brand-2); }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ===== 产品详情 ===== */
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.detail-head h1 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--ink);
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
}
.detail-back:hover { text-decoration: underline; }
.detail-image {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 40, 74, 0.06);
}
.detail-image img {
  display: block;
  width: 100%;
  height: auto;
}
