/* ============================================================
   OncoPath 项目官网样式
   设计语言：医疗级青蓝 + 深海蓝墨色，克制的渐变与玻璃拟态
   约束：无运行时依赖；原生滚动；无脚本可顺序阅读；
        reduced-motion 下关闭非必要动画。
   ============================================================ */

:root {
  --ink: #0d3242;
  --ink-deep: #071f29;
  --ink-soft: #114357;
  --muted: #557486;
  --line: #dbe9ee;
  --paper: #ffffff;
  --mist: #f2fafc;
  --cyan: #0a93b4;
  --cyan-bright: #2fb5d3;
  --cyan-dark: #08708c;
  --mint: #16a37b;
  --sky: #8edbec;
  --nav-height: 72px;
  --content-width: 1180px;
  --gutter: max(24px, calc((100vw - var(--content-width)) / 2));
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 50, 66, .05), 0 4px 14px rgba(13, 50, 66, .07);
  --shadow-md: 0 8px 20px rgba(13, 50, 66, .09), 0 20px 48px rgba(13, 50, 66, .10);
  --shadow-deep: 0 30px 80px rgba(3, 18, 25, .5), 0 6px 22px rgba(3, 18, 25, .35);
}

* , *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 50, 66, .28) transparent;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }

::selection { background: rgba(47, 181, 211, .28); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(13, 50, 66, .24); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 3px solid var(--cyan-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- 渐变文字（含回退） ---------- */
.hero h1, .grad {
  background: linear-gradient(115deg, var(--ink) 25%, var(--cyan) 68%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .grad { background: none; color: var(--ink); }
}
.grad { font-style: normal; }

/* ================= 导航 ================= */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(13, 50, 66, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
}
.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(10, 147, 180, .35);
}
.brand-invert { color: #fff; text-decoration: none; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.github-link:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 147, 180, .45);
  color: var(--cyan-dark);
  box-shadow: var(--shadow-md);
}

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 56px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f6fcfd 0%, #edf8fa 58%, #ffffff 100%); }
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff); }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-one { top: -160px; right: -120px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(47, 181, 211, .22), transparent 65%); }
.glow-two { bottom: -180px; left: -140px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(22, 163, 123, .15), transparent 65%); }
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 50, 66, .12) 1px, transparent 1.3px);
  background-size: 26px 26px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 85% 68% at 62% 36%, #000 26%, transparent 74%);
  mask-image: radial-gradient(ellipse 85% 68% at 62% 36%, #000 26%, transparent 74%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.chip-solid {
  border-color: rgba(10, 147, 180, .3);
  background: linear-gradient(120deg, rgba(10, 147, 180, .12), rgba(22, 163, 123, .1));
  color: var(--cyan-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8.4vw, 104px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
}
.hero-lede {
  max-width: 560px;
  margin: 24px 0 14px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}
.hero-lede em { font-weight: 700; }
.hero-sub { margin: 0 0 30px; color: var(--muted); font-size: 14px; letter-spacing: .03em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.button svg { transition: transform .2s; }
.button.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-bright) -10%, var(--cyan) 45%, var(--cyan-dark));
  box-shadow: 0 10px 26px rgba(10, 147, 180, .35);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(10, 147, 180, .42); }
.button.primary:hover svg { transform: translateX(3px); }
.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover { transform: translateY(-2px); border-color: rgba(10, 147, 180, .45); color: var(--cyan-dark); box-shadow: var(--shadow-md); }
.button.inverse {
  border: 0;
  color: var(--ink-deep);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(3, 18, 25, .35);
}
.button.inverse:hover { transform: translateY(-2px); background: #eafcff; }

.hero-note { max-width: 500px; margin: 24px 0 0; color: var(--muted); font-size: 12.5px; }

/* Hero 视觉：浏览器窗框 + 微倾斜 + 浮动徽章 */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  z-index: -1;
  background: radial-gradient(58% 54% at 52% 46%, rgba(47, 181, 211, .26), rgba(22, 163, 123, .1) 58%, transparent 78%);
  filter: blur(18px);
}
.hero-window {
  transform: perspective(1500px) rotateY(-8deg) rotateX(3.5deg) rotateZ(.4deg);
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.hero-visual:hover .hero-window { transform: perspective(1500px) rotateY(-3deg) rotateX(1.5deg); }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--cyan-dark);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(13, 50, 66, .16);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { color: var(--mint); }
.float-chip-one { top: -20px; left: -30px; }
.float-chip-two { bottom: -18px; right: -22px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-next {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.hero-next:hover { color: var(--cyan-dark); }
.hero-next-arrow { color: var(--cyan); font-size: 17px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ================= 窗框组件（Hero 与界面叙事共用） ================= */
.window {
  display: block;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #123c4d, #0c2e3c);
  padding: 9px 11px 11px;
  box-shadow: var(--shadow-deep);
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px; }
.window-bar i, .term-bar i { width: 9px; height: 9px; border-radius: 50%; }
.window-bar i:nth-child(1), .term-bar i:nth-child(1) { background: #ff6b5e; }
.window-bar i:nth-child(2), .term-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3), .term-bar i:nth-child(3) { background: #2ec96e; }
.window-title {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(214, 236, 242, .6);
  font-size: 11px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.window-bar::after { content: ""; width: 39px; flex: none; }
.window img { display: block; width: 100%; height: auto; border-radius: 9px; }

/* ================= 章节标题 ================= */
.intro, .deploy { max-width: var(--content-width); margin: 0 auto; padding: 116px 24px; }
.section-heading { max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 0 4px rgba(10, 147, 180, .14);
}
.section-heading h2, .showcase-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.16;
  letter-spacing: -.015em;
}
.section-sub { margin: 16px 0 0; color: var(--muted); font-size: 16px; }

/* ================= 能力网格 ================= */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.capability-grid article {
  position: relative;
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.capability-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.capability-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 147, 180, .38);
  box-shadow: var(--shadow-md);
}
.capability-grid article:hover::before { transform: scaleX(1); }
.capability-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 147, 180, .13), rgba(22, 163, 123, .1));
  color: var(--cyan-dark);
}
.capability-icon svg { width: 23px; height: 23px; }
.capability-index {
  position: absolute;
  top: 26px;
  right: 28px;
  color: rgba(13, 50, 66, .16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.capability-grid h3 { margin: 24px 0 10px; font-size: 19px; letter-spacing: -.01em; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ================= 界面叙事（深色沉浸区） ================= */
.showcase {
  position: relative;
  margin: 0 clamp(10px, 1.4vw, 22px);
  border-radius: clamp(24px, 3.5vw, 44px);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(47, 181, 211, .14), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(22, 163, 123, .10), transparent 60%),
    linear-gradient(180deg, #d9f1f8, #f6fbfd 42%, #ffffff);
  padding-bottom: 48px;
}
.showcase-heading { max-width: var(--content-width); margin: 0 auto; padding: 92px 24px 64px; }
.showcase-heading .eyebrow { color: var(--cyan); }
.showcase-heading > p:last-child { max-width: 620px; margin: 18px 0 0; color: var(--muted); }

.showcase-story { position: relative; }
.mobile-story { display: none; }

/* 全屏舞台：截图铺满视口，随滚动切换；底色为项目青色到白色渐变 */
.showcase-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(170deg, #cdeaf4 0%, #e9f7fb 40%, #ffffff 100%);
}
/* 背景层：同图模糊放大作纹理，半透明让青白渐变透出 */
.showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  filter: blur(26px) saturate(.9);
  transform: scale(1.18);
  transition: opacity .18s ease;
}
/* 前景层：完整显示截图主体 */
.showcase-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .18s ease, transform .18s ease;
}
/* 文案卡片：右下角玻璃拟态，减少对截图的遮挡 */
.showcase-copy {
  position: absolute;
  right: calc(var(--gutter) + 8px);
  bottom: 52px;
  z-index: 2;
  width: min(430px, calc(100% - 2 * (var(--gutter) + 8px)));
  padding: 26px 30px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: var(--shadow-md);
  transition: opacity .18s ease, transform .18s ease;
}
.showcase-index {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}
.showcase-copy h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -.01em;
}
.showcase-desc { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.showcase-dots { display: flex; gap: 9px; margin-top: 24px; }
.showcase-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 50, 66, .16);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.showcase-dot:hover { background: rgba(10, 147, 180, .45); }
.showcase-dot.active { width: 26px; background: var(--cyan); }

/* 切换时的淡出过渡（背景层保持放大比例，避免模糊边露底） */
.showcase-stage.is-changing .showcase-fg { opacity: .25; transform: translateY(12px) scale(.985); }
.showcase-stage.is-changing .showcase-bg { opacity: .25; }
.showcase-stage.is-changing .showcase-copy { opacity: .25; transform: translateY(-8px); }

.showcase-progress {
  position: absolute;
  left: calc(var(--gutter) + 12px);
  right: auto;
  bottom: 6px;
  z-index: 3;
  margin: 0;
  color: rgba(10, 147, 180, .12);
  font-size: clamp(96px, 13vw, 176px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}
@supports (-webkit-text-stroke: 1px black) {
  .showcase-progress { color: transparent; -webkit-text-stroke: 1.5px rgba(10, 147, 180, .26); }
}

.showcase-step { min-height: 100svh; pointer-events: none; }

/* 无脚本回退画廊 */
.no-js-gallery { display: grid; gap: 56px; max-width: var(--content-width); margin: 0 auto; padding: 0 24px 96px; }
.no-js-gallery figure { margin: 0; padding: 14px; border-radius: var(--r-md); background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.no-js-gallery img { display: block; width: 100%; border-radius: 9px; }
.no-js-gallery figcaption { margin-top: 12px; color: var(--ink); font-weight: 700; }

/* ================= 部署 ================= */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.deploy-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.deploy-card:hover { transform: translateY(-4px); border-color: rgba(10, 147, 180, .38); box-shadow: var(--shadow-md); }
.deploy-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); align-items: center; gap: 28px; }
.deploy-card-wide .deploy-note { margin-top: 0; }
.deploy-wide-copy h3 { margin-bottom: 12px; }
.deploy-num {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.deploy-card h3 { margin: 12px 0 18px; font-size: 19px; letter-spacing: -.01em; }
.deploy-note { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--cyan-dark);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.arrow-link svg { transition: transform .25s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

.term { margin-top: 2px; border: 1px solid #0b2b37; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .05);
}
.term-bar i { width: 8px; height: 8px; }
.term-title {
  margin: 0 auto;
  color: #8fb6c2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: transparent;
  color: #bfe3ec;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .09); }
.copy-btn.copied { color: #7dedc9; border-color: rgba(125, 237, 201, .45); }
html:not(.js) .copy-btn { display: none; }

pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #d9eef2;
  background: #0b2b37;
  font: 13px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ================= CTA 横幅 ================= */
.cta-band-wrap { max-width: var(--content-width); margin: 0 auto; padding: 8px 24px 104px; }
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 58px) clamp(28px, 4.5vw, 56px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(640px 300px at 86% -20%, rgba(47, 181, 211, .35), transparent 65%),
    linear-gradient(120deg, #0a2a37, #0d3d4f 55%, #12657f);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(7, 31, 41, .3);
}
.cta-copy h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; }
.cta-copy p { max-width: 480px; margin: 12px 0 0; color: rgba(214, 236, 242, .82); font-size: 15px; }
.cta-band .button { flex: none; }

/* ================= 赞助支持 ================= */
.sponsor {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 24px 116px;
}
.sponsor-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
}
.sponsor-card {
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(7, 31, 41, .08);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(7, 31, 41, .12);
}
.sponsor-card img {
  display: block;
  width: min(240px, 62vw);
  border-radius: var(--r-sm);
}
.sponsor-card figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.sponsor-star {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ================= 页脚 ================= */
footer {
  padding: 76px var(--gutter) 30px;
  color: #b9d2da;
  background: var(--ink-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 48px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.footer-brand p { max-width: 400px; margin: 18px 0 0; font-size: 13.5px; line-height: 1.8; color: #9dbecb; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col strong { margin-bottom: 4px; color: #fff; font-size: 14px; }
.footer-col a { color: #9dbecb; font-size: 13.5px; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content-width);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.footer-bottom p { margin: 0; font-size: 12.5px; color: #7fa3b0; }

/* ================= 进入视口浮现（仅在 JS 可用时启用） ================= */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js [data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .hero { min-height: auto; padding-bottom: 84px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-chips, .hero-actions { justify-content: center; }
  .hero-lede, .hero-note { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 680px; margin: 0 auto; }
  .hero-window { transform: perspective(1500px) rotateY(-4deg) rotateX(2deg); }
  .float-chip-one { left: -12px; }
  .float-chip-two { right: -10px; }
}

@media (max-width: 860px) {
  .site-nav { height: 64px; }
  :root { --nav-height: 64px; }
  .nav-links { display: none; }
  .github-link { padding: 8px 14px; }

  .window-bar { display: none; }
  .window { padding: 7px; border-radius: 20px; }
  .window img { border-radius: 14px; }
  .hero-visual { max-width: 330px; }

  .intro, .deploy { padding: 84px 20px; }
  .capability-grid article { min-height: 0; }
  .deploy-card-wide { grid-template-columns: 1fr; gap: 18px; }

  .desktop-story { display: none; }
  .mobile-story { display: block; }
  .showcase-heading { padding: 72px 20px 36px; }
  .showcase-copy {
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: auto;
    text-align: center;
    padding: 20px 18px 18px;
  }
  .showcase-copy h3 { font-size: 24px; }
  .showcase-desc { margin: 10px auto 0; font-size: 13.5px; }
  .showcase-dots { justify-content: center; margin-top: 16px; }
  .showcase-progress { font-size: 88px; left: 16px; }

  .no-js-gallery { padding-left: 20px; padding-right: 20px; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-copy p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .site-nav { padding: 0 16px; }
  .brand { font-size: 16px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 56px; }
  .hero-note { font-size: 12px; }
  .chip { font-size: 11.5px; padding: 5px 11px; }
  .button { width: 100%; }
  .hero-actions { flex-direction: column; }
  .intro, .deploy { padding: 68px 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  .showcase-heading { padding: 60px 20px 28px; }
  .showcase-stage { padding-left: 16px; padding-right: 16px; }
  .cta-band-wrap { padding: 0 16px 80px; }
  footer { padding: 60px 20px 24px; }
}

/* ================= 减少动态效果 ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
