:root {
  --bg: #0b1120;
  --panel: #111a2e;
  --line: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --radius: 14px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
.mobile-consult { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .desktop-consult { display: none; }
  .mobile-consult { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #0b1120; border-top: 1px solid #334155; }
  .mobile-consult a { flex: 1; min-height: 44px; display: flex; justify-content: center; align-items: center; border: 1px solid #f59e0b; border-radius: 10px; color: #fbbf24; }
  .mobile-consult a:last-child { background: #f59e0b; color: #0b1120; font-weight: 700; }
  #consult { scroll-margin-top: 84px; }
  .poster-modal { z-index: 50; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,17,32,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; max-width: 1600px; padding: 0 16px; }
.logo { display: flex; align-items: center; flex-shrink: 0; gap: 12px; color: #fff; font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif; font-weight: 700; font-size: 18px; line-height: 28px; letter-spacing: -.025em; white-space: nowrap; text-decoration: none !important; }
.logo-image { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }
.logo-text { color: #fff; }
@media (min-width: 640px) {
  .header-inner { padding: 0 24px; }
  .logo { font-size: 20px; line-height: 28px; }
  .logo-image { width: 40px; height: 40px; }
}
@media (min-width: 1024px) {
  .header-inner { height: 80px; padding: 0 32px; }
  .logo { font-size: 24px; line-height: calc(4 / 3); }
  .logo-image { width: 56px; height: 56px; }
}
@media (min-width: 1280px) { .logo { font-size: 28px; } }
.site-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-nav a { color: #cbd5e1; padding: 6px 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; background: #1e293b; text-decoration: none; }
.header-phone { color: #0f172a; background: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav-toggle { display: none; font-size: 22px; cursor: pointer; margin-left: auto; }

.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .5; }

.list-head h1 { font-size: 34px; margin: 8px 0 8px; color: #fff; }
.list-head p { color: var(--muted); max-width: 760px; margin: 0 0 20px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.cats a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: #cbd5e1; font-size: 14px; }
.cats a[aria-current] { background: var(--accent); border-color: var(--accent); color: #0f172a; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: #334155; }
.card-cover img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.card h3 { margin: 8px 0 6px; font-size: 18px; line-height: 1.45; }
.card h3 a { color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #1e293b; color: #cbd5e1; font-size: 12px; }
.tag-strong { background: var(--accent); color: #0f172a; font-weight: 700; }
.empty { color: var(--muted); padding: 40px 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: #cbd5e1; }
.pager span[aria-current] { background: var(--accent); color: #0f172a; border-color: var(--accent); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.article-head h1 { font-size: 34px; line-height: 1.35; margin: 14px 0 12px; color: #fff; }
.lead { font-size: 17px; color: #cbd5e1; margin: 0 0 14px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.hero-img { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.hero-img img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.sharebar { display: flex; align-items: center; gap: 8px; margin: 18px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sharebar button { border: 1px solid #334155; background: transparent; color: #e2e8f0; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.sharebar button:hover { border-color: var(--accent); color: var(--accent-2); }
.sharebar-bottom { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; }
.risk { border: 1px solid #b45309; background: rgba(180,83,9,.12); color: #fde68a; padding: 12px 16px; border-radius: 10px; margin: 20px 0; font-size: 14px; }
.case-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.case-box dt { color: var(--muted); font-size: 12px; }
.case-box dd { margin: 0; font-size: 14px; }
.case-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: -8px 0 20px; }
.case-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; }

.prose { font-size: 16.5px; color: #dbe3ee; }
.prose h2 { font-size: 24px; color: #fff; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.4; }
.prose h3 { font-size: 19px; color: #fff; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose strong { color: #fff; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); max-height: 640px; width: auto; margin: 0 auto; }
.prose figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 18px 0; padding: 12px 16px; background: #0f1a30; border-left: 4px solid #38bdf8; border-radius: 8px; color: #cbd5e1; }
.prose blockquote p { margin: 4px 0; }
.prose code { background: #1e293b; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.prose pre { background: #0f172a; padding: 14px; border-radius: 10px; overflow: auto; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid #263248; padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: #15213a; color: #fff; }
.flow { list-style: none; padding: 0 !important; margin: 24px 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.flow li { position: relative; display: flex; gap: 10px; background: linear-gradient(160deg, #15213a, #0f172a); border: 1px solid #263248; border-radius: 12px; padding: 14px; margin: 0 !important; }
.flow-no { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0f172a; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.flow b { color: #fff; display: block; line-height: 1.5; }
.flow p { margin: 4px 0 0 !important; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.sources { margin-top: 24px; font-size: 13px; color: var(--muted); }
.sources h2 { font-size: 14px; color: #cbd5e1; margin: 0 0 6px; }
.sources ul { margin: 0; padding-left: 18px; }

.side { position: sticky; top: 84px; display: grid; gap: 20px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc h2 { font-size: 15px; margin: 0 0 8px; color: #fff; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin: 6px 0; }
.toc a { color: #cbd5e1; }
.toc a.active { color: var(--accent-2); font-weight: 700; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
.side-card img { border-radius: 10px; cursor: zoom-in; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; background: var(--accent); color: #0f172a; border: 0; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 15px; text-decoration: none !important; }
.btn-ghost { background: transparent; color: #e2e8f0; border: 1px solid #334155; }

.related { margin: 56px 0 0; }
.related h2 { font-size: 22px; color: #fff; }
.cta { margin: 56px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: linear-gradient(135deg, #1c1508, #111a2e 60%); border: 1px solid #3b2f12; border-radius: 20px; padding: 32px; }
.cta h2 { color: #fff; margin: 0 0 10px; font-size: 24px; }
.cta p { color: #cbd5e1; }
.cta-phone a { font-weight: 800; font-size: 18px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form input, .lead-form textarea { background: #0b1120; border: 1px solid #334155; border-radius: 10px; color: #fff; padding: 10px 12px; font: inherit; font-size: 14px; }
.lead-form textarea, .lead-form button, .lead-form .form-tip { grid-column: 1 / -1; }
.lead-form button { background: var(--accent); color: #0f172a; font-weight: 800; border: 0; border-radius: 10px; padding: 12px; cursor: pointer; font-size: 15px; }
.lead-form button[disabled] { opacity: .6; cursor: wait; }
.form-tip { margin: 0; font-size: 13px; min-height: 1em; }
.form-tip.ok { color: #4ade80; }
.form-tip.err { color: #f87171; }

.poster-modal { position: fixed; inset: 0; z-index: 50; background: rgba(2,6,23,.82); display: grid; place-items: center; padding: 20px; }
.poster-modal[hidden] { display: none; }
.poster-box { position: relative; background: #0f172a; border: 1px solid #334155; border-radius: 18px; padding: 18px; max-width: 420px; width: 100%; max-height: 96vh; overflow: auto; text-align: center; }
.poster-box img { border-radius: 12px; margin: 0 auto; max-height: 70vh; width: auto; }
.poster-box p { font-size: 13px; color: var(--muted); margin: 12px 0; }
.poster-actions { display: flex; gap: 10px; justify-content: center; }
.poster-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #0f172a; border: 1px solid #334155; color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 60; font-size: 14px; }
.preview-bar { background: #b45309; color: #fff; text-align: center; padding: 6px; font-size: 13px; }
.notfound { padding: 60px 20px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: #070c18; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; padding: 40px 20px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer p { margin: 6px 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.footer-links a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 20px; font-size: 12px; }
.footer-bottom a { color: var(--muted); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-card { display: none; }
  .cta { grid-template-columns: 1fr; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cats { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .cats a { flex-shrink: 0; }
  .article-head h1, .list-head h1 { font-size: 26px; }
  .lead-form { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 80px); overflow-y: auto; background: #0b1120; flex-direction: column; flex-wrap: nowrap; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); }
  #nav-toggle:checked ~ .site-nav { display: flex; }
  .header-phone { display: none; }
}
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.cats a small { margin-left: 6px; font-size: 12px; opacity: .7; }
.empty .cats { margin-top: 16px; }
.lead-form .form-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.lead-form .form-note a { color: var(--accent); }
.privacy .prose { max-width: 760px; }
.store-list { margin: 32px 0; }
.store-list h2 { font-size: 22px; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.store-card .card-body { padding-top: 16px; }
.link-list { padding-left: 18px; line-height: 2; }
