/* ===========================================================
   宁夏企业和企业家联合会  企业官网样式
   风格：简约大气 / 政务商务气质
   =========================================================== */

:root {
  --brand: #054faa;
  --brand-2: #1467c8;
  --brand-dark: #043a7d;
  --brand-soft: #eaf3fc;
  --brand-soft-2: #f4f9fe;
  --accent: #2d8cf0;
  --accent-soft: #fbf4e4;
  --text: #1e2937;
  --text-2: #43536a;
  --muted: #7b8798;
  --line: #e2ecf7;
  --line-2: #edf3fa;
  --bg: #ffffff;
  --bg-soft: #f5f9fd;
  --ok: #1a8f5a;
  --warn: #c9762b;
  --danger: #c0392b;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-sm: 0 1px 2px rgba(13, 52, 105, .06);
  --shadow: 0 8px 28px rgba(13, 52, 105, .08);
  --shadow-lg: 0 20px 52px rgba(13, 52, 105, .13);
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: .2px; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.hidden { display: none !important; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(13, 52, 105, .07); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(5, 79, 170, .30);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; max-width: 160px; }
.brand-text strong { font-size: 15px; letter-spacing: .5px; color: var(--brand-dark); white-space: nowrap; }
.brand-text em {
  font-style: normal; font-size: 9px; letter-spacing: 0;
  color: var(--muted); text-transform: uppercase; transform: scale(.96); transform-origin: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 8px 7px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a.active { color: var(--brand); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 3px; border-radius: 3px;
  transform: translateX(-50%);
  background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 18px; color: var(--brand); line-height: 1;
}
/* 中等宽度（861–1180px）：导航放不下完整一行，折叠为汉堡菜单，
   与 860px 以下移动菜单样式一致 */
@media (max-width: 1180px) and (min-width: 861px) {
  .main-nav {
    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: 12px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--brand-soft); }
  .nav-toggle { display: block; }
}

/* 用户区 */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  color: var(--text-2);
}
.user-chip .dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 600;
}
.user-chip a { font-size: 13px; color: var(--brand); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.user-chip .sep { color: var(--line); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(5, 79, 170, .24); }
.btn-primary:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(5, 79, 170, .30); }
.btn-gold { background: var(--accent); color: #3a2f06; box-shadow: 0 6px 18px rgba(45, 140, 240, .30); }
.btn-gold:hover { background: #5aa7f5; color: #3a2f06; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-gold-line { background: rgba(255, 217, 100, .12); color: #ffd964; border-color: rgba(255, 217, 100, .55); }
.btn-gold-line:hover { background: rgba(255, 217, 100, .22); color: #ffe89a; border-color: #ffd964; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(130deg, #032f66 0%, #054faa 48%, #1467c8 100%);
  padding: 92px 0 108px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255, 206, 110, .22), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 190, 150, .16), transparent 46%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px; letter-spacing: .6px; margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.hero h1 {
  font-size: 46px; line-height: 1.24; letter-spacing: 1.5px; margin-bottom: 20px; font-weight: 700;
}
.hero h1 span { color: #ffd964; }
.hero-lead { font-size: 17px; color: rgba(255, 255, 255, .84); max-width: 560px; margin-bottom: 14px; }
.hero-sub { font-size: 14px; color: rgba(255, 255, 255, .62); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-panel {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-l);
  padding: 26px 26px 22px;
  backdrop-filter: blur(8px);
}
.hero-panel h3 { font-size: 16px; margin-bottom: 4px; }
.hero-panel .hp-sub { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background .25s ease, border-color .25s ease;
}
.hero-stat:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 217, 100, .45); }
.hero-stat span { font-size: 16px; font-weight: 600; letter-spacing: 1px; color: rgba(255, 255, 255, .95); line-height: 1.5; }

/* 数据条 */
.stat-bar { background: #fff; border-bottom: 1px solid var(--line-2); }
.stat-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line-2); }
.stat-item:last-child { border-right: none; }
.stat-item b { display: block; font-size: 32px; color: var(--brand); font-weight: 700; letter-spacing: .5px; }
.stat-item b small { font-size: 16px; font-weight: 600; margin-left: 2px; }
.stat-item span { font-size: 13.5px; color: var(--muted); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 82px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 62px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-kicker {
  display: block; font-size: 13px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; letter-spacing: .8px; color: var(--brand-dark); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }
.rule { width: 46px; height: 3px; background: var(--accent); border-radius: 3px; margin: 16px auto 0; }
.section-head.left .rule { margin-left: 0; }

/* ---------------- 卡片 ---------------- */
.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); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcd6f2; }
.card-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card-icon.gold { background: var(--accent-soft); color: #8a6d1c; }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--brand-dark); }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.card .card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand);
}
.card .card-more::after { content: "→"; transition: transform .2s; }
.card:hover .card-more::after { transform: translateX(4px); }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

/* 业务编号卡 */
.svc-card { position: relative; overflow: hidden; }
.svc-card .svc-no {
  position: absolute; right: 20px; top: 14px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: var(--brand-soft); letter-spacing: -2px; user-select: none;
}

/* ---------------- 新闻列表 ---------------- */
.news-list { display: grid; gap: 16px; }
.news-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #bcd6f2; }
.news-date {
  text-align: center; border-right: 1px solid var(--line-2); padding-right: 18px;
}
.news-date b { display: block; font-size: 26px; color: var(--brand); line-height: 1.1; }
.news-date span { font-size: 12.5px; color: var(--muted); }
.news-body h4 { font-size: 16.5px; margin-bottom: 6px; color: var(--text); }
.news-item:hover .news-body h4 { color: var(--brand); }
.news-body p { margin: 0; font-size: 13.8px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}
.tag.gold { background: var(--accent-soft); color: #8a6d1c; }
.tag.green { background: #e8f6ef; color: var(--ok); }

/* ---------------- 页面头部 banner ---------------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #043a7d 0%, #054faa 60%, #1467c8 100%);
  color: #fff; padding: 66px 0 60px;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 10%, rgba(255, 206, 110, .20), transparent 40%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 34px; letter-spacing: 1.2px; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 720px; margin: 0; font-size: 15px; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.crumb a { color: rgba(255, 255, 255, .82); }

/* ---------------- 关于我们 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.prose { color: var(--text-2); font-size: 15.2px; }
.prose h3 { font-size: 20px; color: var(--brand-dark); margin: 26px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.about-visual {
  border-radius: var(--radius-l); overflow: hidden;
  background: linear-gradient(150deg, var(--brand-soft), #fff 60%, var(--accent-soft));
  border: 1px solid var(--line);
  padding: 34px;
}
.about-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  box-shadow: var(--shadow-sm);
}
.mini-stat b { display: block; font-size: 24px; color: var(--brand); font-weight: 700; }
.mini-stat span { font-size: 13px; color: var(--muted); }

/* 继续教育平台 · 服务亮点说明 */
.edu-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edu-point {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.edu-point:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.edu-point h4 {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 700; color: var(--brand-dark);
  letter-spacing: .3px; margin: 0 0 9px;
}
.edu-point h4::before {
  content: ""; flex: 0 0 auto; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(var(--brand), var(--accent));
}
.edu-point p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
@media (max-width: 520px) { .edu-points { grid-template-columns: 1fr; } }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand-soft), var(--accent), var(--brand-soft));
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline b { display: block; color: var(--brand); font-size: 15px; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 14.2px; color: var(--text-2); }

/* 组织架构 */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.org-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.org-box h4 { font-size: 15.5px; color: var(--brand); margin-bottom: 8px; }
.org-box p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; color: var(--text); background: #fff;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.form-control:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(20, 103, 200, .14);
}
textarea.form-control { resize: vertical; min-height: 118px; line-height: 1.7; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b8798' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 12.8px; color: var(--danger); margin-top: 6px; min-height: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-group { display: flex; gap: 10px; }
.input-group .form-control { flex: 1; }
.input-group .btn { flex-shrink: 0; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #043a7d 0%, #054faa 55%, #1467c8 100%);
  color: #fff; padding: 70px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 78% 16%, rgba(255, 206, 110, .24), transparent 44%),
    radial-gradient(circle at 8% 92%, rgba(255, 190, 150, .16), transparent 46%);
}
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside h2 { font-size: 30px; line-height: 1.4; margin-bottom: 18px; letter-spacing: 1px; }
.auth-aside p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.auth-points { margin-top: 34px; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .86); }
.auth-points li i {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #ffd964;
  display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 52px 24px; background: var(--bg-soft); }
.auth-card {
  width: 100%; max-width: 430px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow);
  padding: 34px 32px 30px;
}
.auth-card h2 { font-size: 23px; color: var(--brand-dark); margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 13.8px; margin-bottom: 22px; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 11px; padding: 4px; margin-bottom: 22px; }
.tabs button {
  flex: 1; padding: 9px 8px; border: none; background: transparent;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all .18s;
}
.tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.subtabs { display: flex; gap: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.subtabs button {
  padding: 8px 2px; border: none; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .18s;
}
.subtabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.auth-foot { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-wechat { background: #fff; color: #07c160; border-color: #cbe9d9; width: 100%; }
.btn-wechat:hover { background: #f2fbf6; color: #07c160; border-color: #07c160; }
.link-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 20px; font-size: 13.5px; }

/* ---------------- 继续教育平台 ---------------- */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 26px;
}
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; color: var(--text-2); font-weight: 500;
  transition: all .18s;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.search-box { margin-left: auto; display: flex; gap: 8px; }
.search-box .form-control { width: 210px; padding: 9px 14px; }

.course-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.course-cover {
  height: 128px; position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, #4a8fe2 100%);
  display: flex; align-items: flex-end; padding: 16px 20px;
}
.course-cover span {
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .5px;
  background: rgba(255, 255, 255, .18); padding: 4px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.course-cover::after {
  content: ""; position: absolute; right: -30px; top: -36px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--brand-dark); }
.course-body p { font-size: 13.8px; color: var(--muted); margin-bottom: 14px; flex: 1; }
.course-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.8px; color: var(--muted); margin-bottom: 16px; }
.course-meta i { font-style: normal; color: var(--brand); font-weight: 600; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.empty-box {
  padding: 60px 20px; text-align: center; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-box strong { display: block; color: var(--text-2); margin-bottom: 6px; font-size: 15px; }
.skeleton {
  background: linear-gradient(90deg, #eef4fb 25%, #e8f0f9 37%, #eef4fb 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------- 会员中心 ---------------- */
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-head h3 { font-size: 17.5px; color: var(--brand-dark); }
.panel-head .ph-sub { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.logo-uploader { display: flex; align-items: center; gap: 18px; }
.logo-preview {
  width: 88px; height: 88px; border-radius: 14px; flex-shrink: 0;
  border: 1px dashed var(--line); background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden;
  color: var(--muted); font-size: 12px; text-align: center;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.list-rows { display: grid; gap: 10px; }
.row-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 11px;
  background: #fff; font-size: 14px;
}
.row-item .ri-main { flex: 1; min-width: 0; }
.row-item .ri-main b { display: block; font-size: 14.5px; color: var(--text); font-weight: 600; }
.row-item .ri-main span { font-size: 12.8px; color: var(--muted); }
.row-item .ri-side { font-size: 12.8px; color: var(--muted); text-align: right; white-space: nowrap; }

.progress { height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item .ci-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.contact-item h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.contact-item p { margin: 0; font-size: 15px; color: var(--text); word-break: break-all; }

.map-ph {
  height: 260px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    linear-gradient(0deg, rgba(5, 79, 170, .05) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(5, 79, 170, .05) 1px, transparent 1px) 0 0 / 34px 100%,
    linear-gradient(150deg, #f4f9fe, #eef5fd);
  display: grid; place-items: center; text-align: center; color: var(--brand);
  margin-top: 22px; position: relative; overflow: hidden;
}
.map-ph .mp-inner { z-index: 2; }
.map-ph strong { display: block; font-size: 15px; margin-bottom: 4px; }
.map-ph span { font-size: 13px; color: var(--muted); }

/* ---------------- CTA ---------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #043a7d, #054faa 60%, #1467c8);
  color: #fff; padding: 62px 0;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 206, 110, .22), transparent 42%);
}
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 27px; letter-spacing: .8px; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .76); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #043a80; color: rgba(255, 255, 255, .7); padding: 60px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .6px; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #ffd964; }
.footer-links li { margin-bottom: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { color: #fff; font-size: 16px; letter-spacing: .8px; }
.footer-desc { font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .58); margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- 提示 Toast ---------------- */
#toastBox { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 999; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text);
  animation: toastIn .26s ease;
}
.toast .t-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; background: var(--brand); }
.toast.success .t-dot { background: var(--ok); }
.toast.error .t-dot { background: var(--danger); }
.toast.warn .t-dot { background: var(--warn); }
.toast.out { animation: toastOut .22s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 46, 96, .50);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: toastIn .2s ease;
}
.modal {
  width: 100%; max-width: 620px; max-height: 86vh; overflow: auto;
  background: #fff; border-radius: var(--radius-l); padding: 30px 32px;
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.modal-head h3 { font-size: 20px; color: var(--brand-dark); }
.modal-close {
  border: none; background: var(--bg-soft); color: var(--muted);
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 16px; line-height: 1;
}
.modal-close:hover { background: var(--line); color: var(--text); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; min-height: auto; }
  .auth-aside { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .main-nav {
    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: 12px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15.5px; border-radius: 10px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--brand-soft); }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr; }
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .section { padding: 58px 0; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 25px; }
  .page-hero h1 { font-size: 26px; }
  .news-item { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px 18px; }
  .news-meta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box .form-control { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 26px 20px; }
  .brand-text em { display: none; }
  .brand-text strong { font-size: 15px; }
}

/* ===========================================================
   党政机关风格补充版式（中国红 + 金）
   =========================================================== */

/* 顶部信息条 */
.top-strip {
  background: linear-gradient(90deg, #033067 0%, #04479a 55%, #054faa 100%);
  border-bottom: 2px solid var(--accent);
}
.ts-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 36px; }
.ts-left {
  font-size: 12.5px; color: rgba(255, 255, 255, .82); letter-spacing: .6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ts-right a { font-size: 12.5px; color: rgba(255, 255, 255, .86); }
.ts-right a:hover { color: #ffdf8a; }
.ts-right a.ts-admin {
  padding: 1px 11px; border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px; color: #fff;
}
.ts-right a.ts-admin:hover { background: rgba(255, 255, 255, .14); color: #ffdf8a; }

/* 区块标题红金装饰 */
.section-kicker { color: var(--brand); }
.section-kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 18px; height: 2px; margin-right: 9px; border-radius: 2px;
  background: var(--brand);
}
.rule { width: 58px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* 面板标题红条 */
.panel-head h3 { position: relative; padding-left: 13px; }
.panel-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 15px; border-radius: 2px; background: var(--brand);
}

/* 页脚金色压边 */
.site-footer { border-top: 3px solid var(--accent); }

/* 顶栏加入后修正登录页高度 */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 36px); }

/* 头部管理员入口按钮 */
.admin-entry {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid #bcd6f2;
  color: var(--brand); font-size: 13.5px; font-weight: 600;
}
.admin-entry:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------------- 网站后台管理 ---------------- */
.admin-wrap { padding: 34px 0 70px; background: var(--bg-soft); min-height: 60vh; }
.admin-shell { display: grid; grid-template-columns: 216px 1fr; gap: 22px; align-items: start; }
.admin-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: sticky; top: calc(var(--header-h) + 56px);
}
.admin-side .as-head { background: linear-gradient(135deg, #043a7d, #054faa); color: #fff; padding: 18px 20px; }
.admin-side .as-head b { display: block; font-size: 15.5px; letter-spacing: .6px; }
.admin-side .as-head span { font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.admin-menu { padding: 10px; display: grid; gap: 4px; }
.admin-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; padding: 11px 14px;
  border: none; background: transparent; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; font-family: inherit; transition: all .16s;
}
.admin-menu button:hover { background: var(--brand-soft); color: var(--brand); }
.admin-menu button.active { background: var(--brand); color: #fff; }
.admin-menu button em {
  font-style: normal; font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: 1px 9px;
}
.admin-menu button.active em { background: rgba(255, 255, 255, .25); color: #fff; }

.admin-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 30px; min-height: 420px;
}
.admin-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-2);
}
.admin-panel-head h2 { font-size: 19px; color: var(--brand-dark); position: relative; padding-left: 13px; }
.admin-panel-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; border-radius: 2px; background: var(--brand);
}
.admin-panel-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; }
.stat-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: linear-gradient(160deg, #fff, var(--brand-soft-2));
}
.stat-card b { display: block; font-size: 28px; color: var(--brand); line-height: 1.15; }
.stat-card span { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; padding: 11px 12px; background: var(--brand-soft);
  color: var(--brand-dark); font-weight: 700; font-size: 13.5px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tr:hover td { background: var(--brand-soft-2); }
.admin-table .cell-title { font-weight: 600; color: var(--text); }
.admin-table .cell-sub { font-size: 12.6px; color: var(--muted); }
.admin-table .col-narrow { width: 104px; white-space: nowrap; }
.row-actions { display: flex; gap: 10px; white-space: nowrap; }
.link-btn {
  border: none; background: transparent; color: var(--brand);
  font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

.admin-gate {
  max-width: 560px; margin: 34px auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 36px 34px; box-shadow: var(--shadow); text-align: center;
}
.admin-gate .ag-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff;
}
.admin-gate h2 { font-size: 21px; color: var(--brand-dark); margin-bottom: 10px; }
.admin-gate p { color: var(--muted); font-size: 14px; }
.admin-gate .ag-body { text-align: left; margin-top: 24px; }

.code-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--brand-soft); border: 1px dashed #c3daf5;
  border-radius: 10px; padding: 12px 14px;
}
.code-box code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 15px; font-weight: 700; color: var(--brand);
  letter-spacing: 1px; word-break: break-all;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .span-2 { grid-column: 1 / -1; }
.field-grid .span-3 { grid-column: 1 / -1; }

@media (max-width: 1040px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-menu { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ts-left { display: none; }
  .ts-right { width: 100%; justify-content: space-between; gap: 10px; }
  .field-grid { grid-template-columns: 1fr; }
  .admin-menu { grid-template-columns: 1fr; }
  .admin-panel { padding: 20px 16px 24px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}


/* ---------------- 企联徽标（2026-10 改版） ---------------- */
.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 52, 105, .12);
}
@media (max-width: 720px) { .brand-logo { width: 40px; height: 40px; } }

/* ---------------- 组织架构图（2026-10 更新） ---------------- */
.org-chart { max-width: 980px; margin: 0 auto; text-align: center; }
.oc-node {
  position: relative;
  display: inline-block;
  background: #fff;
  border: 1.5px solid #0d3469;
  border-radius: 10px;
  padding: 14px 22px 12px;
  text-align: center;
  min-width: 168px;
  box-shadow: 0 3px 14px rgba(13, 52, 105, .08);
}
.oc-node h4 { margin: 0 0 6px; font-size: 16.5px; color: #0d3469; letter-spacing: .5px; }
.oc-node p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #51637c; border-top: 1px dashed #bcd6f2; padding-top: 7px; }
.oc-root { min-width: 200px; }
.oc-mid { min-width: 230px; }
.oc-hl { background: linear-gradient(135deg, #c22a2a, #a31414); border-color: #a31414; box-shadow: 0 6px 18px rgba(163, 20, 20, .22); }
.oc-hl h4 { color: #fff; }
.oc-hl p { color: rgba(255, 255, 255, .92); border-top-color: rgba(255, 255, 255, .35); }
.oc-drop { width: 2px; height: 28px; background: #9db8d8; margin: 0 auto; }
.oc-row { display: flex; justify-content: center; align-items: stretch; gap: 22px; position: relative; padding-top: 28px; }
.oc-row::before { content: ""; position: absolute; top: 0; height: 2px; background: #9db8d8; }
.oc-row.c3::before { left: calc(100% / 6); right: calc(100% / 6); }
.oc-row.c4::before { left: calc(100% / 8); right: calc(100% / 8); }
.oc-row .oc-node { flex: 1 1 0; display: block; }
.oc-row .oc-node::before { content: ""; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 2px; height: 28px; background: #9db8d8; }
@media (max-width: 860px) {
  .oc-row { flex-wrap: wrap; padding-top: 0; gap: 14px; margin-top: 16px; }
  .oc-row::before, .oc-row .oc-node::before { display: none; }
  .oc-drop { height: 20px; }
  .oc-node { min-width: 0; }
  .oc-row .oc-node { flex: 1 1 calc(50% - 8px); }
}

/* ===========================================================
   服务对接（2026-10 新增）
   一级栏目：服务对接 → 二级栏目：企业需求库 / 服务机构库 / 服务产品库
   =========================================================== */

/* ---------------- 导航二级下拉 ---------------- */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop .caret {
  width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.nav-drop:hover > a .caret, .nav-drop:focus-within > a .caret, .nav-drop.open > a .caret {
  transform: rotate(225deg); margin-top: 3px;
}
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 186px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 120;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu {
  opacity: 1; visibility: visible; transform: none;
}
.main-nav .nav-drop-menu a { display: block; padding: 10px 12px; font-size: 14.2px; border-radius: 9px; }
.main-nav .nav-drop-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.main-nav .nav-drop-menu a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.main-nav .nav-drop-menu a.active::after { display: none; }

/* ---------------- 状态标签补充 ---------------- */
.tag.red { background: #fdeceb; color: var(--danger); }
.tag.blue { background: var(--brand-soft); color: var(--brand); }

/* ---------------- 服务对接页面 ---------------- */
.svc-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.svc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all .2s ease;
}
.svc-tab:hover { color: var(--brand); border-color: #bcd6f2; background: var(--brand-soft-2); }
.svc-tab.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: var(--brand); box-shadow: 0 8px 22px rgba(5, 79, 170, .22); }
.svc-tab small { font-weight: 500; font-size: 12.5px; opacity: .78; }

.svc-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--brand-soft); border: 1px solid #d6e6f8; border-radius: 14px;
  padding: 16px 18px; font-size: 13.6px; line-height: 1.8; color: var(--text-2);
  margin-bottom: 22px;
}
.svc-notice strong { color: var(--brand); }
.svc-notice svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }

.svc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.svc-toolbar .chip-group { max-width: 100%; }
.svc-search { display: flex; gap: 10px; align-items: center; }
.svc-search .form-control { min-width: 220px; }

.svc-list { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.svc-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bcd6f2; }
.svc-item .si-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-item h3 { font-size: 17px; color: var(--brand-dark); margin: 0 0 8px; line-height: 1.45; }
.svc-item .si-text {
  font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-item .si-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.8px; color: var(--muted); margin-top: auto; }
.svc-item .si-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.svc-item .si-foot .btn { flex-shrink: 0; }

.svc-detail-list { display: grid; gap: 10px; margin: 0; }
.svc-detail-list div { display: flex; gap: 12px; font-size: 14.2px; color: var(--text-2); }
.svc-detail-list b { flex: 0 0 auto; width: 78px; color: var(--muted); font-weight: 500; }
.svc-detail-body {
  margin-top: 16px; padding: 16px; background: var(--bg-soft); border-radius: 12px;
  font-size: 14.4px; line-height: 1.9; color: var(--text-2); white-space: pre-wrap;
}
.svc-review-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #fdeceb; color: var(--danger); font-size: 13.6px; line-height: 1.8;
}

/* ---------------- 首页：服务对接栏目 ---------------- */
.home-board .board-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.board-entry {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.board-entry:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcd6f2; color: inherit; }
.board-entry .be-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.board-entry.gold .be-icon { background: var(--accent-soft); color: #8a6d1c; }
.board-entry h3 { font-size: 17.5px; color: var(--brand-dark); margin-bottom: 8px; }
.board-entry p { font-size: 13.6px; color: var(--muted); line-height: 1.8; margin: 0 0 12px; }
.board-entry .be-more { font-size: 13.4px; color: var(--brand); font-weight: 600; }
.board-entry .be-more::after { content: " →"; }

.board-list { display: grid; gap: 12px; }
.board-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.board-row:hover { border-color: #bcd6f2; box-shadow: var(--shadow-sm); transform: translateX(2px); color: inherit; }
.board-row .br-main { flex: 1; min-width: 0; }
.board-row .br-main b { display: block; font-size: 15px; color: var(--brand-dark); font-weight: 600; margin-bottom: 5px; }
.board-row .br-main span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .br-side { flex-shrink: 0; text-align: right; font-size: 12.6px; color: var(--muted); display: grid; gap: 6px; justify-items: end; }

/* ---------------- 我的发布 / 后台审核 ---------------- */
.publish-item { display: flex; align-items: flex-start; gap: 14px; }
.publish-item .pi-main { flex: 1; min-width: 0; }
.publish-item .pi-main b { display: block; font-size: 14.6px; color: var(--text); margin-bottom: 5px; }
.publish-item .pi-main span { display: block; font-size: 12.8px; color: var(--muted); }

@media (max-width: 1040px) {
  .svc-list { grid-template-columns: 1fr; }
  .home-board .board-entries { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-drop { display: contents; }
  .nav-drop > a { display: flex; }
  .nav-drop .caret { display: none; }
  .nav-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 6px 14px;
    min-width: 0;
  }
  .main-nav .nav-drop-menu a { padding: 10px 14px; font-size: 14.6px; }
  .svc-tab { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 11px 14px; font-size: 14.2px; }
  .svc-toolbar { flex-direction: column; align-items: stretch; }
  .svc-search .form-control { min-width: 0; }
  .board-row { flex-wrap: wrap; }
  .board-row .br-side { text-align: left; justify-items: start; }
}
