/* ============================================================
   慧联产研洞察 FirstLink Insight — 共享样式框架
   配色：科技蓝主色 + 藏青深色 + 翡翠绿强调 + 深灰/浅金辅助
   ============================================================ */

:root {
  --blue: #1151d3;        /* 科技蓝：主色 */
  --blue-700: #0c3da0;    /* 主色深 */
  --blue-900: #202f5b;    /* 藏青：导航/深色块 */
  --purple: #7c3aed;      /* 紫色：点缀 */
  --green: #2ca77f;       /* 翡翠绿：强调 */
  --gold: #c9a84c;        /* 浅金：高端商务 */
  --ink: #1f2330;         /* 正文 */
  --muted: #6b7280;       /* 次要文字 */
  --line: #e6e8f0;        /* 分割线 */
  --paper: #ffffff;       /* 卡片底 */
  --soft: #f5f7fb;        /* 浅底 */
  --dark: #121026;        /* 深紫黑 */
  --shadow-sm: 0 2px 12px rgba(17,81,211,.06);
  --shadow: 0 12px 40px rgba(17,81,211,.10);
  --shadow-lg: 0 24px 70px rgba(17,81,211,.14);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: "Work Sans", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --font-heading: "Montserrat", "Microsoft YaHei", "PingFang SC", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ===== 顶部通栏 ===== */
.topbar { background: var(--blue-900); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar a { color: rgba(255,255,255,.7); transition: .2s; }
.topbar a:hover { color: #fff; }

/* ===== 导航栏 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 55%, var(--green) 100%);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 20px rgba(17,81,211,.28);
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: contain; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(17,81,211,.15);
  transition: transform .25s;
}
.brand-logo:hover { transform: scale(1.06); }
.brand strong { display: block; font-size: 17px; letter-spacing: .01em; color: var(--ink); }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-menu > a,
.nav-menu .nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #31413d;
  transition: .2s; position: relative;
}
.nav-dropdown > .nav-link::before {
  content: "▾"; order: 2; font-size: 10px; color: var(--muted); transform: translateY(1px);
}
.nav-menu > a:hover,
.nav-menu .nav-link:hover { background: rgba(17,81,211,.08); color: var(--blue); }
.nav-menu > a.active,
.nav-menu .nav-link.active { color: var(--blue); font-weight: 600; }
.nav-menu > a.active::after,
.nav-menu .nav-link.active::after {
  content: ""; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-submenu {
  position: absolute; left: 0; top: calc(100% + 10px); min-width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s; z-index: 120;
}
.nav-submenu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-submenu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: #31413d; white-space: nowrap; transition: .2s;
}
.nav-submenu a:hover,
.nav-submenu a.active { background: rgba(17,81,211,.08); color: var(--blue); font-weight: 600; }

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

/* 融合搜索框（已改用页面蓝条/首页大搜索，默认隐藏） */
.nav-search-box { display: none !important; }
.nav-search-box-legacy {
  display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  height: 38px; transition: .2s; width: 200px;
}
.nav-search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(17,81,211,.08); }
.nav-search-icon { color: var(--muted); flex-shrink: 0; transition: .2s; }
.nav-search-box:focus-within .nav-search-icon { color: var(--blue); }
.nav-search-input {
  flex: 1; border: none; background: none; outline: none; font-size: 13px;
  color: var(--ink); font-family: var(--font-sans); min-width: 0;
}
.nav-search-input::placeholder { color: #9ca3af; }
.nav-search-go {
  flex-shrink: 0; padding: 6px 14px; border: none; border-radius: 7px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .2s; white-space: nowrap; font-family: var(--font-sans);
}
.nav-search-go:hover { background: var(--blue-700); }

/* 登录/注册按钮 — 蓝底白字 */
.nav-auth-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  border-radius: 8px; border: none; background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .2s; white-space: nowrap; font-family: var(--font-sans);
  box-shadow: 0 4px 14px rgba(17,81,211,.22);
}
.nav-auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(17,81,211,.3); }
.nav-auth-btn svg { flex-shrink: 0; }

.nav-toggle { display: none; }

/* ===== 登录/注册弹窗 ===== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(10, 15, 30, .6);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.auth-overlay.show { opacity: 1; visibility: visible; }

.auth-modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto; position: relative;
  padding: 36px 36px 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.auth-overlay.show .auth-modal { transform: translateY(0) scale(1); }

.auth-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 8px; border: none; background: var(--soft); color: var(--muted);
  font-size: 15px; cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.auth-close:hover { background: #fee; color: #dc2626; transform: rotate(90deg); }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 81, 211, .15);
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-head h2 {
  font-size: 24px; font-weight: 800; color: var(--ink);
  font-family: var(--font-heading); margin-bottom: 6px;
}
.auth-head p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.auth-tabs {
  display: flex; gap: 4px; background: var(--soft); border-radius: 10px;
  padding: 4px; margin-bottom: 26px;
}
.auth-tab {
  flex: 1; padding: 11px; border: none; border-radius: 8px; background: none;
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: .25s; font-family: var(--font-sans);
}
.auth-tab.active { background: #fff; color: var(--blue); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

.auth-form { display: none; animation: authFadeIn .3s ease; }
.auth-form.active { display: block; }
@keyframes authFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.auth-input-wrap {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft);
  transition: .2s;
}
.auth-input-wrap:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(17, 81, 211, .08); }
.auth-input-wrap svg { color: var(--muted); flex-shrink: 0; transition: .2s; }
.auth-input-wrap:focus-within svg { color: var(--blue); }
.auth-input-wrap input {
  flex: 1; border: none; background: none; outline: none; padding: 12px 0;
  font-size: 14px; color: var(--ink); font-family: var(--font-sans);
}
.auth-input-wrap input::placeholder { color: #9ca3af; }

.auth-code-wrap { padding-right: 6px; }
.auth-code-btn {
  flex-shrink: 0; padding: 8px 14px; border-radius: 7px; border: none;
  background: rgba(17, 81, 211, .08); color: var(--blue); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: .2s; white-space: nowrap;
}
.auth-code-btn:hover { background: rgba(17, 81, 211, .14); }
.auth-code-btn.disabled { color: var(--muted); cursor: not-allowed; background: var(--soft); }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-size: 13px;
}
.auth-check {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  cursor: pointer; font-size: 13px;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.auth-check-full { display: flex; margin-bottom: 20px; line-height: 1.6; }
.auth-link {
  color: var(--blue); text-decoration: none; font-size: 13px; transition: .2s;
  cursor: pointer;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%; padding: 13px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: .25s; font-family: var(--font-sans);
  box-shadow: 0 8px 24px rgba(17, 81, 211, .28);
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(17, 81, 211, .35); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .7; cursor: not-allowed; }

.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 24px 0;
  font-size: 12px; color: var(--muted);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.auth-social { display: flex; gap: 12px; justify-content: center; }
.auth-social-btn {
  width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; display: grid;
  place-items: center; transition: .25s;
}
.auth-social-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }

/* 弹窗响应式 */

.auth-captcha-wrap { padding-right: 6px; gap: 8px; }
.auth-captcha-img {
  height: 36px; width: 100px; object-fit: contain; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer;
}
.auth-pass-wrap { position: relative; padding-right: 8px; }
.auth-eye {
  flex-shrink: 0; border: none; background: none; cursor: pointer;
  color: #94a3b8; opacity: .85; line-height: 1; padding: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
}
.auth-eye:hover { color: #64748b; opacity: 1; background: rgba(148, 163, 184, .12); }
.auth-eye-icon {
  width: 16px; height: 16px; display: block; pointer-events: none;
}
.auth-input-wrap:focus-within .auth-eye { color: #94a3b8; }
.auth-input-wrap:focus-within .auth-eye:hover { color: #64748b; }

.auth-links-row {
  justify-content: space-between; margin-bottom: 20px;
}
.auth-toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 10050; padding: 12px 20px; border-radius: 10px; color: #fff;
  font-size: 14px; font-weight: 600; background: rgba(15, 23, 42, .92);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; visibility: hidden;
  transition: .2s ease; pointer-events: none;
}
.auth-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.auth-hint {
  margin: 8px 2px 0; font-size: 12px; line-height: 1.5; color: #94a3b8;
}
.auth-msg {
  margin: 0 0 12px; text-align: center; font-size: 13px; color: #b45309;
}
.auth-msg.ok { color: #15803d; }
.auth-actions { display: flex; flex-direction: column; gap: 12px; }
.auth-cancel {
  width: 100%; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #f3f4f6; color: #64748b; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .2s; font-family: var(--font-sans);
}
.auth-cancel:hover { background: #e5e7eb; color: #475569; }


@media (max-width: 480px) {
  .auth-modal { padding: 28px 22px 24px; border-radius: 16px; }
  .auth-head h2 { font-size: 21px; }
  .auth-tab { font-size: 14px; padding: 10px; }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nav-auth-btn span { display: none; }
  .nav-auth-btn { padding: 8px 10px; }
  .nav-search-box { width: 140px; }
  .nav-search-input { font-size: 12px; }
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .25s; border: none;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(17,81,211,.24); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.btn-ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { opacity: .9; }

/* ===== 页面通用 ===== */
.page-header {
  background: linear-gradient(135deg, var(--blue-900), var(--dark));
  color: #fff; padding: 56px 0 40px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(17,81,211,.35), transparent 18rem),
    radial-gradient(circle at 15% 80%, rgba(44,167,127,.15), transparent 14rem);
}
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,.75); font-size: 16px; max-width: 640px; }
.page-header .ph-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 22px;
  font-size: 14px; color: rgba(255,255,255,.78);
}
.page-header .ph-meta b {
  color: #6ba3ff; font-family: var(--font-heading);
  font-weight: 800; font-size: 18px; margin-right: 4px;
}
.page-header .ph-meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-header .ph-meta i {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.3); font-style: normal;
  flex-shrink: 0; align-self: center;
}
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,.95); margin-bottom: 20px; }
.page-header .breadcrumb a, .page-header .breadcrumb span { color: rgba(255,255,255,.95); text-shadow: 0 0 10px rgba(255,255,255,.35); }
.breadcrumb a:hover { color: #fff; }

.section { padding: 56px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 680px; }
.section-head .kicker { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }

/* ===== 卡片 ===== */
.card {
  background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: .25s; overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: rgba(17,81,211,.2); }

/* ===== 标签 ===== */
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; gap: 4px;
}
.tag-blue { background: rgba(17,81,211,.1); color: var(--blue); }
.tag-green { background: rgba(44,167,127,.1); color: var(--green); }
.tag-gold { background: rgba(201,168,76,.12); color: #9a7d2e; }
.tag-purple { background: rgba(124,58,237,.1); color: var(--purple); }
.tag-red { background: rgba(220,38,38,.08); color: #dc2626; }
.tag-gray { background: var(--soft); color: var(--muted); }

/* ===== 页脚 ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand strong { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-brand-head strong { margin-bottom: 0; }
.footer-logo { width: 36px; height: 36px; border-radius: 7px; object-fit: contain; flex-shrink: 0; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; transition: .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 12px; }

/* ===== 筛选器 ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 20px; background: var(--paper); border-radius: var(--radius-lg);
  border: 1px solid var(--line); margin-bottom: 28px;
}
.filter-chip {
  padding: 7px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  background: var(--soft); color: var(--muted); cursor: pointer; transition: .2s; border: 1px solid transparent;
}
.filter-chip:hover { color: var(--blue); }
.filter-chip.active { background: var(--blue); color: #fff; }

/* ===== 搜索框 ===== */
.search-input {
  flex: 1; min-width: 200px; padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; outline: none; transition: .2s; background: var(--soft);
}
.search-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(17,81,211,.1); }

/* ===== 统一大搜索条 ===== */
.big-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(17, 81, 211, .14);
  box-shadow: 0 10px 28px rgba(17, 81, 211, .12);
  overflow: hidden;
}
.big-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink, #0f172a);
  font-family: inherit;
  border-radius: 0;
}
.big-search-input::placeholder { color: #9ca3af; }
.big-search-btn {
  flex: 0 0 auto;
  border: none;
  margin: 0;
  background: var(--blue, #1151d3);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 0 28px;
  cursor: pointer;
  font-family: inherit;
  transition: .2s background, .2s transform;
  white-space: nowrap;
}
.big-search-btn:hover {
  background: var(--blue-700, #0d3fa8);
}
.big-search-btn:active { transform: translateY(1px); }
@media (max-width: 640px) {
  .big-search { flex: 1 1 100%; border-radius: 12px; }
  .big-search-input { padding: 14px 16px; font-size: 15px; }
  .big-search-btn { padding: 0 20px; font-size: 15px; }
}


/* ===== 网格 ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

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

/* ===== 响应式 ===== */
@media (max-width: 968px) {
  .nav-menu { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 36px; height: 36px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--soft);
    cursor: pointer; font-size: 18px;
  }
  .nav-menu.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-item { width: 100%; }
  .nav-menu > a, .nav-menu .nav-link { width: 100%; }
  .nav-submenu {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid rgba(17,81,211,.12);
    border-radius: 0; margin: 2px 0 6px 14px; padding: 2px 0 2px 8px;
  }
  .nav-submenu::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
}



/* ===== Unified page-search-dock (fully below blue page-header) ===== */
.page-search-dock {
  position: relative;
  z-index: 6;
  margin-top: 20px;
  margin-bottom: 20px;
}
.page-header + .page-search-dock,
.page-header + #site-search-banner.page-search-dock {
  margin-top: 20px; /* clear gap below blue header — no overlap */
  margin-bottom: 20px;
}
.page-header:has(+ .page-search-dock),
.page-header:has(+ #site-search-banner.page-search-dock) {
  padding-bottom: 40px; /* base header padding; dock no longer overlaps */
}
.page-search-dock .psd-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  max-width: 1040px;
  margin: 0 auto;
}
.page-search-dock .psd-form .big-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 920px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(17, 81, 211, .14);
  box-shadow: 0 12px 32px rgba(17, 81, 211, .16);
}
.page-search-dock .psd-form .big-search-input {
  padding: 0 20px;
  height: 100%;
  font-size: 16px;
}
.page-search-dock .psd-form .big-search-btn {
  height: 100%;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 0;
}
/* Title-only sits OUTSIDE the white [input+搜索] bar, to its right */
.page-search-dock .psd-title-only,
.page-search-dock .title-only-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  order: 2;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #6b7280); /* below header on white — not on blue hero */
  text-shadow: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.page-search-dock .psd-form .big-search { order: 1; }
.page-search-dock .psd-title-only input,
.page-search-dock .title-only-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue, #1151d3);
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .page-search-dock .psd-form { gap: 10px; flex-wrap: wrap; max-width: 100%; }
  .page-header + .page-search-dock,
  .page-header + #site-search-banner.page-search-dock {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .page-search-dock .psd-form .big-search { height: 50px; border-radius: 12px; flex: 1 1 100%; max-width: 100%; }
  .page-search-dock .psd-form .big-search-btn { padding: 0 18px; font-size: 15px; }
  .page-search-dock .psd-title-only,
  .page-search-dock .title-only-label {
    color: var(--muted, #6b7280);
    text-shadow: none;
  }
  .page-search-dock .psd-title-only input,
  .page-search-dock .title-only-label input {
    accent-color: var(--blue, #1151d3);
  }
}

/* hide legacy nav search — replaced by page banner / hero */
.nav-search-box { display: none !important; }

/* ===== Channel soon-search toast (shared; also used without search-banner.css) ===== */
.ssb-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  z-index: 12000;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}
.ssb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

