/* ===========================================================
   广西千林大药房有限公司 官网样式
   设计基调：医药零售的洁净感 + 广西山水的温润绿
   =========================================================== */

:root {
  --ink: #10201d;
  --ink-soft: #2f4340;
  --muted: #5f7270;
  --green: #0e7a63;
  --green-deep: #0a5b4a;
  --green-soft: #eaf5f1;
  --green-glow: rgba(14, 122, 99, 0.14);
  --gold: #b0803c;
  --line: #e3ebe8;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --bg-deep: #0c1f1c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 29, 0.05), 0 6px 18px rgba(16, 32, 29, 0.04);
  --shadow-md: 0 10px 40px rgba(16, 32, 29, 0.08);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--bg-deep);
  color: #cfe3dd;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 36px; flex-wrap: wrap;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar .topbar-right { color: #9fb8b2; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px var(--green-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 15px; color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: var(--green-soft); color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--green-deep); font-weight: 600; background: var(--green-soft); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 8px; padding: 10px 18px;
  border-radius: 999px;
  background: var(--green); color: #fff !important;
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -10%, var(--green-soft) 0%, transparent 62%),
    linear-gradient(180deg, #fbfdfc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: center; padding: 88px 0 80px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--green-deep); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.28; letter-spacing: -0.01em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px var(--green-glow); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }

.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md);
}
.trust-card h2 { font-size: 15px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.trust-list { margin-top: 18px; display: grid; gap: 16px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; }
.trust-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--green-soft); display: grid; place-items: center;
  color: var(--green-deep);
}
.trust-list b { display: block; font-size: 15px; }
.trust-list span { font-size: 13.5px; color: var(--muted); }
.trust-note {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; }
.section-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--green); text-transform: uppercase;
}
.section-head h2 {
  margin: 12px 0 14px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 15.5px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe3dc; }
.card-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--green-soft); color: var(--green-deep);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* 分栏介绍 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-body h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; margin-bottom: 18px; }
.split-body p { color: var(--muted); margin-bottom: 14px; }
.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checklist svg { flex: none; margin-top: 3px; color: var(--green); }

.stat-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-panel div { background: #fff; padding: 26px 24px; }
.stat-panel b { display: block; font-size: 15px; margin-bottom: 4px; }
.stat-panel span { font-size: 13.5px; color: var(--muted); }

/* 地区标签 */
.region-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.region-list li {
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.region-list li b { color: var(--green-deep); }

/* 文章列表 */
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.article {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.article time { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.article h3 { font-size: 16.5px; line-height: 1.5; }
.article p { font-size: 14px; color: var(--muted); }

/* 表格 */
.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td { color: var(--muted); }
td b { color: var(--ink); font-weight: 600; }

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0d3a31 100%);
  color: #eaf5f1; border-radius: var(--radius-lg);
  padding: 52px 48px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; color: #fff; }
.cta-band p { color: #b8d4cc; margin-top: 10px; font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: #eaf5f1; }

/* 提示框 */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius);
  background: #fdf8ef; border: 1px solid #f0e2c8;
  color: #6b5528; font-size: 14.5px;
}
.notice svg { flex: none; margin-top: 2px; color: var(--gold); }

/* 页脚 */
.site-footer { background: var(--bg-deep); color: #a9c2bb; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #7f9b94; }
.footer-about { margin-top: 18px; font-size: 14px; line-height: 1.9; color: #93ada7; max-width: 32em; }
.footer-col h3 { color: #fff; font-size: 14px; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 600; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #a9c2bb; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 28px; font-size: 13px; color: #7f9b94;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .filings { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* 页面头部（内页） */
.page-head {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--green-deep); }
.page-head h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.3; font-weight: 800; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 40em; }

/* 文档排版（内页正文） */
.prose { max-width: 860px; }
.prose h2 {
  font-size: 22px; margin: 40px 0 14px; padding-left: 14px;
  border-left: 3px solid var(--green); line-height: 1.5;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; gap: 16px;
}
.contact-item .card-ico { margin-bottom: 0; }
.contact-item h3 { font-size: 15px; margin-bottom: 6px; }
.contact-item p { font-size: 14.5px; color: var(--muted); }

/* 动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 60px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .article-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .nav {
    position: fixed; inset: 112px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 18px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: grid; }
  .section { padding: 60px 0; }
  .cards, .article-list, .contact-grid, .stat-panel { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .page-head { padding: 44px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
