/* ==========================================================================
   ZNZBW / Layout — 顶部条 · 头部 · 主导航 · 首屏三栏 · 页脚 · 响应式
   保持老站 1200px 栅格与板块顺序
   ========================================================================== */

/* --------------------------------------------------------------- Top bar */
.topbar { height: var(--topbar-h); background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--ink-500); font-size: var(--fs-12); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.topbar__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__left b { color: var(--brand-700); font-weight: 650; }
.topbar__right { display: flex; align-items: center; gap: 0; flex: none; }
.topbar__right a { padding: 0 12px; border-right: 1px solid var(--line-strong); line-height: 1; }
.topbar__right a:last-child { border-right: 0; padding-right: 0; }
.topbar__right a:hover { color: var(--brand-600); }
.topbar__right .is-strong { color: var(--brand-700); font-weight: 650; }

/* ---------------------------------------------------------------- Header */
.header { background: var(--surface); }
.header__inner { height: var(--header-h); display: grid; grid-template-columns: 264px minmax(0, 1fr) auto; align-items: center; gap: var(--s-8); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand__mark { flex: none; width: 42px; height: 42px; border-radius: var(--r-12); background: var(--brand-500); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(31,111,235,.22); }
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: var(--fs-24); font-weight: 800; letter-spacing: -.03em; color: var(--ink-900); }
.brand__text small { font: 600 9px/1.6 var(--font-display); letter-spacing: .13em; color: var(--ink-400); text-transform: uppercase; }
.header__search { min-width: 0; }
.header__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.menu-toggle { display: none; }

/* ------------------------------------------------------------- Main nav */
.nav { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 2px solid var(--brand-500); }
.nav__inner { height: var(--nav-h); display: flex; align-items: stretch; gap: var(--s-5); }
.nav__list { display: flex; align-items: stretch; gap: 2px; flex: 1 1 auto; }
.nav__item { position: relative; display: inline-flex; align-items: center; padding: 0 20px; font-size: var(--fs-15); font-weight: 650; color: var(--ink-700); white-space: nowrap; }
.nav__item::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -2px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-500); transform: scaleX(0); transition: transform var(--t-base) var(--ease); }
.nav__item:hover { color: var(--brand-700); }
.nav__item.is-active { color: var(--brand-700); }
.nav__item.is-active::after, .nav__item:hover::after { transform: scaleX(1); }
.nav__extra { display: flex; align-items: center; gap: var(--s-2); flex: none; font-size: var(--fs-13); color: var(--ink-400); }
.nav__extra b { font-family: var(--font-num); color: var(--brand-600); }

/* -------------------------------------------------- Hero / category grid */
.hero-grid { display: grid; grid-template-columns: var(--cat-w) minmax(0, 1fr) 248px; gap: var(--s-4); padding-top: var(--s-5); }

.cat-panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); box-shadow: var(--sh-1); padding: var(--s-4) 0 var(--s-3); }
.cat-panel__title { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-4) var(--s-3); font-size: var(--fs-14); font-weight: 750; color: var(--ink-900); }
.cat-panel__title span { font: 600 var(--fs-11)/1 var(--font-display); letter-spacing: .12em; color: var(--ink-400); }
.cat-panel__list { display: flex; flex-direction: column; }
.cat-item { position: relative; }
.cat-item > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px var(--s-4); font-size: var(--fs-14); font-weight: 600; color: var(--ink-700); }
.cat-item > a .cat-sub { font-size: var(--fs-12); font-weight: 400; color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.cat-item > a > span:first-child { flex: none; }
.cat-item > a > svg { width: 12px; height: 12px; flex: none; color: var(--ink-300); }
.cat-item:hover > a { background: var(--brand-50); color: var(--brand-700); }
.cat-item:hover > a svg { color: var(--brand-500); }
.cat-flyout { position: absolute; left: calc(100% + 8px); top: -14px; z-index: 45; width: 500px; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); box-shadow: var(--sh-3); display: none; }
.cat-item:hover .cat-flyout { display: block; }
.cat-flyout h4 { font-size: var(--fs-15); margin-bottom: var(--s-3); color: var(--brand-800); }
.cat-flyout__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.cat-flyout__grid a { font-size: var(--fs-13); color: var(--ink-500); }
.cat-flyout__grid a:hover { color: var(--brand-600); }
.cat-panel__foot { margin: var(--s-3) var(--s-4) 0; padding-top: var(--s-3); border-top: 1px dashed var(--line); text-align: center; }
.cat-panel__foot a { font-size: var(--fs-13); color: var(--brand-600); font-weight: 650; }

/* 深蓝焦点图：全站唯一大面积深色，形成记忆点；同色系非紫蓝渐变 */
.hero-focus { position: relative; overflow: hidden; border-radius: var(--r-12); background: linear-gradient(125deg, var(--brand-800), var(--brand-600)); color: #fff; min-height: 336px; }
.hero-focus::before { content: ""; position: absolute; inset: 0; background-image: var(--mesh); background-size: 30px 30px; --grid-line: rgba(255,255,255,.07); opacity: .9; pointer-events: none; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: var(--s-8) var(--s-8); gap: var(--s-6); opacity: 0; transform: translateY(8px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); pointer-events: none; }
.hero-slide.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-slide__body { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.hero-slide__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); font: 700 var(--fs-11)/1.6 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.hero-slide__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.hero-slide h2 { color: #fff; font-size: var(--fs-34); line-height: 1.28; margin: var(--s-4) 0 var(--s-3); max-width: 460px; }
.hero-slide p { color: rgba(255,255,255,.82); font-size: var(--fs-14); line-height: 1.75; max-width: 420px; margin-bottom: var(--s-6); }
.hero-slide__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero-slide .btn--primary { background: #fff; color: var(--brand-800); box-shadow: none; }
.hero-slide .btn--primary:hover { background: var(--brand-50); color: var(--brand-800); }
.hero-slide .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-slide .btn--ghost:hover { background: rgba(255,255,255,.1); }
.hero-slide__art { flex: none; width: 190px; align-self: center; opacity: .9; }
.hero-slide__art svg { width: 100%; height: auto; }
.hero-dots { position: absolute; left: var(--s-8); bottom: var(--s-4); z-index: 3; display: flex; gap: 7px; }
.hero-dots button { width: 22px; height: 4px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.35); transition: width var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }
.hero-dots button.is-on { width: 40px; background: #fff; }
.hero-arrow { position: absolute; right: var(--s-4); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.hero-arrow button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-6); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.hero-arrow button:hover { background: rgba(255,255,255,.24); }
.hero-arrow svg { width: 14px; height: 14px; }

.hero-side { display: flex; flex-direction: column; gap: var(--s-3); }
.quick-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); padding: var(--s-4); box-shadow: var(--sh-1); }
.quick-card__title { font-size: var(--fs-13); font-weight: 700; color: var(--ink-800); margin-bottom: var(--s-3); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 11px 4px; border-radius: var(--r-8); background: var(--surface-2); font-size: var(--fs-12); color: var(--ink-600); font-weight: 600; text-align: center; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.quick-grid a:hover { background: var(--brand-50); color: var(--brand-700); }
.quick-grid svg { width: 19px; height: 19px; color: var(--brand-500); }
.side-notice { flex: 1 1 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); padding: var(--s-4); box-shadow: var(--sh-1); min-height: 0; }
.side-notice__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.side-notice__head b { font-size: var(--fs-13); }
.side-notice a.more { font-size: var(--fs-12); }
.side-notice ul li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-13); color: var(--ink-600); }
.side-notice ul li:last-child { border-bottom: 0; }
/* 公告接真实数据后标题可能很长，强制单行省略，保持与设计稿一致的固定行高 */
.side-notice ul li a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-notice ul li a:hover { color: var(--brand-600); }

/* --------------------------------------------------------------- Footer */
.footer { margin-top: var(--s-16); background: var(--surface); border-top: 1px solid var(--line); }
.footer__main { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: var(--s-10); padding: var(--s-12) 0 var(--s-10); }
.footer__intro p { font-size: var(--fs-13); color: var(--ink-500); line-height: 1.9; margin-top: var(--s-3); max-width: 290px; }
.footer__contact { margin-top: var(--s-4); font-family: var(--font-num); font-size: var(--fs-20); font-weight: 700; color: var(--brand-700); }
.footer__contact small { display: block; font: 400 var(--fs-12)/1.8 var(--font-sans); color: var(--ink-400); }
.footer h4 { font-size: var(--fs-14); margin-bottom: var(--s-4); color: var(--ink-900); }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: var(--fs-13); color: var(--ink-500); }
.footer__links a:hover { color: var(--brand-600); }
.footer__qr { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-12); background: var(--surface-2); }
.footer__qr-pic { width: 62px; height: 62px; flex: none; border-radius: var(--r-8); background: var(--surface); display: grid; place-items: center; border: 1px solid var(--line); }
.footer__qr-pic svg { width: 46px; height: 46px; }
.footer__qr span { font-size: var(--fs-12); color: var(--ink-500); line-height: 1.6; }
.footer__bar { border-top: 1px solid var(--line); padding: var(--s-4) 0; font-size: var(--fs-12); color: var(--ink-400); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bar a:hover { color: var(--brand-600); }

/* ---------------------------------------------------------- Mobile bar */
.mobile-bar { display: none; }

/* ==========================================================================
   Responsive — 只重组栅格，不隐藏关键功能
   ========================================================================== */
@media (max-width: 1100px) {
  .header__inner { grid-template-columns: 230px minmax(0, 1fr) auto; gap: var(--s-5); }
  .header__actions .btn { padding: 0 12px; }
  .nav__item { padding: 0 14px; font-size: var(--fs-14); }
  .hero-grid { grid-template-columns: var(--cat-w) minmax(0, 1fr); }
  .hero-side { grid-column: 1 / -1; flex-direction: row; }
  .hero-side > * { flex: 1 1 0; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-slide__art { width: 150px; }
}

@media (max-width: 900px) {
  .header__inner { grid-template-columns: auto minmax(0, 1fr) auto; height: auto; padding-block: var(--s-3); gap: var(--s-3); }
  .menu-toggle { display: grid; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: var(--fs-20); }
  .brand__mark { width: 36px; height: 36px; }
  .header__search { grid-column: 1 / -1; grid-row: 2; }
  .header__actions { display: none; }
  .search-hot { display: none; }
  .nav { display: none; }
  .topbar__left { display: none; }
  .topbar__right { width: 100%; justify-content: space-between; }
  .topbar__right a { flex: 1; text-align: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-focus { min-height: 300px; }
  .cat-panel { order: 2; }
  .cat-panel__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-flyout { position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 var(--s-4) var(--s-3); }
  .cat-flyout__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-item:hover .cat-flyout { display: none; }
  .cat-item.is-open .cat-flyout { display: block; }
  .cat-item.is-open > a { background: var(--brand-50); color: var(--brand-700); }
  .hero-side { grid-column: auto; order: 3; flex-direction: column; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
  .dock { display: none; }
  body { padding-bottom: 62px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 62px; background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(13,42,80,.06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--ink-500); }
  .mobile-bar a svg { width: 20px; height: 20px; }
  .mobile-bar a.is-active { color: var(--brand-600); font-weight: 700; }
  .mobile-bar a.is-main svg { background: var(--brand-500); color: #fff; width: 34px; height: 34px; padding: 7px; border-radius: 50%; margin-top: -14px; box-shadow: 0 4px 12px rgba(31,111,235,.3); }
}

@media (max-width: 640px) {
  :root { --gutter: 14px; }
  .brand__text strong { font-size: var(--fs-18); }
  .hero-focus { min-height: 326px; }
  .hero-slide { padding: var(--s-6) var(--s-5); }
  .hero-slide h2 { font-size: var(--fs-24); }
  .hero-slide__art { display: none; }
  .hero-dots { left: var(--s-5); }
  .cat-panel__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cat-flyout__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__main { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding: var(--s-8) 0; }
  .footer__bar { justify-content: center; text-align: center; }
}
