/* ==========================================================================
   repl-sentinel 产品主页
   三主题（深蓝 / 黑金 / 暖白）：全部视觉由 :root 与 [data-theme] 下的
   色板变量驱动，切换主题时整页同步换色（含渐变，靠 @property 插值）。
   ========================================================================== */

/* ---------- 可插值渐变色停（主题切换同步渐变） ---------- */
@property --g-btn-1 { syntax: "<color>"; inherits: true; initial-value: #0284C7; }
@property --g-btn-2 { syntax: "<color>"; inherits: true; initial-value: #0EA5E9; }
@property --g-btn-3 { syntax: "<color>"; inherits: true; initial-value: #38BDF8; }
@property --g-text-1 { syntax: "<color>"; inherits: true; initial-value: #38BDF8; }
@property --g-text-2 { syntax: "<color>"; inherits: true; initial-value: #7DD3FC; }
@property --g-text-3 { syntax: "<color>"; inherits: true; initial-value: #E0F2FE; }
@property --g-glow-1 { syntax: "<color>"; inherits: true; initial-value: rgba(56,189,248,.30); }
@property --g-glow-2 { syntax: "<color>"; inherits: true; initial-value: rgba(14,165,233,.16); }

/* ========================== 深蓝主题（默认） ========================== */
:root,
[data-theme="blue"] {
  --canvas:        #060D1A;
  --canvas-2:      #0A1526;
  --surface:       rgba(16, 30, 52, .62);
  --surface-solid: #101E34;
  --surface-hi:    rgba(30, 52, 84, .72);
  --hairline:      rgba(120, 180, 255, .16);
  --hairline-hi:   rgba(120, 180, 255, .32);

  --text-1:        #EAF3FF;
  --text-2:        #A9C2DE;
  --text-3:        #6E88A8;

  --primary:       #38BDF8;
  --primary-2:     #0EA5E9;
  --on-primary:    #04121F;

  --g-btn-1: #0284C7;
  --g-btn-2: #0EA5E9;
  --g-btn-3: #38BDF8;
  --g-text-1: #38BDF8;
  --g-text-2: #7DD3FC;
  --g-text-3: #E0F2FE;
  --g-glow-1: rgba(56,189,248,.30);
  --g-glow-2: rgba(14,165,233,.16);

  --ring-blue:  #0284C7;
  --ring-dark:  #09090B;
  --ring-light: #FAF9F6;

  --grid-line: rgba(120, 180, 255, .07);
  --star: 150, 200, 255;
  --veil-1: rgba(6,13,26,.62);
  --veil-2: rgba(6,13,26,.96);
  --veil-radial: rgba(6,13,26,.94);

  --ok: #22C55E; --warn: #F59E0B; --bad: #EF4444;
  --arch-1: #4DA6FF; --arch-2: #2DD4BF; --arch-3: #A78BFA;
  --shadow-lg: 0 30px 80px -40px rgba(0, 10, 30, .9);
  --shadow-sm: 0 8px 30px -12px rgba(0, 10, 30, .7);
}

/* ========================== 黑金主题 ========================== */
[data-theme="dark"] {
  --canvas:        #0B0B0D;
  --canvas-2:      #121216;
  --surface:       rgba(28, 28, 33, .68);
  --surface-solid: #1C1C21;
  --surface-hi:    rgba(44, 44, 52, .8);
  --hairline:      rgba(245, 158, 11, .18);
  --hairline-hi:   rgba(245, 158, 11, .38);

  --text-1:        #F5F1E8;
  --text-2:        #B8AE9C;
  --text-3:        #7C7364;

  --primary:       #FBBF24;
  --primary-2:     #F59E0B;
  --on-primary:    #12120F;

  --g-btn-1: #D97706;
  --g-btn-2: #F59E0B;
  --g-btn-3: #FBBF24;
  --g-text-1: #D97706;
  --g-text-2: #F59E0B;
  --g-text-3: #FDE68A;
  --g-glow-1: rgba(245,158,11,.28);
  --g-glow-2: rgba(251,191,36,.14);

  --ring-blue:  #0284C7;
  --ring-dark:  #09090B;
  --ring-light: #FAF9F6;

  --grid-line: rgba(245, 158, 11, .07);
  --star: 255, 205, 140;
  --veil-1: rgba(11,11,13,.64);
  --veil-2: rgba(11,11,13,.97);
  --veil-radial: rgba(11,11,13,.95);

  --ok: #22C55E; --warn: #FB923C; --bad: #FB8585;
  --arch-1: #F59E0B; --arch-2: #2DD4BF; --arch-3: #C084FC;
  --shadow-lg: 0 30px 80px -40px rgba(0, 0, 0, .95);
  --shadow-sm: 0 8px 30px -12px rgba(0, 0, 0, .8);
}

/* ========================== 暖白主题 ========================== */
[data-theme="light"] {
  --canvas:        #FAF9F6;
  --canvas-2:      #F2F0EA;
  --surface:       rgba(255, 255, 255, .78);
  --surface-solid: #FFFFFF;
  --surface-hi:    rgba(245, 242, 234, .9);
  --hairline:      rgba(120, 100, 60, .16);
  --hairline-hi:   rgba(180, 83, 9, .34);

  --text-1:        #1C1917;
  --text-2:        #57534E;
  --text-3:        #8B8680;

  --primary:       #B45309;
  --primary-2:     #D97706;
  --on-primary:    #FFFFFF;

  --g-btn-1: #92400E;
  --g-btn-2: #B45309;
  --g-btn-3: #D97706;
  --g-text-1: #92400E;
  --g-text-2: #B45309;
  --g-text-3: #D97706;
  --g-glow-1: rgba(217,119,6,.18);
  --g-glow-2: rgba(180,83,9,.10);

  --ring-blue:  #0284C7;
  --ring-dark:  #09090B;
  --ring-light: #FAF9F6;

  --grid-line: rgba(120, 100, 60, .09);
  --star: 180, 130, 60;
  --veil-1: rgba(250,249,246,.58);
  --veil-2: rgba(250,249,246,.94);
  --veil-radial: rgba(250,249,246,.88);

  --ok: #16A34A; --warn: #D97706; --bad: #DC2626;
  --arch-1: #2563EB; --arch-2: #0D9488; --arch-3: #7C3AED;
  --shadow-lg: 0 30px 70px -40px rgba(80, 60, 20, .35);
  --shadow-sm: 0 8px 26px -14px rgba(80, 60, 20, .3);
}

/* ========================== 基础 ========================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-1);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: .1em .42em;
  color: var(--primary);
  white-space: nowrap;
}
b { font-weight: 700; color: var(--text-1); }

::selection { background: var(--primary); color: var(--on-primary); }

/* ========================== 氛围背景 ========================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: background-color .45s ease;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.ambient-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 34%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 34%, #000 30%, transparent 78%);
  animation: gridDrift 26s linear infinite;
  transition: background-image .45s ease;
}
@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(64px, 64px, 0); }
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, var(--g-glow-1), transparent 68%);
  transition: background .45s ease;
}
.g1 { width: 62vw; height: 62vw; top: -22vw; left: -14vw; animation: float1 22s ease-in-out infinite; }
.g2 { width: 48vw; height: 48vw; bottom: -16vw; right: -10vw;
      background: radial-gradient(circle, var(--g-glow-2), transparent 68%);
      animation: float2 27s ease-in-out infinite; }
.g3 { width: 38vw; height: 38vw; top: 44%; left: 52%;
      background: radial-gradient(circle, var(--g-glow-2), transparent 66%);
      animation: float1 31s ease-in-out infinite reverse; }

@keyframes float1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(4vw, 3vw) scale(1.12); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0) scale(1.05); }
  50%     { transform: translate(-5vw, -3vw) scale(.95); }
}

/* 扫描光带 */
.scanline {
  position: absolute;
  left: -30%; top: 0;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--g-glow-2), transparent);
  animation: scan 9s ease-in-out infinite;
  opacity: .55;
}
@keyframes scan {
  0%   { transform: translateX(0); opacity: 0; }
  20%  { opacity: .6; }
  80%  { opacity: .6; }
  100% { transform: translateX(430%); opacity: 0; }
}

/* ========================== 顶栏 ========================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 34px;
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease, padding .3s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--hairline);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--g-btn-1), var(--g-btn-2) 55%, var(--g-btn-3));
  box-shadow: 0 0 22px -4px var(--g-glow-1);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.brand-text em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--text-3);
  font-family: "SFMono-Regular", Consolas, monospace;
}
.brand-ver {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-2);
  position: relative;
  transition: color .22s, background-color .22s;
}
.nav-link:hover { color: var(--text-1); background: var(--surface-hi); }
.nav-link.is-active { color: var(--text-1); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g-btn-1), var(--g-btn-3));
}

.topbar-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, box-shadow .28s, background-color .28s, border-color .28s, color .28s;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary {
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--g-btn-1), var(--g-btn-2) 55%, var(--g-btn-3));
  box-shadow: 0 6px 26px -8px var(--g-glow-1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px var(--g-glow-1); }
.btn-outline {
  color: var(--text-1);
  border-color: var(--hairline-hi);
  background: var(--surface);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--primary); }
.btn-ghost {
  color: var(--text-1);
  border-color: var(--hairline);
  background: transparent;
  padding: 7px 15px;
  font-size: 13px;
}
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--hairline-hi); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn-lg svg { width: 17px; height: 17px; }

/* ========================== HERO ========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 34px 90px;
  z-index: 1;
}

.hero-poster { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.poster-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 64% 48%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s ease;
  animation: posterBreath 24s ease-in-out infinite;
}
.poster-img.is-on { opacity: 1; }
@keyframes posterBreath {
  0%,100% { transform: scale(1.06) translateY(0); }
  50%     { transform: scale(1.12) translateY(-1.2%); }
}
/* 双层遮罩：左侧竖向压暗保标题可读 + 底部渐隐接后续区块 */
.poster-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      var(--veil-radial) 0%,
      color-mix(in srgb, var(--veil-radial) 88%, transparent) 26%,
      color-mix(in srgb, var(--veil-radial) 52%, transparent) 48%,
      transparent 74%),
    linear-gradient(180deg,
      var(--veil-1) 0%,
      color-mix(in srgb, var(--veil-1) 40%, transparent) 16%,
      transparent 34%,
      transparent 56%,
      var(--veil-2) 100%);
  transition: background .45s ease;
}

.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; width: 100%; }

/* 文字层底部加一层柔和压暗，确保任何主题/海报下标题都清晰 */
.hero-inner::before {
  content: "";
  position: absolute;
  left: -6%; top: -6%;
  width: 62%; height: 112%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--veil-radial) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-hi);
  background: var(--surface);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) both;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-title { font-size: clamp(38px, 6.4vw, 82px); line-height: 1.1; letter-spacing: -.03em; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  animation: riseIn 1.05s cubic-bezier(.22,1,.36,1) both;
}
.hero-title .line:nth-child(2) > span { animation-delay: .13s; }

.grad {
  background: linear-gradient(100deg, var(--g-text-1) 0%, var(--g-text-2) 42%, var(--g-text-3) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 220% 100%;
  animation: gradShift 9s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2);
  animation: riseIn 1s cubic-bezier(.22,1,.36,1) .26s both;
}
.hero-sub b { color: var(--primary); font-weight: 700; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: riseIn 1s cubic-bezier(.22,1,.36,1) .36s both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
  max-width: 880px;
  animation: riseIn 1s cubic-bezier(.22,1,.36,1) .48s both;
}
.hero-stats li {
  flex: 1 1 150px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--hairline-hi);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.hero-stats li:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-hi);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--g-text-1), var(--g-text-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-unit { font-size: 14px; color: var(--text-2); margin-left: 3px; }
.hero-stats em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid var(--hairline-hi);
  border-radius: 13px;
  display: grid; justify-items: center;
  padding-top: 7px;
}
.scroll-hint span {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--primary);
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  60%     { transform: translateY(13px); opacity: .2; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================== 通用 section ========================== */
.section { position: relative; z-index: 1; padding: 110px 34px; }
.section-alt { background: color-mix(in srgb, var(--canvas-2) 62%, transparent); }

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.sec-tag {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-hi);
  margin-bottom: 20px;
}
.sec-title { font-size: clamp(27px, 3.6vw, 44px); }
.sec-desc { margin-top: 16px; color: var(--text-2); font-size: 16px; }

/* ========================== 特点卡 ========================== */
.feature-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.fcard {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .34s cubic-bezier(.22,1,.36,1), border-color .34s, box-shadow .34s;
}
.fcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--accent, var(--primary)), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .34s;
}
.fcard:hover::before { opacity: 1; }
.fcard:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.fcard[data-accent="1"] { --accent: var(--arch-1); }
.fcard[data-accent="2"] { --accent: var(--arch-2); }
.fcard[data-accent="3"] { --accent: var(--arch-3); }

.fcard-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  margin-bottom: 20px;
  color: var(--accent, var(--primary));
  background: color-mix(in srgb, var(--accent, var(--primary)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--primary)) 30%, transparent);
  transition: transform .34s cubic-bezier(.34,1.56,.64,1);
}
.fcard:hover .fcard-icon { transform: scale(1.09) rotate(-5deg); }
.fcard-icon svg { width: 23px; height: 23px; }

.fcard h3 { font-size: 20px; margin-bottom: 11px; }
.fcard p { color: var(--text-2); font-size: 14.5px; line-height: 1.72; }

.fcard-no {
  position: absolute;
  right: 22px; top: 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-1);
  opacity: .05;
  letter-spacing: -.03em;
  transition: opacity .34s, transform .34s;
}
.fcard:hover .fcard-no { opacity: .11; transform: translateY(-3px); }

/* ========================== 架构卡 ========================== */
.arch-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.arch-card {
  padding: 28px 26px 22px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .34s cubic-bezier(.22,1,.36,1), border-color .34s, box-shadow .34s;
}
.arch-card[data-arch="1"] { --ac: var(--arch-1); }
.arch-card[data-arch="2"] { --ac: var(--arch-2); }
.arch-card[data-arch="3"] { --ac: var(--arch-3); }
.arch-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--ac) 44%, transparent);
  box-shadow: var(--shadow-lg);
}

.arch-code {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ac);
  padding: 3px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ac) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac) 32%, transparent);
  margin-bottom: 12px;
}
.arch-card h3 { font-size: 21px; margin-bottom: 6px; }
.arch-card header p { color: var(--text-3); font-size: 13.5px; }

.arch-svg { width: 100%; height: 140px; margin: 12px 0 6px; }
.arch-svg .node {
  fill: color-mix(in srgb, var(--ac) 16%, transparent);
  stroke: var(--ac);
  stroke-width: 1.6;
}
.arch-svg .node.n-master { fill: color-mix(in srgb, var(--ac) 30%, transparent); }
.arch-svg .node.n-mid { fill: color-mix(in srgb, var(--arch-2) 22%, transparent); stroke: var(--arch-2); }
.arch-svg .node.n-slave { stroke: color-mix(in srgb, var(--ac) 62%, transparent); }
.arch-svg .lbl {
  fill: var(--text-1);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}
.arch-svg .link {
  stroke: var(--ac);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .48;
  stroke-dasharray: 5 5;
  animation: dashFlow 1.6s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -10; } }
.arch-svg .flow { fill: var(--ac); filter: drop-shadow(0 0 5px var(--ac)); }

.arch-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.arch-meta li {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface-hi);
}

/* ========================== 截图区 ========================== */
.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 26px;
}
.shot-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .26s;
}
.shot-tab:hover { color: var(--text-1); border-color: var(--hairline-hi); }
.shot-tab.is-active {
  color: var(--on-primary);
  border-color: transparent;
  background: linear-gradient(135deg, var(--g-btn-1), var(--g-btn-3));
  box-shadow: 0 6px 22px -8px var(--g-glow-1);
}

.shot-frame {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline-hi);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--canvas-2) 80%, transparent);
}
.c-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline-hi); }
.c-dot:first-child { background: #EF4444; opacity: .75; }
.c-dot:nth-child(2) { background: #F59E0B; opacity: .75; }
.c-dot:nth-child(3) { background: #22C55E; opacity: .75; }
.c-url {
  margin-left: 14px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--text-3);
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--surface-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-stage { position: relative; aspect-ratio: 16 / 10; background: var(--canvas-2); }
.shot-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.shot-img.is-active { opacity: 1; transform: scale(1); }

.shot-glare {
  position: absolute;
  top: 0; left: -60%;
  width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg);
  animation: glare 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glare {
  0%, 62%  { left: -60%; }
  92%,100% { left: 130%; }
}

.shot-notes {
  max-width: 1180px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.shot-notes p {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: border-color .28s, transform .28s;
}
.shot-notes p:hover { border-color: var(--hairline-hi); transform: translateY(-3px); }
.shot-notes b { display: block; color: var(--text-1); margin-bottom: 4px; font-size: 14px; }

/* ========================== 主题卡 ========================== */
.theme-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.tcard {
  position: relative;
  padding: 26px 24px 0;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  cursor: pointer;
  transition: transform .34s cubic-bezier(.22,1,.36,1), border-color .34s, box-shadow .34s;
}
.tcard:hover {
  transform: translateY(-7px);
  border-color: var(--hairline-hi);
  box-shadow: var(--shadow-lg);
}
.tcard[data-theme-card="blue"].is-current { border-color: var(--ring-blue); }
.tcard[data-theme-card="dark"].is-current { border-color: #F59E0B; }
.tcard[data-theme-card="light"].is-current { border-color: #B45309; }

.tcard-swatch { display: flex; gap: 8px; margin-bottom: 16px; }
.tcard-swatch span {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--sw);
  border: 1px solid var(--hairline-hi);
}
.tcard-tag {
  position: absolute;
  right: 22px; top: 24px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.tcard h3 { font-size: 20px; margin-bottom: 9px; }
.tcard > p { color: var(--text-2); font-size: 14px; min-height: 66px; }
.tcard img {
  display: block;
  width: calc(100% + 48px);
  margin: 18px -24px 0;
  border-top: 1px solid var(--hairline);
  filter: saturate(1.05);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.tcard:hover img { transform: scale(1.035); }

.theme-hint {
  text-align: center;
  margin-top: 34px;
  font-size: 14px;
  color: var(--text-3);
}

/* ========================== CTA ========================== */
.cta-section { position: relative; z-index: 1; padding: 120px 34px 130px; }
.cta-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 62px 44px;
  border-radius: 24px;
  border: 1px solid var(--hairline-hi);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -60%; left: 50%;
  width: 130%; height: 130%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--g-glow-1), transparent 62%);
  opacity: .6;
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(25px, 3.4vw, 38px); }
.cta-inner > p { margin: 16px 0 30px; color: var(--text-2); font-size: 16px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.cta-meta li {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-3);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}

/* ========================== 页脚 ========================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 30px 34px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
}
.brand-text.small strong { font-size: 13.5px; }
.brand-text.small em { font-size: 8.5px; }
.footer-sep { color: var(--hairline-hi); }

/* ========================== 滚动揭示 ========================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ========================== 响应式 ========================== */
@media (max-width: 1024px) {
  .navbar { display: none; }
  .topbar { gap: 16px; padding: 12px 20px; }
  .hero { padding: 120px 22px 80px; }
  .section, .cta-section { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar-actions .btn-ghost span { display: none; }
  .hero-title { letter-spacing: -.02em; }
  .hero-stats li { flex-basis: calc(50% - 7px); }
  .stat-num { font-size: 28px; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .cta-inner { padding: 44px 24px; }
  .brand-text em { display: none; }
  .shot-notes { grid-template-columns: 1fr; }
  /* 窄屏下长语句标签允许折行，避免撑破卡片 */
  code { white-space: normal; overflow-wrap: anywhere; }
  .fcard { padding: 28px 22px 24px; }
  .fcard-no { font-size: 32px; right: 18px; top: 14px; }
}

/* ========================== 手机竖屏（主流直板机 360–430px） ========================== */
@media (max-width: 600px) {
  .topbar { padding: 10px 14px; gap: 12px; }
  .topbar-actions { gap: 10px; }
  .brand-text strong { font-size: 14px; }
  .brand-ver { display: none; }

  .hero { padding: 104px 18px 64px; }
  .hero-title { letter-spacing: -.02em; }
  .hero-stats { gap: 10px; margin-top: 38px; }
  .hero-stats li { flex-basis: calc(50% - 5px); padding: 14px 16px; }
  .stat-num { font-size: 26px; }
  .hero-cta { gap: 12px; }

  .section { padding: 64px 18px; }
  .section-head { margin-bottom: 40px; }
  .sec-title { font-size: clamp(24px, 7vw, 30px); }

  /* 卡片单列铺满，避免 minmax 在超窄屏轻微溢出 */
  .feature-grid,
  .arch-grid,
  .theme-grid { grid-template-columns: 1fr; }

  .tcard > p { min-height: 0; }
  .tcard img { margin-top: 14px; }

  .shot-frame { border-radius: 12px; }
  .shot-chrome { padding: 10px 12px; gap: 6px; }
  .c-url { margin-left: 8px; font-size: 11px; padding: 3px 10px; }

  .cta-section { padding: 80px 18px 90px; }
  .cta-inner { padding: 40px 20px; }
  .cta-meta li { font-size: 11px; }

  .footer { padding: 26px 18px; }
}

/* 超小屏（≤ 400px，如 iPhone SE / 小屏安卓）：顶栏收敛，避免与品牌/主题切换挤占 */
@media (max-width: 400px) {
  .topbar { gap: 10px; padding: 9px 12px; }
  .topbar-actions .btn-ghost { display: none; }
  .hero-title { font-size: 34px; }
  .hero-stats li { flex-basis: 100%; }
}

/* ========================== 无障碍降级 ========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================== 产品文档下载 ========================== */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.34,1.4,.64,1), border-color .25s, box-shadow .25s, background-color .25s;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.doc-ico {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-hi);
  color: var(--primary);
}
.doc-ico svg { width: 24px; height: 24px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { font-size: 16px; margin: 0 0 4px; }
.doc-body p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }
.doc-dl {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.doc-dl svg { width: 14px; height: 14px; flex-shrink: 0; }
