/* ===================================================================
   养正方长安医药门店资讯站 - 样式表
   配色：医药行业专用的绿色 + 干净白底 + 信任蓝点缀
   =================================================================== */

:root {
  --green-900: #064e3b;
  --green-800: #0a5d4c;
  --green-700: #0e7c66;
  --green-600: #128a73;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --teal-bg: #e6f4f1;
  --blue: #1e6f8e;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.06), 0 1px 2px rgba(6, 78, 59, 0.04);
  --shadow-md: 0 6px 24px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 16px 48px rgba(6, 78, 59, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 70px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--green-900);
  color: #c7e8df;
  font-size: 13px;
  line-height: 34px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .topbar-tip { display: flex; align-items: center; gap: 8px; }
.topbar .topbar-tip .dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 3px rgba(110,231,183,.25); }
.topbar .topbar-contact a { color: #fff; }
.topbar .topbar-contact a:hover { color: #a7f3d0; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.brand-text strong { display: block; font-size: 17px; color: var(--green-900); letter-spacing: .5px; }
.brand-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--green-700); background: var(--green-50); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-700); color: #fff !important;
  padding: 10px 18px; border-radius: 30px; font-weight: 600; font-size: 14px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-cta:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta .phone-icon { font-size: 16px; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); font-size: 20px; color: var(--green-800); }

/* ---------- 通用区块 ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--green-700);
  background: var(--green-50); padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; color: var(--green-900); font-weight: 700; letter-spacing: 1px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.alt-bg { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  align-items: center; padding: 64px 0 72px;
}
.hero-copy { z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--green-800); border: 1px solid var(--green-100);
  padding: 7px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-eyebrow .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); }
.hero h1 {
  font-size: 40px; line-height: 1.25; color: var(--green-900); font-weight: 800; letter-spacing: 1px;
}
.hero h1 em { font-style: normal; color: var(--green-700); }
.hero .lead { margin-top: 18px; font-size: 16px; color: var(--ink-soft); max-width: 560px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 30px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--green-800); border: 1px solid var(--green-100); }
.btn-ghost:hover { background: var(--green-50); transform: translateY(-2px); }

.hero-visual { position: relative; }
.hero-visual .hero-img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.hero-visual .float-card {
  position: absolute; left: -18px; bottom: -22px; background: #fff; border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
}
.hero-visual .float-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--green-50); display: grid; place-items: center; font-size: 20px; }
.hero-visual .float-card b { display: block; font-size: 14px; color: var(--green-900); }
.hero-visual .float-card span { display: block; font-size: 12px; color: var(--muted); }

.hero-bg-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-deco::before, .hero-bg-deco::after { content: ""; position: absolute; border-radius: 50%; filter: blur(8px); }
.hero-bg-deco::before { width: 320px; height: 320px; background: var(--green-50); top: -120px; right: -80px; opacity: .8; }
.hero-bg-deco::after { width: 240px; height: 240px; background: var(--teal-bg); bottom: -100px; left: -60px; opacity: .7; }
.hero .wrap { position: relative; z-index: 1; }

/* ---------- 信任数据条 ---------- */
.stats { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.stat .num small { font-size: 14px; font-weight: 600; opacity: .85; margin-left: 4px; }
.stat .desc { margin-top: 6px; font-size: 13px; color: #b9e3d6; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

/* ---------- 科普文章 ---------- */
.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.article-thumb { position: relative; }
.article-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.article-thumb .tag {
  position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92);
  color: var(--green-800); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 30px;
}
.article-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 17px; color: var(--green-900); line-height: 1.45; }
.article-body .summary { margin-top: 10px; font-size: 14px; color: var(--ink-soft); flex: 1; }
.article-meta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.article-meta .more { color: var(--green-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 药品类目 ---------- */
.cat-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px;
}
.cat-tab {
  padding: 9px 18px; border-radius: 30px; font-size: 14px; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); transition: all .2s; display: inline-flex; align-items: center; gap: 7px;
}
.cat-tab .ic { font-size: 16px; }
.cat-tab:hover { border-color: var(--green-100); color: var(--green-700); }
.cat-tab.active { background: var(--green-700); color: #fff; border-color: var(--green-700); box-shadow: var(--shadow-sm); }

.cat-panel { display: none; }
.cat-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-head img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cat-head h3 { font-size: 22px; color: var(--green-900); }
.cat-head p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; max-width: 720px; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.item-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.item-card:hover { border-color: var(--green-100); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.item-card .it-name { font-weight: 700; color: var(--green-900); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.item-card .it-name::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green-600); }
.item-card .it-desc { margin-top: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

.rx-note {
  margin-top: 24px; background: var(--green-50); border: 1px dashed var(--green-100);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13px; color: var(--green-800);
  display: flex; align-items: flex-start; gap: 10px;
}

/* ---------- 消毒用品 ---------- */
.dis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.dis-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.dis-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--green-700), var(--green-100)); opacity: 0; transition: opacity .25s; }
.dis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.dis-card:hover::after { opacity: 1; }
.dis-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.dis-card h4 { font-size: 16px; color: var(--green-900); }
.dis-card p { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.dis-card .tag { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--green-700); background: var(--green-50); padding: 3px 10px; border-radius: 20px; }

/* ---------- 医疗器械 ---------- */
.dev-intro {
  max-width: 880px; margin: 0 auto 36px; text-align: center; font-size: 15px; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; line-height: 1.8;
}
.dev-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.dev-tab {
  padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); transition: all .2s;
}
.dev-tab .lv { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: var(--bg-soft); margin-left: 6px; color: var(--muted); }
.dev-tab:hover { border-color: var(--green-100); color: var(--green-700); }
.dev-tab.active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.dev-tab.active .lv { background: rgba(255,255,255,.18); color: #c7e8df; }

.dev-panel { display: none; }
.dev-panel.active { display: block; animation: fade .35s ease; }
.dev-feature {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px;
}
.dev-feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.dev-feature .ft-eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--green-700); font-weight: 600; }
.dev-feature h3 { font-size: 24px; color: var(--green-900); margin-top: 6px; }
.dev-feature .risk { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--green-800); background: var(--green-50); padding: 4px 12px; border-radius: 20px; }
.dev-feature p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

.dev-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ---------- 合规提示 ---------- */
.notices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 920px; margin: 0 auto; }
.notice-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.notice-item .ni-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green-50); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.notice-item p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer { background: var(--green-900); color: #c7e8df; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .f-brand .brand-logo { background: rgba(255,255,255,.12); }
.footer .f-brand strong { color: #fff; font-size: 16px; display: block; }
.footer .f-brand span { font-size: 11px; color: #8fc9b6; letter-spacing: 2px; }
.footer p, .footer li { font-size: 13.5px; line-height: 1.9; color: #b9e3d6; }
.footer .f-contact li { display: flex; align-items: center; gap: 10px; }
.footer .f-contact a:hover { color: #fff; }
.footer .f-nav a { display: block; padding: 4px 0; transition: color .2s; }
.footer .f-nav a:hover { color: #fff; padding-left: 4px; }
.f-icp { display: inline-flex; align-items: center; gap: 6px; }
.f-icp:hover { color: #a7f3d0; text-decoration: underline; }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 12.5px; color: #8fc9b6; line-height: 1.9; }
.footer-bottom .sep { margin: 0 8px; opacity: .5; }
.footer-bottom a.f-icp { color: #a7f3d0; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 14px;
  background: var(--green-700); color: #fff; font-size: 20px; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 40;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-800); }

/* ---------- 文章弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 78, 59, 0.45);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px;
  animation: fade .25s ease;
}
.modal {
  position: relative; width: 100%; max-width: 640px; max-height: 85vh; overflow: auto;
  background: #fff; border-radius: 16px; padding: 30px 32px 28px; box-shadow: var(--shadow-lg);
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-soft); font-size: 16px; transition: background .2s, color .2s; }
.modal-x:hover { background: var(--green-50); color: var(--green-700); }
.modal-tag { display: inline-block; font-size: 12px; color: var(--green-700); background: var(--green-50); padding: 4px 12px; border-radius: 20px; }
.modal h3 { margin-top: 12px; font-size: 22px; color: var(--green-900); line-height: 1.4; padding-right: 30px; }
.modal-meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.modal-body { margin-top: 18px; }
.modal-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.9; margin-bottom: 14px; text-indent: 2em; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); }
  .science-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-feature { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 20px 18px; box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 14px; }
  .nav.open .nav-cta { display: inline-flex; justify-content: center; margin-top: 8px; }
}
@media (max-width: 640px) {
  section { padding: 54px 0; }
  .section-head h2 { font-size: 24px; }
  .science-grid { grid-template-columns: 1fr; }
  .notices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 26px; }
  .cat-head img { width: 90px; height: 90px; }
  .wrap { padding: 0 18px; }
  .hero-visual .float-card { left: 0; }
}
