/* ==========================================================================
   泰歌留学 · 官网样式表
   设计基调：简约 / 时尚 / 大气 / 有活力
   零外部依赖：不引用任何 CDN、字体或第三方资源
   ========================================================================== */

:root {
  --brand: #0f8a63;
  --brand-dark: #0a6b4c;
  --brand-soft: #e8f6f0;
  --cyan: #34d3a6;
  --accent: #e0913a;
  --accent-soft: #fdf3e6;
  --ink: #0c2119;
  --ink-2: #25423a;
  --muted: #63796f;
  --line: #e4efe9;
  --bg: #ffffff;
  --bg-soft: #f6faf8;
  --bg-deep: #0a2c22;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --shadow-s: 0 4px 14px rgba(10, 45, 34, 0.06);
  --shadow: 0 12px 34px rgba(10, 45, 34, 0.09);
  --shadow-l: 0 24px 60px rgba(10, 45, 34, 0.14);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 提示条（本地演示模式） ---------- */
.demo-bar {
  background: linear-gradient(90deg, #f0b45a, #e0913a);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.01em;
}
.demo-bar b { font-weight: 700; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10, 45, 34, 0.06); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(15, 138, 99, 0.28);
}
.logo-mark img { width: 33px; height: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.logo-text span { font-size: 10px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-links a.is-active { color: var(--brand); background: var(--brand-soft); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 6px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.user-chip button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 2px 6px; border-radius: 6px;
}
.user-chip button:hover { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
  .nav { height: 64px; gap: 14px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; margin: 0; display: none;
    box-shadow: 0 18px 40px rgba(10, 45, 34, 0.1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .nav-right { margin-left: 0; }
  .nav-right .nav-cta { display: none; }
  .nav-right .btn { padding: 8px 14px; font-size: 13.5px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.22s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #16a97a);
  color: #fff; box-shadow: 0 10px 24px rgba(15, 138, 99, 0.3);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(15, 138, 99, 0.38); transform: translateY(-2px); }
.btn-accent {
  background: linear-gradient(135deg, #f0b45a, var(--accent));
  color: #fff; box-shadow: 0 10px 24px rgba(224, 145, 58, 0.32);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224, 145, 58, 0.4); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn-light:hover { background: rgba(255, 255, 255, 0.24); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(52, 211, 166, 0.16), transparent 62%),
    radial-gradient(760px 420px at 6% 92%, rgba(15, 138, 99, 0.13), transparent 66%),
    linear-gradient(180deg, #f5faf7 0%, #ffffff 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 138, 99, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding: 82px 0 74px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff; color: var(--brand); border: 1px solid #d6ece3;
  box-shadow: var(--shadow-s);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  margin: 22px 0 0; letter-spacing: -0.025em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--cyan) 55%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 540px; line-height: 1.85;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.tick {
  width: 17px; height: 17px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-size: 11px; flex-shrink: 0;
}

/* Hero 右侧装饰 */
.hero-art { position: relative; height: 400px; }
.hero-art .ring {
  position: absolute; inset: 0; margin: auto; width: 360px; height: 360px;
  border-radius: 50%; border: 1px dashed rgba(15, 138, 99, 0.22);
  animation: spin 26s linear infinite;
}
.hero-art .ring.r2 { width: 250px; height: 250px; border-style: solid; border-color: rgba(52, 211, 166, 0.2); animation-duration: 18s; animation-direction: reverse; }
.hero-art .globe { position: absolute; inset: 0; margin: auto; width: 268px; height: 268px; }
.hero-art .float-card {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 16px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.hero-art .float-card b { display: block; font-size: 14px; }
.hero-art .float-card small { color: var(--muted); font-size: 12px; }
.fc-1 small { display: block; max-width: 190px; line-height: 1.5; }
.fc-1 { top: 12px; left: -6px; animation: float 5.5s ease-in-out infinite; }
.fc-2 { bottom: 34px; right: -10px; animation: float 6.5s ease-in-out infinite 0.8s; }
.fc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 46px; }
  .hero-art { height: 300px; }
  .hero-art .ring { width: 270px; height: 270px; }
  .hero-art .ring.r2 { width: 190px; height: 190px; }
  .hero-art .globe { width: 200px; height: 200px; }
  .fc-1 { left: 0; top: 0; }
  .fc-2 { right: 0; bottom: 10px; }
}

/* ---------- 首屏背景大图（?bg=1..4 预览，默认不加载） ---------- */
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 52%;
  z-index: 0; pointer-events: none;
}
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
/* 有背景图时：关掉点阵、收起右侧装饰（地球与浮卡会和大图抢焦点） */
.hero.has-bg::after { display: none; }
.hero.has-bg .hero-veil { display: block; }
.hero.has-bg .hero-art { display: none; }
.hero.has-bg .hero-grid { grid-template-columns: minmax(0, 640px); min-height: 560px; }

/* 浅调图：保留深色文字，只用白色渐变压出左侧可读区 */
.hero.theme-light { background: #eef3ef; }
.hero.theme-light .hero-veil {
  background: linear-gradient(90deg,
    rgba(252, 253, 252, 0.84) 0%,
    rgba(252, 253, 252, 0.74) 30%,
    rgba(252, 253, 252, 0.38) 52%,
    rgba(252, 253, 252, 0.06) 74%,
    rgba(252, 253, 252, 0) 100%);
}

/* 深调图：白字，深绿渐变压暗左侧 */
.hero.theme-dark .hero-veil {
  background: linear-gradient(90deg,
    rgba(4, 28, 21, 0.82) 0%,
    rgba(4, 28, 21, 0.72) 30%,
    rgba(4, 28, 21, 0.46) 54%,
    rgba(4, 28, 21, 0.12) 78%,
    rgba(4, 28, 21, 0.02) 100%);
}
.hero.theme-dark .pill {
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero.theme-dark h1 { color: #fff; }
.hero.theme-dark h1 .grad {
  background: linear-gradient(110deg, #ffffff 0%, #86edc9 62%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.theme-dark .lead { color: rgba(255, 255, 255, 0.84); }
.hero.theme-dark .hero-trust { color: rgba(255, 255, 255, 0.74); }
.hero.theme-dark .tick { background: rgba(255, 255, 255, 0.18); color: #8ef0cd; }
.hero.theme-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.10); color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.hero.theme-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18); color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

/* 预览切换条（只在地址栏带 ?bg= 时出现，不影响正式访问） */
.hero-bg-switch {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 900; display: flex; align-items: center; gap: 5px;
  padding: 5px 7px 5px 12px; border-radius: 999px;
  background: rgba(10, 30, 24, 0.88); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; white-space: nowrap;
}
.hero-bg-switch[hidden] { display: none; }
.hero-bg-switch .hbs-label { opacity: 0.6; letter-spacing: 0.04em; margin-right: 2px; font-size: 11.5px; }
.hero-bg-switch button {
  flex: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 4px 9px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, 0.13); color: rgba(255, 255, 255, 0.9);
  transition: background 0.18s, color 0.18s;
}
.hero-bg-switch button:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.hero-bg-switch button[aria-pressed="true"] { background: #fff; color: #0b3327; font-weight: 700; }

@media (max-width: 900px) {
  .hero.has-bg .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-bg { object-position: center 42%; }
  .hero.theme-dark .hero-veil {
    background: linear-gradient(180deg,
      rgba(4, 28, 21, 0.90) 0%,
      rgba(4, 28, 21, 0.80) 52%,
      rgba(4, 28, 21, 0.62) 100%);
  }
  .hero.theme-light .hero-veil {
    background: linear-gradient(180deg,
      rgba(252, 253, 252, 0.90) 0%,
      rgba(252, 253, 252, 0.80) 52%,
      rgba(252, 253, 252, 0.58) 100%);
  }
}
@media (max-width: 640px) {
  .hero-bg-switch {
    bottom: 14px; padding: 6px 8px; gap: 5px;
    max-width: calc(100vw - 24px); overflow-x: auto;
  }
  .hero-bg-switch .hbs-label { display: none; }
  .hero-bg-switch button { padding: 5px 8px; font-size: 12px; }
}

/* ---------- 数据条 ---------- */
.stat-band { background: var(--bg-deep); color: #fff; position: relative; overflow: hidden; }
.stat-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 15% 0%, rgba(52, 211, 166, 0.28), transparent 60%),
              radial-gradient(600px 300px at 85% 100%, rgba(15, 138, 99, 0.4), transparent 62%);
}
.stat-grid {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 40px 0;
}
.stat { text-align: center; }
.stat b {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #9defd0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); margin-top: 4px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; padding: 32px 0; } }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px; display: block;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-s);
  transition: transform 0.24s var(--ease), box-shadow 0.24s, border-color 0.24s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe9de; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-box {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box.orange { background: var(--accent-soft); color: var(--accent); }
.icon-box.cyan { background: #e6f7f1; color: #159a72; }
.icon-box.amber { background: #fdf3e6; color: #e0913a; }
.icon-box.mint { background: #e6f7f1; color: #159a72; }
.icon-box.teal { background: #e3f3f2; color: #0d7d76; }

/* ---------- 国家卡片 ---------- */
.country-card {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-s); cursor: pointer;
  transition: transform 0.26s var(--ease), box-shadow 0.26s;
  display: flex; flex-direction: column;
}
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.country-cover {
  height: 148px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px 22px;
}
.country-cover .cc-code {
  position: relative; z-index: 2;
  font-size: 34px; font-weight: 800; color: #fff; letter-spacing: 0.04em;
  line-height: 1; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.country-cover .cc-en {
  position: absolute; right: 16px; top: 14px; z-index: 2;
  font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.country-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.7;
}
.country-cover .blob {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  right: -60px; top: -70px; background: rgba(255, 255, 255, 0.16);
}
.country-cover .blob.b2 { right: auto; left: -50px; top: auto; bottom: -90px; width: 150px; height: 150px; background: rgba(255, 255, 255, 0.1); }
/* ---- 国家卡 / 服务块的地标背景图（渲染层给容器挂 .has-img 才生效） ----
   图铺满 + 一层深色蒙版，保证白色的代码字与英文小字压在照片上仍然可读；
   没图的容器不挂 has-img，维持原来的渐变 + 点阵 + 装饰圆。 */
.country-cover .cc-img,
.svc-visual .sv-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease);
}
.country-cover .cc-veil,
.svc-visual .cc-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(7, 48, 36, 0.16) 0%,
    rgba(7, 48, 36, 0.34) 62%,
    rgba(7, 48, 36, 0.58) 100%);
}
.country-cover.has-img::after,
.svc-visual.has-img::after { display: none; }
.country-cover .cc-en { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
@media (hover: hover) and (pointer: fine) {
  .country-card:hover .cc-img,
  .svc-block:hover .sv-img { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .country-cover .cc-img,
  .svc-visual .sv-img { transition: none; }
  .country-card:hover .cc-img,
  .svc-block:hover .sv-img { transform: scale(1.01); }
}
.country-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.country-body h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.country-body .tagline { color: var(--muted); font-size: 14.5px; margin-top: 8px; flex: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.country-more {
  margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand);
  display: inline-flex; align-items: center; gap: 5px;
}
.country-card:hover .country-more { gap: 10px; }
.country-more { transition: gap 0.2s; }

/* ---------- 文章卡片 ---------- */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: transform 0.24s var(--ease), box-shadow 0.24s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-cover {
  height: 168px; background: linear-gradient(135deg, #0f8a63, #34d3a6);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 160px at 80% 0%, rgba(255, 255, 255, 0.3), transparent 60%);
}
.post-cover .pc-cat {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  background: rgba(255, 255, 255, 0.94); color: var(--brand);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 17.5px; line-height: 1.5; }
.post-body p { color: var(--muted); font-size: 14.5px; margin-top: 10px; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 12.5px; color: var(--muted);
}
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #cfdfd8; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: var(--brand); border: 1px solid var(--line);
  font-weight: 800; font-size: 17px; box-shadow: var(--shadow-s); position: relative; z-index: 2;
}
.step h4 { font-size: 16.5px; margin: 16px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step::after {
  content: ""; position: absolute; top: 31px; left: 58px; right: -14px; height: 2px;
  background: linear-gradient(90deg, #d6ece3, transparent);
}
.step:last-child::after { display: none; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA 区块 ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  background: linear-gradient(120deg, #0a2c22 0%, #0f4d38 52%, #10725a 100%);
  color: #fff; padding: 62px 56px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 12% 20%, rgba(52, 211, 166, 0.3), transparent 60%),
              radial-gradient(460px 240px at 88% 90%, rgba(224, 145, 58, 0.26), transparent 62%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.8); font-size: 16px; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }
@media (max-width: 700px) { .cta-band { padding: 44px 24px; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #071f19; color: rgba(255, 255, 255, 0.72); padding: 62px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0.02em; }
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text span { color: rgba(255, 255, 255, 0.45); }
.site-footer p { font-size: 14px; line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-contact div { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; opacity: 0.7; }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 表单 ---------- */
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 15px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 138, 99, 0.12);
}
.textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 12.5px; color: #d92d20; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* ---------- 提示 / Toast ---------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-l);
  animation: toast-in 0.3s var(--ease); display: flex; align-items: center; gap: 9px;
}
.toast.ok { background: #0b8a5c; }
.toast.err { background: #d92d20; }
.toast.warn { background: #b54708; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 32, 26, 0.55);
  backdrop-filter: blur(3px); z-index: 150;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-l); width: 100%; max-width: 720px;
  max-height: 86vh; overflow: auto; box-shadow: var(--shadow-l); animation: toast-in 0.28s var(--ease);
}
.modal-head {
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px; position: sticky; top: 0; background: #fff; z-index: 2;
}
.modal-head h3 { font-size: 21px; flex: 1; }
.modal-head .meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.modal-close {
  border: 0; background: var(--bg-soft); width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; flex-shrink: 0;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }
.modal-body { padding: 26px; }
/* ---------------- 文章详情页 ---------------- */
.article-page { max-width: 820px; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .cur { color: var(--ink-2); }
.article-title { font-size: 34px; line-height: 1.32; letter-spacing: -0.5px; margin: 14px 0 18px; }
.article-page .post-meta { margin-bottom: 4px; }
.article-page .article-body { margin-top: 26px; font-size: 16.5px; line-height: 2; }
.article-page .article-body h3 { font-size: 20px; margin: 34px 0 14px; }
.article-page .article-body p { margin-bottom: 16px; }
.related { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin: 0 0 20px; }
.rel-grid { display: grid; gap: 14px; }
.rel-item { display: grid; gap: 6px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: 0.22s var(--ease); }
.rel-item:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.rel-cat { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0.4px; }
.rel-item strong { font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.rel-date { font-size: 12.5px; color: var(--muted); }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--brand); }

.article-body { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); }
.article-body h3 { font-size: 18px; margin: 26px 0 12px; }
.article-body p { margin-bottom: 14px; }
.article-body ul { margin: 12px 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }

/* ---------- 页面头部（内页） ---------- */
/* 被后台删空的文案：元素没内容时不再占位（后台删了标题，前台就是真的没有） */
[hidden] { display: none !important; }
.page-hero h1:empty, .page-hero p:empty,
.cm-hero h1:empty, .cm-hero p:empty,
.hero h1:empty, .hero p:empty { display: none; }
.contact-card p:empty { display: none; }

.page-hero {
  background:
    radial-gradient(720px 340px at 82% 0%, rgba(52, 211, 166, 0.16), transparent 62%),
    linear-gradient(180deg, #f5faf7, #fff);
  padding: 68px 0 56px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 138, 99, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 680px; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- 关于我们 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.visual {
  border-radius: var(--radius-l); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0a6b4c, #34d3a6); min-height: 340px;
  box-shadow: var(--shadow-l); display: grid; place-items: center; padding: 34px;
}
.visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visual .v-inner { position: relative; z-index: 2; color: #fff; text-align: center; }
.visual .v-inner b { font-size: 46px; font-weight: 800; display: block; letter-spacing: -0.02em; }
.visual .v-inner span { font-size: 14.5px; opacity: 0.85; }
.visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px 200px at 78% 12%, rgba(255, 255, 255, 0.24), transparent 62%);
}
.visual .v-inner { position: relative; z-index: 3; }
/* 后台换上真实照片时，加一层深色蒙版保证白色文字可读 */
.visual.has-img::after {
  background: linear-gradient(180deg, rgba(7, 31, 25, 0.28), rgba(7, 31, 25, 0.66));
}
/* 后台上传的首屏配图（#hero-img）
   之前是直接把 <img> 塞进 .hero-art，只给了 width:100% + 1:1 比例，
   而容器高度固定 400px —— 图上传来就比容器高，溢出盖到下面的数据条。
   现在：图片绝对定位铺满容器、按容器裁切，任何尺寸都不会撑破版式；
   没上传时 hidden，页面显示原来的地球装饰。 */
.hero-art img { display: block; max-width: 100%; }
.hero-art .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 26px;
}
/* 特异性要压过上面的 display:block，否则 hidden 不生效 */
.hero-art .hero-img[hidden] { display: none; }
/* 圆角与外阴影放在容器上：图片外的 overflow:hidden 会把自身阴影裁掉 */
.hero-art.has-img { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-l); }
/* 有真实照片时，地球、光环、两张浮动卡片全部让位 */
.hero-art.has-img > :not(.hero-img) { display: none; }

.value-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.value-item { display: flex; gap: 15px; }
.value-item .vi-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.value-item h4 { font-size: 16.5px; margin-bottom: 5px; }
.value-item p { color: var(--muted); font-size: 14.5px; }
.prose p { color: var(--ink-2); font-size: 16px; margin-bottom: 16px; line-height: 1.9; }

/* ---------- 服务页 ---------- */
.svc-block {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: var(--radius-l); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-s); margin-bottom: 26px;
}
.svc-block:nth-child(even) .svc-visual { order: 2; }
.svc-visual {
  border-radius: var(--radius); min-height: 240px; position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff; padding: 26px;
}
.svc-visual .sv-code { font-size: 62px; font-weight: 800; letter-spacing: 0.06em; line-height: 1; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22); }
.svc-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
}
.svc-visual .blob { position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -80px; background: rgba(255, 255, 255, 0.14); }
.svc-visual > * { position: relative; z-index: 2; }
.svc-info h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-en { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.svc-info > p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.svc-feats { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-feat { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.svc-feat .tick { margin-top: 4px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
@media (max-width: 900px) {
  .svc-block { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
  .svc-block:nth-child(even) .svc-visual { order: 0; }
}
@media (max-width: 560px) { .svc-feats { grid-template-columns: 1fr; } }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 34px; box-shadow: var(--shadow-s);
}
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.ci-ico {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.ci-ico svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.contact-item b { font-size: 16px; font-weight: 700; word-break: break-all; }
.map-box {
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, #edf7f2, #f7fbf9); min-height: 220px;
  display: grid; place-items: center; position: relative; margin-top: 26px; padding: 26px; text-align: center;
}
.map-box .map-pin { color: var(--brand); }
.map-box p { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- 认证页 ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-card {
  background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line);
  box-shadow: var(--shadow-l); padding: 38px; width: 100%; max-width: 460px;
}
.auth-card h1 { font-size: 26px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 999px; margin: 24px 0; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: 0.2s;
  font-family: inherit;
}
.tabs button.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow-s); }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth-foot a { color: var(--brand); font-weight: 700; }
.notice {
  border-radius: var(--radius-s); padding: 12px 15px; font-size: 13.5px; line-height: 1.7;
  margin-bottom: 20px; border: 1px solid;
}
.notice.info { background: var(--brand-soft); border-color: #cdeade; color: #0a6b4c; }
.notice.warn { background: #fffaf0; border-color: #ffe2b8; color: #97540b; }
.notice.err { background: #fff5f4; border-color: #ffd4cf; color: #b42318; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 54px 24px; color: var(--muted); }
.empty .e-ico { width: 62px; height: 62px; border-radius: 20px; background: var(--bg-soft); display: grid; place-items: center; margin: 0 auto 18px; color: #a8bdb4; }
.empty p { font-size: 15px; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------- 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .ring, .hero-art .float-card { animation: none; }
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.hidden { display: none !important; }
.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;
}

/* ---------- 案例匹配入口条（首页 / 服务页复用） ---------- */
.case-invite {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; padding: 22px 26px;
  border: 1px solid #cdeadf; border-radius: var(--radius);
  background:
    radial-gradient(520px 200px at 6% -50%, rgba(52, 211, 166, 0.22), transparent 72%),
    var(--brand-soft);
}
.case-invite .ci-ico {
  width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 8px 20px rgba(15, 138, 99, 0.24);
}
.case-invite .ci-ico svg { width: 24px; height: 24px; }
.case-invite .ci-body { flex: 1 1 300px; min-width: 0; }
.case-invite h3 { font-size: 18px; margin-bottom: 6px; }
.case-invite p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.case-invite .ci-btn { flex-shrink: 0; }
@media (max-width: 620px) {
  .case-invite { padding: 20px; gap: 15px; }
  .case-invite .ci-btn { width: 100%; justify-content: center; }
}

/* ---------- 国家详情页（美国留学 usa.html，其它国家可复用） ---------- */
.usa-hero { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 46px; align-items: center; }
.usa-hero .eyebrow { display: inline-block; margin-bottom: 12px; }
.usa-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.usa-hero p { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 640px; }
.usa-hero-visual { min-height: 320px; }

/* 后台换上的配图铺满视觉块；清除后回到渐变底，图层顺序与文字压暗沿用 .visual 原有规则 */
.visual img.usa-img { z-index: 1; }
.visual img[hidden] { display: none; }

.usa-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.usa-feat {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-s);
}
.usa-feat .tick { flex: none; margin-top: 5px; }
.usa-feat strong { display: block; font-size: 14.5px; line-height: 1.5; }
.usa-feat span.d { display: block; margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.usa-badge {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 4px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--brand), #3dbb8f);
}
.usa-school h3 { font-size: 16.5px; }
.usa-school p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.usa-case { border-left: 3px solid var(--brand); }
.usa-case h3 { font-size: 16px; }
.usa-case p { margin-top: 8px; font-size: 14px; line-height: 1.78; color: var(--muted); }

@media (max-width: 900px) {
  .usa-hero { grid-template-columns: 1fr; gap: 30px; }
  .usa-hero-visual { min-height: 230px; }
  .usa-feats { grid-template-columns: 1fr; }
}

/* 卡片整块可点（首页国家卡 / 留学国家页服务卡）
   透明链接铺满卡片，卡片内另有「查看详情」链接——两个链接是并列关系，
   不是 a 套 a，所以不会出现无效嵌套。 */
.country-card .cc-link {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}
.country-card .country-more { position: relative; z-index: 2; }
.svc-visual > .svc-link {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit;
}

/* 美国页两处视觉块：换成真实照片后压一层暗色，保证白字可读 */
.usa-hero-visual::after,
#usa-about-visual::after {
  background:
    linear-gradient(180deg, rgba(7, 31, 25, 0.16), rgba(7, 31, 25, 0.58)),
    radial-gradient(360px 200px at 78% 12%, rgba(255, 255, 255, 0.18), transparent 62%);
}

/* ==========================================================================
   交互与动效层（v20261053）
   --------------------------------------------------------------------------
   目标：鼠标移上去要有明确反馈，而不是只有 5px 的位移。
     1) 卡片：上浮 + 描边提亮 + 顶部亮线展开 + 跟随光标的光斑 + 标题变色
     2) 院校徽章：放大微旋；案例卡：左侧色条增亮；特色项：整行右移、勾选块点亮
     3) 图片：缓慢放大（hover-zoom）+ 高光扫过
     4) 服务卡（留学国家页）：整块上浮、色块装饰微动
     5) 按钮：光泽扫过 + 按下回弹
     6) 入场：卡片按索引错开上浮淡入

   三条硬规则（别破坏）：
     · 悬停效果只在真鼠标设备启用 —— @media (hover:hover) and (pointer:fine)
     · prefers-reduced-motion 时全部关掉
     · 入场只用 translate/opacity，且 JS 挂 .anim-ready 才生效 ——
       无 JS 或脚本报错时卡片照常全显，不会白屏（内容在 HTML 里，爬虫照常收录）
   ========================================================================== */

/* ---------- 1. 卡片基础层（光斑 + 顶部亮线） ---------- */
[data-setting-cards] > .card {
  position: relative;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
/* 跟随光标的光斑：坐标由 ui.js 写入 --mx / --my */
[data-setting-cards] > .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px 170px at var(--mx, 50%) var(--my, 0%),
    rgba(15, 138, 99, 0.14),
    rgba(15, 138, 99, 0) 72%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
/* 顶部渐变亮线：悬停时从中间向两侧展开 */
[data-setting-cards] > .card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: transform 0.42s var(--ease);
  pointer-events: none;
}
[data-setting-cards] > .card > * {
  position: relative;
  z-index: 1;
}
[data-setting-cards] > .card h3 {
  transition: color 0.24s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  [data-setting-cards] > .card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 138, 99, 0.42);
    background: linear-gradient(180deg, #fff 0%, #f7fdfa 100%);
    box-shadow:
      0 18px 38px rgba(10, 60, 45, 0.13),
      0 0 0 4px rgba(15, 138, 99, 0.07);
  }
  [data-setting-cards] > .card:hover::before { opacity: 1; }
  [data-setting-cards] > .card:hover::after { transform: scaleX(1); }
  [data-setting-cards] > .card:hover h3 { color: var(--brand); }
}

/* ---------- 2. 院校徽章 / 案例卡 / 特色项 ---------- */
[data-setting-cards] > .usa-school .usa-badge {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s var(--ease),
    filter 0.4s var(--ease);
}
[data-setting-cards] > .usa-case {
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.usa-feat {
  transition:
    transform 0.26s var(--ease),
    border-color 0.26s var(--ease),
    background 0.26s var(--ease),
    box-shadow 0.26s var(--ease);
}
.usa-feat .tick {
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.26s var(--ease),
    color 0.26s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  [data-setting-cards] > .usa-school:hover .usa-badge {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 12px 24px rgba(15, 138, 99, 0.34);
    filter: saturate(1.16) brightness(1.05);
  }
  /* 左色条用 inset 阴影加粗，避免改 border-width 造成 2px 抖动 */
  [data-setting-cards] > .usa-case:hover {
    border-left-color: #12b184;
    box-shadow:
      inset 3px 0 0 rgba(18, 177, 132, 0.6),
      0 18px 38px rgba(10, 60, 45, 0.13),
      0 0 0 4px rgba(15, 138, 99, 0.07);
  }
  .usa-feat:hover {
    transform: translateX(4px);
    border-color: rgba(15, 138, 99, 0.4);
    background: linear-gradient(180deg, #fff 0%, #f4fdf9 100%);
    box-shadow: 0 10px 22px rgba(10, 60, 45, 0.09);
  }
  .usa-feat:hover .tick {
    transform: scale(1.18);
    background: var(--brand);
    color: #fff;
  }
}

/* ---------- 3. 图片视觉块：缩放 + 高光扫过 ---------- */
.usa-hero-visual,
#usa-about-visual { isolation: isolate; }
.usa-hero-visual .usa-img,
#usa-about-visual .usa-img {
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.usa-hero-visual .v-inner,
#usa-about-visual .v-inner { transition: transform 0.45s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .usa-hero-visual:hover .usa-img,
  #usa-about-visual:hover .usa-img {
    transform: scale(1.055);
    filter: saturate(1.06);
  }
  .usa-hero-visual:hover .v-inner,
  #usa-about-visual:hover .v-inner { transform: translateY(-3px); }
  /* ::before 在 .visual 上原本空着，用来做斜向高光 */
  .usa-hero-visual::before,
  #usa-about-visual::before {
    content: "";
    position: absolute;
    inset: -10% -30%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.24) 50%,
      transparent 60%
    );
    transform: translateX(-65%);
    transition: transform 0.85s var(--ease);
  }
  .usa-hero-visual:hover::before,
  #usa-about-visual:hover::before { transform: translateX(65%); }
}

/* ---------- 4. 留学国家页的服务卡：从「完全没反馈」改成整块响应 ---------- */
.svc-block {
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.svc-visual .blob,
.svc-visual .sv-code { transition: transform 0.55s var(--ease); }
.svc-visual .sv-code { display: inline-block; }

@media (hover: hover) and (pointer: fine) {
  .svc-block:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 138, 99, 0.35);
    box-shadow: 0 20px 44px rgba(10, 60, 45, 0.13);
  }
  .svc-block:hover .svc-visual .blob { transform: scale(1.18) translate(-8px, 8px); }
  .svc-block:hover .svc-visual .sv-code { transform: scale(1.05); }
}

/* ---------- 5. 按钮：光泽扫过 + 按下回弹 ---------- */
.btn {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary::after,
.btn-accent::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: 0;
  width: 45%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 100%
  );
  transform: translateX(-220%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:active { transform: translateY(1px) scale(0.995); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::after,
  .btn-accent:hover::after { transform: translateX(320%); }
}

/* ---------- 6. 卡片入场：按索引错开 ---------- */
[data-setting-cards].anim-ready > * {
  opacity: 0;
  /* 用独立的 translate 属性做入场，避免和 hover 的 transform 互相覆盖 */
  translate: 0 14px;
}
[data-setting-cards].anim-ready > *.in {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.55s var(--ease) var(--d, 0ms),
    translate 0.55s var(--ease) var(--d, 0ms);
}

/* ---------- 7. 关闭动效：尊重系统设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-setting-cards].anim-ready > *,
  [data-setting-cards].anim-ready > *.in {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
  [data-setting-cards] > .card,
  [data-setting-cards] > .card::before,
  [data-setting-cards] > .card::after,
  .usa-feat,
  .usa-feat .tick,
  .svc-block,
  .usa-hero-visual .usa-img,
  #usa-about-visual .usa-img,
  .btn { transition: none !important; }
  .btn-primary::after,
  .btn-accent::after { display: none; }
  [data-setting-cards] > .card:hover,
  .usa-feat:hover,
  .svc-block:hover { transform: none; }
}

/* ---------- 8. 首屏文字依次浮入（纯 CSS，无 JS 也照常显示） ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.usa-hero > div > * { animation: riseIn 0.7s var(--ease) both; }
.usa-hero > div > *:nth-child(1) { animation-delay: 0.04s; }
.usa-hero > div > *:nth-child(2) { animation-delay: 0.12s; }
.usa-hero > div > *:nth-child(3) { animation-delay: 0.2s; }
.usa-hero > div > *:nth-child(4) { animation-delay: 0.28s; }
.usa-hero-visual { animation: riseIn 0.8s var(--ease) 0.16s both; }

/* ---------- 9. 院校徽章：悬停时一道光斜扫而过 ---------- */
[data-setting-cards] > .usa-school .usa-badge {
  position: relative;
  overflow: hidden;
}
[data-setting-cards] > .usa-school .usa-badge::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%
  );
  transform: translateX(-140%) rotate(10deg);
  transition: transform 0.72s var(--ease);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  [data-setting-cards] > .usa-school:hover .usa-badge::after {
    transform: translateX(140%) rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .usa-hero > div > *,
  .usa-hero-visual { animation: none; }
  [data-setting-cards] > .usa-school .usa-badge::after { display: none; }
}

/* ==========================================================================
   美国页首屏：全幅大图 banner（v20261056）
   --------------------------------------------------------------------------
   参考 gmaied.com/usa.html 的做法：整幅照片 + 压暗蒙版 + 居中标题。
   与 .page-hero 共用外壳，但背景/文字色/对齐全部覆盖。

   图片位是「常驻 <img> + 切 src」：
     · 有图 → 铺满裁切，蒙版加深
     · 后台上传的图被清除 → hidden，露出下面的品牌绿渐变，文字照常显示
   ========================================================================== */
.usa-banner {
  display: flex;
  align-items: center;
  min-height: 580px;
  padding: 76px 0 80px;
  text-align: center;
  background:
    radial-gradient(900px 460px at 50% 18%, rgba(52, 211, 166, 0.3), transparent 66%),
    linear-gradient(135deg, #05372a 0%, #0a6b4c 52%, #12b184 100%);
  isolation: isolate;
}
/* 关掉 .page-hero 的点阵装饰（大图上会显脏） */
.usa-banner::after { content: none; }
/* flex 容器里的 .container 必须显式撑满，否则会收缩成内容宽度 */
.usa-banner > .container { width: 100%; }

.usa-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 大图的天在上一半、建筑在中下段：往下取景，让建筑落在文字下方的可视区 */
  object-position: center 66%;
  z-index: 0;
  transform: scale(1);
  transition: transform 1.1s var(--ease);
}
.usa-banner-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 无图时的蒙版：只做一点点压暗，让品牌绿透出来 */
  background: linear-gradient(180deg, rgba(4, 26, 20, 0.34) 0%, rgba(4, 26, 20, 0.18) 46%, rgba(4, 26, 20, 0.52) 100%);
}
/* 有图时加深蒙版，保证白字在任何照片上都读得清。
   中间压到 0.5 左右就够——再重照片就成一块灰板，看不出是校园了。 */
.usa-banner:has(.usa-banner-img:not([hidden])) .usa-banner-veil {
  background:
    radial-gradient(1100px 560px at 50% 44%, rgba(3, 22, 17, 0.5), rgba(3, 22, 17, 0.32) 100%),
    linear-gradient(180deg, rgba(3, 22, 17, 0.5) 0%, rgba(3, 22, 17, 0.22) 50%, rgba(3, 22, 17, 0.64) 100%);
}

.usa-banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.usa-banner-inner > * { margin-left: auto; margin-right: auto; }

/* 面包屑：深底上的白色小字 */
.usa-banner .crumb {
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 26px;
  font-size: 13px;
}
.usa-banner .crumb a { color: rgba(255, 255, 255, 0.82); }
.usa-banner .crumb a:hover { color: #fff; }
.usa-banner .crumb span { opacity: 0.45; }

.usa-banner .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.usa-banner h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(2, 18, 14, 0.4);
}
.usa-banner .usa-banner-desc {
  max-width: 700px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.78;
  text-shadow: 0 1px 18px rgba(2, 18, 14, 0.42);
}
.usa-banner-actions {
  justify-content: center;
  margin-top: 34px;
}
.usa-banner-actions .btn-light { backdrop-filter: blur(6px); }

/* 学制补充信息：标题区底部一行，用细线分隔 */
.usa-banner-stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 560px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.usa-banner-stat b {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.usa-banner-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* 大字与视觉块入场（沿用全局 riseIn） */
.usa-banner-inner > .crumb { animation: riseIn 0.6s var(--ease) both; }
.usa-banner-inner > .eyebrow { animation: riseIn 0.62s var(--ease) 0.06s both; }
.usa-banner-inner > h1 { animation: riseIn 0.72s var(--ease) 0.12s both; }
.usa-banner-inner > .usa-banner-desc { animation: riseIn 0.72s var(--ease) 0.2s both; }
.usa-banner-inner > .usa-banner-actions { animation: riseIn 0.72s var(--ease) 0.28s both; }
.usa-banner-inner > .usa-banner-stat { animation: riseIn 0.72s var(--ease) 0.36s both; }

@media (hover: hover) and (pointer: fine) {
  .usa-banner:hover .usa-banner-img { transform: scale(1.025); }
}

@media (max-width: 760px) {
  .usa-banner {
    min-height: 470px;
    padding: 54px 0 58px;
  }
  .usa-banner .crumb { margin-bottom: 20px; font-size: 12.5px; }
  .usa-banner h1 { font-size: clamp(32px, 9.2vw, 42px); }
  .usa-banner .usa-banner-desc {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.68;
  }
  .usa-banner-actions { margin-top: 26px; gap: 10px; }
  .usa-banner-actions .btn { padding: 11px 20px; font-size: 14.5px; }
  .usa-banner-stat { margin-top: 34px; padding-top: 18px; }
  .usa-banner-stat b { font-size: 21px; }
  .usa-banner-img { object-position: center 58%; }
}

@media (prefers-reduced-motion: reduce) {
  .usa-banner-inner > *,
  .usa-banner-img { animation: none !important; transition: none !important; }
  .usa-banner:hover .usa-banner-img { transform: none; }
}
