/* 站点框架：Hero 行动按钮组 / 页脚二维码 / 页脚 v2 / 移动端导航抽屉
   拆分自 assets/css/design-system.css（2026-08-30）
   对应 modules/shared-topnav*.html、shared-footer*.html、m01-hero.html。 */

/* ============================================================
   Hero 行动按钮组（主胶囊 + 文字链接）
   ============================================================ */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-bottom: var(--sp-4);
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--gold-500);
  color: #fff;
  border-radius: var(--r-full);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(201, 138, 43, 0.2), 0 6px 18px rgba(201, 138, 43, 0.12);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.hero-btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 138, 43, 0.28), 0 10px 24px rgba(201, 138, 43, 0.18);
}
.hero-btn-primary:active { transform: translateY(0); }
.hero-btn-primary .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), gap var(--duration-fast) var(--ease-out);
}
.hero-link:hover {
  color: #fff;
  border-bottom-color: var(--gold-400);
  gap: 10px;
}
.hero-link .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}
.hero-link:hover .icon { transform: translateX(2px); }

@media (max-width: 1180px) {
  .hero-actions { gap: 8px 22px; }
  .hero-btn-primary {
    height: 42px;
    padding: 0 18px;
    font-size: 14.5px;
  }
  .hero-link { font-size: 14.5px; }
}
@media (max-width: 920px) {
  .hero-actions {
    gap: 10px 16px;
    margin-bottom: var(--sp-3);
  }
  .hero-btn-primary {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 20px;
    font-size: 14.5px;
  }
  .hero-link { font-size: 14px; padding: 6px 2px; }
}
@media (max-width: 480px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }
  .hero-btn-primary {
    grid-column: 1 / -1;
    justify-content: center;
    height: 44px;
    font-size: 15px;
    padding: 0;
  }
  .hero-link {
    justify-content: center;
    font-size: 14px;
    padding: 10px 0;
    min-height: 44px;
    border-bottom: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-full);
  }
  .hero-link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
  }
}

/* ============================================================
   页脚二维码（公众号 + 企微联系人）
   ============================================================ */
.footer-qr-list {
  display: flex;
  gap: var(--sp-3);
}
.qr-item {
  margin: 0;
  text-align: center;
  width: 104px;
}
.qr-item img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-s);
  padding: 6px;
}
.qr-item figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #fff;
  font-weight: 600;
}
.qr-item figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-400);
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr !important;
  }
  .footer-qr {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--sp-4);
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--sp-5) !important;
  }
  .footer-qr-list {
    justify-content: flex-start;
  }
}

/* ============================================================
   页脚 v2：联系入口 + 站点地图 + 合规声明
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: #B9CEDD;
  font-size: 14px;
}
#contact { scroll-margin-top: 72px; }
/* 顶栏 sticky 60px，站内锚点跳转需留出安全余量 */
#tier-picker, #m11-flow, #m03-how, #m12-consensus, #m13-boundary { scroll-margin-top: 76px; }

/* ----- 品牌列内的二维码 ----- */
.foot-qr {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding: 0;
}

/* ----- 中部站点地图 ----- */
.foot-map {
  padding: var(--sp-6) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: var(--sp-6);
}
.foot-brand-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.foot-brand-row .logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.foot-brand-row .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foot-brand-name {
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.foot-brand-sub {
  font-size: 12.5px;
  color: #8FA9BE;
  margin-top: 2px;
}
.foot-brand-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #8FA9BE;
  margin: 0;
  max-width: 40ch;
}
.foot-col-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 var(--sp-3);
}
.foot-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.foot-col-list a {
  color: #8FA9BE;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  transition: color var(--duration-fast) var(--ease-out);
}
.foot-col-list a:hover { color: #fff; }
.foot-col-list .sub {
  display: block;
  font-size: 12px;
  color: #64839A;
  margin-top: 2px;
}

/* ----- 底部合规 ----- */
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--sp-4);
  font-size: 12.5px;
  line-height: 1.8;
  color: #8FA9BE;
}
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: var(--sp-4);
  padding: var(--sp-3) 0 var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12.5px;
  color: #7793A8;
}
.foot-base a {
  color: #7793A8;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.foot-base a:hover { color: #B9CEDD; }

@media (max-width: 1080px) {
  .foot-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-map > [data-od-id="footer-contact"] {
    order: -1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: var(--sp-6);
    align-items: start;
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .foot-map > [data-od-id="footer-contact"] .foot-brand-row { grid-column: 1; grid-row: 1; }
  .foot-map > [data-od-id="footer-contact"] .foot-brand-text {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }
  .foot-map > [data-od-id="footer-contact"] .foot-qr {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-wrap: nowrap;
    margin: 0;
  }
}
@media (max-width: 560px) {
  .foot-map { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .foot-map > [data-od-id="footer-contact"] {
    order: -1;
    display: block;
    padding-bottom: var(--sp-5);
  }
  .foot-map > [data-od-id="footer-contact"] .foot-qr { margin: var(--sp-4) 0 0; }
}

/* ============================================================
   移动端导航（汉堡按钮 + 抽屉）
   复用 .drawer-scrim 的动效语言，仅在 ≤920px 显现
   ============================================================ */
.nav-burger {
  display: none;
  position: relative;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  align-items: center; gap: 8px;
  min-height: 44px; flex: none;
  padding: 0 14px 0 12px; margin: 0;
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  border-radius: var(--r-full);
  color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(37, 116, 105, .28);
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.nav-burger:hover { background: var(--navy-800); border-color: var(--navy-800); }
.nav-burger:active { transform: scale(.97); }
.nav-burger:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.nav-burger .nb-icon { position: relative; width: 18px; height: 14px; flex: none; }
.nav-burger .nb-text { white-space: nowrap; letter-spacing: .02em; }
.nav-burger .nb-bar {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .26s var(--ease-out), opacity .18s linear;
}
.nav-burger .nb-bar:nth-child(1) { transform: translate(-50%, -50%) translateY(-5px); }
.nav-burger .nb-bar:nth-child(2) { transform: translate(-50%, -50%); }
.nav-burger .nb-bar:nth-child(3) { transform: translate(-50%, -50%) translateY(5px); }
.nav-burger[aria-expanded="true"] { background: var(--navy-900); border-color: var(--navy-900); }
.nav-burger[aria-expanded="true"] .nb-bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nb-bar:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nb-bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.navdrawer-scrim {
  position: fixed; inset: 0; z-index: 108;
  background: rgba(10, 31, 51, .52);
  opacity: 0; pointer-events: none;
  transition: opacity .24s ease;
}
.navdrawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 109;
  width: min(320px, 86vw);
  background: #fff;
  box-shadow: -18px 0 48px rgba(10, 31, 51, .22);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32, .72, .28, 1);
  display: flex; flex-direction: column;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer .nd-head {
  flex: none;
  background: var(--navy-700);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  min-height: 60px;
}
.nav-drawer .nd-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.nav-drawer .nd-close {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  position: relative;
}
.nav-drawer .nd-close::before,
.nav-drawer .nd-close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.6px; background: #fff;
}
.nav-drawer .nd-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-drawer .nd-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-drawer .nd-close:hover { background: rgba(255, 255, 255, .22); }

.nav-drawer .nd-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: var(--sp-2) 0;
}
.nav-drawer .nd-list { list-style: none; margin: 0; padding: 0; }
.nav-drawer .nd-list a {
  display: flex; align-items: center;
  min-height: 52px;
  padding: 0 var(--sp-4);
  font-size: 15.5px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-100);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.nav-drawer .nd-list a:hover { background: var(--line-50); }
.nav-drawer .nd-list a[aria-current="page"] {
  color: var(--navy); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gold-500);
  background: var(--bg-gold-tint);
}
.nav-drawer .nd-foot {
  flex: none;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--line-50);
}
.nav-drawer .nd-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  background: var(--gold-500); color: #fff;
  transition: background var(--duration-fast) var(--ease-out);
}
.nav-drawer .nd-cta:hover { background: var(--gold-600); }

@media (max-width: 920px) {
  .nav-burger { display: inline-flex; }
  .topnav .brand span:last-child { font-size: 15px; }
}

@media (max-width: 360px) {
  .nav-burger .nb-text { display: none; }
  .nav-burger { width: 44px; padding: 0; justify-content: center; }
}

@media (max-width: 380px) {
  .topnav .nav-cta-inline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .navdrawer-scrim, .nav-burger .nb-bar { transition: none; }
}
