/* 夕飞扬养老 官网静态样式 - 互联网药品（医疗器械）信息服务 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --teal: #0e7c86;
  --teal-dark: #0a5d64;
  --teal-light: #e6f4f5;
  --orange: #e8833a;
  --orange-light: #fdf1e7;
  --text: #2b2b2b;
  --text-light: #666;
  --line: #e3e8ea;
  --bg: #f6f8f8;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(14, 124, 134, .08);
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部提示条 ===== */
.topbar {
  background: var(--teal-dark);
  color: #d7eef0;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfe9eb; }

/* ===== 头部导航 ===== */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #16a0aa);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-text .name { font-size: 21px; font-weight: 700; color: var(--teal-dark); letter-spacing: 1px; }
.logo-text .sub { font-size: 12px; color: var(--text-light); letter-spacing: .5px; }
nav.main-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
nav.main-nav a {
  display: block; padding: 9px 15px; border-radius: 8px;
  color: #3d4b4d; font-size: 15.5px; font-weight: 500;
}
nav.main-nav a:hover { background: var(--teal-light); color: var(--teal); }
nav.main-nav a.active { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--teal); cursor: pointer; }

/* ===== 首页横幅 ===== */
.hero {
  background: linear-gradient(135deg, #0e7c86 0%, #139aa4 55%, #2bb3bd 100%);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hero::before {
  content: ""; position: absolute; right: 120px; bottom: -160px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { font-size: 40px; line-height: 1.3; margin-bottom: 18px; letter-spacing: 2px; }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badge {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px; border-radius: 30px; font-size: 14px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 30px;
  font-size: 16px; font-weight: 600; transition: .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d6722c; color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 60px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; color: var(--teal-dark); margin-bottom: 12px; }
.section-head p { color: var(--text-light); font-size: 16px; }
.section-head .bar { width: 54px; height: 4px; background: var(--orange); border-radius: 2px; margin: 14px auto 0; }

/* ===== 卡片栅格 ===== */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: .2s; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(14,124,134,.14); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--teal-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--teal-dark); }
.card p { font-size: 14.5px; color: var(--text-light); }

/* ===== 横幅信息条 ===== */
.notice-strip {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 16px 22px; border-radius: 8px; margin: 30px 0;
  font-size: 15px; color: #7a4a1f;
}
.notice-strip strong { color: #b35c14; }

/* ===== 器械展示 ===== */
.device-toolbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  padding: 8px 22px; border-radius: 30px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 15px; color: var(--text);
}
.filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.device-card { display: flex; flex-direction: column; }
.device-card .device-icon {
  height: 120px; border-radius: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--teal-light), #f2fafb);
  display: flex; align-items: center; justify-content: center;
}
.device-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 4px;
  font-weight: normal; vertical-align: middle;
}
.tag-c1 { background: #e8f5e9; color: #2e7d32; }
.tag-c2 { background: #fff3e0; color: #e07b00; }
.tag-c3 { background: #fde8e8; color: #c62828; }
.device-meta { font-size: 13.5px; color: var(--text-light); margin: 8px 0; }
.device-meta b { color: var(--text); font-weight: 600; }
.device-card .detail-toggle {
  margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.device-detail { display: none; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.device-card.open .device-detail { display: block; }
.device-detail h4 { font-size: 14.5px; color: var(--teal); margin: 10px 0 4px; }
.device-detail p { font-size: 13.5px; }

/* ===== 健康指标 ===== */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric {
  background: var(--white); border-radius: var(--radius); padding: 24px 18px;
  text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.metric .value { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.metric .label { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.metric .unit { font-size: 13px; color: #999; }
.metric .range { font-size: 12.5px; color: var(--text-light); margin-top: 8px; }

/* ===== 文章/时间线 ===== */
.article-list { display: grid; gap: 18px; }
.article-item {
  background: var(--white); border-radius: var(--radius); padding: 24px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.article-item h3 { font-size: 18px; color: var(--teal-dark); margin-bottom: 8px; }
.article-item .meta { font-size: 13px; color: #999; margin-bottom: 10px; }
.article-item p { font-size: 15px; color: var(--text-light); }

/* ===== 内页头 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), #139aa4);
  color: #fff; padding: 48px 0;
}
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { opacity: .9; }
.breadcrumb { font-size: 13.5px; opacity: .85; margin-top: 10px; }
.breadcrumb a { color: #d7eef0; }

/* ===== 正文排版 ===== */
.prose { max-width: 900px; margin: 0 auto; }
.prose h2 { font-size: 23px; color: var(--teal-dark); margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--orange); }
.prose h3 { font-size: 18px; margin: 22px 0 8px; color: var(--text); }
.prose p { margin-bottom: 12px; color: #3d3d3d; }
.prose ul, .prose ol { margin: 0 0 14px 24px; }
.prose li { margin-bottom: 7px; }
.content-card {
  background: var(--white); border-radius: var(--radius);
  padding: 42px 48px; box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* ===== 关于信息表 ===== */
.info-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 13px 18px; text-align: left; font-size: 15px; }
.info-table th { background: var(--teal-light); color: var(--teal-dark); width: 170px; font-weight: 600; }

/* ===== 联系信息 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 34px 28px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card .icon { margin: 0 auto 16px; }
.contact-card h3 { margin-bottom: 10px; color: var(--teal-dark); }
.contact-card p { color: var(--text-light); font-size: 15px; }

/* ===== 步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 22px 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ===== 页脚 ===== */
footer.site-footer { background: #0a474c; color: #b9d4d6; padding: 52px 0 0; margin-top: 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.4fr; gap: 34px; padding-bottom: 38px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #b9d4d6; }
.footer-grid a:hover { color: #fff; }
.footer-about p { margin-bottom: 10px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0; text-align: center; font-size: 13.5px; color: #8fb9bc;
  line-height: 2;
}
.footer-bottom a { color: #8fb9bc; }
.footer-bottom .cert-note { color: #d8b98a; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .grid-4, .metric-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 10px 20px 18px; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 2px; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2, .metric-grid, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .content-card { padding: 26px 20px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 26px; }
  .section { padding: 42px 0; }
  .info-table th { width: 110px; }
}
