/* 户口查询网 — 设计系统（浅色主题） */
:root{
  --blue:#14539f; --blue2:#1d63d1; --blue-soft:#eaf2fc; --blue-line:#cfe0f5;
  --orange:#e8862a; --orange-soft:#fff3e6;
  --red:#d92d20; --red-soft:#fdecea; --green:#0f9d58; --green-soft:#e8f7ef;
  --ink:#1c2b3a; --ink2:#4a5b6d; --muted:#7a8998; --line:#e4e9ef;
  --bg:#f5f8fc; --card:#fff; --radius:14px; --shadow:0 4px 18px rgba(20,83,159,.07);
  --max:1180px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"PingFang SC","Microsoft YaHei","Hiragino Sans GB",Arial,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.7; font-size:16px;
  -webkit-text-size-adjust:100%; overflow-x:hidden;
}
a{color:var(--blue2); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto; display:block}
.wrap{width:min(var(--max),92%); margin:0 auto}
h1,h2,h3,h4{line-height:1.35; margin:0 0 .5em}

/* 顶部通栏公告（原样保留：户口资讯便民查询） */
.notice{background:linear-gradient(90deg,#14539f,#1d63d1); color:#fff; font-size:14px}
.notice .wrap{display:flex; align-items:center; gap:10px; padding:8px 0}
.notice .dot{width:8px;height:8px;border-radius:50%;background:#ffd27a;flex:none;box-shadow:0 0 0 4px rgba(255,210,122,.2)}
.notice b{font-weight:600}

/* 页头 */
.site-head{background:var(--card); border-bottom:1px solid var(--line)}
.head-inner{display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 0}
.brand{display:flex; align-items:center; gap:12px; min-width:0}
.brand img{height:50px; width:auto; flex:none}
.brand .bn{font-size:22px; font-weight:800; color:var(--blue); letter-spacing:.5px; white-space:nowrap}
.brand .bn small{display:block; font-size:11px; font-weight:500; color:var(--muted); letter-spacing:1.5px}
.nav-toggle{display:none; background:none; border:1px solid var(--line); border-radius:9px; padding:8px 10px; cursor:pointer}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--ink);margin:4px 0}
.nav-links{display:flex; gap:4px; flex-wrap:wrap; align-items:center}
.nav-links a{padding:8px 12px; border-radius:8px; color:var(--ink2); font-size:15px; font-weight:500}
.nav-links a:hover{background:var(--blue-soft); color:var(--blue); text-decoration:none}
.nav-links a.on{background:var(--blue); color:#fff}

/* Hero */
.hero{position:relative; overflow:hidden; color:#fff;
  background:
    radial-gradient(1000px 380px at 85% -10%,rgba(232,134,42,.35),transparent 60%),
    linear-gradient(135deg,#0f3f78 0%,#14539f 55%,#1d63d1 100%);
}
.hero::before{content:"";position:absolute;inset:0;opacity:.12;
  background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);
  background-size:38px 38px; -webkit-mask-image:linear-gradient(180deg,#000,transparent 85%); mask-image:linear-gradient(180deg,#000,transparent 85%)}
.hero .wrap{position:relative; padding:52px 0 58px}
.hero h1{font-size:38px; font-weight:800; letter-spacing:.5px; margin-bottom:14px}
.hero h1 em{font-style:normal; color:#ffd27a}
.hero p{font-size:17px; color:#e4eefb; max-width:660px; margin:0 0 26px}
.searchbar{display:flex; gap:8px; max-width:620px; background:#fff; padding:7px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.15)}
.searchbar input{flex:1; min-width:0; border:0; outline:0; padding:10px 12px; font-size:15px; color:var(--ink); border-radius:8px}
.searchbar button{border:0; background:var(--orange); color:#fff; font-weight:700; padding:10px 22px; border-radius:8px; cursor:pointer; white-space:nowrap}
.searchbar button:hover{background:#d5761f}
.hot-tags{margin-top:14px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13px; color:#cfe0f5}
.hot-tags a{color:#fff; background:rgba(255,255,255,.14); padding:4px 10px; border-radius:20px}
.hot-tags a:hover{background:rgba(255,255,255,.26); text-decoration:none}

/* 通用区块 */
section{padding:34px 0}
.sec-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap}
.sec-head h2{font-size:25px; font-weight:800; color:var(--ink)}
.sec-head h2 .bar{display:inline-block; width:5px; height:22px; background:var(--orange); border-radius:3px; margin-right:10px; vertical-align:-3px}
.sec-head p{margin:0; color:var(--muted); font-size:14px}

/* 决策工具 */
.decide{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:24px}
.decide-grid{display:grid; grid-template-columns:1fr 340px; gap:22px}
.chips{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.chip{border:1.5px solid var(--blue-line); background:#fff; border-radius:12px; padding:16px 12px; cursor:pointer; text-align:center; transition:.15s}
.chip:hover{border-color:var(--blue2); transform:translateY(-2px); box-shadow:var(--shadow)}
.chip.sel{border-color:var(--blue2); background:var(--blue-soft)}
.chip svg{width:30px;height:30px;stroke:var(--blue);fill:none;stroke-width:1.8;margin:0 auto 8px}
.chip b{display:block; font-size:15px; color:var(--ink)}
.chip span{display:block; font-size:12px; color:var(--muted); margin-top:3px}
.result{border-radius:12px; padding:18px; background:var(--blue-soft); border:1px solid var(--blue-line); align-self:start}
.result .rt{font-size:14px; color:var(--ink2)}
.result .rb{font-size:20px; font-weight:800; color:var(--blue); margin:6px 0 12px}
.result.ok .rb{color:var(--green)} .result.warn .rb{color:var(--orange)}
.result ol{margin:0 0 14px; padding-left:20px; color:var(--ink2); font-size:14px}
.result ol li{margin:3px 0}
.result a.btn{display:inline-block; background:var(--blue); color:#fff; padding:9px 16px; border-radius:8px; font-weight:600; font-size:14px}
.result a.btn:hover{background:var(--blue2); text-decoration:none}

/* 卡片网格 */
.grid{display:grid; gap:16px}
.g-2{grid-template-columns:repeat(2,1fr)}
.g-3{grid-template-columns:repeat(3,1fr)}
.g-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); transition:.15s}
.card:hover{transform:translateY(-3px); box-shadow:0 10px 26px rgba(20,83,159,.12)}
.card h3{font-size:17px; color:var(--ink); margin-bottom:8px}
.card h3 a{color:var(--ink)}
.card h3 a:hover{color:var(--blue2)}
.card p{color:var(--ink2); font-size:14px; margin:0 0 12px}
.meta{color:var(--muted); font-size:12.5px; display:flex; gap:12px; flex-wrap:wrap}
.scene .ic{width:40px;height:40px;border-radius:10px;background:var(--blue-soft);display:grid;place-items:center;margin-bottom:12px}
.scene .ic svg{width:22px;height:22px;stroke:var(--blue);fill:none;stroke-width:2}

/* 列表 */
.list-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow)}
.news-item{display:block; padding:15px 20px; border-bottom:1px solid var(--line); color:var(--ink)}
.news-item:last-child{border-bottom:0}
.news-item:hover{background:var(--blue-soft); text-decoration:none}
.news-item .t{font-size:16px; font-weight:600; color:var(--ink)}
.news-item .s{color:var(--ink2); font-size:13.5px; margin:4px 0 0}

/* 警示条 / 提示 */
.alert{border-radius:12px; padding:16px 18px; margin:0 0 18px; font-size:14.5px; border:1px solid}
.alert b{display:block; margin-bottom:4px; font-size:15px}
.n-info{background:var(--blue-soft); border-color:var(--blue-line); color:#1a4b86}
.n-warn{background:var(--orange-soft); border-color:#f6d5ac; color:#8a5317}
.n-danger{background:var(--red-soft); border-color:#f5c6c0; color:#a3241a}
.n-ok{background:var(--green-soft); border-color:#bfe6cf; color:#0c6e3f}

/* 步骤时间线 */
.steps{list-style:none; counter-reset:s; padding:0; margin:0}
.steps li{position:relative; padding:0 0 20px 46px; counter-increment:s; color:var(--ink2)}
.steps li::before{content:counter(s); position:absolute; left:0; top:0; width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;display:grid;place-items:center;font-size:14px}
.steps li::after{content:"";position:absolute;left:15px;top:34px;bottom:0;width:2px;background:var(--blue-line)}
.steps li:last-child::after{display:none}
.steps li b{color:var(--ink)}

/* 表格 */
.table-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:12px; background:#fff}
table{border-collapse:collapse; width:100%; min-width:520px; font-size:14.5px}
th,td{padding:11px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top}
th{background:var(--blue-soft); color:var(--blue); font-weight:700; white-space:nowrap}
tr:last-child td{border-bottom:0}

/* FAQ 手风琴 */
.faq details{background:#fff; border:1px solid var(--line); border-radius:11px; margin-bottom:10px; padding:0 16px}
.faq summary{cursor:pointer; padding:15px 0; font-weight:600; color:var(--ink); list-style:none; position:relative; padding-right:28px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; position:absolute; right:4px; top:13px; font-size:20px; color:var(--blue); font-weight:400}
.faq details[open] summary::after{content:"−"}
.faq .ans{padding:0 0 15px; color:var(--ink2); font-size:14.5px}

/* 正文文章 */
.article{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow)}
.article h1{font-size:28px; font-weight:800; color:var(--ink); margin-bottom:10px}
.article .lead{font-size:16px; color:var(--ink2); background:var(--blue-soft); border-left:4px solid var(--blue2); padding:14px 16px; border-radius:0 10px 10px 0; margin:16px 0 24px}
.article h2{font-size:20px; color:var(--blue); margin:30px 0 10px; padding-left:12px; border-left:4px solid var(--orange)}
.article p{color:var(--ink2); margin:0 0 14px}
.article .tags{margin-top:24px; display:flex; gap:8px; flex-wrap:wrap}
.tag{background:var(--blue-soft); color:var(--blue); font-size:12.5px; padding:4px 10px; border-radius:20px}
.crumb{font-size:13px; color:var(--muted); margin-bottom:16px}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--blue2)}

/* 布局：正文 + 侧栏 */
.layout{display:grid; grid-template-columns:1fr 300px; gap:24px; align-items:start}
.sidebar{position:sticky; top:16px; display:grid; gap:16px}
.side-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow)}
.side-card h3{font-size:16px; margin-bottom:10px; color:var(--blue)}
.side-card a{display:block; padding:7px 0; font-size:14px; color:var(--ink2); border-bottom:1px dashed var(--line)}
.side-card a:last-child{border-bottom:0}
.side-card a:hover{color:var(--blue2)}

/* CTA */
.cta-band{background:linear-gradient(120deg,#14539f,#1d63d1); color:#fff; border-radius:var(--radius); padding:26px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap}
.cta-band h3{margin:0 0 4px; font-size:22px}
.cta-band p{margin:0; color:#dce9f9; font-size:14px}
.cta-band a{background:var(--orange); color:#fff; padding:11px 22px; border-radius:9px; font-weight:700; white-space:nowrap}
.cta-band a:hover{background:#d5761f; text-decoration:none}

/* 页脚 */
.site-foot{background:#0f2743; color:#b9c9dc; padding:36px 0 22px; margin-top:30px}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:28px}
.foot-grid h4{color:#fff; font-size:15px; margin-bottom:10px}
.foot-grid p,.foot-grid a{font-size:13.5px; color:#9fb3ca}
.foot-grid a{display:block; padding:3px 0}
.foot-grid a:hover{color:#fff}
.disclaimer{margin-top:24px; padding-top:18px; border-top:1px solid #243d5c; font-size:12.5px; color:#8297ae; line-height:1.8}
.copy{text-align:center; font-size:12.5px; color:#7288a1; margin-top:12px}

/* 工具条 */
.pill{display:inline-block; font-size:11.5px; padding:2px 9px; border-radius:20px; font-weight:600}
.pill.ok{background:var(--green-soft); color:var(--green)}
.pill.info{background:var(--blue-soft); color:var(--blue)}
.pill.new{background:var(--orange-soft); color:var(--orange)}

@media(max-width:1024px){
  .decide-grid{grid-template-columns:1fr}
  .layout{grid-template-columns:1fr}
  .sidebar{position:static; grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
  .nav-toggle{display:block}
  .nav-links{display:none; width:100%; flex-direction:column; align-items:stretch; padding:8px 0 14px}
  .nav-links.open{display:flex}
  .head-inner{flex-wrap:wrap}
  .g-4{grid-template-columns:repeat(2,1fr)}
  .g-3{grid-template-columns:repeat(2,1fr)}
  .chips{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  body{font-size:15px}
  .hero .wrap{padding:38px 0 44px}
  .hero h1{font-size:27px}
  .hero p{font-size:15px}
  .searchbar{flex-wrap:wrap}
  .searchbar input{flex-basis:100%}
  .searchbar button{flex:1}
  .grid.g-2,.grid.g-3,.grid.g-4{grid-template-columns:1fr}
  .chips{grid-template-columns:1fr 1fr}
  .chip{padding:12px 6px}
  .chip span{display:none}
  .sidebar{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .article{padding:20px 16px}
  .article h1{font-size:22px}
  .sec-head h2{font-size:21px}
  .cta-band{padding:20px}
  table{min-width:460px}
}
