/* ==========================================================================
   涡阳县龙山镇卫生院 — 门户站样式表
   风格取向：沉稳政务蓝 + 编辑感留白（高端、简洁、大气）
   配色主张：整站近白纸面，深海军蓝只做顶栏/页脚与标题，
             单一交互蓝做点缀；发丝线代替重阴影，节奏克制。
   工艺参数：系统字体栈、正文 16px/1.8、标题大而稳、编号与日期用等宽数字、
             圆角分级（4/8/12）、纯 CSS 动效并尊重 prefers-reduced-motion。
   保留不变：公示/动态列表、三栏布局、备案行页脚、零外部依赖（无任何外链）。
   图形均为本站自绘 SVG（logo / molecule / emblem-cross / pulse / hero-medical）。
   ========================================================================== */

:root {
  /* ---- 墨与纸（冷灰中性，不混暖灰） ---- */
  --ink: #16283f;        /* 正文：深海军墨，非纯黑 */
  --ink-2: #3d5268;
  --muted: #52667b;      /* 次要文字，白底 ≥4.5:1 */
  --faint: #5f7288;      /* 元信息（日期、页码） */
  --paper: #ffffff;
  --canvas: #f5f7fa;     /* 页面底：近白冷灰 */
  --tint: #f2f6fa;       /* 浅蓝面：悬停 / 背景 */
  --surface-2: #eef2f7;
  --hair: #e4eaf1;       /* 发丝线 */
  --hair-2: #edf1f6;

  /* ---- 蓝（单一强调色） ---- */
  --navy: #0e2f52;        /* 标题与强调文字 */
  --accent: #175a9f;      /* 交互蓝：链接、按钮、焦点 */
  --accent-strong: #175a9f;
  --navy-3: #e8eef7;      /* 浅蓝底：标签、悬停 */
  --navy-4: #c8d6e6;      /* 浅蓝边框 */

  /* ---- 深海军（顶栏 / 页脚） ---- */
  --deep: #0e2a47;
  --deep-ink: #c3d2e4;
  --deep-muted: #8fa7c0;

  /* ---- 功能色（只用于标识） ---- */
  --teal: #0d6e5e;   --teal-bg: #e6f5f1;
  --crimson: #a92b23; --crimson-bg: #fdeeec;
  --amber: #7c4e0e;   --amber-bg: #fbf2e2;
  --violet: #4536a8;  --violet-bg: #eeedfa;

  /* ---- 圆角谱（分级，不处处同圆角） ---- */
  --r-card: 12px;
  --r-md: 8px;
  --r-sm: 4px;
  --r-pill: 999px;

  /* ---- 阴影谱（冷蓝、轻、方向一致） ---- */
  --shadow-1: 0 1px 2px rgba(14, 42, 71, .05), 0 2px 8px rgba(14, 42, 71, .04);
  --shadow-2: 0 2px 6px rgba(14, 42, 71, .05), 0 16px 40px rgba(14, 42, 71, .08);
  --shadow-3: 0 18px 48px rgba(14, 42, 71, .13);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --fs: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-font="s"] { --fs: 14px; }
html[data-font="m"] { --fs: 16px; }
html[data-font="l"] { --fs: 18.5px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs);
  line-height: 1.8;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: .01em; line-height: 1.4; }
h1, h2 { text-wrap: balance; }

a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

/* ------------------------------ 图标（Tabler Icons / MIT，内联 SVG 用 currentColor 上色） ------------------------------ */
.ico {
  display: inline-block; flex: none;
  width: 1em; height: 1em;
}

/* 上下文尺寸与配色（快捷服务 / 栏目标题 / 页脚 / 404 图形） */
.quick-grid .ico { display: block; width: 26px; height: 26px; margin: 0 auto 10px; color: var(--accent); }
.card-h2 .ico { width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-right: 8px; color: var(--accent); }
.site-foot .links .ico { width: 1em; height: 1em; vertical-align: -.12em; margin-right: 9px; }
.empty-state { text-align: center; }
.empty-state .card-h2 { padding-left: 0; }
.empty-state .card-h2::before { display: none; }
.page-figure { margin: 4px 0 16px; }
.page-figure .ico { width: 54px; height: 54px; color: var(--accent); opacity: .92; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-strong); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0; font-size: .9em; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------ 顶部条（深海军） ------------------------------ */
.topbar {
  background: var(--deep); color: var(--deep-muted); font-size: .8em;
  letter-spacing: .02em;
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: var(--deep-ink); }
.topbar a:hover { color: #fff; }
.topbar-left { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar-sep { opacity: .5; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right a { white-space: nowrap; }
.font-switch { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.font-switch button {
  font: inherit; font-size: .95em; color: var(--deep-ink); background: transparent;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-pill);
  padding: 1px 10px; cursor: pointer; transition: all .16s var(--ease);
}
.font-switch button:hover { border-color: #fff; color: #fff; }
.font-switch button.on { background: #fff; border-color: #fff; color: var(--deep); font-weight: 600; }

/* ------------------------------ 头部 ------------------------------ */
.site-head {
  position: relative; overflow: hidden; background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.site-head::before {
  content: ""; position: absolute; right: -60px; top: -100px; width: 280px; height: 280px;
  background: url(../img/molecule.svg) no-repeat center / contain; pointer-events: none; opacity: .55;
}
.head-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 15px; color: var(--ink); }
.logo img { width: 54px; height: 54px; filter: drop-shadow(0 4px 10px rgba(14, 42, 71, .14)); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo-txt strong { font-size: 1.55em; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.logo-txt em { font-style: normal; font-size: .72em; color: var(--muted); letter-spacing: .32em; margin-top: 4px; }
.head-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.search {
  display: flex; align-items: center; background: #fff;
  border: 1px solid var(--navy-4); border-radius: var(--r-pill); padding: 3px 3px 3px 18px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23, 90, 159, .12); }
.search input {
  border: 0; background: transparent; font: inherit; font-size: .93em; color: var(--ink);
  padding: 9px 0; width: 240px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; }
.search button {
  border: 0; background: var(--accent-strong); color: #fff; font: inherit; font-size: .9em;
  padding: 9px 22px; border-radius: var(--r-pill); cursor: pointer;
  white-space: nowrap; flex: 0 0 auto;
  letter-spacing: .08em; transition: background .16s var(--ease), transform .16s var(--ease);
}
.search button:hover { background: var(--navy); transform: translateY(-1px); }

.hotline { margin: 0; text-align: right; padding-left: 22px; border-left: 1px solid var(--hair); }
.hotline span { display: block; font-size: .7em; color: var(--muted); letter-spacing: .2em; }
.hotline b { font-size: 1.24em; font-weight: 700; color: var(--crimson); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ------------------------------ 主导航（白、吸顶） ------------------------------ */
.mainnav {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-list { display: flex; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav-item > a {
  display: block; color: var(--ink-2); padding: 15px 22px;
  font-size: .97em; letter-spacing: .04em; position: relative;
  transition: color .18s var(--ease);
}
.nav-item > a::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav-item:hover > a { color: var(--navy); }
.nav-item:hover > a::after { transform: scaleX(1); }
.nav-item.active > a { color: var(--navy); font-weight: 600; }
.nav-item.active > a::after { transform: scaleX(1); }
.has-sub { position: relative; }
.sub-arrow { display: none; }
.submenu {
  position: absolute; z-index: 41; margin: 0; padding: 8px; list-style: none;
  background: #fff; min-width: 186px; border-radius: var(--r-md);
  box-shadow: var(--shadow-3); border: 1px solid var(--hair); display: none; top: 100%; left: 6px;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; animation: menuIn .18s var(--ease); }
.submenu a {
  display: block; padding: 10px 14px; color: var(--ink-2); font-size: .92em;
  border-radius: var(--r-sm); transition: background .16s var(--ease), color .16s var(--ease);
}
.submenu a:hover { background: var(--navy-3); color: var(--navy); }

/* 汉堡按钮（默认隐藏，移动端显示） */
.nav-toggle { display: none; }

/* ------------------------------ 首页焦点区（无卡片、留白制胜） ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: #f2f6fb url(../img/longshan-bg.jpg) center / cover no-repeat;
  border-bottom: 1px solid var(--hair);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .78);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 14px; height: 18px;
  background-image: url(../img/pulse-navy.svg); background-repeat: repeat-x;
  background-position: center; background-size: 300px 18px; opacity: .22; pointer-events: none;
}
.hero-in {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .85fr;
  gap: 64px; align-items: center; padding: 56px 24px 72px;
}
.hero-lead > * { animation: rise .7s var(--ease) both; }
.hero-lead > :nth-child(2) { animation-delay: .07s; }
.hero-lead > :nth-child(3) { animation-delay: .14s; }
.hero-lead > :nth-child(4) { animation-delay: .21s; }
.hero-kicker {
  margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px;
  font-size: .76em; letter-spacing: .3em; color: var(--accent); font-weight: 600;
}
.hero-kicker::before { content: ""; width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  margin: 0 0 20px; font-size: 2.7em; font-weight: 700; line-height: 1.22;
  letter-spacing: .01em; color: var(--navy);
}
.hero-sub { margin: 0 0 30px; color: var(--ink-2); font-size: 1.06em; max-width: 36em; line-height: 1.85; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--r-pill);
  font-size: .95em; letter-spacing: .04em; transition: all .18s var(--ease);
}
.btn-primary { background: var(--accent-strong); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(23, 90, 159, .24); }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--navy-4); color: var(--navy); background: rgba(255, 255, 255, .82); }
.btn-ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

/* 右侧信息：编辑感信息列，不用圆角白卡 */
.hero-cards {
  list-style: none; margin: 0; padding: 8px 0 8px 30px; display: grid; gap: 24px;
  border-left: 1px solid var(--navy-4);
  animation: rise .7s var(--ease) .16s both;
}
.hero-cards li { position: relative; }
.hero-cards li::before {
  content: ""; position: absolute; left: -34px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.hero-cards b {
  display: block; font-size: .72em; color: var(--muted); letter-spacing: .26em;
  font-weight: 600; margin-bottom: 5px;
}
.hero-cards span { font-size: 1.22em; color: var(--navy); font-weight: 600; letter-spacing: .02em; }
.hero-cards .hero-main { white-space: nowrap; }
.hero-cards .hero-note { display: block; font-size: .68em; font-weight: 400; color: var(--muted); margin-top: 2px; white-space: nowrap; letter-spacing: .01em; }

/* ------------------------------ 快捷服务（扁平信息带） ------------------------------ */
.quick { background: #fff; border-bottom: 1px solid var(--hair); }
.quick-grid {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr);
}
.quick-grid li { border-right: 1px solid var(--hair-2); }
.quick-grid li:last-child { border-right: 0; }
.quick-grid a {
  display: block; padding: 30px 12px 26px; text-align: center; color: var(--ink);
  position: relative; transition: background .2s var(--ease);
}
.quick-grid a::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent);
  transition: width .24s var(--ease);
}
.quick-grid a:hover { background: var(--tint); }
.quick-grid a:hover::after { width: 44%; }
.quick-grid b { display: block; color: var(--navy); font-size: 1.02em; font-weight: 600; letter-spacing: .04em; margin-bottom: 5px; }
.quick-grid span { display: block; font-size: .78em; color: var(--muted); }

/* ------------------------------ 通用布局 ------------------------------ */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  padding-top: 32px; padding-bottom: 64px; align-items: start;
}
.main-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.card {
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-card);
  box-shadow: var(--shadow-1); padding: 26px 30px; min-width: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hair); padding-bottom: 16px; margin-bottom: 8px;
}
.card-h2 {
  margin: 0; font-size: 1.2em; font-weight: 700; color: var(--ink);
  letter-spacing: .02em; position: relative; padding-left: 15px;
}
.card-h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent);
}
.card-h3 { margin: 0 0 12px; font-size: 1.02em; color: var(--navy); letter-spacing: .04em; }
.card-h {
  margin: 0 0 14px; font-size: .88em; font-weight: 700; color: var(--navy);
  letter-spacing: .14em; padding-left: 12px; border-left: 3px solid var(--accent);
}
.more { font-size: .85em; color: var(--muted); }
.more:hover { color: var(--accent); }
.tabs { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.tabs a {
  display: block; padding: 5px 14px; border-radius: var(--r-pill); font-size: .85em;
  color: var(--muted); background: var(--surface-2); transition: all .16s var(--ease);
}
.tabs a:hover { background: var(--navy-3); color: var(--navy); }
.tabs a.on { background: var(--accent-strong); color: #fff; font-weight: 600; }
.head-tabs .card-h2 { order: 1; }
.head-tabs .more { order: 2; white-space: nowrap; }
.head-tabs .tabs { order: 3; flex-basis: 100%; margin: 0; }

/* ------------------------------ 列表（好扫读） ------------------------------ */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { border-bottom: 1px solid var(--hair-2); }
.newslist li:last-child { border-bottom: 0; }
.newslist a {
  display: flex; align-items: center; gap: 16px; padding: 14px 12px; margin: 0;
  color: var(--ink); border-radius: var(--r-md);
  transition: background .16s var(--ease);
}
.newslist a:hover { background: var(--tint); }
.newslist a:hover .it-title { color: var(--accent-strong); }
.newslist time { order: 1; color: var(--faint); font-size: .86em; font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.it-title { order: 2; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1em; transition: color .16s var(--ease); }
.newslist .badge { order: 3; }
.pin {
  background: var(--crimson); color: #fff; font-size: .68em; font-weight: 500; padding: 2px 8px;
  border-radius: var(--r-pill); margin-right: 8px; vertical-align: 2px; letter-spacing: .06em;
}
.badge {
  font-size: .72em; padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--navy-3); color: var(--navy); white-space: nowrap; letter-spacing: .04em; font-weight: 500;
}
.b-zhaobiao-caigou { background: var(--teal-bg); color: var(--teal); }
.b-jiage-shoufei { background: var(--amber-bg); color: var(--amber); }
.b-renshi-zhaopin { background: var(--violet-bg); color: var(--violet); }
.b-tongzhi-gonggao { background: var(--navy-3); color: var(--navy); }
.b-xingfeng-lianzheng { background: var(--crimson-bg); color: var(--crimson); }
.b-gonggong-weisheng, .b-jiankang-kepu { background: var(--teal-bg); color: var(--teal); }
.empty { color: var(--muted); padding: 24px 4px; text-align: center; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 24px 0 6px; flex-wrap: wrap; }
.pager a {
  min-width: 38px; text-align: center; padding: 6px 10px; border: 1px solid var(--hair);
  border-radius: var(--r-md); font-size: .88em; color: var(--muted);
  font-variant-numeric: tabular-nums; transition: all .16s var(--ease);
}
.pager a:hover { border-color: var(--navy-4); background: var(--surface-2); color: var(--navy); }
.pager a.on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; font-weight: 600; }

/* 防 grid 被 nowrap 内容撑破（移动端横向溢出的根因） */
.main-col, .side, .card, .minilist, .quicklist, .newslist, .quick-grid, .ph-grid, .foot-grid { min-width: 0; }

/* ------------------------------ 详情/单页 ------------------------------ */
.article { position: relative; overflow: hidden; padding: 34px 44px 28px; }
.article::after {
  content: ""; position: absolute; right: -40px; top: 24px; width: 190px; height: 190px;
  background: url(../img/emblem-cross.svg) no-repeat center / contain; opacity: .18; pointer-events: none;
}
.article > * { position: relative; }
.article h1 {
  margin: 0 0 18px; font-size: 1.72em; font-weight: 700; line-height: 1.5;
  letter-spacing: .01em; text-align: center; color: var(--ink); text-wrap: balance;
}
.art-meta {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center;
  color: var(--muted); font-size: .86em;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: 13px 0; margin-bottom: 28px;
}
.art-tools button {
  font: inherit; font-size: .92em; background: var(--surface-2); color: var(--accent-strong);
  border: 1px solid var(--navy-4); border-radius: var(--r-pill);
  padding: 4px 16px; cursor: pointer; transition: all .16s var(--ease);
}
.art-tools button:hover { background: var(--navy-3); border-color: var(--accent); }
.art-body { font-size: 1em; }
.art-body h2 {
  font-size: 1.16em; font-weight: 700; color: var(--navy); margin: 30px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--accent); letter-spacing: .02em;
}
.art-body h4 { font-size: 1em; margin: 20px 0 8px; color: var(--ink-2); font-weight: 600; }
.art-body h3 { font-size: 1.05em; margin: 22px 0 10px; color: var(--ink-2); }
.art-body p { margin: 0 0 16px; text-align: justify; line-height: 1.9; }
.art-body ul, .art-body ol { margin: 0 0 16px; padding-left: 1.5em; }
.art-body li { margin-bottom: 7px; }
.art-body blockquote {
  margin: 0 0 16px; padding: 14px 18px; background: var(--surface-2);
  border-left: 4px solid var(--navy-4); color: var(--ink-2); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.art-body code { background: var(--hair-2); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: var(--r-md); border: 1px solid var(--hair); }
.art-body table { border-collapse: collapse; width: 100%; font-size: .95em; }
.art-body th, .art-body td { border-bottom: 1px solid var(--hair); padding: 10px 14px; text-align: left; }
.art-body th { background: var(--tint); color: var(--navy); font-weight: 600; white-space: nowrap; }
.attach {
  margin: 26px 0; padding: 16px 20px; background: var(--surface-2);
  border: 1px solid var(--hair); border-radius: var(--r-card);
}
.attach h3 { margin: 0 0 10px; font-size: .96em; color: var(--navy); letter-spacing: .04em; }
.attach ul { margin: 0; padding-left: 1.3em; }
.attach li { margin-bottom: 5px; }
.art-nav {
  display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--hair);
  padding-top: 16px; margin-top: 26px; font-size: .9em; color: var(--muted); flex-wrap: wrap;
}
.art-nav a { color: var(--ink-2); }
.art-nav a:hover { color: var(--accent-strong); }
.art-note { margin: 18px 0 0; font-size: .85em; color: var(--muted); line-height: 1.8; border-top: 1px dashed var(--hair); padding-top: 13px; }

.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--hair); }
.breadcrumb ol {
  list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0 auto;
  padding: 13px 24px; max-width: var(--wrap); font-size: .86em; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.breadcrumb li:last-child { color: var(--ink-2); }

/* ------------------------------ 侧栏 ------------------------------ */
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; position: sticky; top: 16px; }
.side .card { padding: 22px; }
.minilist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.quicklist { list-style: none; margin: 0; padding: 0; }
.minilist li, .quicklist li { border-bottom: 1px solid var(--hair-2); }
.minilist li:last-child, .quicklist li:last-child { border-bottom: 0; }
.minilist a, .quicklist a {
  display: block; padding: 11px 8px; font-size: .92em; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: var(--r-sm); transition: all .16s var(--ease);
}
.minilist a:hover, .quicklist a:hover { background: var(--surface-2); color: var(--accent-strong); padding-left: 12px; }
.quicklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.quicklist a { border-bottom: 1px solid var(--hair-2); }
.side-tel { margin: 0 0 13px; display: flex; flex-direction: column; }
.side-tel b { color: var(--crimson); font-size: 1.18em; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.side-tel span { font-size: .76em; color: var(--muted); letter-spacing: .16em; }
.side-addr { margin: 0; font-size: .88em; color: var(--muted); padding-top: 13px; border-top: 1px solid var(--hair-2); line-height: 1.75; }

/* ------------------------------ 公共卫生板块 ------------------------------ */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 12px; }
.ph-grid a {
  display: block; padding: 22px 20px; border: 1px solid var(--hair); border-radius: var(--r-card);
  background: var(--paper); color: var(--ink); position: relative;
  transition: all .2s var(--ease); box-shadow: var(--shadow-1);
}
.ph-grid a::before {
  content: ""; position: absolute; left: 20px; top: 0; width: 32px; height: 3px;
  border-radius: 0 0 2px 2px; background: var(--teal);
}
.ph-grid a:hover { border-color: var(--navy-4); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.ph-grid b { display: block; color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.ph-grid span { font-size: .87em; color: var(--muted); line-height: 1.75; }

.notice-bar { background: var(--amber-bg); border-top: 1px solid #f0e3c8; border-bottom: 1px solid #f0e3c8; }
.notice-bar .wrap { display: flex; gap: 16px; padding: 15px 24px; font-size: .92em; align-items: baseline; }
.notice-bar b { white-space: nowrap; letter-spacing: .14em; color: var(--amber); border-right: 1px solid #e7d8b8; padding-right: 16px; }

/* ------------------------------ 搜索页 ------------------------------ */
.search-big input { width: 100%; min-width: 220px; }
.search-result { padding-top: 16px; }
.search-result .hit { border-bottom: 1px solid var(--hair-2); padding: 16px 12px; border-radius: var(--r-md); transition: background .16s var(--ease); }
.search-result .hit:hover { background: var(--surface-2); }
.search-result .hit:last-child { border-bottom: 0; }
.search-result .hit h4 { margin: 0 0 6px; font-size: 1.02em; font-weight: 600; }
.search-result .hit p { margin: 0; color: var(--muted); font-size: .9em; line-height: 1.75; }
.search-result .hit .meta { font-size: .8em; color: var(--faint); }

/* ------------------------------ 网站地图 ------------------------------ */
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 16px; }
.map-col h3 { margin: 0 0 12px; font-size: .96em; color: var(--navy); border-bottom: 1px solid var(--hair); padding-bottom: 10px; }
.map-col ul { list-style: none; margin: 0; padding: 0; }
.map-col li { padding: 5px 0; font-size: .9em; }

/* ------------------------------ 页脚（深海军，大气收尾） ------------------------------ */
.site-foot {
  position: relative; background: var(--deep); color: var(--deep-muted);
  border-top: 1px solid var(--deep); margin-top: 0; overflow: hidden;
}
.site-foot::before {
  content: ""; display: block; height: 16px;
  background-image: url(../img/pulse-navy.svg); background-repeat: repeat-x;
  background-position: center; background-size: 300px 16px; opacity: .16;
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 40px; padding: 40px 24px 36px; }
.site-foot h3 { margin: 0 0 18px; font-size: .82em; color: #fff; letter-spacing: .22em; font-weight: 600; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 5px 0; font-size: .9em; line-height: 1.75; }
.site-foot a { color: var(--deep-ink); }
.site-foot a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 24px 32px; font-size: .82em; line-height: 1.9; color: var(--deep-muted); }
.copyright p { margin: 4px 0; }
.copyright a { color: var(--deep-ink); }
.copyright a:hover { color: #fff; }

.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--navy-4); background: #fff; color: var(--navy); font-size: 1.05em;
  cursor: pointer; box-shadow: var(--shadow-2); display: none; transition: all .2s var(--ease);
}
.to-top:hover { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); transform: translateY(-2px); }
.to-top.show { display: block; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid li:nth-child(3n) { border-right: 0; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding: 0; }
  .hero-in { grid-template-columns: 1fr; padding: 44px 20px 68px; gap: 36px; }
  .hero h1 { font-size: 2em; }
  .hero-cards { border-left: 0; padding-left: 0; gap: 16px; }
  .hero-cards li::before { display: none; }
  .head-in { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .head-right { width: 100%; justify-content: space-between; }
  .search { flex: 1; padding-left: 13px; }
  .search input { width: 100%; min-width: 0; font-size: .86em; }
  .search button { padding: 9px 15px; letter-spacing: .03em; }
  .hotline { text-align: left; padding-left: 0; border-left: 0; }
  .mainnav { position: static; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: #fff; color: var(--navy); border: 0; border-bottom: 1px solid var(--hair);
    font: inherit; font-size: .98em; font-weight: 600; padding: 15px 20px; cursor: pointer;
    letter-spacing: .1em;
  }
  .bars { position: relative; width: 20px; height: 14px; }
  .bars span {
    position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px;
    background: var(--navy); transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .bars span:nth-child(1) { top: 0; }
  .bars span:nth-child(2) { top: 6px; }
  .bars span:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-list { display: none; flex-direction: column; border-bottom: 1px solid var(--hair); background: #fff; }
  .nav-list.open { display: flex; max-height: calc(100vh - 112px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-list.open .nav-item { animation: navIn .34s var(--ease) both; }
  .nav-list.open .nav-item:nth-child(2) { animation-delay: .04s; }
  .nav-list.open .nav-item:nth-child(3) { animation-delay: .08s; }
  .nav-list.open .nav-item:nth-child(4) { animation-delay: .12s; }
  .nav-list.open .nav-item:nth-child(5) { animation-delay: .16s; }
  .nav-list.open .nav-item:nth-child(6) { animation-delay: .2s; }
  .nav-list.open .nav-item:nth-child(7) { animation-delay: .24s; }
  .nav-item > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--hair-2); }
  .nav-item > a::after { display: none; }
  .nav-item.active > a { box-shadow: inset 3px 0 0 var(--accent); background: var(--tint); }
  .sub-arrow { display: inline-block; margin-left: auto; font-size: .8em; color: var(--faint); transition: transform .2s var(--ease); }
  .nav-item.open .sub-arrow { transform: rotate(180deg); }
  .submenu { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; background: var(--tint); padding: 0; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .nav-item.open .submenu { display: block; }
  .submenu a { color: var(--ink-2); padding: 11px 36px; font-size: .9em; border-radius: 0; }
  .submenu a:hover { background: #fff; color: var(--accent-strong); }
  .ph-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .article { padding: 26px 20px 20px; }
  .article h1 { font-size: 1.42em; }
  .it-title { white-space: normal; }
  .newslist a { flex-wrap: wrap; gap: 8px 12px; }
  .newslist .it-title { order: 1; flex-basis: 100%; }
  .newslist time { order: 2; }
  .newslist .badge { order: 3; }
}

@media (max-width: 560px) {
  .topbar { font-size: .74em; }
  .topbar-in { gap: 8px; }
  .topbar-org, .topbar-sep, .topbar-right a { display: none; }
  .font-switch button { padding: 1px 8px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid li:nth-child(3n) { border-right: 1px solid var(--hair-2); }
  .quick-grid li:nth-child(2n) { border-right: 0; }
  .sitemap { grid-template-columns: 1fr; }
  .logo-txt strong { font-size: 1.32em; }
  .logo-txt em { letter-spacing: .18em; }
  .article h1 { font-size: 1.3em; }
  .notice-bar .wrap { flex-direction: column; gap: 6px; }
  .notice-bar b { border-right: 0; padding-right: 0; }
  .side .card { padding: 18px; }
  .hero-in { padding: 36px 16px 56px; }
  .hero h1 { font-size: 1.78em; }
  .card { padding: 20px 18px; }
}

/* ------------------------------ 动效与无障碍 ------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------ 打印（公示、价格表常需打印张贴） ------------------------------ */
@media print {
  .topbar, .site-head, .mainnav, .site-foot, .side, .breadcrumb, .to-top,
  .art-tools, .pager, .notice-bar, .search, .hero::after, .ico { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { border: 0; box-shadow: none; padding: 0; border-radius: 0; background: #fff; }
  .layout { display: block; padding: 0; margin: 0; }
  .article::after { display: none; }
  .article { padding: 0; }
  .article h1 { text-align: center; font-size: 16pt; }
  .art-meta { justify-content: center; border: 0; }
  .art-body h2 { border-left: 0; padding-left: 0; }
  .table-wrap { border: 0; overflow: visible; }
  a { color: #000; }
  .attach { background: #fff; border: 1px solid #ccc; }
}
