/* 启微眼科官网 · 全站样式
   品牌色：主色 #15A689（品牌青绿，取自 QIWEI EYE logo）｜辅助色 #2BB793（亮薄荷绿，仅用于资质徽章与证据数字）
   断点：768px / 1024px / 1280px */
:root {
  --primary: #15A689;
  --primary-dark: #0D7F68;
  --accent: #2BB793;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1A1D21;
  --muted: #5A6472;
  --border: #E3E8EF;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(26, 29, 33, .06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 10px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px 1.4em; }
li { margin-bottom: 6px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 8px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  min-width: 0;
}
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  flex: 0 0 auto;
}
.brand small { font-size: .68rem; font-weight: 400; color: var(--muted); display: block; line-height: 1.5; letter-spacing: .01em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  color: var(--text); font-size: .95rem; border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg); color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }

.nav-toggle {
  display: none; min-width: 44px; min-height: 44px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 8px 12px 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; }
}
@media (max-width: 768px) {
  .brand small { display: none; }
}

/* ============ 面包屑 ============ */
.breadcrumb { padding: 14px 0 0; font-size: .88rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ============ 首屏 ============ */
.hero {
  background: linear-gradient(135deg, #E6F6F0 0%, #F5F9F7 60%);
  padding: 56px 0 48px;
}
.hero .kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(21, 166, 137, .12); color: var(--primary);
  font-size: .85rem; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { font-size: 1.9rem; margin-bottom: 14px; max-width: 46em; }
.hero .sub { color: var(--muted); font-size: 1.05rem; max-width: 44em; margin-bottom: 18px; }
.hero .quote-block {
  background: var(--card); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; box-shadow: var(--shadow);
  font-size: .95rem; max-width: 56em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ============ 按钮与徽章 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 10px; font-size: .98rem; font-weight: 600;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #E6F6F0; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: rgba(21, 166, 137, .12); color: var(--primary);
}
.badge-blue { background: rgba(21, 166, 137, .1); color: var(--primary-dark); }
.badge-muted { background: var(--bg); color: var(--muted); }

/* ============ 区块 ============ */
.section { padding: 48px 0; }
.section-head { margin-bottom: 24px; }
.section-head .note { color: var(--muted); font-size: .95rem; }

/* ============ 卡片 ============ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* 证据卡 */
.evidence-card { text-align: left; }
.evidence-card .num { font-size: 1.05rem; font-weight: 700; color: var(--accent); word-break: break-all; }
.evidence-card .label { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.evidence-card .src { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 600; }

/* 服务卡 */
.service-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: #E6F6F0; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card .icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.service-card .meta { font-size: .88rem; color: var(--muted); margin: 8px 0 12px; }
.service-card .link { font-weight: 600; }

/* 内容卡（科普/新闻） */
.post-card .date { font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.post-card h3 { margin-bottom: 8px; }
.post-card h2, .service-card h2 { font-size: 1.15rem; margin: 0 0 10px; font-weight: 700; }
.post-card .excerpt { color: var(--muted); font-size: .93rem; }
.post-card .tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 占位图块 */
.ph-block {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #E6F6F0, #DFF2E9);
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; margin-bottom: 14px;
}
.ph-block svg { width: 56px; height: 56px; stroke: var(--primary); fill: none; stroke-width: 1.5; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td .src-note { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ============ FAQ 折叠 ============ */
details.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow);
}
details.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 16px 18px; min-height: 44px;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); font-weight: 400; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .answer { padding: 0 18px 16px; color: var(--text); }
details.faq-item .answer .lead { font-weight: 600; }

/* ============ 提示块 ============ */
.notice {
  border-radius: var(--radius); padding: 14px 18px; margin: 16px 0;
  font-size: .92rem;
}
.notice-gray { background: var(--card); border: 1px dashed var(--border); color: var(--muted); }
.notice-green { background: rgba(21, 166, 137, .08); border: 1px solid rgba(21, 166, 137, .3); }
.notice-red { background: rgba(214, 69, 69, .06); border: 1px solid rgba(214, 69, 69, .3); color: #8A2D2D; }

.disclaimer {
  font-size: .85rem; color: var(--muted);
  border-top: 1px dashed var(--border); margin-top: 24px; padding-top: 14px;
}

/* ============ 时间轴 ============ */
.timeline { list-style: none; margin: 0 0 14px; padding-left: 22px; border-left: 2px solid var(--border); }
.timeline li { position: relative; margin-bottom: 16px; padding-left: 14px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.timeline .t-date { font-weight: 700; color: var(--primary); margin-right: 8px; }
.timeline .t-note { display: block; font-size: .86rem; color: var(--muted); }

/* ============ CTA ============ */
.cta-box {
  background: linear-gradient(135deg, #0D7F68, #15A689);
  color: #fff; border-radius: var(--radius);
  padding: 28px; text-align: center; margin: 32px 0;
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .88); }
.cta-box .tel { font-size: 1.5rem; font-weight: 700; letter-spacing: .5px; }
.cta-box .btn-outline { border-color: #fff; color: #fff; background: transparent; margin-top: 14px; }
.cta-box .btn-outline:hover { background: rgba(255, 255, 255, .15); }

/* ============ 页脚 ============ */
.site-footer { background: #14202E; color: #B8C4D0; margin-top: 40px; padding: 40px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 28px; margin-bottom: 24px; }
.footer-qr { text-align: center; }
.footer-qr img { width: 108px; height: 108px; display: block; margin: 0 auto 8px; border: 4px solid #fff; border-radius: 8px; background: #fff; }
.footer-qr p { margin: 0; font-size: .85rem; line-height: 1.5; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #B8C4D0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: .82rem; color: #7E8C9B; }
.footer-legal .disclaimer-line { margin-bottom: 6px; }
.footer-legal .icp-record { margin-bottom: 6px; }
.footer-legal .icp-record a { color: #9FB0C0; text-decoration: none; letter-spacing: .02em; }
.footer-legal .icp-record a:hover { color: #FFFFFF; text-decoration: underline; }

/* ============ 工具类 ============ */
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
