/* 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: .72rem; color: var(--accent); letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .95rem;
}
.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); }
.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; }

/* 城市卡 */
.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; }

/* ---------- 页面横幅（文章/指南头部） ---------- */
.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; }
.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; }

/* 表格 */
.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); }

/* 提示框 / 免责 */
.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; }
.mt-disclaimer { background: #f0f3f8; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; padding: 8px 20px; text-align: center; }

/* ---------- 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; }
.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; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 12px 20px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}
