/* components.css — 三页共用组件：容器、页头、按钮、标签、页脚 */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* 跳转链接（键盘可见） */
.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 60;
  background: var(--deep); color: var(--inv);
  padding: 10px 16px; border-radius: var(--r-1);
  font-size: var(--fs-3); text-decoration: none; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 页头：64px 单行，纸白底 + 1px 底线的黏性条 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: 64px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-1);
  background: var(--deep); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.brand-name { font-size: var(--fs-4); font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand-sub {
  display: block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 9.5px;
  letter-spacing: .14em; color: var(--muted); text-transform: uppercase;
}

.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 7px 9px; border-radius: var(--r-1);
  font-size: var(--fs-3); color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav-list a:hover, .nav-list a:focus-visible { background: var(--bg-alt); color: var(--deep); }
.nav-list a[aria-current="page"] { color: var(--deep); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

.header-cta { margin-left: auto; flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- 按钮：琥珀实心 + 描边胶囊 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: var(--fs-3); font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--accent { background: var(--accent); color: #2a2000; }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--accent-deep); color: #fff; }
.btn--ghost { border-color: rgba(14,47,90,.35); color: var(--deep); background: rgba(255,255,255,.62); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; border-color: var(--deep); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--deep); color: var(--deep); }
.btn--sm { height: 34px; padding: 0 16px; font-size: var(--fs-2); }

/* ---------- 眉标 / 区块头 / 标签 ---------- */
.eyebrow {
  margin: 0; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-1);
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
}
.sec-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: var(--fs-6); line-height: 1.25; letter-spacing: -.01em; color: var(--deep); }
.sec-lead { margin: 5px 0 0; color: var(--ink-2); font-size: var(--fs-3); }
.sec-bar { width: 5px; height: 20px; background: var(--accent); flex: none; }
.tag {
  display: inline-block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10.5px; letter-spacing: .06em;
  color: var(--deep); background: var(--accent-soft); border-radius: var(--r-1); padding: 2px 7px;
}

/* ---------- 页脚：深蓝通栏，三栏 + 底条 ---------- */
.site-footer { background: var(--deep-2); color: var(--inv-dim); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.15fr 1fr; gap: 44px;
  padding: 16px 0 10px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; max-width: 330px; }
.footer-col h3 {
  margin: 0 0 4px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: var(--inv-dim); text-decoration: none; font-size: 12.5px; line-height: 1.62; }
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration: underline; }
.footer-col p { margin: 0; font-size: 11px; line-height: 1.62; }
.footer-copy { margin-bottom: 6px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-2); color: var(--accent); letter-spacing: .04em; }
.footer-bottom {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.14); padding: 8px 0 9px;
  font-size: var(--fs-2); color: #90aed0;
}
.footer-bottom a { color: #90aed0; text-decoration: none; margin-left: auto; }
.footer-bottom a:hover { color: #fff; }
