/* ============================================================
   全国职业培训网 · 基础设计系统
   主色沿用第一版 #00245A，行动色参考优路教育橙，信息密度参考 233 网校
   ============================================================ */

:root {
  /* 品牌主色 */
  --brand: #00245A;
  --brand-600: #0A3E8C;
  --brand-500: #1257B5;
  --brand-400: #2A75D8;
  --brand-050: #EEF3FA;
  --brand-025: #F7F9FD;

  /* 行动色（优路风） */
  --accent: #FF7A00;
  --accent-600: #E86A00;
  --accent-050: #FFF4E8;

  /* 功能色 */
  --success: #00A870;
  --success-050: #E8F8F2;
  --warning: #FFA000;
  --danger: #E5484D;
  --danger-050: #FDEDED;

  /* 中性色 */
  --ink: #1A2233;
  --ink-2: #3E4B60;
  --ink-3: #6B7891;
  --ink-4: #98A3B6;
  --line: #E4E9F2;
  --line-2: #EFF2F7;
  --bg: #F4F6FA;
  --white: #FFFFFF;

  /* 尺寸 */
  --w: 1400px;
  --r-s: 4px;
  --r: 8px;
  --r-l: 14px;
  --shadow-1: 0 2px 8px rgba(0, 36, 90, .06);
  --shadow-2: 0 6px 20px rgba(0, 36, 90, .10);
  --shadow-3: 0 12px 34px rgba(0, 36, 90, .16);
  --hd-top: 36px;
  --hd: 78px;
  --hd-nav: 50px;   /* 独立通栏导航行高 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 200px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-500); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
table { border-collapse: collapse; width: 100%; }
i, em { font-style: normal; }

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C9D2E0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #A9B6CA; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; }
.fl { float: left; }
.fr { float: right; }
.clearfix::after { content: ''; display: block; clear: both; }
.hide { display: none !important; }
.tc { text-align: center; }
.tr { text-align: right; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ell2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mt10{margin-top:10px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}
.mb10{margin-bottom:10px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}

/* ========== 图标 ========== */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; fill: currentColor; flex: none; }

/* ========== 顶部工具条 ========== */
.topbar {
  height: var(--hd-top); line-height: var(--hd-top);
  background: var(--brand); color: rgba(255, 255, 255, .82); font-size: 12px;
  position: relative; z-index: 60;
}
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-l { display: flex; align-items: center; gap: 18px; }
.topbar-l .hot { color: var(--accent); font-weight: 700; letter-spacing: .3px; }
.topbar-r { display: flex; align-items: center; gap: 14px; }
.topbar-r .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .25); }
.topbar .unit { opacity: .9; }

/* ========== 主头部 ========== */
.header {
  background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(0, 36, 90, .04);
  position: sticky; top: 0; z-index: 50;
}
.header.sticky-scroll { box-shadow: 0 2px 14px rgba(0, 36, 90, .10); }
.header > .container { display: flex; align-items: center; height: var(--hd); gap: 20px; }

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-500), var(--brand));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; letter-spacing: -1px;
  box-shadow: 0 4px 12px rgba(0, 36, 90, .25);
}
.logo-txt .n { font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: .5px; line-height: 1.2; }
.logo-txt .e { font-size: 10px; color: var(--ink-4); letter-spacing: .8px; text-transform: uppercase; line-height: 1.2; }

/* ========== 独立通栏导航行 ========== */
.navwrap {
  background: var(--brand); position: relative;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.navwrap .container { display: flex; align-items: center; height: var(--hd-nav); gap: 20px; }

.nav { display: flex; align-items: center; gap: 0; flex: 1; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; height: var(--hd-nav); padding: 0 26px;
  font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .88);
  border-radius: 0; position: relative; letter-spacing: .5px; white-space: nowrap;
}
.nav > li > a .caret { font-size: 9px; margin-left: 5px; opacity: .65; }
.nav > li:hover > a { color: #fff; background: rgba(255, 255, 255, .10); }
.nav > li.on > a { color: #fff; background: rgba(255, 255, 255, .14); font-weight: 600; }
.nav > li.on > a::after {
  content: ''; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}

/* 导航行右侧热线 */
.nav-tel { display: flex; align-items: center; gap: 8px; flex: none; font-size: 13px; color: rgba(255, 255, 255, .85); }
.nav-tel .ico { font-size: 17px; }
.nav-tel b { color: var(--accent); font-size: 17px; font-weight: 700; letter-spacing: .3px; }

/* 全部考试项目 MegaMenu */
.mega {
  position: absolute; top: 100%; left: 0; width: 980px; background: #fff;
  border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-3); padding: 18px 22px;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 4px 26px; z-index: 40;
  border-top: 3px solid var(--accent);
}
.nav > li:hover .mega { display: grid; animation: fadeUp .2s ease; }
.mega-col { padding: 8px 0; }
.mega-t { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mega-t .bar { width: 3px; height: 12px; background: var(--accent); border-radius: 2px; }
.mega-list { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.mega-list a { font-size: 13px; color: var(--ink-2); padding: 2px 0; }
.mega-list a:hover { color: var(--accent); }
.mega-list a.hot { color: var(--danger); font-weight: 600; }

/* 头部搜索 */
.h-search { display: flex; align-items: center; width: 240px; flex: none; margin-left: auto; }
.h-search form { display: flex; width: 100%; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; height: 36px; background: var(--brand-025); }
.h-search input { flex: 1; border: 0; background: transparent; padding: 0 12px; font-size: 13px; }
.h-search button { width: 40px; border: 0; background: var(--brand-500); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.h-search button:hover { background: var(--brand); }

.h-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-s);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s; white-space: nowrap;
  background: #fff; color: var(--ink-2);
}
.btn:hover { color: inherit; }
.btn-pri { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.btn-pri:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 4px 12px rgba(18, 87, 181, .3); }
.btn-acc { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-acc:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; box-shadow: 0 4px 12px rgba(255, 122, 0, .32); }
.btn-out { background: #fff; color: var(--brand-500); border-color: var(--brand-500); }
.btn-out:hover { background: var(--brand-050); color: var(--brand-600); }
.btn-out-acc { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-out-acc:hover { background: var(--accent-050); color: var(--accent-600); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-lg { height: 46px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ========== 通用区块 ========== */
.section { padding: 44px 0; }
.section.white { background: #fff; }
.section.gray { background: var(--bg); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title h2 { font-size: 24px; font-weight: 800; color: var(--brand); letter-spacing: .5px; line-height: 1.2; }
.sec-title .sub { font-size: 13px; color: var(--ink-4); letter-spacing: 1px; text-transform: uppercase; }
.sec-title::before { content: ''; width: 4px; height: 22px; background: var(--accent); border-radius: 2px; }
.sec-more { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.sec-more:hover { color: var(--accent); }

/* ========== 卡片 / 标签 ========== */
.card {
  background: #fff; border-radius: var(--r); border: 1px solid var(--line);
  transition: all .22s; overflow: hidden;
}
.card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #CFDAEE; }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px;
  font-size: 11px; font-weight: 500; background: var(--brand-050); color: var(--brand-500); line-height: 1;
}
.tag.acc { background: var(--accent-050); color: var(--accent-600); }
.tag.green { background: var(--success-050); color: var(--success); }
.tag.red { background: var(--danger-050); color: var(--danger); }
.tag.gray { background: #F0F2F7; color: var(--ink-3); }
.tag.out { background: transparent; border: 1px solid currentColor; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--brand-050); color: var(--brand-500); }

/* ========== Tab 切换 ========== */
.tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tabs li { padding: 7px 18px; border-radius: 20px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .18s; border: 1px solid transparent; }
.tabs li:hover { color: var(--brand-500); background: var(--brand-025); }
.tabs li.on { background: var(--brand-500); color: #fff; font-weight: 500; }
.tabs.line { border-bottom: 1px solid var(--line); gap: 0; }
.tabs.line li { border-radius: 0; padding: 10px 20px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs.line li.on { background: transparent; color: var(--brand-500); border-bottom-color: var(--brand-500); font-weight: 700; }

/* ========== 面包屑 ========== */
.crumb { padding: 14px 0; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand-500); }
.crumb .cur { color: var(--ink); }
.crumb .sp { opacity: .45; }

/* ========== 分页 ========== */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 30px 0 6px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-s);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; color: var(--ink-2);
}
.pager a:hover { border-color: var(--brand-500); color: var(--brand-500); }
.pager .on { background: var(--brand-500); border-color: var(--brand-500); color: #fff; font-weight: 700; }
.pager .dis { color: var(--ink-4); background: #FAFBFD; }

/* ========== 空状态 ========== */
.empty { padding: 60px 20px; text-align: center; color: var(--ink-4); }
.empty .ico { width: 54px; height: 54px; opacity: .35; margin-bottom: 12px; }

/* ========== 底部 ========== */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.f-service { background: var(--brand-025); border-bottom: 1px solid var(--line); }
.f-service .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.f-svc { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 0; position: relative; }
.f-svc + .f-svc::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.f-svc .ic { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--brand-500); display: flex; align-items: center; justify-content: center; font-size: 19px; box-shadow: var(--shadow-1); flex: none; }
.f-svc .tx b { display: block; font-size: 14px; color: var(--ink); font-weight: 700; }
.f-svc .tx span { font-size: 12px; color: var(--ink-3); }

.f-main { padding: 38px 0 26px; }
.f-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.f-col h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.f-col ul li { margin-bottom: 9px; }
.f-col ul a { font-size: 13px; color: var(--ink-3); }
.f-col ul a:hover { color: var(--brand-500); }
.f-contact .tel { font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: .5px; line-height: 1.3; }
.f-contact .tm { font-size: 12px; color: var(--ink-3); margin: 4px 0 12px; }
.f-contact p { font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.f-qr { display: flex; gap: 12px; margin-top: 14px; }
.f-qr .q { width: 74px; text-align: center; }
.f-qr .q .box {
  width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 11px; padding: 6px; text-align: center;
}
.f-qr .q span { font-size: 12px; color: var(--ink-3); display: block; margin-top: 5px; }

.f-links { border-top: 1px solid var(--line-2); padding: 16px 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.f-links .lb { font-size: 13px; color: var(--ink-2); font-weight: 700; flex: none; }
.f-links a { font-size: 12px; color: var(--ink-3); }
.f-links a:hover { color: var(--brand-500); }

.f-copy { background: #F0F3F8; padding: 18px 0; font-size: 12px; color: var(--ink-3); line-height: 2; }
.f-copy .container > div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.f-copy a { color: var(--ink-3); }
.f-copy .beian { color: var(--ink-4); }

/* ========== 悬浮客服 ========== */
.side-float { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.side-float .sf {
  width: 50px; height: 50px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-3); cursor: pointer; transition: all .18s; gap: 2px;
}
.side-float .sf:hover { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.side-float .sf .ico { font-size: 18px; }
.side-float .sf.top { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ========== 移动端 ========== */
.m-nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--brand); font-size: 22px; cursor: pointer; }

@media (max-width: 1200px) {
  .nav > li > a { padding: 0 18px; font-size: 15px; }
  .nav > li.on > a::after { left: 18px; right: 18px; }
  .mega { width: 660px; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  :root { --hd: 62px; --hd-nav: 0px; }
  .h-search { display: none; }
  /* 移动端：通栏导航行收起为抽屉，容器不占位但保持可见（nav 为 fixed） */
  .navwrap { background: transparent; border: 0; }
  .navwrap .container { height: 0; padding: 0; overflow: visible; }
  .nav-tel { display: none; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: 76%; max-width: 320px; background: #fff; z-index: 100;
    flex-direction: column; align-items: stretch; padding: 62px 0 20px; gap: 0; overflow-y: auto;
    box-shadow: var(--shadow-3); transform: translateX(-102%); transition: transform .26s ease; }
  .nav.open { transform: none; }
  .navwrap .nav > li > a {
    height: auto; padding: 13px 20px; font-size: 15px; border-radius: 0;
    border-bottom: 1px solid var(--line-2); justify-content: space-between;
    color: var(--ink-2); background: #fff; font-weight: 500;
  }
  .navwrap .nav > li:hover > a, .navwrap .nav > li.on > a { color: var(--brand-500); background: var(--brand-025); }
  .navwrap .nav > li.on > a::after { display: none; }
  .mega { position: static; width: 100%; display: grid; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 8px 20px; background: var(--brand-025); }
  .navwrap .nav > li:hover .mega { display: none; }
  .navwrap .nav > li.open-m .mega { display: grid; }
  .m-nav-toggle { display: flex; align-items: center; justify-content: center; }
  .m-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99; display: none; }
  .m-mask.on { display: block; }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
  .f-service .container { grid-template-columns: repeat(2, 1fr); }
  .side-float { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }
  .topbar { display: none; }
  .logo-txt .n { font-size: 17px; }
  .logo-txt .e { display: none; }
  .logo-mark { width: 36px; height: 36px; font-size: 17px; }
  .section { padding: 26px 0; }
  .sec-title h2 { font-size: 19px; }
  .sec-title .sub { display: none; }
  .f-cols { grid-template-columns: 1fr; gap: 20px; }
  .f-service .container { grid-template-columns: repeat(2, 1fr); }
  .f-svc { padding: 14px 0; }
  .f-svc .tx b { font-size: 13px; }
  .f-svc .tx span { display: none; }
  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ========== 动画 ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp .45s ease both; }

/* 列表渐入：仅在脚本就绪且支持 IntersectionObserver 时才隐藏，
   避免 JS 异常 / 观察漏挂导致整块内容停在 opacity:0（表现为空白） */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ========== 轻提示 ========== */
.px-toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 9999;
  padding: 10px 18px; border-radius: 8px;
  background: rgba(15, 23, 42, .86); color: #fff; font-size: 14px;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.px-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .header > .container { gap: 10px; }
  .h-actions { gap: 6px; }
  .h-actions .btn-sm { padding: 0 12px; }
  .logo-txt .n { font-size: 15px; }
  .logo-mark { width: 34px; height: 34px; font-size: 16px; }
}
