/* ==========================================================================
   快法务 · 获客网站公共样式（施工蓝图对应实现）
   响应式：PC / 平板(≤1024) / 手机(≤768) / 超小屏(≤400)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #214078;
  --brand-dark: #183158;
  --brand-deep: #10233F;
  --gold: #C6AF7B;
  --gold-deep: #8E6A10;
  --gold-tint: #FBF4E4;
  --gold-ink: #7A5A28;
  --text: #12233D;
  --muted: #5C6B7A;
  --light-muted: #8B9AA8;
  --border: #DEE5EC;
  --bg: #F4F7FA;
  --green: #0F7A52;
  --orange: #75561F;
  --gray: #8B9AA8;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-size: 15px;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
section { margin: 24px 0; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 6px;
  font-size: 15px; cursor: pointer; text-align: center; border: none;
  line-height: 1.5; transition: opacity .15s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); background: #fff; }
/* 全站公共主按钮：之前 .btn-red 只在 header.css 的 header.nav 作用域内定义过，
   导致 about / case 等页正文里的 .btn-red 只有 color:#fff、没有背景，按钮直接隐形（P0）。
   这里补上公共定义，页内只需覆盖尺寸；导航内的按钮仍由 header.css 的更高优先级规则接管。 */
.btn-red { display: inline-block; background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 6px; }
.btn-red:hover { background: var(--brand-dark); color: #fff; opacity: 1; text-decoration: none; }
.btn-block { display: block; width: 100%; }

/* ============ 卡片 ============ */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px;
}
a.card { display: block; color: var(--text); }
a.card:hover { text-decoration: none; border-color: var(--brand); }

/* ============ 导航 ============ */
header.site-header { background: var(--brand); border-bottom: 1px solid rgba(255,255,255,.18); }
.navbar { display: flex; align-items: center; gap: 26px; padding: 12px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; white-space: nowrap; }
.logo img { height: 36px; width: auto; display: block; }
.logo:hover { text-decoration: none; opacity: .92; }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { color: #fff; }
.nav-links a:hover { color: #fff; opacity: .82; text-decoration: none; }
.navbar > .btn.btn-primary { background: #fff; color: var(--brand-dark); }
.navbar > .btn.btn-primary:hover { background: #EDF2F7; opacity: 1; }

/* 汉堡菜单 */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; margin-left: auto; padding: 6px; }
.nav-toggle-label span {
  display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0;
  transition: .2s;
}

/* ============ 面包屑 ============ */
.breadcrumb { padding: 12px 0; color: var(--light-muted); font-size: 13px; }
.breadcrumb a { color: var(--light-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .cur { color: var(--text); }

/* ============ 首屏 Banner ============ */
.hero {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 48px 32px; text-align: center;
}
.hero h1 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.hero p { color: var(--muted); margin-bottom: 26px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ 区块标题 ============ */
.sec-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.sec-sub { color: var(--muted); margin-bottom: 16px; }

/* ============ 网格 ============ */
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============ 标签 ============ */
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 4px;
  background: #EAF1F7; color: var(--brand); vertical-align: middle;
}

/* 政策状态标签 */
.status {
  display: inline-block; font-size: 13px; padding: 3px 12px; border-radius: 4px;
  font-weight: 500; vertical-align: middle;
}
.status-valid    { background: #E4F3EC; color: var(--green); }
.status-expiring { background: #F8F0DE; color: var(--orange); }
.status-abolished{ background: #F0F3F7; color: var(--gray); }
.status-revised  { background: #EAF1F7; color: var(--brand); }

/* ============ 政策详情：元数据区 ============ */
.meta-box {
  background: #F8FAFC; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; margin: 18px 0;
}
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.meta-item { font-size: 14px; }
.meta-item .k { color: var(--light-muted); margin-right: 8px; }

/* 核心结论摘要 */
.abstract {
  background: #F1F6FA; border-left: 4px solid var(--brand);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0;
}
.abstract .t { font-weight: 600; color: var(--brand-dark); margin-bottom: 6px; }

/* ============ 条件列表 ============ */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed var(--border); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--green); font-weight: 600;
}
.check-list li:last-child { border-bottom: none; }

/* ============ 流程步骤 ============ */
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li {
  position: relative; padding: 10px 0 10px 48px; counter-increment: step;
  border-bottom: 1px dashed var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}

/* ============ 政策出处 ============ */
.source-box {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px;
}
.source-box .t { font-weight: 600; margin-bottom: 8px; }

/* ============ FAQ 折叠 ============ */
details.faq {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 18px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--brand);
}
details.faq[open] summary::after { content: "−"; }
details.faq .a { color: var(--muted); margin-top: 10px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 14px;
}
table.data th, table.data td {
  border: 1px solid var(--border); padding: 10px 14px; text-align: left;
}
table.data th { background: #F8FAFC; font-weight: 600; white-space: nowrap; }

/* ============ 表单 ============ */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
form .row { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #D3DCE4; border-radius: 6px;
  font-size: 16px; font-family: inherit;
}
.field-hint { font-size: 12px; color: var(--light-muted); margin-top: 4px; }

/* ============ 页脚 ============ */
footer.site-footer {
  background: #142138; color: #A8B6C4; padding: 30px 0; margin-top: 40px; font-size: 13px;
}
footer.site-footer a { color: #A8B6C4; }
footer.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-grid > div { min-width: 140px; }
.footer-grid strong { color: #fff; display: block; margin-bottom: 8px; }
.footer-grid p { margin: 4px 0; }
.footer-bottom { border-top: 1px solid #25344C; margin-top: 20px; padding-top: 14px; color: #7A8A9C; }

/* ============ 内页头部 ============ */
.page-head { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px 24px; }
.page-head h1 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.page-head p { color: var(--muted); }

/* 筛选栏 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar a {
  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border);
  color: var(--muted); font-size: 14px; background: #fff;
}
.filter-bar a:hover, .filter-bar a.active { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }

/* ============ 响应式：平板 ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 响应式：手机 ============ */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }

  /* 导航折叠 */
  .navbar { gap: 0; }
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; gap: 0;
    padding: 8px 0; border-top: 1px solid rgba(255,255,255,.25); margin-top: 10px;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .navbar > .btn { margin-left: auto; padding: 8px 16px; font-size: 13px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Banner */
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 21px; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; }

  /* 网格 */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* 元数据区 */
  .meta-grid { grid-template-columns: 1fr; }

  /* 页脚 */
  .footer-grid { gap: 20px; flex-direction: column; }

  .page-head { padding: 22px 18px; }
  .page-head h1 { font-size: 21px; }
}

/* ============ 响应式：超小屏 ============ */
@media (max-width: 400px) {
  .navbar > .btn { display: none; }
}
