/* ============================================================
   公积金政策指南 - 共享样式
   Light theme / responsive / SEO-friendly
   ============================================================ */

:root {
  --brand:        #0b5cab;
  --brand-dark:   #084486;
  --brand-light:  #e8f1fb;
  --accent:       #0e9488;
  --accent-light: #e5f6f3;
  --warn:         #b54708;
  --warn-bg:      #fff7e6;
  --danger:       #b42318;
  --danger-bg:    #fff1f0;
  --ink:          #1a2736;
  --ink-2:        #46566b;
  --muted:        #73849a;
  --line:         #e3e9f0;
  --bg:           #f5f8fc;
  --card:         #ffffff;
  --shadow:       0 6px 24px rgba(16, 42, 78, .07);
  --shadow-sm:    0 2px 10px rgba(16, 42, 78, .06);
  --radius:       14px;
  --radius-sm:    9px;
  --maxw:         1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin: .35em 0; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Layout ---------- */
.container { width: min(var(--maxw), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.section { padding: 3.4rem 0; }
.section-sm { padding: 2.2rem 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; color: var(--brand-dark); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 800;
  box-shadow: 0 3px 10px rgba(11,92,171,.28);
}
.site-nav { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: .45rem .7rem; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b5cab 0%, #0e7e9b 55%, #0e9488 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.10), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 4.2rem 0 4.6rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: center; }
.hero-copy .tag { max-width: 780px; }
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead { font-size: 1.12rem; max-width: 720px; color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero-badges div { font-size: .9rem; color: rgba(255,255,255,.92); }
.hero-badges b { display: block; font-size: 1.5rem; color: #fff; }
/* Hero 二维码卡片 */
.hero-qr { justify-self: center; text-align: center; }
.hero-qr-card {
  background: #fff; border-radius: 16px; padding: 1rem 1rem .85rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.22); display: inline-block;
}
.hero-qr-card img { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
.hero-qr-text { margin-top: .5rem; line-height: 1.4; }
.hero-qr-text strong { display: block; color: var(--ink); font-size: .98rem; }
.hero-qr-text span { display: block; color: var(--ink-2); font-size: .82rem; }
.hero-qr-desc { text-align: center; line-height: 1.55; font-size: .78rem !important; color: var(--ink-2) !important; }
.hero-qr-note { color: rgba(255,255,255,.82); font-size: .78rem; margin: .7rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.25rem; border-radius: 9px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { background: #f0f6ff; color: var(--brand-dark); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdcec; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.25rem; margin-bottom: .9rem; background: var(--brand-light); color: var(--brand);
}
.card-icon.green { background: var(--accent-light); color: var(--accent); }
.card-foot { margin-top: .9rem; color: var(--brand); font-weight: 600; font-size: .92rem; }

.feature-card { text-align: left; }
.topic-card { display: flex; flex-direction: column; min-height: 100%; }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: 1.9rem; }
.sec-head h2 { margin-bottom: .4rem; }
.sec-head p { color: var(--ink-2); margin: 0; max-width: 700px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .55rem;
}

/* ---------- Article / content ---------- */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.article h2 { margin-top: 1.9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--brand-light); }
.article h3 { margin-top: 1.4rem; color: var(--brand-dark); }
.article p, .article li { color: var(--ink-2); }
.article ul li::marker, .article ol li::marker { color: var(--brand); }
.page-head { margin-bottom: 1.6rem; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); margin-bottom: .55rem; }
.page-head .lead { font-size: 1.08rem; color: var(--ink-2); }
.meta-line { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 540px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.3rem 0; border-left: 4px solid; }
.callout p:last-child { margin-bottom: 0; }
.callout-tip { background: var(--accent-light); border-color: var(--accent); color: #06594f; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn); color: #7a3405; }
.callout-danger { background: var(--danger-bg); border-color: var(--danger); color: #7a1d16; }
.callout-info { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }
.callout strong { display: block; margin-bottom: .25rem; }
.callout-danger strong { color: var(--danger); }
.callout-warn strong { color: var(--warn); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.2rem 0; }
.steps li {
  position: relative; padding: .9rem 0 .9rem 3.2rem; margin: 0; border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .8rem; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}
.steps li b { color: var(--ink); }

/* ---------- FAQ / Accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .7rem; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 1rem 3rem 1rem 1.1rem; font-size: 1rem; font-weight: 600; color: var(--ink);
  position: relative; font-family: inherit; line-height: 1.5;
}
.faq-q::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1;
}
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 1.1rem 1.1rem; color: var(--ink-2); }
.faq-item.open .faq-a { display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 1.4rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .4rem; }

/* ---------- Sidebar / TOC ---------- */
.layout-with-side { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.side-card h3 { font-size: 1rem; margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { margin: .5rem 0; }
.side-card a { font-size: .92rem; color: var(--ink-2); display: block; padding-left: .7rem; border-left: 2px solid transparent; }
.side-card a:hover { color: var(--brand); border-left-color: var(--brand); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0b5cab, #0e9488); color: #fff; border-radius: var(--radius); padding: 2.2rem; text-align: center; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1c2f; color: #b9c6d6; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .98rem; margin-bottom: .9rem; }
.footer-grid a { color: #b9c6d6; font-size: .9rem; display: block; margin: .45rem 0; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: .9rem; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; font-size: .84rem; color: #8fa0b5; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Source list ---------- */
.source-list { font-size: .88rem; color: var(--muted); }
.source-list li { margin: .3rem 0; word-break: break-all; }

/* ---------- Tag ---------- */
.tag { display: inline-block; font-size: .78rem; padding: .15rem .6rem; border-radius: 20px; background: var(--brand-light); color: var(--brand-dark); font-weight: 600; margin: 0 .3rem .3rem 0; }
.tag.new { background: #fff0e6; color: #b54708; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-with-side { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem;
    flex-direction: column; align-items: flex-start; gap: .9rem; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { padding: 3rem 0 3.4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-qr-card img { max-width: 220px; }
  .section { padding: 2.4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 1.6rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .article { border: 0; box-shadow: none; padding: 0; }
}


/* ---------- 微信二维码区块 ---------- */
.qr-card {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; box-shadow: var(--shadow-sm);
}
.qr-card img {
  width: auto; height: 180px; object-fit: contain; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.qr-card h3 { margin-bottom: .3rem; }
.qr-card p { margin: 0 0 .35rem; color: var(--ink-2); font-size: .95rem; }
.qr-note { font-size: .82rem !important; color: var(--muted) !important; }
.qr-mini { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; text-align: center; }
.qr-mini img { width: auto; height: 170px; margin: 0 auto .6rem; border: 1px solid var(--line); border-radius: 8px; }
.qr-mini p { font-size: .8rem; color: var(--muted); margin: 0; }
