/* ==========================================================================
   我们在 · 移民家园网 —— 全局样式
   ========================================================================== */

/* ---------------------------- 1. 设计变量 ---------------------------- */
:root {
  --navy-900: #081a33;
  --navy-800: #0d2c54;
  --navy-700: #143e73;
  --navy-600: #1b5299;
  --navy-500: #2a6dbe;
  --navy-050: #eef4fc;

  --gold-600: #a9861c;
  --gold-500: #c9a227;
  --gold-400: #dcb84a;
  --gold-300: #ecd383;
  --gold-100: #f6ecc9;

  --ink: #12203a;
  --ink-soft: #33425c;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --line-soft: #f0f3f8;
  --bg: #f5f7fa;
  --white: #ffffff;
  --success: #1f9d6a;
  --danger: #d9534f;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(13, 44, 84, .06);
  --shadow-sm: 0 4px 14px rgba(13, 44, 84, .07);
  --shadow: 0 10px 30px rgba(13, 44, 84, .10);
  --shadow-lg: 0 22px 50px rgba(8, 26, 51, .16);

  --container: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------- 2. 基础重置 ---------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.3; color: var(--navy-900); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--gold-400); color: var(--navy-900); }

/* ---------------------------- 3. 布局工具 ---------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }

.section { padding: 72px 0; }
.section-sm { padding: 52px 0; }
.section-tint { background: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------- 4. 区块标题 ---------------------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-head .head-left { max-width: 720px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 10px;
}
.section-title { font-size: 30px; letter-spacing: -.5px; }
.section-title span { color: var(--navy-600); }
.section-sub { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy-600);
  white-space: nowrap;
}
.link-more::after { content: "→"; transition: transform .25s var(--ease); }
.link-more:hover { color: var(--gold-600); }
.link-more:hover::after { transform: translateX(4px); }

/* ---------------------------- 5. 按钮 ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; line-height: 1;
  transition: all .25s var(--ease); white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: 0 6px 18px rgba(201, 162, 39, .3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 162, 39, .38); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); color: var(--navy-600); background: var(--navy-050); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-light:hover { background: rgba(255, 255, 255, .24); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------------------------- 6. 顶部导航 ---------------------------- */
.topbar {
  background: var(--navy-900); color: rgba(255, 255, 255, .78);
  font-size: 13px; padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-list { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-list a:hover { color: var(--gold-400); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  display: grid; place-items: center; color: var(--gold-400);
  font-weight: 800; font-size: 19px; letter-spacing: -.5px;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--navy-900); letter-spacing: -.4px; }
.brand-name em { font-style: normal; color: var(--gold-600); }
.brand-slogan { font-size: 11px; color: var(--muted); letter-spacing: .08em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 9px 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2px; border-radius: 2px; background: var(--gold-500);
  transform: translateX(-50%); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--navy-700); background: var(--navy-050); }
.main-nav a.is-active { color: var(--navy-700); }
.main-nav a.is-active::after { width: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--navy-800);
  place-items: center; background: #fff;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------- 7. 首页英雄区 ---------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(42, 109, 190, .5), transparent 62%),
    radial-gradient(760px 420px at 6% 106%, rgba(201, 162, 39, .22), transparent 60%),
    linear-gradient(155deg, #0a2344 0%, #0d2c54 48%, #123f78 100%);
  color: #fff;
  padding: 74px 0 88px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 30%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 12%, transparent 78%);
}
.hero > .container { position: relative; z-index: 2; }

.hero-inner { max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12.5px; letter-spacing: .04em; color: var(--gold-100);
  margin-bottom: 22px;
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.hero h1 {
  font-size: 46px; line-height: 1.18; color: #fff; letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--gold-300, #ecd383), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 16.5px; color: rgba(255, 255, 255, .82); max-width: 640px; }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stat b { display: block; font-size: 27px; color: var(--gold-400); letter-spacing: -.5px; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* ------------------------ 8. 项目搜索平台 ------------------------ */
.search-panel {
  position: relative; z-index: 5;
  margin-top: -58px;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
}
.search-panel-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-panel-title h2 { font-size: 18px; }
.search-panel-title span { font-size: 13px; color: var(--muted); }

.search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field select,
.field input,
.field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fbfcfe;
  font-size: 14.5px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--navy-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 109, 190, .12);
}
.field textarea { resize: vertical; min-height: 120px; }

.search-hints { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.search-hints .hint-label { font-size: 12.5px; color: var(--muted); }
.chip {
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px;
  background: var(--navy-050); color: var(--navy-700);
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.chip:hover { background: var(--gold-100); color: var(--gold-600); }
.chip.is-active { background: var(--navy-700); color: #fff; }

.search-result-hint {
  margin-top: 14px; font-size: 13.5px; color: var(--navy-600);
  background: var(--navy-050); padding: 10px 14px; border-radius: var(--radius);
  display: none;
}
.search-result-hint.is-show { display: block; }

/* ---------------------------- 9. 服务卡片 ---------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--navy-600), var(--gold-400));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy-600);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 20px; }
.service-card .en { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------------------------- 10. 最新播报 ---------------------------- */
.news-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; }
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 4px; border-bottom: 1px dashed var(--line);
  transition: padding-left .25s var(--ease);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 10px; }
.news-index {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--line-soft); color: var(--muted); margin-top: 2px;
}
.news-item:nth-child(-n+3) .news-index { background: var(--gold-100); color: var(--gold-600); }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.news-item:hover .news-title { color: var(--navy-600); }
.news-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.news-tag { color: var(--navy-600); font-weight: 600; }

/* ---------------------------- 11. 热门国家 ---------------------------- */
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.country-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; padding: 28px 26px; min-height: 300px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.country-card::after {
  content: ""; position: absolute; right: -60px; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .3), transparent 68%);
  transition: transform .5s var(--ease);
}
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.country-card:hover::after { transform: scale(1.25); }
.country-flag {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 800; font-size: 15px; color: var(--gold-400); letter-spacing: .5px;
  margin-bottom: 18px;
}
.country-card h3 { color: #fff; font-size: 22px; }
.country-card .en { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-top: 4px; }
.country-card p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.country-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; position: relative; z-index: 2; }
.country-points span {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .86);
}

/* ---------------------------- 12. 项目卡片 ---------------------------- */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.filter-bar .filter-label { font-size: 13px; color: var(--muted); font-weight: 600; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.project-thumb {
  height: 118px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: flex-end; padding: 16px 20px;
}
.project-thumb::after {
  content: ""; position: absolute; right: -30px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .34), transparent 70%);
}
.project-thumb .region-tag {
  position: relative; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .8);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.project-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-country { font-size: 12.5px; font-weight: 700; color: var(--gold-600); letter-spacing: .06em; }
.project-body h3 { font-size: 17px; line-height: 1.45; }
.project-body h3 a:hover { color: var(--navy-600); }
.project-desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: var(--line-soft); color: var(--ink-soft);
}
.project-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.project-price { display: flex; flex-direction: column; }
.project-price small { font-size: 11.5px; color: var(--muted); }
.project-price b { font-size: 19px; color: var(--navy-700); letter-spacing: -.3px; }
.project-price b em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.project-cycle { font-size: 12px; color: var(--muted); text-align: right; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--muted); background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------------------------- 13. 移民百科 ---------------------------- */
.encyclopedia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.enc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.enc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.enc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.enc-head h3 { font-size: 17px; }
.enc-head .enc-count { font-size: 12px; color: var(--muted); }
.enc-list { display: flex; flex-direction: column; }
.enc-list li { border-top: 1px dashed var(--line); }
.enc-list li:first-child { border-top: none; }
.enc-list a {
  display: flex; gap: 9px; padding: 9px 0; font-size: 13.5px;
  color: var(--ink-soft); line-height: 1.6;
}
.enc-list a::before { content: "·"; color: var(--gold-500); font-weight: 700; flex-shrink: 0; }
.enc-list a:hover { color: var(--navy-600); }

/* ---------------------------- 14. 优势 / 流程 ---------------------------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.adv-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color: var(--gold-400);
}
.adv-icon svg { width: 27px; height: 27px; }
.adv-card h3 { font-size: 18px; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step-no {
  font-size: 26px; font-weight: 800; color: var(--gold-400);
  letter-spacing: -1px; line-height: 1; margin-bottom: 12px;
}
.step h4 { font-size: 15.5px; margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 6px; height: 6px;
  border-top: 2px solid var(--line); border-right: 2px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------------------------- 15. 通用页面头 ---------------------------- */
.page-head {
  position: relative; overflow: hidden; color: #fff; padding: 54px 0 58px;
  background:
    radial-gradient(800px 380px at 88% 0%, rgba(42, 109, 190, .45), transparent 60%),
    linear-gradient(150deg, #0a2344, #123f78);
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 20%, #000 10%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 60% 20%, #000 10%, transparent 76%);
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: 34px; letter-spacing: -.6px; }
.page-head p { margin-top: 10px; color: rgba(255, 255, 255, .78); max-width: 720px; font-size: 15px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .62); margin-bottom: 16px; }
.crumb a:hover { color: var(--gold-400); }
.crumb span.sep { opacity: .5; }

/* ---------------------------- 16. 内容排版 ---------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 32px; box-shadow: var(--shadow-xs);
}
.card + .card { margin-top: 22px; }
.card h2 { font-size: 21px; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin: 22px 0 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.card p + p { margin-top: 12px; }

.prose-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.prose-list li {
  position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft);
}
.prose-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--gold-500);
  transform: rotate(45deg);
}

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-item {
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 20px;
}
.info-item .k { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.info-item .v { font-size: 15.5px; font-weight: 600; color: var(--navy-800); margin-top: 5px; word-break: break-all; }
.info-item .v a:hover { color: var(--gold-600); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; text-align: left;
  font-size: 15.5px; font-weight: 600; color: var(--navy-900);
  transition: background .2s var(--ease);
}
.faq-q:hover { background: var(--navy-050); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-050); color: var(--navy-600);
  font-size: 16px; line-height: 1; transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item.is-open .faq-q .faq-icon { transform: rotate(45deg); background: var(--gold-100); color: var(--gold-600); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.faq-a-inner { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------------------------- 17. 表单 ---------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .field-full { grid-column: 1 / -1; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .err-msg { font-size: 12.5px; color: var(--danger); display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); background: #fff6f6; }
.field.has-error .err-msg { display: block; }

.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius);
  background: #eaf7f1; color: #16794f; border: 1px solid #bfe6d4; font-size: 14px;
}
.form-success.is-show { display: block; }

/* ---------------------------- 18. CTA 区块 ---------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 300px at 85% 10%, rgba(201, 162, 39, .26), transparent 62%),
    linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: #fff; padding: 46px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 26px; letter-spacing: -.4px; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .76); max-width: 620px; font-size: 14.5px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------- 19. 页脚 ---------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); margin-top: 72px; }
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 56px 0 42px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-slogan { color: rgba(255, 255, 255, .5); }
.footer-desc { margin-top: 18px; font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .6); }
.footer-title { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255, 255, 255, .66); }
.footer-links a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact .fc-item { display: flex; gap: 10px; font-size: 13.5px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; opacity: .7; }
.footer-contact .fc-item span { word-break: break-all; }
.footer-tel { font-size: 21px; font-weight: 800; color: var(--gold-400); letter-spacing: .4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0; font-size: 12.5px; color: rgba(255, 255, 255, .48);
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--gold-400); }
.footer-legal { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal .icp { color: rgba(255, 255, 255, .56); white-space: nowrap; }
.footer-legal .icp:hover { color: var(--gold-400); }

/* ---------------------------- 20. 返回顶部 ---------------------------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease);
}
.back-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--navy-600); transform: translateY(-3px); }
.back-top svg { width: 20px; height: 20px; }

/* ---------------------------- 21. 动效 ---------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------- 22. 响应式 ---------------------------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: 38px; }
  .service-grid,
  .country-grid,
  .project-grid,
  .encyclopedia-grid,
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .news-layout { grid-template-columns: 1fr; gap: 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .site-header .container { gap: 12px; position: relative; }
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; margin-left: 0;
    background: #fff; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .28s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 14px; border-radius: var(--radius); font-size: 15.5px; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { background: var(--navy-050); color: var(--navy-700); }
  .header-actions .btn { display: none; }
  .search-form { grid-template-columns: 1fr; }
  .search-panel { padding: 22px 20px; margin-top: -40px; }
  .form-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 28px; }
  .card { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: 29px; letter-spacing: -.5px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .hero-stat b { font-size: 22px; }
  .section-title { font-size: 23px; }
  .page-head h1 { font-size: 26px; }
  .service-grid,
  .country-grid,
  .project-grid,
  .encyclopedia-grid,
  .adv-grid,
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
  .topbar-list { gap: 12px; font-size: 12.5px; }
  .topbar .hide-xs { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 17px; }
  .brand-slogan { display: none; }
  .back-top { right: 16px; bottom: 16px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}
