/* ============================================================
   “城”全你 · 样式表
   设计基调：克制的现代中式政务美学 · 纸本灰 + 朱砂红 + 靛青
   ============================================================ */

:root {
  /* 色板 */
  --ink: #1A1A18;
  --ink-2: #3D3D3A;
  --ink-3: #6B6B66;
  --ink-4: #9A9A94;
  --paper: #FBFAF7;
  --paper-2: #F4F2ED;
  --paper-3: #EBE8E1;
  --line: #DFDCD4;
  --line-soft: #EDEAE3;
  --red: #C0392B;
  --red-soft: #FBF0EE;
  --navy: #1F4E79;
  --navy-soft: #EEF3F8;
  --gold: #B8860B;
  --gold-soft: #FBF6E9;
  --green: #3F6B4A;
  --green-soft: #EFF4F0;

  --serif: "Songti SC", "SimSun", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(26, 26, 24, 0.04);
  --shadow: 0 2px 8px rgba(26, 26, 24, 0.06);
  --shadow-lg: 0 8px 28px rgba(26, 26, 24, 0.1);
  --radius: 4px;
  --radius-lg: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 78, 121, 0.25);
  transition: all 0.16s ease;
}
a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── 顶栏 ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  flex-shrink: 0;
}
.brand:hover {
  border: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  border: none;
  padding: 7px 12px;
  border-radius: 3px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  position: relative;
}
.nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.nav a.active {
  color: var(--red);
  font-weight: 600;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* ── 通用容器 ─────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      1100px 380px at 82% -12%,
      rgba(192, 57, 43, 0.07),
      transparent 62%
    ),
    radial-gradient(
      900px 320px at 8% 108%,
      rgba(31, 78, 121, 0.07),
      transparent 62%
    ),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 39px,
    rgba(26, 26, 24, 0.024) 39px,
    rgba(26, 26, 24, 0.024) 40px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 24px 54px;
}
.hero.hero-sm .hero-inner {
  padding: 40px 24px 34px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}
h1 {
  font-family: var(--serif);
  font-size: clamp(27px, 4.2vw, 42px);
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
h1 em {
  font-style: normal;
  color: var(--red);
}
.lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 660px;
  margin: 0 0 8px;
  line-height: 1.85;
}
.hero-quote {
  max-width: 660px;
  margin: 20px 0 0;
  padding: 2px 0 2px 15px;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-4);
  flex-shrink: 0;
}
.dot.red {
  background: var(--red);
}
.dot.navy {
  background: var(--navy);
}
.dot.green {
  background: var(--green);
}

/* ── 区块标题 ─────────────────────────────────────── */
.section {
  padding: 52px 0;
}
.section-head {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: "";
  width: 3px;
  height: 17px;
  background: var(--red);
  border-radius: 2px;
}
.section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.section-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: -14px 0 24px;
  max-width: 720px;
}

/* ── 搜索 ─────────────────────────────────────────── */
.searchbar {
  position: relative;
  max-width: 460px;
  flex: 1 1 260px;
  display: block;
}
.searchbar input {
  display: block;
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  transition: all 0.16s ease;
}
.searchbar input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.09);
}
.searchbar input::placeholder {
  color: var(--ink-4);
}
.searchbar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  flex: none;
  stroke: var(--ink-4);
  pointer-events: none;
  z-index: 1;
}
/* 移动端：图标与输入框对齐，避免出现多余空隙 */
@media (max-width: 720px) {
  .searchbar {
    max-width: none;
    width: 100%;
  }
  .searchbar svg {
    left: 13px;
    top: 50%;
  }
}

/* ── 城市卡片网格 ─────────────────────────────────── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px;
}
.city-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  border-bottom: 1px solid var(--line);
}
.city-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--card-accent, var(--red));
  opacity: 0.85;
}
.city-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.city-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.city-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.city-prov {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 6px;
  white-space: nowrap;
}
.city-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.6;
}
.city-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.kv-chip {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.city-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.city-stat {
  background: #fff;
  padding: 8px 9px;
}
.city-stat-v {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--card-accent, var(--red));
  line-height: 1.25;
}
.city-stat-v small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 1px;
}
.city-stat-l {
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.03em;
  margin-top: 1px;
}

/* ── 区域卡 ───────────────────────────────────────── */
.region-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  margin-bottom: 22px;
}
.region-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.region-badge {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 5px 13px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.region-info {
  flex: 1 1 300px;
}
.region-info h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.region-info p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}
.region-body {
  padding: 22px 24px;
}
.hl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 9px 22px;
}
.hl-list li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 17px;
  position: relative;
  line-height: 1.65;
}
.hl-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-4);
}

/* ── 政策条目 ─────────────────────────────────────── */
.policy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}
.policy-head {
  padding: 18px 20px 16px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.15s ease;
  user-select: none;
}
.policy-head:hover {
  background: var(--paper-2);
}
.policy-type {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 2px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 3px;
  white-space: nowrap;
}
.type-travel {
  background: var(--gold-soft);
  color: var(--gold);
}
.type-stay {
  background: var(--navy-soft);
  color: var(--navy);
}
.type-life {
  background: var(--red-soft);
  color: var(--red);
}
.type-house {
  background: var(--green-soft);
  color: var(--green);
}
.type-job {
  background: #F0EEF8;
  color: #5B4B9E;
}
.policy-main {
  flex: 1;
  min-width: 0;
}
.policy-title {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 7px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.policy-amount {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.6;
}
.policy-amount::before {
  content: "政策力度";
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 5px;
  flex-shrink: 0;
  transform: translateY(-1px);
}
.toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  transition: all 0.18s ease;
  margin-top: 2px;
  background: #fff;
}
.policy.open .toggle {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.policy-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid transparent;
}
.policy.open .policy-body {
  border-top-color: var(--line-soft);
}
.policy-body-in {
  padding: 18px 20px 22px;
}
.field {
  margin-bottom: 16px;
}
.field:last-child {
  margin-bottom: 0;
}
.field-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.field-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.field-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}
.field-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: n;
}
.field-list li {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 5px;
}
.field-list li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 14px;
  text-align: center;
  font-family: var(--mono);
}
.field-list.plain li::before {
  content: "·";
  background: none;
  width: auto;
  height: auto;
  font-size: 15px;
  top: -1px;
  left: 3px;
  color: var(--ink-4);
}
.field-list.hl li {
  color: var(--ink);
}
.field-list.hl li::before {
  background: var(--red-soft);
  color: var(--red);
}
.src {
  background: var(--paper-2);
  border-left: 2px solid var(--line);
  border-radius: 0 3px 3px 0;
  padding: 10px 13px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.src-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
  margin-right: 6px;
}
.src-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.src-list li {
  margin-bottom: 5px;
}
.src-list li:last-child {
  margin-bottom: 0;
}

/* ── 城市详情页 ───────────────────────────────────── */
.city-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.city-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--city-accent, var(--red));
}
.city-hero-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 34px;
  position: relative;
}

/* ── 城市地标插画（纯 SVG，装饰性） ─────────────── */
.city-landmark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  pointer-events: none;
}
.city-landmark svg {
  display: block;
  width: 100%;
  height: auto;
}
.city-landmark .lm-grid {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 0.55;
  opacity: 0.5;
}
.city-landmark .lm-body {
  fill: #fff;
  fill-opacity: 0.62;
  stroke: var(--ink-3);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.city-landmark .lm-deck {
  fill: #fff;
  stroke: var(--city-accent, var(--red));
  stroke-width: 1;
}
.city-landmark .lm-soft {
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 1;
}
.city-landmark .lm-cloud {
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.5;
}
.city-landmark .lm-beacon {
  fill: var(--city-accent, var(--red));
}
.city-landmark .lm-sun {
  fill: var(--city-accent, var(--red));
  opacity: 0.8;
}
.city-landmark .lm-bld {
  fill: var(--ink-3);
  opacity: 0.22;
}
@media (prefers-reduced-motion: no-preference) {
  .city-landmark svg {
    animation: lm-in 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .city-landmark .lm-beacon {
    animation: lm-pulse 3s ease-in-out infinite;
  }
  .city-landmark .lm-cloud {
    animation: lm-drift 17s ease-in-out infinite;
  }
}
@keyframes lm-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lm-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes lm-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(12px);
  }
}
/* 桌面：容器右侧留出地标专栏，正文永远不会压到画上 */
@media (min-width: 901px) {
  .city-hero .city-hero-in {
    padding-right: 340px;
  }
}
/* 平板 / 手机：地标改为右浮动徽标，让正文自然环绕，
   既不挤占宽度也不必单独占一行；同时加粗描边保证小尺寸可读 */
@media (max-width: 900px) {
  .city-landmark {
    position: static;
    float: right;
    width: 112px;
    margin: 0 0 12px 16px;
    transform: none;
  }
  .city-landmark .lm-grid {
    stroke-width: 1.1;
  }
  .city-landmark .lm-body {
    stroke-width: 2;
  }
  .city-landmark .lm-soft {
    stroke-width: 1.6;
  }
  .city-landmark .lm-cloud {
    stroke-width: 2;
  }
}
@media (max-width: 620px) {
  .city-landmark {
    width: 96px;
  }
}
.crumb {
  font-size: 12.5px;
  color: var(--ink-4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.crumb a {
  border: none;
  color: var(--ink-3);
}
.crumb a:hover {
  color: var(--red);
}
.crumb-sep {
  color: var(--line);
}
.city-hero h1 {
  font-size: clamp(25px, 3.6vw, 36px);
}
.city-hero h1 small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 12px;
  letter-spacing: 0.06em;
  font-family: var(--sans);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 26px;
}
.stat-cell {
  background: #fff;
  padding: 15px 16px;
}
.stat-v {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--city-accent, var(--red));
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.stat-v small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 2px;
}
.stat-l {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.stat-n {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed var(--line-soft);
  line-height: 1.5;
}
.stat-n:empty {
  display: none;
}

/* ── 步骤流 ───────────────────────────────────────── */
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  padding: 0 0 18px 38px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 22px;
  text-align: center;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li:last-child::after {
  display: none;
}
.steps .s-t {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 500;
}

/* ── 底部 ─────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 34px 0 40px;
  margin-top: 20px;
}
.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.85;
}
.foot-in strong {
  color: var(--ink-2);
  font-weight: 600;
}
.foot-slogan {
  color: var(--ink-4);
  font-family: var(--serif);
}
.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-links a {
  border: none;
  color: var(--ink-3);
}
.foot-links a:hover {
  color: var(--red);
}

/* ── 提示条 ───────────────────────────────────────── */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 26px;
}
.notice strong {
  color: var(--gold);
}

/* ── 返回顶栏按钮 ─────────────────────────────────── */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 90;
}
.totop.show {
  opacity: 1;
  pointer-events: auto;
}
.totop:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── 空状态 / 搜索无结果 ──────────────────────────── */
.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--ink-4);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty strong {
  display: block;
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 5px;
  font-family: var(--serif);
}

/* ── 双列布局 ─────────────────────────────────────── */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

/* ── 政策类型索引 ─────────────────────────────────── */
.type-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.type-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 15px 16px;
  display: block;
  transition: all 0.16s ease;
}
.type-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.type-card-n {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.type-card-n small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-4);
  margin-left: 3px;
}
.type-card-t {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 2px;
}
.type-card-c {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 6px;
  line-height: 1.6;
}

/* ── 响应式 ───────────────────────────────────────── */
@media (max-width: 720px) {
  body {
    font-size: 14.5px;
  }
  .topbar-inner {
    padding: 0 16px;
    height: 56px;
    gap: 12px;
  }
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 14px;
  }
  .nav a {
    padding: 6px 9px;
    font-size: 13px;
  }
  .wrap,
  .wrap-narrow,
  .hero-inner,
  .city-hero-in,
  .foot-in {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-inner {
    padding-top: 40px;
    padding-bottom: 34px;
  }
  .section {
    padding: 36px 0;
  }
  .city-grid {
    grid-template-columns: 1fr;
  }
  .region-head,
  .region-body {
    padding: 18px 16px;
  }
  .policy-head {
    padding: 15px 15px 14px;
    gap: 11px;
  }
  .policy-body-in {
    padding: 15px 15px 18px;
  }
  .policy-amount {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .policy-amount::before {
    transform: none;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .hl-list {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  /* 搜索框在移动端为块级元素，需防止被 flex 拉伸产生多余空隙 */
  .section-head > .searchbar,
  .section-head > h2,
  .section-head > p {
    width: 100%;
    max-width: none;
  }
  .section-head > .searchbar,
  .searchbar {
    /* 关键：父容器在移动端变为 column 方向，
       flex-basis:260px 会被当作高度，必须重置 */
    flex: 0 0 auto;
    align-self: stretch;
    max-width: none;
    height: auto;
    min-height: 0;
  }
  .foot-in {
    flex-direction: column;
    gap: 16px;
  }
  .city-hero h1 small {
    display: block;
    margin: 6px 0 0;
  }
  .totop {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .city-stats {
    grid-template-columns: 1fr 1fr;
  }
  .region-badge {
    font-size: 13.5px;
    padding: 4px 10px;
  }
}

/* ── 打印 ─────────────────────────────────────────── */
@media print {
  .topbar,
  .totop,
  .searchbar,
  .city-landmark {
    display: none;
  }
  .policy-body {
    max-height: none !important;
    border-top-color: var(--line-soft);
  }
  .city-card {
    break-inside: avoid;
  }
}
