/* 病不毒官网样式 —— 无外部字体与 CDN 依赖 */
:root {
  --navy: #1b2c6e;
  --navy-dark: #121f52;
  --navy-soft: #e9edf8;
  --red: #c8202a;
  --ink: #1f2430;
  --muted: #5d6475;
  --line: #dde2ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 31, 82, 0.08);
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; color: var(--navy-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

/* 页头 */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-dark); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.25rem; letter-spacing: .08em; }
.brand-text small { font-size: .75rem; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { background: var(--navy-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; background: var(--navy-soft); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy-dark); content: ""; transition: transform .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .js .nav-toggle { display: block; }
  .site-nav { width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .js .site-nav { display: none; padding-bottom: 12px; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* 面包屑 */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0; margin: 0; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: #a0a6b4; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; border: 2px solid var(--navy); line-height: 1.4; }
.btn:hover { background: var(--navy-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }
.btn-light { background: #fff; color: var(--navy-dark); border-color: #fff; }
.btn-light:hover { background: var(--navy-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: 6px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; }

/* 首页主视觉 */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #2c4aa8); color: #fff; padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.eyebrow { display: inline-block; font-size: .85rem; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; margin-bottom: 14px; }

.stats { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 8px; }
.stat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-list li { border-left: 4px solid var(--red); padding: 4px 14px; }
.stat-list strong { display: block; font-size: 1.35rem; color: var(--navy-dark); }
.stat-list span { font-size: .9rem; color: var(--muted); }
.stat-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* 区块 */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { position: relative; padding-left: 14px; }
.section-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--red); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-lead { color: var(--muted); max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.chip-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--navy-soft); color: var(--navy-dark); border-radius: 999px; padding: 4px 14px; font-size: .92rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px; }

.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 36px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .lead { color: rgba(255,255,255,.88); margin: 8px 0 0; }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-media img { object-fit: contain; }
.card-body { padding: 16px 18px 18px; }
.card-body h2, .card-body h3 { font-size: 1.08rem; margin-bottom: .4em; }
.card-body h2 a, .card-body h3 a { color: var(--navy-dark); }
.card-body p { color: var(--muted); font-size: .94rem; margin-bottom: .6em; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.tag { background: var(--navy-soft); color: var(--navy); border-radius: 4px; padding: 1px 8px; font-size: .8rem; }

/* 文章 */
.article { max-width: 860px; }
.article-header { padding-top: 12px; margin-bottom: 20px; }
.article-header .lead { color: var(--muted); font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: 8px; border: 1px solid var(--line); margin: 0 auto; }
figcaption { font-size: .875rem; color: var(--muted); text-align: center; margin-top: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--navy-soft); color: var(--navy-dark); white-space: nowrap; }
.note { background: #fff8e6; border-left: 4px solid #f2a900; padding: 12px 16px; border-radius: 6px; margin: 1.2em 0; font-size: .95rem; }
.note-muted { background: var(--bg-alt); border-left-color: var(--navy); color: var(--muted); }
.toc { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.toc p { font-weight: 600; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.article-ref { font-size: .9rem; color: var(--muted); }
.back { margin-top: 24px; }
.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }

/* 视频 */
.media-video { margin: 1.2em 0; }
.media-video video { width: 100%; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-cell .media-video { margin: 0; }

/* 产品 */
.product-hero { padding: 40px 0; background: var(--bg-alt); }
.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.product-hero-media img { border-radius: var(--radius); background: #fff; }

/* 新闻 */
.media-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.media-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.media-item h3 { margin-bottom: .3em; }
.media-item p { margin-bottom: .4em; }

/* 常见问题 */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h2 { font-size: 1.12rem; margin-bottom: .4em; }
.faq-item h2::before { content: "问"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: .85rem; vertical-align: 2px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.15rem; margin-bottom: .2em; }
.contact-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.contact-card dt { color: var(--muted); white-space: nowrap; }
.contact-card dd { margin: 0; }
.contact-qr img { max-width: 220px; margin: 8px auto; }
.contact-qr p { font-size: .9rem; color: var(--muted); text-align: center; }

/* 行动号召 */
.cta { background: var(--navy-dark); color: #fff; padding: 40px 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 页脚 */
.site-footer { background: #0e173d; color: #c9cee0; font-size: .92rem; padding-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 32px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; padding-bottom: 24px; font-size: .82rem; }
.footer-bottom a { margin-left: 8px; }
.disclaimer { color: #9aa2bd; }

.notfound { text-align: center; padding: 40px 16px; }
.notfound .actions { justify-content: center; }

/* 平板 */
@media (max-width: 900px) {
  .hero-inner, .two-col, .product-hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .stat-list { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .video-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 手机 */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .card-grid, .card-grid-2, .video-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-list strong { font-size: 1.1rem; }
  .section { padding: 36px 0; }
  .brand-text small { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  th { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
