/* ============================================================
   site.css — 站点视觉层（叠加在 Bootstrap 之上）
   设计语言参考 hdat.cn：白底导航 + 深墨蓝点阵 Hero + 天蓝主色
   改配色只改 :root 里的变量即可
   ============================================================ */

:root {
  /* 主色：天蓝（hdat.cn 同款 #0369a1） */
  --accent: #0369a1;
  --accent-dark: #075985;
  --accent-light: #eff6ff;
  --accent-soft: #e0f2fe;

  /* 中性色 */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --slate-700: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 24px -6px rgba(15, 23, 42, .12), 0 4px 8px -4px rgba(15, 23, 42, .06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
}

/* 导航吸顶的前提：Start Bootstrap 模板尾部有一句 body,html{height:100%}，
   会把 body 压成只有一屏高，sticky 导航滚过一屏就被父级带走（表现为「导航跟着卡片一起消失」）。
   这里还原成自动高度，让 sticky 在整个文档内都有效。 */
html, body { height: auto; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }
::selection { background: rgba(3, 105, 161, .15); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1080;
  background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container-wide { max-width: 1180px; }

/* ---------------------------------------------------------- buttons ----- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .94rem;
  padding: .62rem 1.15rem;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn-lg { padding: .78rem 1.55rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: .45rem .85rem; font-size: .86rem; }

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}
.btn-accent-light {
  background: var(--white); border: 1px solid var(--white); color: var(--accent);
  font-weight: 600;
}
.btn-accent-light:hover { background: #f1f5f9; border-color: #f1f5f9; color: var(--accent-dark); }
.btn-outline-ink {
  border: 1px solid #cbd5e1; color: var(--slate-700); background: transparent;
}
.btn-outline-ink:hover { border-color: var(--ink-2); color: var(--ink); background: var(--soft); }
.btn-ghost-dark {
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; background: transparent;
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-link-arrow {
  color: #fff; font-weight: 600; padding: .78rem .4rem; display: inline-flex; align-items: center; gap: .45rem;
}
.btn-link-arrow:hover { color: #bae6fd; }
.btn:focus-visible { outline: 3px solid rgba(3, 105, 161, .3); outline-offset: 2px; }

/* ---------------------------------------------------------- navbar ------ */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: .6rem 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.site-nav.is-scrolled {
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .22);
  border-bottom-color: rgba(226, 232, 240, .6);
}
.site-nav .navbar-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink);
}
.site-nav .navbar-brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center;
  background: linear-gradient(140deg, var(--accent) 0%, #0ea5e9 100%);
  color: #fff; font-size: .92rem; flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(3, 105, 161, .28);
}
.brand-mark i { line-height: 1; }

.site-nav .navbar-nav { gap: .15rem; }
.site-nav .nav-link {
  color: var(--slate-700);
  font-size: .94rem; font-weight: 500;
  padding: .42rem .8rem !important; border-radius: var(--radius-sm);
  transition: color .14s ease, background .14s ease;
}
.site-nav .nav-link:hover { color: var(--accent); background: var(--soft); }
.site-nav .nav-link.active {
  color: var(--accent); background: var(--accent-light); font-weight: 600;
}
.site-nav .navbar-toggler { border: 1px solid var(--line); padding: .34rem .5rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(3, 105, 161, .15); }

.btn-lang {
  display: inline-flex; align-items: center; gap: .38rem;
  color: var(--slate-700); border: 1px solid var(--line);
  border-radius: 999px; padding: .34rem .78rem; font-size: .84rem; font-weight: 600;
  line-height: 1.4; transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.btn-lang:hover { color: var(--accent); border-color: #bae6fd; background: var(--accent-light); }

/* ---------------------------------------------------------- hero -------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(14, 165, 233, .22) 0%, rgba(14, 165, 233, 0) 62%),
    radial-gradient(700px 460px at 96% 88%, rgba(34, 211, 238, .16) 0%, rgba(34, 211, 238, 0) 60%),
    linear-gradient(150deg, #1e293b 0%, #172033 45%, #0f172a 100%);
  padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 92px);
}
/* 点阵纹理（模拟全球节点图） */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(147, 213, 255, .5) 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 62% 92% at 82% 44%, #000 0%, rgba(0, 0, 0, .7) 38%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 92% at 82% 44%, #000 0%, rgba(0, 0, 0, .7) 38%, transparent 76%);
  opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .35) 46%, transparent 72%);
}
.hero > .container, .hero > .container-wide { position: relative; z-index: 1; }
.hero--compact { padding: clamp(48px, 5.5vw, 72px) 0 clamp(44px, 5vw, 66px); }

.hero-title {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.028em;
  margin: 0 0 1rem; text-wrap: balance;
}
.hero-subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 500; color: rgba(255, 255, 255, .9);
  margin: 0 0 .9rem; line-height: 1.6;
}
.hero-lead {
  font-size: .98rem; line-height: 1.85; color: rgba(255, 255, 255, .62);
  max-width: 34rem; margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.hero-status {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; font-size: .84rem; color: rgba(255, 255, 255, .55);
}
.hero-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}
.hero-points {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.6rem;
}
.hero-points li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; color: rgba(255, 255, 255, .66);
}
.hero-points i { color: #7dd3fc; }
.hero-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
}

/* ---------------------------------------------------------- sections ---- */
.section { padding: clamp(48px, 5.2vw, 76px) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: clamp(36px, 3.4vw, 52px) 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 46rem; margin: 0 auto clamp(32px, 3.6vw, 52px); text-align: center; }
.section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 800; letter-spacing: -.022em; line-height: 1.35; margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-sub {
  color: var(--muted); margin: .9rem 0 0; line-height: 1.85; font-size: .98rem;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .85rem;
}
.eyebrow--onDark { color: #7dd3fc; }

.lede { font-size: 1.02rem; line-height: 1.9; color: var(--muted); }
.prose p { line-height: 1.9; color: var(--muted); margin-bottom: 1rem; font-size: .97rem; }
.prose p:last-child { margin-bottom: 0; }
.split h2 { font-size: clamp(1.3rem, 2.1vw, 1.62rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; color: var(--ink); text-wrap: balance; }
.split-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; border: 1px solid var(--line); }

/* ---------------------------------------------------------- tiles ------- */
/* 横向卡片：图标在左、文字在右（参考站同款） */
.tile {
  height: 100%; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.tile:hover {
  box-shadow: var(--shadow-lg); border-color: #cbd5e1; transform: translateY(-2px);
}
.tile--stack { flex-direction: column; }
.tile--auto { height: auto; }

.tile-icon {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.15rem;
  color: var(--accent); background: var(--accent-light);
}
.tile-body { min-width: 0; }
.tile h2, .tile h3 {
  font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; color: var(--ink); letter-spacing: -.005em;
}
.tile p { color: var(--muted); font-size: .9rem; line-height: 1.72; margin: 0; }

/* ---------------------------------------------------------- stats ------- */
.stat-card {
  height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .tile-icon { width: 40px; height: 40px; font-size: 1.05rem; }
.stat-num {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: .84rem; margin-top: .15rem; }

/* ---------------------------------------------------------- quote ------- */
.quote-band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote { max-width: 48rem; margin: 0 auto; text-align: center; }
.quote-text {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.9; font-weight: 500;
  letter-spacing: -.01em; margin: 0 0 1.6rem; color: var(--ink-2);
}
.quote-by { display: inline-flex; align-items: center; gap: .7rem; }
.quote-by img { border-radius: 50%; }
.quote-name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.quote-role { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------- posts ------- */
.post-card {
  height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.post-card:hover { box-shadow: var(--shadow-lg); border-color: #cbd5e1; transform: translateY(-2px); }
.post-card .post-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--soft); }
.post-body { padding: 1.25rem 1.3rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-light);
  padding: .26rem .58rem; border-radius: 6px; margin-bottom: .75rem;
}
.post-title { font-size: 1rem; font-weight: 700; line-height: 1.55; margin: 0 0 .5rem; color: var(--ink); }
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: .89rem; line-height: 1.72; margin: 0 0 1rem; }
.post-date { color: var(--muted-2); font-size: .8rem; margin-top: auto; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- team -------- */
.member { text-align: center; }
.member img {
  border-radius: 50%; margin-bottom: .9rem;
  border: 3px solid var(--white); box-shadow: var(--shadow-md);
}
.member-name { font-weight: 700; font-size: .96rem; margin: 0 0 .2rem; color: var(--ink); }
.member-role { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------- flow -------- */
.flow-step { position: relative; }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--accent-light); color: var(--accent);
  font-size: .76rem; font-weight: 800; letter-spacing: .06em;
  margin-bottom: .85rem; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.flow-step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .45rem; color: var(--ink); }
.flow-step p { color: var(--muted); font-size: .89rem; line-height: 1.72; margin: 0; }
.flow-line { height: 1px; background: var(--line); margin: .2rem 0 2rem; }

/* ---------------------------------------------------------- contact ----- */
.info-label { font-size: .93rem; font-weight: 700; margin: 0 0 .28rem; color: var(--ink); }
.info-text { color: var(--muted); font-size: .89rem; line-height: 1.7; margin: 0; }

.form-label { font-weight: 600; font-size: .87rem; color: var(--slate-700); margin-bottom: .38rem; }
.form-control {
  border-radius: var(--radius-sm); border-color: var(--line); padding: .66rem .85rem; font-size: .93rem;
  color: var(--ink-2);
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3, 105, 161, .12);
}
.form-note { color: var(--muted); font-size: .84rem; line-height: 1.7; }
.map-box {
  border-radius: var(--radius); background: var(--soft);
  border: 1px dashed #cbd5e1; aspect-ratio: 4 / 3;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  color: var(--muted-2); font-size: .87rem;
}

/* ---------------------------------------------------------- cta --------- */
.cta-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 46px) clamp(24px, 3.4vw, 48px);
  background: linear-gradient(120deg, #1e293b 0%, #172033 55%, #0f172a 100%);
  color: #fff;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(125, 211, 252, .26) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 60% 120% at 88% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 120% at 88% 50%, #000 0%, transparent 72%);
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 800; letter-spacing: -.022em; margin: 0 0 .55rem; }
.cta-panel p { color: rgba(255, 255, 255, .66); margin: 0; line-height: 1.75; max-width: 34rem; font-size: .94rem; }

/* ---------------------------------------------------------- footer ------ */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, .58);
  padding: clamp(40px, 4.6vw, 60px) 0 24px; font-size: .9rem;
}
.site-footer a { color: rgba(255, 255, 255, .58); transition: color .14s ease; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; font-size: 1rem; }
.footer-tag { margin-top: .85rem; line-height: 1.8; max-width: 21rem; color: rgba(255, 255, 255, .45); font-size: .87rem; }
.footer-title {
  color: #fff; font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .95rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .8rem; color: rgba(255, 255, 255, .4);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------- misc -------- */
.pagination .page-link {
  border-radius: var(--radius-sm); margin: 0 .16rem; border-color: var(--line);
  color: var(--muted); font-size: .88rem;
}
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-item.disabled .page-link { color: #cbd5e1; }

/* 入场动画：只作用于首屏 Hero，纯 CSS，必定结束，不依赖 JS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow,
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-lead,
.hero .hero-actions,
.hero .hero-status,
.hero .hero-points {
  animation: fadeUp .5s ease both;
}
.hero .hero-title { animation-delay: .05s; }
.hero .hero-subtitle { animation-delay: .1s; }
.hero .hero-lead { animation-delay: .14s; }
.hero .hero-actions { animation-delay: .18s; }
.hero .hero-status, .hero .hero-points { animation-delay: .22s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero .hero-title, .hero .hero-subtitle,
  .hero .hero-lead, .hero .hero-actions, .hero .hero-status, .hero .hero-points {
    animation: none;
  }
  .tile:hover, .post-card:hover { transform: none; }
}
