/* ============================================================
   护照网 · 首页样式
   主题：深蓝（信任 / 官方） + 鎏金（护照 / 质感）
   ============================================================ */
:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --blue: #2563eb;
  --gold: #d9a531;
  --gold-2: #f3c969;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e6ebf3;
  --green: #16a34a;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 58, .30);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3a2a06;
  box-shadow: 0 10px 24px -10px rgba(217, 165, 49, .7);
}
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff; border-color: rgba(255, 255, 255, .25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline {
  background: #fff; color: var(--navy);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ============================================================
   NAV
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 252, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; color: var(--navy); }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: block; flex-shrink: 0;
  box-shadow: 0 8px 18px -10px rgba(11, 31, 58, .55);
}
.logo .accent { color: var(--gold); }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: #334155; }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--gold); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; font-style: normal; opacity: .55; margin-left: 1px; transition: transform .2s; }
.nav-item.has-sub:hover .caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 14px; min-width: 300px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(11, 31, 58, .35);
  display: none; z-index: 60;
  column-count: 2; column-gap: 6px;
}
.nav-sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.has-sub:hover .nav-sub { display: block; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 9px; color: #334155; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: #f1f5fb; color: var(--navy); }
.nav-sub a.active { color: var(--navy); font-weight: 700; }
.nav-sub a .nav-emoji { margin-right: 7px; font-size: 1.05em; line-height: 1; vertical-align: -1px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 14px; font-weight: 600; color: var(--navy); }
.nav-cta .menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 17px; cursor: pointer; line-height: 1;
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 22px 14px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links.open a:last-child { border-bottom: 0; }
  .nav-cta .menu-btn { display: grid; place-items: center; }
  .nav-cta .login { display: none; }
  .nav-links a::after { display: none; }
  .nav-item { display: block; }
  .nav-item.has-sub > a { display: flex; }
  .caret { display: none; }
  .nav-sub { position: static; transform: none; display: block; margin: 0; padding: 0 0 4px 16px; border: 0; box-shadow: none; border-radius: 0; min-width: 0; background: transparent; column-count: 2; column-gap: 6px; }
  .nav-sub::before { display: none; }
  .nav-links.open .nav-sub a { padding: 9px 0; border-bottom: 0; font-size: 14px; color: #64748b; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.4px;
  color: var(--gold-2);
  background: rgba(243, 201, 105, .12);
  border: 1px solid rgba(243, 201, 105, .3);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2);
}
.hero h1 { font-size: 50px; line-height: 1.12; font-weight: 800; margin: 22px 0 18px; letter-spacing: -.5px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18px; color: #c8d4e6; max-width: 530px; margin-bottom: 30px; }
.search {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 999px;
  padding: 7px 7px 7px 20px; box-shadow: var(--shadow-lg); max-width: 540px;
  position: relative;
}
.search input {
  flex: 1; border: 0; outline: 0; font-size: 15px;
  color: var(--ink); background: transparent; padding: 10px 4px; min-width: 0;
}
.search input::placeholder { color: #94a3b8; }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.trust .t { font-size: 13px; color: #9fb1c9; }
.trust .t b { display: block; color: #fff; font-size: 22px; font-weight: 800; }

/* HERO 视觉：护照卡片 */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.passport {
  width: 296px; height: 386px; border-radius: 20px;
  background: linear-gradient(150deg, #1b3a6b, #0d213f);
  position: relative; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  transform: rotate(-6deg); overflow: hidden;
}
.passport::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px);
}
.passport .gov {
  position: absolute; top: 28px; left: 0; right: 0; text-align: center;
  color: var(--gold-2); font-weight: 700; letter-spacing: 2px; font-size: 13px;
}
.passport .chip {
  position: absolute; top: 74px; left: 32px; width: 46px; height: 34px;
  border-radius: 7px; background: linear-gradient(135deg, #e7c97a, #caa23c);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15);
}
.passport .coa { position: absolute; top: 116px; left: 0; right: 0; text-align: center; font-size: 54px; }
.passport .stamp {
  position: absolute; top: 138px; right: 22px; width: 80px; height: 80px;
  border: 3px solid var(--gold-2); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: var(--gold-2); font-weight: 800; font-size: 11px; line-height: 1.3;
  transform: rotate(14deg); opacity: .9;
}
.passport .fields {
  position: absolute; bottom: 28px; left: 28px; right: 28px;
  color: #dbe6f5; font-size: 12px; letter-spacing: .5px;
}
.passport .fields .row {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 7px 0;
}
.passport .fields .row span:first-child { color: #8fa6c4; }
.float-badge {
  position: absolute; background: #fff; color: var(--navy);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-weight: 700;
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.float-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.float-badge.a { top: 26px; right: -8px; }
.float-badge.b { bottom: 26px; left: -16px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 0; }
  .hero h1 { font-size: 36px; }
  .hero-visual { min-height: 380px; }
  .hero-slide { min-height: 0; padding: 56px 0; }
}

/* ============================================================
   HERO · 幻灯片轮播
   ============================================================ */
.hero-slides { position: relative; transition: height .5s cubic-bezier(.2,.7,.2,1); }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
  min-height: 600px; display: flex; align-items: center;
}
.hero-slide.active {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
}
/* 4 屏统一尺寸 + 各栏目底色（仿栏目 theme 色值） */
.hero-slides { min-height: 600px; }
.hero-slide > .wrap { width: 100%; }
.slide-search  { background: linear-gradient(150deg, #1d3f74 0%, #0e2750 100%); }
.slide-compare { background: linear-gradient(150deg, #4b2685 0%, #28134f 100%); }
.slide-wiki    { background: linear-gradient(150deg, #14694c 0%, #0a3a2a 100%); }
.slide-project { background: linear-gradient(150deg, #7c4f12 0%, #452a08 100%); }
/* 图左布局：视觉列移到左侧，文字列移到右侧且更宽 */
.hero-slide.img-left .hero-grid { grid-template-columns: .88fr 1.12fr; }
.hero-slide.img-left .hero-visual { order: -1; }

/* 视觉插图：对比卡 / 百科书 / 地球 */
.cmp-card {
  width: 320px; max-width: 100%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px; padding: 22px 24px;
  box-shadow: var(--shadow-lg); position: relative;
}
.cmp-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.cmp-row + .cmp-row { border-top: 1px dashed rgba(255, 255, 255, .2); }
.cmp-flag { font-size: 32px; line-height: 1; flex-shrink: 0; }
.cmp-meta { flex: 1; min-width: 0; }
.cmp-meta b { display: block; color: #fff; font-size: 16px; font-weight: 700; }
.cmp-meta span { font-size: 12px; color: #9fb1c9; }
.cmp-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); margin-top: 7px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.cmp-vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3a2a06; font-weight: 800; font-size: 15px;
  display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(217, 165, 49, .7);
}

.book {
  width: 264px; height: 340px; border-radius: 18px;
  background: linear-gradient(150deg, #1b3a6b, #0d213f);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  position: relative; transform: rotate(-5deg); overflow: hidden;
  display: grid; place-items: center;
}
.book::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px); }
.book .bk-emoji { font-size: 78px; }
.book .bk-label { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--gold-2); font-weight: 700; letter-spacing: 3px; font-size: 13px; }

.globe {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #245bc0, #0f1e42);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  position: relative; display: grid; place-items: center;
}
.globe-grid { position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 32px); }
.globe .g-emoji { font-size: 96px; position: relative; }
.globe .pin { position: absolute; font-size: 22px; }
.globe .pin.p1 { top: 22px; left: 40px; }
.globe .pin.p2 { bottom: 36px; right: 30px; animation-delay: .6s; }
.globe .pin.p3 { top: 60px; right: 44px; animation-delay: 1.2s; }

/* 轮播箭头 */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 5;
  transition: background .2s, transform .2s; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .25); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

/* 轮播圆点 */
.hero-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px; padding: 0; border: 0;
  background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .25s, background .25s;
}
.hero-dot.on { width: 26px; background: var(--gold); }

@media (max-width: 900px) {
  .hero-slide.img-left .hero-grid { grid-template-columns: 1fr; }
  .hero-slide.img-left .hero-visual { order: 0; }
  .hero-visual { min-height: 320px; }
  .hero-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .3s; transform: none; }
  .globe { animation: none; }
}

/* ============================================================
   数据概览条
   ============================================================ */
.stats { background: var(--card); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.stat .num .u { font-size: 17px; color: var(--gold); margin-left: 2px; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   通用区块
   ============================================================ */
section.block { padding: 84px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head .tag {
  color: var(--gold); font-weight: 700; letter-spacing: 1.5px;
  font-size: 13px; text-transform: uppercase;
}
.sec-head h2 { font-size: 36px; font-weight: 800; margin: 12px 0 14px; letter-spacing: -.5px; color: var(--navy); }
.sec-head p { color: var(--muted); font-size: 16px; }

/* ============================================================
   护照排名
   ============================================================ */
.rank-tools {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.rank-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; min-width: 260px; box-shadow: var(--shadow);
}
.rank-search input { border: 0; outline: 0; font-size: 14px; flex: 1; background: transparent; color: var(--ink); min-width: 0; }
.seg {
  display: flex; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.seg button {
  border: 0; background: transparent; padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s;
}
.seg button.active { background: var(--navy); color: #fff; }
.rank-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 880px) { .rank-list { grid-template-columns: 1fr; } }
.rank-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s;
}
.rank-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* 列表卡片整卡可点：有详情页链接时渲染成 <a> */
a.rank-card { color: inherit; text-decoration: none; cursor: pointer; }
.rank-card .rank-go { flex-shrink: 0; width: 18px; text-align: right; font-size: 15px; font-weight: 700; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .22s, transform .22s, color .22s; }
a.rank-card:hover .rank-go { opacity: 1; transform: translateX(0); color: var(--gold); }
.rank-card .rk { font-size: 22px; font-weight: 800; color: var(--muted); width: 36px; text-align: center; flex-shrink: 0; }
.rank-card.top3 .rk { color: var(--gold); }
.rank-card .flag { font-size: 34px; flex-shrink: 0; width: 46px; text-align: center; }
.rank-card .meta { flex: 1; min-width: 0; }
.rank-card .meta .nm { font-weight: 700; font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-card .meta .en { font-size: 12px; color: var(--muted); }
.rank-card .bar { height: 7px; border-radius: 999px; background: #eef2f8; margin-top: 9px; overflow: hidden; }
.rank-card .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #60a5fa); }
.rank-card.top3 .bar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.rank-card .rg { margin-top: 8px; }
.rank-card .rg span { display: inline-block; font-size: 11px; font-weight: 600; color: var(--blue); background: #eaf1fb; border-radius: 999px; padding: 2px 11px; }
.rank-card .metrics { text-align: right; flex-shrink: 0; min-width: 120px; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.rank-card .m-visa { width: 100%; }
.rank-card .m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.rank-card .m-top span { font-size: 12px; color: var(--muted); }
.rank-card .m-top b { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1; }
.rank-card .m-visa .bar { margin-top: 0; }
.rank-card .m-dev { display: flex; align-items: baseline; gap: 7px; align-self: flex-end; }
.rank-card .m-dev span { font-size: 12px; color: var(--muted); }
.rank-card .m-dev b { font-size: 16px; font-weight: 800; color: var(--gold); line-height: 1; }
@media (max-width: 520px) {
  .rank-card { padding: 14px 16px; gap: 12px; }
  .rank-card .flag { font-size: 28px; width: 36px; }
  .rank-card .metrics { min-width: 96px; }
  .rank-card .rank-go { display: none; }
}
.tier { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.tier.t1 { background: #fef3c7; color: #b45309; }
.tier.t2 { background: #dbeafe; color: #1d4ed8; }
.tier.t3 { background: #e2e8f0; color: #475569; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.load-more { display: flex; justify-content: center; margin-top: 26px; }

/* ============================================================
   特性
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .22s;
}
.feat:hover { transform: translateY(-4px); }
.feat .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, #eaf1ff, #dbeafe); margin-bottom: 16px;
}
.feat h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--muted); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-radius: 28px; padding: 54px;
  text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(243, 201, 105, .18); top: -120px; right: -80px; filter: blur(10px);
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta p { color: #cdd9ec; margin-bottom: 26px; position: relative; }
.cta .btn { position: relative; }
@media (max-width: 620px) { .cta { padding: 34px 22px; } .cta h2 { font-size: 26px; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy); color: #aebfd6; padding: 54px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-grid .logo { color: #fff; margin-bottom: 14px; }
/* 深底上让标记有一圈细亮边，避免与页脚背景糊在一起 */
.foot-grid .logo .logo-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.foot-grid p { font-size: 14px; line-height: 1.7; max-width: 330px; }
.foot-col h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: #9fb1c9; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--gold-2); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 13px; color: #7e91ad;
  flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .float-badge { animation: none; }
}

/* ============================================================
   栏目区块背景
   ============================================================ */
#wiki      { background: #ffffff; }
#projects  { background: linear-gradient(180deg, #f6f8fc, #eef3fa); }
#news      { background: #ffffff; }
#countries { background: #f6f8fc; }
#about     { background: #f6f8fc; }
#contact   { background: #ffffff; }

/* 检索结果计数 */
.rank-count { font-size: 14px; color: var(--muted); }
.note { text-align: center; color: #94a3b8; font-size: 13px; margin-top: 18px; }

/* ============================================================
   护照百科
   ============================================================ */
.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wiki-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform .22s, box-shadow .22s;
}
.wiki-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wiki-card .ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 24px; line-height: 1;
  background: #f6f9ff; border: 1px solid #e6edf9;
}
.wiki-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.wiki-card h4 {
  font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.wiki-card .ktag {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: #eef2f8; color: #475569;
}
.wiki-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 980px) { .wiki-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .wiki-grid { grid-template-columns: 1fr; } }

/* 子栏目文章卡（带缩略图） */
.wiki-art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wa-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s, box-shadow .22s;
}
.wa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* 标题链接的伪元素铺满整卡：点卡片任意处都能进入文章；栏目标签再浮层单独可点 */
.wa-card h4 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.wa-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.wa-cat {
  position: relative; z-index: 2;
  font-weight: 700; color: var(--navy); background: #eef2f8;
  padding: 2px 9px; border-radius: 999px;
  transition: background .18s, color .18s;
}
a.wa-cat:hover { background: var(--blue); color: #fff; }
.wa-date { color: var(--muted); }
.wa-thumb {
  aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0b1f3a, #1e4276);
}
.wa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.wa-card:hover .wa-thumb img { transform: scale(1.04); }
.wa-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.45; }
.wa-card:hover h4 { color: var(--blue); }
.wa-card p { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.wa-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.wa-foot .ktag {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: #eef2f8; color: #475569;
}
.wa-hits { font-size: 12px; color: #94a3b8; }
@media (max-width: 980px) { .wiki-art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .wiki-art-grid { grid-template-columns: 1fr; } }

/* ============================================================
   护照项目
   ============================================================ */
/* ---------- 移民项目：五维筛选 ---------- */
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pf-reset {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; transition: .2s;
}
.pf-reset:hover { border-color: var(--gold); color: #8a5a12; }
.proj-filter {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 18px; margin-bottom: 22px;
}
.pfr { display: flex; align-items: flex-start; gap: 14px; padding: 7px 0; }
.pfr + .pfr { border-top: 1px dashed var(--line); }
.pfl { flex: 0 0 68px; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 30px; }
.pfr .seg {
  flex: 1; min-width: 0; background: transparent; border: 0; box-shadow: none;
  padding: 0; gap: 4px; row-gap: 6px;
}
.pfr .seg button { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.pfr .seg button:not(.active):hover { background: #f1f5f9; }
@media (max-width: 720px) {
  .proj-filter { padding: 10px 14px; }
  .pfr { flex-direction: column; gap: 4px; padding: 9px 0; }
  .pfl { flex: none; line-height: 1.5; }
  .pfr .seg { width: 100%; }
  .pfr .seg button { padding: 6px 10px; }
}

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.proj-thumb {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #7a4110, #b06e12);
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
.proj-thumb-ico { display: grid; place-items: center; height: 100%; font-size: 40px; }
.proj-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.proj-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.proj-card .ptags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.proj-card .ptag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: #fbf0d8; color: #8a5a12;
}
.proj-card .ptag.ghost { background: #eef2f7; color: #5a6b80; font-weight: 600; }
/* 总投资金额（折合人民币）：紧跟标签、靠右，金色加粗、比标签大一号 */
.proj-card .pjine {
  margin-left: auto; font-size: 16px; font-weight: 800; color: #b07a12;
  letter-spacing: .2px; line-height: 1.2; white-space: nowrap;
}
/* 四格指标：投资门槛 / 办理周期 / 语言要求 / 居住要求 —— 文字全部居中 */
.proj-card .spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.proj-card .spec div {
  background: #f6f8fc; border-radius: 10px; padding: 10px 8px;
  min-height: 66px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.proj-card .spec span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.proj-card .spec b {
  font-size: 14px; font-weight: 800; color: var(--navy);
  line-height: 1.35; word-break: break-word;
}
/* 热度指数：浅灰底星 + 金色实星；实星宽 = 星级 × 20%（每颗星等宽，含字距） */
.proj-card .pstars {
  position: relative; display: inline-block; align-self: flex-start;
  margin: 0 0 8px; font-size: 13px; line-height: 1; letter-spacing: 2px;
}
.proj-card .ps-track { color: #dbe2ec; }
.proj-card .ps-fill {
  position: absolute; left: 0; top: 0; white-space: nowrap; overflow: hidden;
  width: calc(var(--z, 0) * 20%); color: var(--gold);
}
.proj-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .proj-grid { grid-template-columns: 1fr; } }

/* ============================================================
   首页「护照项目」轮播
   PC 一屏 3 条（箭头翻页），移动端一屏 1 条（手指左右滑动）
   —— 轨道用 grid-auto-flow:column + scroll-snap，不引入任何第三方库
   ============================================================ */
.pj-slider { position: relative; }
/* 翻页按钮：一行靠右，放在轨道上方，避免压住卡片或溢出 .wrap */
.pj-ctrl { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 12px; }
.pj-nav {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 20px; line-height: 1; display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--shadow);
  transition: background .2s, color .2s, opacity .2s;
}
.pj-nav:hover { background: var(--navy); color: #fff; }
.pj-nav[disabled] { opacity: .35; cursor: default; }
.pj-nav[disabled]:hover { background: #fff; color: var(--navy); }
.pj-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.pj-track::-webkit-scrollbar { display: none; }
.pj-track > .proj-card { scroll-snap-align: start; }
.pj-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pj-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: #cfd8e6; cursor: pointer; transition: width .22s, background .22s;
}
.pj-dots button.on { width: 22px; background: var(--gold); }
@media (max-width: 980px) {
  /* 移动端一屏 1 条，靠原生横向滑动切换；翻页按钮隐藏，只留圆点指示 */
  .pj-track { grid-auto-columns: 100%; }
  .pj-ctrl { display: none; }
}

/* ============================================================
   护照动态
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; gap: 18px; align-items: flex-start; transition: transform .22s;
}
.news-item:hover { transform: translateY(-2px); }
.news-item .ndate { font-size: 13px; font-weight: 700; color: var(--navy); flex-shrink: 0; width: 90px; padding-top: 2px; }
.news-item .ncat {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; flex-shrink: 0;
}
.ncat.policy  { background: #dbeafe; color: #1d4ed8; }
.ncat.alert   { background: #fef3c7; color: #b45309; }
.ncat.broadcast  { background: #dcfce7; color: #15803d; }
.ncat.project { background: #f3e8ff; color: #7e22ce; }
.news-item .nbody { flex: 1; min-width: 0; }
.news-item .nbody b { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.news-item .nbody p { font-size: 13px; color: var(--muted); }
@media (max-width: 620px) {
  .news-item { flex-direction: column; align-items: stretch; gap: 6px; }
  .news-item .ncat { order: 1; align-self: flex-start; }
  .news-item .nbody { order: 2; }
  .news-item .ndate { order: 3; width: auto; padding-top: 0; color: var(--muted); }
}

/* ============================================================
   国家百科
   ============================================================ */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.country-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform .22s;
}
.country-card:hover { transform: translateY(-3px); }
.country-card .chead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.country-card .cflag { font-size: 32px; }
.country-card .cname { font-size: 16px; font-weight: 700; color: var(--navy); }
.country-card .cmeta { font-size: 12px; color: var(--muted); }
.country-card .crow {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 6px 0; border-top: 1px solid var(--line);
}
.country-card .crow span { color: var(--muted); }
.country-card .crow b { font-weight: 600; color: var(--ink); }
.cpolicy {
  display: block; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; margin-top: 12px; text-align: center;
}
.cpolicy.free { background: #dcfce7; color: #15803d; }
.cpolicy.easy { background: #fef3c7; color: #b45309; }
.cpolicy.visa { background: #e2e8f0; color: #475569; }

/* ============================================================
   关于我们
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 44px; align-items: start; }
.about-title { font-size: 32px; font-weight: 800; color: var(--navy); margin: 10px 0 16px; letter-spacing: -.5px; }
.about-text { font-size: 15px; color: #475569; margin-bottom: 14px; line-height: 1.8; }
.about-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; gap: 10px; font-size: 14px; color: #334155; align-items: flex-start; }
.about-list li span { color: var(--green); font-weight: 800; }
.about-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow);
}
.about-card b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.about-card span { font-size: 13px; color: var(--muted); }
.about-banner { margin-bottom: 30px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy); aspect-ratio: 1200 / 320; }
.about-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-figure { margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy); }
.about-figure img { display: block; width: 100%; height: auto; }
.about-cta { display: inline-block; margin-top: 22px; }
.about-points { grid-column: 1 / -1; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; }
.about-point { display: flex; align-items: flex-start; gap: 10px; background: none; border: none; box-shadow: none; padding: 0; min-height: 0; }
.about-point .ck { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(20,105,76,.12); color: var(--green); font-weight: 800; font-size: 13px; margin-top: 1px; }
.about-point p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .about-banner { aspect-ratio: 2.4 / 1; } }

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* review 页：PC 端表单在左、介绍在右 */
body[data-page="review"] .contact-grid { align-items: start; }
body[data-page="review"] .contact-form { grid-column: 1; grid-row: 1 / span 2; }
body[data-page="review"] .review-cards { grid-column: 2; grid-row: 1; }
body[data-page="review"] .review-steps { grid-column: 2; grid-row: 2; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.contact-card .ci { font-size: 22px; }
.contact-card b { display: block; font-size: 14px; color: var(--navy); }
.contact-card small { font-size: 13px; color: var(--muted); }
.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.contact-form h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-family: var(--font);
  color: var(--ink); outline: 0; margin-bottom: 12px; background: #fbfcfe; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: #fff; }
.contact-form button { width: 100%; justify-content: center; }
.contact-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-family: var(--font); color: var(--ink); outline: 0; margin-bottom: 12px; background: #fbfcfe; }
.contact-form .form-group { margin-bottom: 12px; }
.contact-form .form-group > label { display: block; font-size: 13px; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
.form-tip { font-size: 13px; color: var(--green); margin-top: 10px; min-height: 18px; text-align: center; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* review 页移动端：表单 → 四介绍 → 评估流程 */
  body[data-page="review"] .contact-form,
  body[data-page="review"] .review-cards,
  body[data-page="review"] .review-steps { grid-column: auto; grid-row: auto; }
}
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- 移民评估页辅助样式 ---------- */
.review-cards, .review-steps { align-self: start; }
.form-group label .req { color: #c0392b; font-style: normal; margin-left: 2px; }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--ink); font-size: 14px; line-height: 1.9; }
.steps li { margin-bottom: 4px; }
.steps b { color: var(--navy); }
.note { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ============================================================
   导航当前页高亮
   ============================================================ */
.nav-links a.active { color: var(--navy); font-weight: 700; }
.nav-links a.active::after { width: 100%; }

/* ============================================================
   子页面通用：页面头 / 面包屑 / 面板 / 工具条
   ============================================================ */
/* 栏目主题色：每个栏目一组渐变色变量，文章页沿用「护照动态」色系 */
body[data-page="search"]    { --ph1: #1c3f8f; --ph2: #245bc0; --ph3: #0f1e42; }
body[data-page="wiki"]      { --ph1: #0b4f3f; --ph2: #0f7a63; --ph3: #062a24; }
body[data-page="news"]      { --ph1: #4a2585; --ph2: #7038c9; --ph3: #241046; }
body[data-page="projects"]  { --ph1: #7a4110; --ph2: #b06e12; --ph3: #3a1f06; }
body[data-page="countries"] { --ph1: #0a4a63; --ph2: #0e86a8; --ph3: #062b3a; }
body[data-page="about"]     { --ph1: #27364b; --ph2: #3d5570; --ph3: #141d2b; }
body[data-page="contact"]   { --ph1: #7c1a3f; --ph2: #b51a58; --ph3: #3d0c20; }
body[data-page="review"]    { --ph1: #0c5a5e; --ph2: #12a39c; --ph3: #063235; }

.page-head {
  background:
    radial-gradient(900px 400px at 86% 18%, rgba(255, 255, 255, .12), transparent),
    linear-gradient(160deg,
      var(--ph1, var(--navy)) 0%,
      var(--ph2, var(--navy-2)) 58%,
      var(--ph3, #0a1830) 100%);
  color: #fff; padding: 46px 0 56px; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.page-head .wrap { position: relative; }
.crumb { font-size: 13px; color: #9fb1c9; margin-bottom: 12px; }
.crumb a { color: var(--gold-2); }
.crumb span { color: #dbe6f5; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.page-head p { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 640px; }

@media (max-width: 620px) {
  .page-head { padding: 38px 0 40px; }
  .page-head h1 { font-size: 27px; }
}

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.toolbar {
  display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.toolbar .left, .toolbar .right { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notice {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 14px; padding: 14px 18px; font-size: 13px; margin-top: 24px;
}
.notice b { display: block; margin-bottom: 4px; }
.section-title {
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin: 40px 0 18px; display: flex; align-items: center; gap: 10px;
}
.section-title:first-child { margin-top: 0; }

/* 时间线（关于我们） */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.tl-item { display: flex; gap: 18px; padding-bottom: 22px; position: relative; }
.tl-item:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3a2a06; display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.tl-body b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.tl-body span { font-size: 13px; color: var(--muted); }

/* FAQ（联系我们） */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: #fbfcfe; }
.faq-item b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--muted); }

/* ============================================================
   文章列表页
   ============================================================ */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .art-grid { grid-template-columns: 1fr; } }
.art-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.art-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.art-cat {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #eef2ff; color: #1d4ed8;
}
.art-read { font-size: 12px; color: var(--muted); }
.art-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.45; }
.art-card p { font-size: 14px; color: var(--muted); flex: 1; }
.art-card-foot {
  display: flex; justify-content: space-between; font-size: 12px;
  color: #94a3b8; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}

/* ============================================================
   文章详情页
   ============================================================ */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px; align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-main {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow);
}
@media (max-width: 620px) { .article-main { padding: 24px 20px; } }
.art-body { font-size: 16px; color: #334155; line-height: 1.9; }
.art-body h2 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--gold);
}
.art-body p { margin-bottom: 16px; }
.art-body ul { margin: 0 0 18px; padding-left: 22px; }
.art-body li { margin-bottom: 8px; }
.art-body blockquote {
  background: #f6f8fc; border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0;
  color: #334155; font-size: 15px;
}
/* 文章正文配图 */
.art-body figure { margin: 26px 0; }
.art-body figure img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(11, 31, 58, .08);
}
.art-body figcaption {
  margin-top: 10px; font-size: 13px; line-height: 1.6;
  color: var(--muted); text-align: center;
}
.art-nav {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
}
.art-nav a { font-size: 14px; color: var(--blue); font-weight: 600; max-width: 48%; }
.art-nav a:hover { text-decoration: underline; }
.art-nav .next { text-align: right; margin-left: auto; }

.art-side { position: sticky; top: 88px; }
@media (max-width: 900px) { .art-side { position: static; } }
.art-side .panel { padding: 22px; }
.art-side h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.rel-item {
  display: grid; grid-template-columns: 2px 1fr; column-gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.rel-item::before {
  content: ""; grid-column: 1; grid-row: 1 / -1; background: var(--gold);
}
.rel-item > * { grid-column: 2; }
.rel-item:last-child { border-bottom: 0; }
.rel-item b { display: block; font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 4px; }
.rel-item:hover b { color: var(--blue); }
.rel-item small { font-size: 12px; color: var(--muted); }
/* 相关项目：移民类型 / 身份类型椭圆标签 + 投资门槛（配色对齐栏目页 .ptag / .ptag.ghost） */
.rel-item .rel-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rel-item .rel-tag {
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6;
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  background: #fbf0d8; color: #8a5a12; border: 1px solid rgba(217, 165, 49, .35);
}
.rel-item .rel-tag.ghost { background: #eef2f8; color: #5a6b80; border-color: #dbe2ec; }
.rel-item .rel-jine { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rel-item .rel-jine b { display: inline; margin: 0; font-size: 12px; font-weight: 800; color: #b07a12; }
/* 通行力相近：标题前的国旗，纯 emoji，无背景 / 内边距 / 阴影 */
.rel-item .pp-flag {
  font-style: normal; font-size: 15px; line-height: 1; margin-right: 6px;
  vertical-align: -1px;
  background: none; box-shadow: none; padding: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* 百科卡片作为链接 */
a.wiki-card { align-items: flex-start; }
a.wiki-card:hover h4 { color: var(--blue); }

/* ============ 迅睿 CMS 模板专用补充样式 ============ */

/* 子栏目筛选条 */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cat-chip {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; font-weight: 600; transition: .2s;
}
.cat-chip:hover { color: var(--navy); border-color: #cbd5e1; }
.cat-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 分页（迅睿 {$pages} 输出） */
.pages { margin-top: 30px; text-align: center; }
.pages a, .pages span, .pages strong {
  display: inline-block; min-width: 36px; height: 36px; line-height: 34px;
  padding: 0 12px; margin: 0 3px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.pages a:hover { color: var(--navy); border-color: #cbd5e1; }
.pages strong, .pages .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 文章导语 */
.art-lead {
  background: #f4f7fd; border-left: 3px solid var(--gold);
  padding: 16px 20px; border-radius: 0 12px 12px 0;
  font-size: 15px; color: #475569; line-height: 1.8; margin-bottom: 24px;
}

/* 文章标签 */
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.art-tags a {
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: #eef4ff; border-radius: 999px; padding: 5px 13px;
}
.art-tags a:hover { background: #dbeafe; }

/* ============================================================
   护照检索 · 列表页（passport_list.html）
   ============================================================ */

/* ---------- 工具条 ---------- */
.pp-toolbar {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.pp-search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 220px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; height: 44px; transition: border-color .2s, box-shadow .2s;
}
.pp-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 165, 49, .16); }
.pp-search-ico { font-size: 15px; opacity: .6; }
.pp-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--ink); font-family: var(--font); height: 100%;
}
.pp-search.small { height: 38px; flex: 0 1 280px; min-width: 200px; }
.pp-fields { display: flex; flex-wrap: wrap; gap: 22px; }
.pp-field { display: flex; flex-direction: column; gap: 8px; }
.pp-field > label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* ---------- 结果计数 ---------- */
.pp-summary { font-size: 13px; color: var(--muted); margin: 0 4px 12px; font-weight: 600; }
.pp-summary b { color: var(--navy); }

/* ---------- 排名表 ---------- */
.pp-table {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.pp-thead {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 130px 96px 96px 96px;
  gap: 12px; align-items: center;
  padding: 13px 20px; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
}
.pp-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 130px 96px 96px 96px;
  gap: 12px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--line);
  transition: background .18s; text-decoration: none; color: inherit;
}
.pp-row:hover { background: #f8fafd; }
.pp-row.is-hidden { display: none; }

.pp-no {
  font-size: 20px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums;
}
.pp-row[data-paiming="1"] .pp-no,
.pp-row[data-paiming="2"] .pp-no,
.pp-row[data-paiming="3"] .pp-no { color: var(--gold); }

.pp-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pp-name b { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
/* 列表页国旗：放大显示，纯 emoji，无背景 / 内边距 / 阴影 */
.pp-flag {
  flex: none; font-style: normal; font-size: 22px; line-height: 1;
  background: none; box-shadow: none; padding: 0; margin: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.pp-en {
  font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--muted);
  white-space: nowrap; opacity: .82;
}

/* 护照颜色列：横长方形色条，直接用 color 字段填充（red/green/blue/black/none） */
.pp-color { display: flex; align-items: center; }
.pp-color-bar {
  display: block; width: 46px; height: 16px; border-radius: 3px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}
.pp-color-bar[data-color="red"]   { background: #b5352c; }
.pp-color-bar[data-color="blue"]  { background: #1e4276; }
.pp-color-bar[data-color="green"] { background: #17864f; }
.pp-color-bar[data-color="black"] { background: #26292f; }
.pp-color-bar[data-color="none"]  { background: #cbd5e1; }

/* 护照封面色标（竖版图标，详情页指标卡在用；数据来自 color 字段） */
.pp-cover {
  flex: none; width: 18px; height: 24px; border-radius: 3px;
  background: #94a3b8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); position: relative;
}
.pp-cover::after {
  content: ""; position: absolute; left: 50%; top: 4px; width: 8px; height: 8px;
  transform: translateX(-50%); border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.pp-cover.big { width: 26px; height: 34px; border-radius: 4px; }
.pp-cover[data-color="red"]   { background: #b5352c; }
.pp-cover[data-color="blue"]  { background: #1e4276; }
.pp-cover[data-color="green"] { background: #17864f; }
.pp-cover[data-color="black"] { background: #26292f; }
.pp-cover[data-color="none"]  { background: #cbd5e1; }

.pp-num { display: flex; flex-direction: column; gap: 6px; }
.pp-num b {
  font-size: 17px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums;
}
.pp-bar {
  display: block; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden;
  position: relative;
}
.pp-bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 0%); border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}
.pp-go {
  text-align: right; font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap;
}
.pp-row:hover .pp-go { color: var(--gold); }

/* ---------- 空态 / 说明 ---------- */
.pp-empty {
  text-align: center; padding: 48px 20px; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.pp-empty b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.pp-empty p { font-size: 13px; margin: 0; }

.pp-note-box {
  margin-top: 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.pp-note-box h4 { font-size: 15px; color: var(--navy); margin: 0 0 10px; }
.pp-note-box ul { margin: 0; padding-left: 18px; color: #475569; font-size: 14px; line-height: 1.9; }
.pp-note-box b { color: var(--ink); }
.pp-disclaimer {
  margin: 12px 0 0; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.8;
}

/* ---------- 窄屏：表头隐藏，行改为两段式 ---------- */
@media (max-width: 860px) {
  .pp-thead { display: none; }
  .pp-row {
    grid-template-columns: 54px minmax(0, 1fr) 64px 64px 70px;
    grid-template-areas:
      "no name name name name"
      ".  g    z    color go";
    row-gap: 10px; padding: 14px 16px;
  }
  .pp-no { grid-area: no; font-size: 17px; }
  .pp-name { grid-area: name; }
  /* nth-of-type 按元素类型计数：行内全是 span，故两个 .pp-num 分别是第 3、第 4 个 */
  .pp-row .pp-num:nth-of-type(3) { grid-area: g; }
  .pp-row .pp-num:nth-of-type(4) { grid-area: z; }
  /* 手机端没有表头，颜色列加一行小标签说明含义 */
  .pp-row .pp-color {
    grid-area: color; flex-direction: column; align-items: flex-start; gap: 5px;
  }
  .pp-row .pp-color::before {
    content: "护照颜色"; font-size: 11px; font-weight: 600; color: var(--muted);
  }
  .pp-row .pp-go { grid-area: go; text-align: right; align-self: center; }
  .pp-toolbar { flex-direction: column; align-items: stretch; }
  .pp-fields { flex-direction: column; gap: 14px; width: 100%; }
  /* 列布局下 flex-basis 会落到高度上，必须把搜索框的 basis 复位，否则被撑成 260px 高 */
  .pp-search { flex: 1 1 auto; height: 44px; min-height: 44px; }
}

/* 更窄的屏：国名过长时英文名换到第二行，避免与国旗/国名挤在一起 */
@media (max-width: 520px) {
  .pp-name { flex-wrap: wrap; gap: 6px 8px; }
  .pp-en { flex-basis: 100%; padding-left: 0; }
}

/* ============================================================
   护照详情 · 内容页（passport_show.html）
   ============================================================ */

/* ---------- 三指标卡 ---------- */
.pp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px;
}
.pp-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; text-align: center; box-shadow: var(--shadow);
}
.pp-stat b {
  display: block; font-size: 32px; font-weight: 800; color: var(--navy);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.pp-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pp-stat-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pp-stat-cover .pp-cover { margin-bottom: 8px; }

@media (max-width: 720px) {
  .pp-stats { grid-template-columns: repeat(2, 1fr); }
  .pp-stat b { font-size: 26px; }
}

/* ---------- 内容块 ---------- */
.pp-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 20px;
}
.pp-block h2 {
  font-size: 19px; color: var(--navy); margin: 0 0 14px; padding-left: 12px;
  border-left: 4px solid var(--gold); line-height: 1.3;
}
.pp-note { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; }

/* 移民项目详情：指标值是文字（如「25-30万美金」），不再是纯数字，字号收小 */
.pp-stat.sm b { font-size: 21px; line-height: 1.25; }
.pr-cover {
  margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.pr-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* banner 副标题里的总投资金额（zjine 自带「约…人民币」，别再补「折合」前缀） */
.page-head p .ph-gold { color: var(--gold-2); font-weight: 800; }

/* 移民详情 banner 属性行：国旗 + 国家 + 移民类型 / 签证类型椭圆标签
   （标签配色仿栏目页卡片 .ptag / .ptag.ghost，banner 是金棕渐变，
   实心标签用米金底棕字，次标签用半透明白底白字） */
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ph-meta .ph-country {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .92);
}
/* 国旗放在国家名前面，比国家名大一档（基础 .pp-flag 是 22px，这里与属性行对齐） */
.ph-meta .ph-country .pp-flag { font-size: 24px; margin-right: 8px; vertical-align: -4px; }
.ph-meta .ph-tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1.6;
  padding: 2px 12px; border-radius: 999px; text-decoration: none;
  background: #fbf0d8; color: #8a5a12; border: 1px solid rgba(255, 255, 255, .5);
  transition: transform .16s, box-shadow .16s, background .16s;
}
.ph-meta .ph-tag:hover {
  transform: translateY(-1px); background: #fff; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .55);
}
.ph-meta .ph-tag.ghost {
  background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .42);
}
.ph-meta .ph-tag.ghost:hover { background: rgba(255, 255, 255, .3); }
.ph-meta .ph-hits { font-size: 13px; color: rgba(255, 255, 255, .6); }
/* 总投资金额：另起一行、字号加大（比正文大一档，金色） */
.page-head p.ph-total { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .72); max-width: none; }
.page-head p.ph-total b {
  font-size: 26px; font-weight: 800; color: var(--gold-2);
  letter-spacing: -.3px; margin-left: 6px; line-height: 1.15;
}
@media (max-width: 620px) {
  .page-head p.ph-total b { font-size: 22px; }
  .ph-meta { gap: 6px; }
  .ph-meta .ph-country .pp-flag { font-size: 22px; margin-right: 6px; }
  .ph-meta .ph-tag { font-size: 12px; padding: 2px 10px; }
}
/* 移动端目录条是 section.block 的第一个子元素，block 的 84px 上内边距会变成
   banner 与目录条之间的一条空白 —— 详情页在窄屏把它去掉，让目录条紧贴 banner。
   注意必须写成 section.block.yimin-detail，否则被 section.block 的权重盖过 */
@media (max-width: 900px) {
  section.block.yimin-detail { padding-top: 0; }
  /* 移动端：指标卡（移民项目概览）与下方文章正文之间拉开间距，避免封面图紧贴卡片 */
  .yimin-detail .pp-stats { margin-bottom: 40px; margin-top: 40px; }
}

/* ---------- 详情页目录（锚点）：宽屏固定在右侧栏第一块 ---------- */
.art-toc .toc-list { display: flex; flex-direction: column; }
.art-toc .toc-list a {
  display: block; padding: 9px 12px 9px 14px;
  border-left: 2px solid #e6ecf5;
  font-size: 14px; font-weight: 600; color: #5a6b80; line-height: 1.5;
  transition: color .18s, border-color .18s, background .18s;
}
.art-toc .toc-list a:hover { color: var(--navy); border-left-color: #cbd5e1; }
.art-toc .toc-list a.active {
  color: var(--navy); border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(217, 165, 49, .12), rgba(217, 165, 49, 0));
}
/* 锚点跳转后标题不被吸顶的导航 / 目录条盖住 */
.pp-block[id] { scroll-margin-top: 88px; }

/* 右侧栏多了一块目录，整体变高：短屏时限制高度、内部滚动，避免贴顶后底部看不到 */
.art-side {
  max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.art-side::-webkit-scrollbar { display: none; }

/* 移动端目录条：默认不占位，≤900px 时由 page.js 把侧栏目录搬进来并横排吸顶 */
.toc-bar { display: none; }
@media (max-width: 900px) {
  .art-side { max-height: none; overflow: visible; }
  .toc-bar {
    display: block; position: sticky; top: 68px; z-index: 45;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px -14px rgba(11, 31, 58, .45);
  }
  .toc-bar .art-toc {
    margin: 0; padding: 0; background: transparent;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .toc-bar .art-toc h4 { display: none; }
  /* 目录项可能多达 5 个（含费用明细），窄屏允许横向滑动，不挤成两行 */
  .toc-bar .toc-list { display: flex; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .toc-bar .toc-list::-webkit-scrollbar { display: none; }
  .toc-bar .toc-list a {
    flex: 1 0 auto; text-align: center; padding: 11px 6px;
    border-left: 0; border-bottom: 2px solid transparent;
    font-size: 13.5px; color: #64748b; white-space: nowrap;
  }
  .toc-bar .toc-list a:hover { color: var(--navy); border-bottom-color: #cbd5e1; }
  .toc-bar .toc-list a.active {
    color: var(--navy); border-bottom-color: var(--gold); background: none;
  }
  .pp-block[id] { scroll-margin-top: 132px; }
}
/* 5 项目录（含费用明细）在 375 宽度下几乎贴在一起，再收一档；
   必须写在上面的 900px 块之后，否则同权重被覆盖 */
@media (max-width: 400px) {
  .toc-bar .toc-list a { font-size: 12.5px; padding: 10px 4px; }
}

/* ---------- 优势 / 条件 / 流程：库里存的是逐条 <p>，这里还原成列表 ---------- */
.pp-list p {
  position: relative; margin: 0 0 10px; padding-left: 20px;
  font-size: 15px; line-height: 1.85;
}
.pp-list p::before {
  content: ""; position: absolute; left: 2px; top: .78em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.pp-list.num p { padding-left: 38px; }
.pp-list.num p[data-step]::before {
  content: attr(data-step);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #12233f;
  font-size: 12.5px; font-weight: 800; line-height: 24px; text-align: center;
}
/* 步骤下的补充说明：字号收小、颜色转灰，紧跟上一步 */
.pp-list.num p[data-sub] {
  margin-top: -6px; font-size: 13.5px; color: var(--muted);
}
.pp-list.num p[data-sub]::before { content: none; }

/* 费用明细：content 字段存的是一张费用图，图本身自带留白，不再加段间距 */
.pr-fee p { margin: 0; }
.pr-fee img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }

/* 使馆信息：来自 dashiguan 字段，内含 名称/地址/电话/传真 等 <p> */
.pp-embassy { font-size: 14.5px; line-height: 2; color: #475569; }
.pp-embassy p { margin: 0 0 6px; }
.pp-embassy strong { color: var(--navy); }

/* 官网 */
.pp-official-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  color: var(--blue); word-break: break-all;
}
.pp-official-link::before { content: "🌐"; }
.pp-official-link:hover { color: var(--gold); }

/* ---------- 免签明细表 ---------- */
.visa-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.visa-count { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.visa-count b { color: var(--navy); }
.visa-table-wrap {
  max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
}
.visa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.visa-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--navy); color: #fff; text-align: left;
  padding: 12px 16px; font-size: 13px; font-weight: 600;
}
.visa-table td {
  padding: 11px 16px; border-top: 1px solid var(--line); color: #475569; vertical-align: middle;
}
.visa-table tbody tr:nth-child(even) td { background: #fafbfd; }
.visa-table tbody tr:hover td { background: #f2f6fc; }
.visa-table td:first-child { font-weight: 600; color: var(--ink); }
.visa-table td:last-child { white-space: nowrap; }
.visa-table tr.is-hidden { display: none; }
.visa-empty { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 14px; }

/* 签证状态标签（由 JS 按文本归类后写入） */
.vtag {
  display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px;
  padding: 3px 11px; white-space: nowrap;
}
.vtag-free  { background: #e7f7ee; color: #15803d; }
.vtag-voa   { background: #e8f1ff; color: #1d4ed8; }
.vtag-evisa { background: #f1ecfd; color: #6d28d9; }
.vtag-req   { background: #f1f3f6; color: #64748b; }
.vtag-other { background: #fdf3e3; color: #b45309; }

.pp-side-links { display: flex; flex-direction: column; gap: 10px; }
.pp-side-links a { font-size: 14px; font-weight: 600; color: var(--navy); }
.pp-side-links a:hover { color: var(--gold); }

/* ── 护照详情页 banner：国旗 + 护照照片 ───────────────── */
.pp-head .wrap { display: flex; align-items: center; gap: 30px; }
.pp-head-text { flex: 1 1 auto; min-width: 0; }

/* 详情页 banner 国旗：模板先输出 ISO 大写码，JS 再换成区域指示符 emoji。
   作用域限定在 .pp-head 内，避免污染列表页的 .pp-flag（列表页只需纯 emoji）。
   不渲染国旗 emoji 的系统（部分 Windows 环境）会退回显示字母码，故保留白底小盒。 */
.pp-head .pp-flag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .14em .22em; margin-right: .4em;
  border-radius: 3px; line-height: 1;
  font-size: .44em; font-weight: 700; letter-spacing: .06em;
  vertical-align: middle; position: relative; top: -2px;
  background: rgba(255, 255, 255, .94); color: #24304a;
  box-shadow: 0 1px 4px rgba(6, 16, 36, .40);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.pp-head .pp-flag.has-emoji {
  /* 放大到与 h1 同级，纯 emoji 不需要白底与阴影 */
  padding: 0; letter-spacing: 0; font-size: 1em; top: -.08em;
  background: none; color: inherit; box-shadow: none;
}

/* banner 中文名后的英文名：与列表页 .pp-en 同款，深蓝底改为白色 */
.pp-head .pp-en {
  display: inline-block; margin-left: .55em; vertical-align: baseline;
  font-size: .44em; font-weight: 600; letter-spacing: .05em;
  color: rgba(255, 255, 255, .8); opacity: 1; white-space: nowrap;
}

/* 护照照片：/uploadfile/passport/国家代码.jpg（598×850 竖版） */
.pp-photo { flex: 0 0 auto; margin: 0; text-align: center; }
.pp-photo img {
  display: block; height: 150px; width: auto;
  padding: 3px; border-radius: 6px; background: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 16px 34px rgba(4, 14, 32, .46);
  cursor: zoom-in;
}
.pp-photo figcaption {
  margin-top: 9px; font-size: 12px; letter-spacing: .3px;
  color: rgba(255, 255, 255, .72);
}
.pp-photo.is-missing { display: none; }

@media (max-width: 720px) {
  .pp-head .wrap { gap: 18px; }
  .pp-photo img { height: 118px; }
  .pp-photo figcaption { display: none; }
}
@media (max-width: 520px) {
  .pp-head .wrap { align-items: flex-start; }
  .pp-photo img { height: 92px; }
}

/* ── 护照大图预览（点击 banner 照片弹出，由 passport.js 生成） ── */
.pp-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(5, 13, 28, .90);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.pp-lightbox.is-open { display: flex; }
.pp-lightbox img {
  display: block; max-width: min(92vw, 620px); max-height: 86vh;
  width: auto; height: auto;
  padding: 6px; border-radius: 8px; background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.pp-lightbox-close {
  position: absolute; top: 20px; right: 22px;
  width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .16s, transform .16s;
}
.pp-lightbox-close:hover { background: rgba(255, 255, 255, .28); transform: scale(1.06); }
@media (max-width: 520px) {
  .pp-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 22px; }
}
/* ============================================================
   分页（{$pages} 输出 <ul class="pagination">）
   迅睿默认那套分页样式和本站完全不搭，这里整段接管：
   白底圆角按钮 + 深蓝当前页 + 金色悬停，与全站卡片语言一致。
   ============================================================ */
.pages {
  clear: both;
  margin: 26px auto 8px;
  width: 100%;
  text-align: center;
}
.pages ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pages ul.pagination > li {
  display: block;
  float: none;
  color: inherit;
}
.pages ul.pagination > li > a,
.pages ul.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.pages ul.pagination > li > a:hover {
  border-color: var(--gold);
  color: #8a5a12;
  transform: translateY(-1px);
}
/* 「共 58 条」这类纯统计项（无链接、非当前页）不做按钮外观 */
.pages ul.pagination > li:not(.active) > a:not([href]) {
  min-width: 0;
  padding: 0 4px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
  font-weight: 500;
}
.pages ul.pagination > li.active > a,
.pages ul.pagination > li.active > span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 31, 58, .22);
}
@media (max-width: 520px) {
  .pages ul.pagination { gap: 6px; }
  .pages ul.pagination > li > a,
  .pages ul.pagination > li > span { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12.5px; }
}

/* ============================================================
   404 错误页（友好提示 + 站内搜索 + 栏目入口）
   ============================================================ */
body[data-page="error"] { --ph1: #0b1f3a; --ph2: #1e4276; --ph3: #0a1830; }
.error-code {
  font-size: 92px; font-weight: 900; line-height: 1; letter-spacing: -2px;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.error-box { max-width: 640px; margin: 0 auto; text-align: center; }
.error-emoji { font-size: 54px; line-height: 1; margin-bottom: 6px; }
.error-box h2 { font-size: 23px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.error-box p.lead { color: var(--muted); font-size: 15px; line-height: 1.7; }
/* 搜索框：浅灰底胶囊，置于白色面板内可见，与全站搜索语言一致 */
.error-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow); max-width: 540px; margin: 22px auto 0;
}
.error-search input {
  flex: 1; border: 0; outline: 0; font-size: 15px; color: var(--ink);
  background: transparent; padding: 10px 4px; min-width: 0;
}
.error-search input::placeholder { color: #94a3b8; }
.error-search .btn { flex-shrink: 0; }
/* 栏目快捷入口：复用 .cat-chip，仅做居中 */
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
@media (max-width: 620px) {
  .error-code { font-size: 64px; }
  .error-search { flex-wrap: wrap; border-radius: 18px; padding: 12px; }
  .error-search input { flex: 1 1 100%; padding: 8px 6px; }
  .error-search .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   综合查询页（search.html）：三模块切换 + 各模块版式
   ============================================================ */
.search-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px;
  box-shadow: var(--shadow); margin-bottom: 28px;
}
.stab {
  flex: 1; min-width: 150px;
  border: 0; cursor: pointer; background: transparent;
  color: var(--ink); font-size: 15px; font-weight: 700;
  padding: 13px 18px; border-radius: calc(var(--radius) - 4px);
  transition: background .2s, color .2s, box-shadow .2s;
}
.stab:hover { background: rgba(30, 66, 118, .06); }
.stab.active {
  background: linear-gradient(120deg, var(--navy), #2563b0);
  color: #fff; box-shadow: var(--shadow);
}
.search-mod { display: none; }
.search-mod.active { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 综合查询页各模块工具栏与下方内容的间距 */
.search-mod .pp-toolbar,
.search-mod .toolbar,
.search-mod .pf-top { margin-top: 4px; }

/* ============================================================
   Hero 搜索即时下拉建议（固定定位挂到 body，避免被 .hero 裁切）
   ============================================================ */
.hero-ac {
  position: fixed; z-index: 999;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 320px; overflow-y: auto;
}
.hero-ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.hero-ac-item:hover, .hero-ac-item.active { background: rgba(30, 66, 118, .08); }
.hero-ac-item .ha-flag { font-size: 20px; line-height: 1; width: 26px; text-align: center; }
.hero-ac-item .ha-name { flex: 1; font-size: 14px; font-weight: 600; }
.hero-ac-item .ha-rank { font-size: 12px; color: var(--muted); white-space: nowrap; }
