/* 一生长伴（石家庄）健康管理有限公司 — 站点样式 */
:root {
  --teal: #0f766e;
  --teal-d: #0b5b55;
  --teal-l: #14b8a6;
  --teal-soft: #e6f4f1;
  --ink: #16211f;
  --ink-2: #3d4b48;
  --ink-3: #6b7a77;
  --line: #e2e9e7;
  --bg: #f4f8f7;
  --card: #ffffff;
  --amber: #b45309;
  --amber-soft: #fdf6e7;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 58, 52, .06);
  --shadow-2: 0 8px 28px rgba(16, 58, 52, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* 顶部信息条 */
.topbar {
  background: linear-gradient(90deg, var(--teal-d), var(--teal));
  color: #eafaf7;
  font-size: 13px;
}
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 36px; }
.topbar-tag {
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 12px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.topbar-note { opacity: .88; flex: 1; min-width: 220px; }
.topbar-tel { white-space: nowrap; font-weight: 600; letter-spacing: .2px; }

/* 头部 */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; }
.brand-mark { display: flex; }
.brand-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .2px;
  color: var(--teal-d);
  max-width: 460px;
}
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background .16s, color .16s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--teal-soft); color: var(--teal-d); }
.site-nav a.on { background: var(--teal); color: #fff; font-weight: 600; }
.nav-toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; width: 42px; height: 38px; padding: 9px 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-2); margin: 3px 0; border-radius: 2px; }

/* 主视觉 */
.hero { background: linear-gradient(160deg, #e9f6f3 0%, #f4f8f7 62%, #f7f4ef 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; padding: 52px 20px 46px; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.35; margin: 0 0 14px; letter-spacing: .5px; color: #0d3b36; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { margin: 0 0 24px; color: var(--ink-3); font-size: 15.5px; max-width: 560px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-points span {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 13px; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow);
}
.search-box { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2); max-width: 520px; }
.search-box input { flex: 1; border: 0; padding: 14px 16px; font-size: 15px; outline: none; color: var(--ink); background: transparent; }
.search-box button {
  border: 0; background: var(--teal); color: #fff; padding: 0 26px; font-size: 15px;
  font-weight: 600; cursor: pointer; letter-spacing: 1px;
}
.search-box button:hover { background: var(--teal-d); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: var(--shadow-2); width: 100%; max-width: 330px;
}
.hero-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--teal-d); letter-spacing: .5px; }
.hero-card .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.hero-card li b { color: var(--teal); font-weight: 600; }

/* 区块 */
.section { padding: 46px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; font-size: 23px; letter-spacing: .5px; }
.sec-head h2 i { display: inline-block; width: 6px; height: 20px; background: var(--teal); border-radius: 3px; margin-right: 10px; vertical-align: -2px; }
.sec-head p { margin: 6px 0 0 16px; color: var(--ink-3); font-size: 13.5px; }
.sec-more { font-size: 13.5px; color: var(--teal); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }

/* 分类宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #cfe6e1; }
.cat-card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.cat-card h3 { margin: 0 0 3px; font-size: 16px; }
.cat-card p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; min-height: 42px; }
.cat-card .num { margin-top: 10px; font-size: 12.5px; color: var(--teal); font-weight: 600; }

/* 药品卡 */
.drug-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.drug-grid.wide { grid-template-columns: repeat(3, 1fr); }
.drug-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.drug-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #cfe6e1; }
.drug-card .tagline { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.badge {
  font-size: 11.5px; padding: 1px 8px; border-radius: 20px; letter-spacing: .2px;
  background: var(--teal-soft); color: var(--teal-d); border: 1px solid #d3ebe6;
}
.badge.rx { background: #fdeeee; color: #a13a3a; border-color: #f6d9d9; }
.badge.cat { background: #f1f4f3; color: var(--ink-3); border-color: var(--line); }
.drug-card h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.45; }
.drug-card h3 a:hover { color: var(--teal); }
.drug-card .desc { margin: 0; font-size: 13.2px; color: var(--ink-3); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.drug-card .foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.drug-card .foot .go { color: var(--teal); font-weight: 600; }

/* 提示条 */
.notice-band { background: var(--amber-soft); border: 1px solid #f3e3c4; border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; }
.notice-band .n-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #f0dcb9; display: flex; align-items: center; justify-content: center; color: var(--amber); font-weight: 700; }
.notice-band strong { display: block; color: #7a4a08; margin-bottom: 4px; font-size: 14.5px; }
.notice-band p { margin: 0; color: #7a5b2c; font-size: 13.4px; line-height: 1.7; }

/* 正文内容 */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumb a:hover { color: var(--teal); }
.crumb span { margin: 0 6px; opacity: .55; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: .4px; }
.page-head .lead { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; max-width: 820px; }

/* 详情页 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 28px 0 52px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.panel-head h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.4; }
.panel-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-body { padding: 8px 26px 26px; }
.drug-intro { background: var(--teal-soft); border-radius: 10px; padding: 14px 16px; color: #0d4a44; font-size: 14px; margin: 18px 0 4px; line-height: 1.75; }
.field { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.field:last-child { border-bottom: 0; }
.field h3 { margin: 0 0 9px; font-size: 15.5px; color: var(--teal-d); display: flex; align-items: center; gap: 8px; }
.field h3::before { content: ''; width: 4px; height: 15px; background: var(--teal-l); border-radius: 2px; display: inline-block; }
.field p { margin: 0 0 6px; color: var(--ink-2); font-size: 14.3px; line-height: 1.85; }
.field p:last-child { margin-bottom: 0; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 15.5px; color: var(--teal-d); }
.kv { list-style: none; margin: 0; padding: 0; font-size: 13.6px; }
.kv li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.kv li:last-child { border-bottom: 0; }
.kv li b { flex: 0 0 68px; color: var(--ink-3); font-weight: 500; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { padding: 7px 0; font-size: 13.8px; border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-links a:hover { color: var(--teal); }
.warn-box { background: var(--amber-soft); border: 1px solid #f3e3c4; border-radius: 10px; padding: 14px 16px; color: #7a5b2c; font-size: 13.2px; line-height: 1.75; }

/* 筛选 */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; box-shadow: var(--shadow); }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.filter-row + .filter-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.filter-row .lbl { font-size: 13.5px; color: var(--ink-3); margin-right: 4px; }
.chip { font-size: 13.5px; padding: 5px 13px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink-2); background: #fafcfb; }
.chip:hover { border-color: #cfe6e1; color: var(--teal-d); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.mini-search { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.mini-search input { border: 0; padding: 8px 12px; font-size: 13.5px; outline: none; width: 200px; }
.mini-search button { border: 0; background: var(--teal-soft); color: var(--teal-d); padding: 0 15px; font-size: 13.5px; cursor: pointer; font-weight: 600; }
.result-tip { font-size: 13.5px; color: var(--ink-3); margin: 0 0 16px; }
.result-tip b { color: var(--teal); }

/* 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 34px 0 6px; }
.pg-btn { min-width: 38px; text-align: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13.5px; color: var(--ink-2); }
.pg-btn:hover { border-color: var(--teal-l); color: var(--teal); }
.pg-btn.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.pg-gap { color: var(--ink-3); padding: 0 2px; }
.pg-info { font-size: 13px; color: var(--ink-3); margin-left: 6px; }

/* 文章 */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 28px 0 52px; align-items: start; }
.article-body { padding: 26px 30px 34px; }
.article-body h2 { font-size: 18px; margin: 26px 0 10px; color: var(--teal-d); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 12px; font-size: 14.6px; line-height: 1.9; color: var(--ink-2); }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); font-size: 14.6px; line-height: 1.9; }
.article-body li { margin-bottom: 6px; }
.article-meta { font-size: 13px; color: var(--ink-3); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.list-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row a { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.list-row a:hover { color: var(--teal); }
.list-row .t { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* 双栏通用 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.info-block h3 { margin: 0 0 12px; font-size: 17px; color: var(--teal-d); }
.info-block p { margin: 0 0 10px; font-size: 14.4px; color: var(--ink-2); line-height: 1.85; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.3px; color: var(--ink-2); }
.info-list li:last-child { border-bottom: 0; }
.info-list li b { flex: 0 0 76px; color: var(--ink-3); font-weight: 500; }

/* 页脚 */
.site-foot { background: #0d2723; color: #b9cdc8; margin-top: 10px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; padding: 40px 20px 32px; }
.foot-col h4 { margin: 0 0 14px; font-size: 15px; color: #eaf3f1; letter-spacing: .3px; }
.foot-about h4 { font-size: 15.5px; }
.foot-about p { margin: 0; font-size: 13.2px; line-height: 1.85; color: #96adaa; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; font-size: 13.4px; }
.foot-links li, .foot-contact li { margin-bottom: 9px; line-height: 1.6; color: #96adaa; }
.foot-links a:hover { color: #fff; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .09); }
.foot-bar-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 15px 20px; font-size: 12.8px; color: #8aa29e; }
.foot-bar-in a { color: #8aa29e; }
.foot-bar-in a:hover { color: #fff; }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* 响应式 */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 26px; padding: 38px 20px; }
  .hero h1 { font-size: 27px; }
  .cat-grid, .drug-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .article-wrap { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-note { display: none; }
  .head-in { min-height: 62px; gap: 12px; flex-wrap: wrap; }
  .brand-text { font-size: 15px; max-width: 220px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; order: 5; width: 100%; flex-direction: column; gap: 2px;
    padding: 6px 0 12px; border-top: 1px solid var(--line); margin-left: 0;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 11px 20px; border-radius: 0; font-size: 15px; }
  .site-nav a.on { background: var(--teal-soft); color: var(--teal-d); }
  .hero h1 { font-size: 23px; }
  .drug-grid, .drug-grid.wide, .cat-grid { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; }
  .mini-search { margin-left: 0; width: 100%; }
  .mini-search input { flex: 1; width: auto; }
  .panel-body { padding: 6px 18px 20px; }
  .panel-head { padding: 18px; }
  .article-body { padding: 20px 18px 26px; }
  .foot-in { grid-template-columns: 1fr; padding: 32px 20px 24px; }
  .notice-band { flex-direction: column; gap: 10px; }
}

/* 药品图片 */
.drug-thumb { display:block; width:100%; aspect-ratio: 4 / 3; overflow:hidden; border-radius:10px; background:#f2f7f6; margin-bottom:14px; }
.drug-thumb img { width:100%; height:100%; object-fit:contain; display:block; transition: transform .25s; }
.drug-card:hover .drug-thumb img { transform: scale(1.04); }
.drug-card.has-img { padding:14px; }
.drug-hero { display:flex; gap:22px; align-items:flex-start; margin:18px 0 4px; }
.drug-hero .pic { flex:0 0 190px; border-radius:12px; overflow:hidden; background:#f4f9f8; border:1px solid var(--line); }
.drug-hero .pic img { width:100%; height:auto; display:block; }
.drug-hero .txt { flex:1; min-width:0; }
@media (max-width:720px){ .drug-hero { flex-direction:column; } .drug-hero .pic { flex:none; width:200px; } }
