/* ============================================================
   慧空创业 hk-park.com — 公共基础样式
   ============================================================ */
:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: #1d2733;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 通用容器 ---------- */
.wrap { width: min(1200px, 92%); margin: 0 auto; }
.wrap-wide { width: min(1360px, 94%); margin: 0 auto; }

/* ---------- 章节标题 ---------- */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 14px;
}
.sec-tag::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.sec-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
}
.sec-sub { margin-top: 12px; font-size: 15px; opacity: .68; max-width: 720px; }

/* ---------- 滚动显现动画 ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }
.rv.d5 { transition-delay: .5s; }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 数字滚动 ---------- */
.num-roll { font-variant-numeric: tabular-nums; }

/* ---------- 顶部导航（各主题通过 CSS 变量配色） ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav-in {
  width: min(1360px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; position: relative; z-index: 96; }
.brand svg { display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-cn { font-size: 21px; font-weight: 800; letter-spacing: .14em; }
.brand-en { font-size: 9.5px; letter-spacing: .3em; opacity: .62; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; letter-spacing: .06em; }
.nav-links a { position: relative; padding: 6px 0; opacity: .82; transition: opacity .25s; white-space: nowrap; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--nav-accent, currentColor);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.act::after { transform: scaleX(1); }
.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .1em;
  border: 1px solid var(--nav-accent, #fff);
  color: var(--nav-accent, #fff);
  transition: background .3s, color .3s, transform .3s;
}
.nav-cta:hover { background: var(--nav-accent, #fff); color: var(--nav-cta-hover, #06111f); transform: translateY(-1px); }
.nav.scrolled {
  background: #06101e;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
/* 移动端 */
.nav-burger { display: none; background: none; border: 0; width: 42px; height: 42px; flex-shrink: 0; position: relative; z-index: 95; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 8px; width: 26px; height: 2px;
  background: var(--nav-accent, #fff); border-radius: 2px;
  transition: transform .3s, opacity .3s, top .3s;
}
.nav-burger span { top: 20px; }
.nav-burger span::before { top: -8px; left: 0; }
.nav-burger span::after { top: 8px; left: 0; }
.nav.open .nav-burger span { background: transparent; }
.nav.open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-drop {
    display: flex; flex-direction: column; gap: 6px;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 50;
    overflow-y: auto;
    background: #060f1c;
    padding: 110px 8% 40px;
  }
  .nav-drop a { font-size: 21px; padding: 12px 0; opacity: .9; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-drop .nav-cta { display: inline-block; margin-top: 18px; text-align: center; border-bottom: 0; width: max-content; }
}
.nav-drop { display: none; }
/* 窄屏下品牌副标收起，防止导航溢出把汉堡按钮挤压变形 */
@media (max-width: 560px) {
  .brand-en { display: none; }
  .brand-cn { font-size: 19px; }
}

/* ---------- 主题切换按钮 ---------- */
.theme-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--nav-accent, currentColor);
  background: transparent;
  color: inherit;
  position: relative; z-index: 96;
  opacity: .88;
  transition: opacity .25s, transform .3s var(--ease-out), border-color .3s;
}
.theme-btn:hover { opacity: 1; transform: rotate(18deg); }
.theme-btn svg { grid-area: 1 / 1; width: 17px; height: 17px; }
.theme-btn .ico-sun { display: none; }
html[data-theme="dark"] .theme-btn .ico-sun { display: block; }
html[data-theme="dark"] .theme-btn .ico-moon { display: none; }

/* ---------- 页脚 ---------- */
.footer { color: #c7d3e0; }
.footer a:hover { color: #fff; }

/* ---------- 公众号二维码 ---------- */
.qr-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 46px;
  padding: 6px 0 36px;
}
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-card img {
  width: 104px; height: 104px;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.qr-card span { font-size: 12.5px; letter-spacing: .1em; color: rgba(199, 211, 224, .8); }
html[data-theme="light"] .qr-card img { box-shadow: 0 10px 26px rgba(24, 60, 90, .18); }
html[data-theme="light"] .qr-card span { color: #52708c; }

/* ---------- 浅色主题公共覆盖：头部与页脚随主题切换 ---------- */
html[data-theme="light"] .nav {
  color: #16222e;
  background: #f7fafd;
}
html[data-theme="light"] .nav .brand svg circle,
html[data-theme="light"] .footer .brand svg circle { stroke: var(--nav-accent, #0a8f85); }
html[data-theme="light"] .nav .brand svg path,
html[data-theme="light"] .footer .brand svg path { fill: var(--nav-accent, #0a8f85); }
html[data-theme="light"] .footer { background: #edf2f8; color: #35506b; }
html[data-theme="light"] .footer .f-col h4 { color: #0e1c2a; }
html[data-theme="light"] .footer .f-col a,
html[data-theme="light"] .footer .f-col p { color: #35506b; }
html[data-theme="light"] .footer .f-slogan { color: #52708c; }
html[data-theme="light"] .footer .footer-bar { border-top-color: rgba(30, 60, 90, .14); color: #52708c; }
html[data-theme="light"] .footer a:hover { color: var(--nav-accent, #0a8f85); }
html[data-theme="light"] .cta-in h2 { color: var(--c-fg, var(--fg, var(--ink, #0e1c2a))); }
html[data-theme="light"] .cta-in p { color: #35506b; }
@media (max-width: 960px) {
  html[data-theme="light"] .nav.open .nav-drop { background: #f4f8fc; color: #16222e; }
  html[data-theme="light"] .nav-drop a { border-bottom-color: rgba(30, 60, 90, .12); }
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; font-size: 18px;
  background: var(--totop-bg, rgba(15, 30, 50, .85));
  color: var(--totop-fg, #fff);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .35s, transform .35s, background .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
