/* JobTourChina — 职业蓝 + 暖金 主题（light）
   站点通用样式规范见 jobtourchina-i18n-site SKILL.md
   卡片网格：合并选择器 + auto-fill，避免竖排/横排大卡 */
:root {
  --primary: #14366b;
  --primary-700: #0f2952;
  --primary-500: #1d4e8f;
  --primary-300: #4a6fa5;
  --accent: #c8a24c;       /* 暖金 */
  --accent-light: #e3c97e;
  --gold: #c8a24c;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-dark: #0f2952;
  --text: #1f2a37;
  --muted: #5b6b7f;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 54, 107, 0.10);
  --shadow-sm: 0 3px 12px rgba(20, 54, 107, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary-500); text-decoration: none; }
a:hover { color: var(--primary-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--primary-700); margin: 0 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--accent); }
.center { text-align: center; }
.small { font-size: .9rem; }

/* ---------- 导航（唯一结构，main.js 处理汉堡菜单） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary-700); font-size: 1.15rem; }
.nav-brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-300));
  display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 800;
}
.nav-brand small { display: block; font-weight: 500; font-size: .64rem; color: var(--accent); letter-spacing: .5px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
/* The container is capped at 1120px, so the bar has exactly 1080px of usable
   width at every viewport >= 1120. Sizing has to fit that constant, not the
   viewport: 11 items + CTA + brand overflow at .95rem/12px padding. */
.nav-links a {
  display: block; padding: 8px 9px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .86rem;
  white-space: nowrap;   /* FR/ES/RU labels are longer than EN; wrapping breaks the bar height */
}
/* Label length is language-specific, not viewport-specific: the bar has a fixed
   1080px of usable width at every viewport >= the breakpoint, so EN (1003px) fits
   while VI (1356px) and ES (1259px) do not. Tighten only the languages that need
   it so EN/FR keep their current rhythm. Measured 2026-11-18. */
html:lang(ru) .nav-links a,
html:lang(ar) .nav-links a,
html:lang(es) .nav-links a,
html:lang(vi) .nav-links a { padding: 8px 6px; }
html:lang(ru) .nav-links a,
html:lang(ar) .nav-links a { font-size: .82rem; letter-spacing: -.01em; }
.nav-links a:hover, .nav-links a.active { background: var(--bg-alt); color: var(--primary-700); }
.nav-cta { background: var(--accent) !important; color: #1a1306 !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--accent-light) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary-700); margin: 4px 0; }

/* ---------- 按钮 / CTA ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: .18s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-gold { background: var(--accent); color: #1a1306; }
.btn-gold:hover { background: var(--accent-light); color: #1a1306; }
.btn-outline { border-color: var(--primary-300); color: var(--primary-700); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); }
/* Hero buttons carry inline `color:#fff` so they read white on the dark
   backdrop — but .btn-outline paints a white background, which made the two
   secondary hero CTAs invisible (white on white). Force a transparent fill in
   the hero only. */
.hero .btn-outline { background: transparent; }
.hero .btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 60%, var(--primary-300) 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero h1 { color: #fff; font-size: 2.7rem; }
.hero p { color: #dbe6f5; font-size: 1.12rem; max-width: 640px; }
.hero .accent-line { color: var(--accent-light); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-gold { color: #1a1306; }

/* 信任条 */
.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 26px; padding: 16px 20px; justify-content: center; }
.trust-bar .item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.trust-bar .item b { color: var(--primary-700); }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section.bg-white { background: #fff; }
.section.bg-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; }
.section-head p { color: var(--muted); }

/* ---------- 卡片网格（关键规范） ---------- */
.cards-grid, .cards-grid-2, .cards-grid-3, .cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
/* 有意固定列数的大特性卡（不套 auto-fill） */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .18s; height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .tag { display: inline-block; font-size: .75rem; background: var(--bg-alt); color: var(--primary-500); padding: 3px 9px; border-radius: 20px; margin: 8px 6px 0 0; }

/* 带配图的文章卡片（Insights 列表） */
.card.card-article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
/* 注意：img 带 width/height 属性时，必须显式 height:auto，
   否则高度会被属性值锁定，aspect-ratio 失效、图片被裁切放大。 */
.card.card-article .card-thumb {
  width: 100%; height: auto; display: block;
  background: var(--bg-dark); border-bottom: 1px solid var(--border);
}
.card.card-article .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card.card-article h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.35; }
.card.card-article p { flex: 1; }
.card.card-article .card-tags { margin-top: 12px; }

/* 城市卡 */
.city-card { position: relative; overflow: hidden; }
.city-card .cover {
  height: 120px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1.5rem; font-weight: 800;
}
.city-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.city-card ul li { margin: 2px 0; }

/* ---------- 流程步骤 ---------- */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* 行业细分块 */
.industry { padding: 20px 0; border-top: 1px solid var(--border); }
.industry:first-of-type { border-top: none; padding-top: 4px; }
.industry h3 { margin: 0 0 10px; color: var(--primary-700); font-size: 1.2rem; }
.industry p { margin: 6px 0; color: var(--muted); font-size: .95rem; }
.industry b { color: var(--text); font-weight: 600; }

/* ---------- 页面横幅（文章/指南头部） ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: #fff; padding: 54px 0 44px;
}
.page-banner .breadcrumb { font-size: .85rem; color: #cdddf2; margin-bottom: 10px; }
.page-banner .breadcrumb a { color: #cdddf2; }
.page-banner h1 { color: #fff; margin: 0 0 10px; }
.page-banner p { color: #dbe6f5; max-width: 680px; margin: 0; }

/* 文章布局 */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 84px; }
.sidebar-cta { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-cta h4 { margin-top: 0; }
/* 导语（正文首段）：略大字号，便于首屏扫描；方向无关，RTL 同样适用 */
.article-body p.lead { font-size: 1.05rem; font-weight: 500; }

.article-body h2 { margin-top: 1.4em; }
.article-body h3 { margin-top: 1.2em; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

/* 官方出处块（法律/机构引注，按国际惯例不翻译，见 data-no-i18n）
   强制 LTR：英文法条名在阿拉伯语页面的 RTL 上下文里会把结尾标点排到行首 */
.article-sources {
  direction: ltr; text-align: left;
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--muted); line-height: 1.6;
}
.article-sources h2 {
  margin: 0 0 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary-700);
}
.article-sources ul { margin: 0 0 8px; padding-left: 18px; }
.article-sources li { margin: 5px 0; overflow-wrap: anywhere; }
.article-sources a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-sources a:hover { color: var(--primary-700); }
.article-sources p { margin: 8px 0 0; font-size: .8rem; }

/* 文章配图 */
.article-hero { margin: 0 0 30px; }
.article-hero img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-figure { margin: 30px 0; }
.article-figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-sm); }
.article-hero figcaption, .article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.credit { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); opacity: .8; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--primary); color: #fff; font-weight: 600; }
table.data tr:nth-child(even) td { background: var(--bg-alt); }
/* 计数/百分比单元格不折断，避免 “194” 与 “(75%)” 分行 */
.article-body table.data td.num { white-space: nowrap; }

/* 提示框 / 免责 */
.note { background: #fff8e8; border: 1px solid var(--accent-light); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; color: #5a4a1e; font-size: .93rem; }
.note.blue { background: #eef4fc; border-color: var(--primary-300); border-left-color: var(--primary); color: #1c3a63; }
.note.warn { background: #fdecea; border-color: #f0b4ad; border-left-color: #c0392b; color: #7a241b; }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #ffffff; border-top: 1px solid #e2e8f2; box-shadow: 0 -6px 24px rgba(16, 38, 73, .12); padding: 16px 20px; }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1 1 420px; font-size: .92rem; color: #33415c; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
  /* The live-chat launcher is pinned to the same bottom-right corner and was
     covering the "Accept all" button on narrow screens — reserve its footprint
     so both controls stay clickable. */
  .cookie-banner { padding-right: 92px; }
}
.mt-disclaimer { background: #f0f3f8; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; padding: 8px 20px; text-align: center; }

/* ---- i18n：语言切换条 + 翻译声明条 ---- */
.lang-switch {
  display: flex; gap: 2px; justify-content: flex-end; align-items: center;
  padding: 6px 20px; background: var(--bg-dark);
  overflow-x: auto; scrollbar-width: none;
}
.lang-switch::-webkit-scrollbar { display: none; }
.lang-switch a {
  color: rgba(255,255,255,.70); font-size: .78rem; line-height: 1;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap;
}
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,.10); }
.lang-switch a.active { color: var(--bg-dark); background: var(--accent); font-weight: 700; }

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[dir="rtl"] .lang-switch { justify-content: flex-start; }
html[dir="rtl"] .article-body ul,
html[dir="rtl"] .article-body ol { padding-right: 22px; padding-left: 0; }
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .article-body,
html[dir="rtl"] .page-banner { text-align: right; }
html[dir="rtl"] .data th,
html[dir="rtl"] .data td { text-align: right; }
/* Editorial notes (coverage notes, source policy) are quoted English source
   text, not translated UI: keep them left-to-right even inside an Arabic page,
   so they read as a quotation rather than as broken RTL prose. */
ul.emb-coverage[dir="ltr"],
#hp-dir-note[dir="ltr"],
#sch-dir-note[dir="ltr"],
#uni-dir-note[dir="ltr"],
#emb-dir-note[dir="ltr"] {
  text-align: left;
  direction: ltr;
}
/* Phone numbers and e-mail addresses must keep their own left-to-right
   reading order inside Arabic text, otherwise "+86 177 4202 6990" renders
   as "6990 4202 177 86+" and mailto links look mangled. */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lang-switch { padding: 6px 12px; justify-content: flex-start; }
  .lang-switch a { font-size: .74rem; padding: 5px 8px; }
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; font-size: 1.02rem; font-weight: 600; color: var(--primary-700); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-q .plus { color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 1rem; font-family: inherit; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-300); border-color: var(--primary-300); }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 单独同意勾选（订阅/留资） */
.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 18px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-alt, #f7f9fc);
  font-size: .88rem; line-height: 1.5; color: var(--muted); cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0;
  accent-color: var(--primary); flex: none; cursor: pointer;
}
.consent-row a { color: var(--primary); font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--primary-700); color: #fff; padding: 13px 22px; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100; font-size: .95rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #b42318; }

/* 联系四卡 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.contact-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.contact-card .icon { font-size: 1.8rem; }
.contact-card a { font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: #cdddf2; padding: 46px 0 26px; margin-top: 0; }
.footer a { color: #cdddf2; }
.footer a:hover { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 7px 0; font-size: .92rem; }
.footer .brand-logo { font-weight: 800; color: #fff; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.footer .brand-logo .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-300), var(--accent)); display: grid; place-items: center; color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #9fb3cf; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* 滚动动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; } .hero h1 { font-size: 2.1rem; }
}
/* Below the container cap the bar shrinks with the viewport, so the full
   link row no longer fits — switch to the hamburger earlier than the old
   720px (which left 720–1120 with a clipped CTA). */
@media (max-width: 1120px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: .95rem; padding: 10px 12px; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* City quick links (visa page deep-links to city conditions) */
.city-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.city-links a {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 30px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  background: #fff;
  transition: all .15s ease;
}
.city-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Job board (live openings) ===== */
.job-board { background: var(--bg-alt); }
.job-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 18px;
}
.job-filters input[type="search"], .job-filters select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .95rem; background: #fff; color: var(--text); min-width: 180px;
}
.job-filters input[type="search"] { flex: 1 1 240px; }
.job-filters label.check {
  display: inline-flex; align-items: center; gap: 7px; font-size: .92rem;
  color: var(--muted); cursor: pointer; user-select: none;
}
.job-filters input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.job-stats { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.job-stats b { color: var(--primary-700); }
.job-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.job-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card .jc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
/* Long Latin employer names inside an RTL row cannot shrink by default
   (flex min-width:auto), which pushed the company name and city label out of
   the card on the Arabic board. Let the name shrink and wrap, keep the city
   label intact. */
.job-card .jc-top > * { min-width: 0; }
.job-card .jc-company { font-weight: 700; color: var(--primary-700); font-size: 1rem; flex: 1 1 auto; overflow-wrap: anywhere; }
.job-card .jc-city { font-size: .8rem; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.job-card .jc-title { font-size: 1.08rem; color: var(--text); font-weight: 600; margin: 6px 0 10px; line-height: 1.35; }
.job-card .jc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.job-card .jc-tag {
  font-size: .74rem; padding: 2px 9px; border-radius: 20px;
  background: var(--bg-alt); color: var(--primary-500); border: 1px solid var(--border);
}
.job-card .jc-tag.visa { background: #fff8e8; color: #7a5b13; border-color: var(--accent-light); font-weight: 600; }
/* 已过截止日：保留为记录，但明确标注并弱化，避免被误认为仍在招 */
.job-card .jc-tag.closed { background: #f2f4f7; color: #667085; border-color: #d9dee7; font-weight: 600; }
.job-card.is-expired { opacity: .62; filter: grayscale(.35); }
.job-card.is-expired:hover { opacity: .82; filter: grayscale(0); transform: none; box-shadow: none; }
/* 已过截止日：保留为记录，但明确标注并弱化，避免被误认为仍在招 */
.job-card .jc-tag.closed { background: #f2f4f7; color: #667085; border-color: #d9dee7; font-weight: 600; }
.job-card.is-expired { opacity: .62; filter: grayscale(.35); }
.job-card.is-expired:hover { opacity: .82; filter: grayscale(0); transform: none; box-shadow: none; }
.job-card .jc-desc { font-size: .88rem; color: var(--muted); margin: 0 0 12px; flex: 1; }
.job-card .jc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.job-card .jc-salary { font-size: .88rem; font-weight: 700; color: var(--accent); }
.job-card .jc-salary.none { color: var(--muted); font-weight: 500; font-size: .82rem; }
.job-card .jc-apply {
  font-size: .85rem; font-weight: 600; color: #fff; background: var(--primary);
  padding: 7px 14px; border-radius: 8px; white-space: nowrap;
}
.job-card .jc-apply:hover { background: var(--primary-700); color: #fff; }
.job-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.job-loadmore { text-align: center; margin-top: 26px; }
.job-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }
.jb-error { background: #fdecec; border: 1px solid #f3b4b4; color: #8a1f1f; padding: 14px 16px; border-radius: 10px; }

/* 实时网络搜索（Jooble） */
.jb-live-form {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px;
}
.jb-live-form input[type="search"] {
  flex: 1 1 240px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .95rem; background: #fff; color: var(--text); min-width: 180px;
}
.job-card.live { border-left: 3px solid var(--accent); }
.job-card.live .jc-tag.live-badge {
  background: var(--accent-light); color: #5a4413; border-color: var(--accent); font-weight: 600;
}
.job-card.live .jc-apply { background: var(--accent); color: #1a1306; }
.job-card.live .jc-apply:hover { background: var(--accent-light); color: #1a1306; }

/* 使馆 / 国际组织招聘目录（信息聚合板块） */
.emb-group { margin-bottom: 34px; }
.emb-group > h3 {
  font-size: 1.15rem; color: var(--primary-700); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.emb-src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.emb-src {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.emb-src h4 { font-size: 1rem; color: var(--primary-700); margin: 8px 0; line-height: 1.35; }
.emb-src p { font-size: .85rem; color: var(--muted); margin: 0 0 8px; line-height: 1.5; overflow-wrap: anywhere; }
/* Anchor targets must clear the sticky header when deep-linked. */
section[id], div[id] { scroll-margin-top: 84px; }
.emb-src .emb-src-foot { margin-top: auto; padding-top: 10px; }
.emb-badge {
  display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 20px;
  background: var(--bg-alt); color: var(--primary-500); border: 1px solid var(--border); margin: 0 6px 6px 0;
}
.emb-badge.ok { background: #eef7f0; color: #1c6b37; border-color: #b9dfc4; }
.emb-badge.waf { background: #fff8e8; color: #7a5b13; border-color: var(--accent-light); }
.emb-link { font-size: .84rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.emb-link:hover { text-decoration: underline; }
.data-notes { padding-inline-start: 22px; max-width: 900px; }
.data-notes li { font-size: .95rem; line-height: 1.75; margin-bottom: 10px; color: var(--text); }
.data-notes b { color: var(--primary-700); }
.emb-bench { width: 100%; border-collapse: collapse; font-size: .88rem; }
.emb-bench th, .emb-bench td {
  text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.emb-bench th { background: var(--bg-alt); color: var(--primary-700); font-weight: 600; }
.emb-bench td a { color: var(--primary); }
.emb-coverage { margin-top: 20px; font-size: .85rem; color: var(--muted); padding-inline-start: 20px; }
.emb-coverage li { margin-bottom: 8px; line-height: 1.6; }
@media (max-width: 640px) {
  .emb-bench { display: block; overflow-x: auto; }
  table.emb-bench { display: table; }
}

/* Embassy city index (city-first update view) */
.emb-city-section { background: var(--bg-alt); }
.emb-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.emb-city { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; }
.emb-city.core { border-inline-start: 4px solid var(--accent); }
.emb-city.gap { border-style: dashed; }
.emb-city.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(20,54,107,.14); }
.emb-city h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--primary-700); }
.emb-city-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.emb-city-badge { font-size: .7rem; padding: 2px 8px; border-radius: 20px; background: #eef2f8; color: #45597a; border: 1px solid var(--border); }
.emb-city-badge.core { background: #fbf4e2; color: #7a5b13; border-color: var(--accent-light); }
.emb-city-badge.gap { background: #fff1f0; color: #9b3a32; border-color: #f2c9c5; }
.emb-city-badge.district { background: #eef6f2; color: #2b6b52; border-color: #bfe0d0; }
.emb-city-facts { list-style: none; margin: 0 0 12px; padding: 0; font-size: .82rem; color: var(--muted); line-height: 1.7; }
.emb-city-facts b { color: var(--primary-700); }
.emb-city-facts .emb-city-note { display: block; margin-top: 4px; font-size: .76rem; line-height: 1.45; }
.emb-city-btn { margin-top: auto; align-self: flex-start; background: transparent; border: 1px solid var(--primary); color: var(--primary); border-radius: 6px; padding: 6px 11px; font-size: .8rem; cursor: pointer; }
.emb-city-btn:hover { background: var(--primary); color: #fff; }
.emb-city-clear { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 7px 13px; font-size: .84rem; cursor: pointer; }
@media (max-width: 640px) { .emb-city-grid { grid-template-columns: 1fr; } }

/* ---- /university-jobs/ additions (additive; no existing selectors changed) ---- */
.emb-group-intro { margin: 2px 0 14px; font-size: .88rem; line-height: 1.6; color: var(--muted); }
.emb-city > .emb-city-note { display: block; margin: 0 0 12px; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.uni-caveat { background: #fff8e8; border-inline-start: 3px solid var(--accent); padding: 8px 10px; border-radius: 4px; font-size: .82rem; line-height: 1.55; }
.job-card .jc-tag.ok { background: #eef7f0; color: #1c6b37; border-color: #b9dfc4; }
.job-card .jc-tag.waf { background: #fff8e8; color: #7a5b13; border-color: var(--accent-light); }
#uni-salary-examples .card h4 { margin: 0 0 8px; color: var(--primary-700); font-size: 1rem; }
#uni-salary-examples .card p { margin: 0 0 8px; font-size: .86rem; line-height: 1.55; }

/* ---- board hero banner + source-card thumbnails (original SVG/WebP, NOT photos) ---- */
.board-hero { width: 100%; height: auto; display: block; background: #0f2952; }
.emb-src-thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; margin-bottom: 12px; background: #0f2952; }
.emb-src-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- /hospital-jobs/ additions (additive; no existing selectors changed) ---- */
.job-card .jc-tag.hpc-foreign { background: #eef7f0; color: #1c6b37; border-color: #b9dfc4; font-weight: 600; }
.job-card .jc-tag.hpc-licence { background: #eef2f8; color: #45597a; border-color: var(--border); }
.job-card .jc-tag.hpc-tier { background: #fbf4e2; color: #7a5b13; border-color: var(--accent-light); }
.job-card .jc-tag.hpc-seg { background: #eaf1fb; color: #14366b; border-color: #c3d5ee; font-weight: 600; }
.job-card .jc-tag.hpc-gated { background: #fdf0e6; color: #8a4a11; border-color: #f0d3b8; }
.job-card .jc-tag.hpc-neutral { background: #f4f4f6; color: #555a66; border-color: #dcdde3; }
