/* ============================================================
   心语 · ineermost_words — 宣传页样式
   深空二次元：暗色渐变 + 液态玻璃 + 强调色可切换
   ============================================================ */

/* ---------- 1. 基础与主题变量 ---------- */
:root {
  --bg: #07060f;
  --bg-2: #0d0b1e;
  --surface: #151230;
  --surface-high: #1e1a40;
  --text: #edebff;
  --muted: #9a94c0;
  --accent: #8e7cff;
  --accent-2: #4dc9ff;
  --accent-3: #ff7bac;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.075);
  --nav-bg: rgba(9, 8, 20, 0.72);
  --card-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022));
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 20px 60px -18px rgba(142, 124, 255, 0.55);
  --grid-line: rgba(255, 255, 255, 0.045);
  --noise-opacity: 0.035;
  --orb-opacity: 0.55;
  --bubble-in: rgba(30, 26, 64, 0.85);
  --bubble-out: rgba(142, 124, 255, 0.22);
  --code-bg: rgba(255, 255, 255, 0.07);
  --glow: rgba(142, 124, 255, 0.4);
  --glow-2: rgba(77, 201, 255, 0.28);

  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;

  color-scheme: dark;
}

html[data-theme="sakura"] {
  --bg: #0c0710;
  --bg-2: #170e15;
  --surface: #231420;
  --surface-high: #301b2c;
  --text: #fbeaf3;
  --muted: #c09aaa;
  --accent: #ff7bac;
  --accent-2: #ffb3d1;
  --accent-3: #8e7cff;
  --glow: rgba(255, 123, 172, 0.4);
  --glow-2: rgba(255, 179, 209, 0.26);
  --bubble-in: rgba(48, 27, 44, 0.85);
  --bubble-out: rgba(255, 123, 172, 0.2);
  --shadow-glow: 0 20px 60px -18px rgba(255, 123, 172, 0.5);
}

html[data-theme="azure"] {
  --bg: #050b10;
  --bg-2: #0a1218;
  --surface: #101c25;
  --surface-high: #172632;
  --text: #e6f4ff;
  --muted: #8fadc2;
  --accent: #4dc9ff;
  --accent-2: #7be0ff;
  --accent-3: #8e7cff;
  --glow: rgba(77, 201, 255, 0.38);
  --glow-2: rgba(123, 224, 255, 0.24);
  --bubble-in: rgba(23, 38, 50, 0.88);
  --bubble-out: rgba(77, 201, 255, 0.18);
  --shadow-glow: 0 20px 60px -18px rgba(77, 201, 255, 0.45);
}

html[data-theme="mint"] {
  --bg: #050d0b;
  --bg-2: #0a1512;
  --surface: #10201b;
  --surface-high: #172b24;
  --text: #e8fff6;
  --muted: #8fbfad;
  --accent: #5ce0b0;
  --accent-2: #9aeed0;
  --accent-3: #4dc9ff;
  --glow: rgba(92, 224, 176, 0.36);
  --glow-2: rgba(154, 238, 208, 0.22);
  --bubble-in: rgba(23, 43, 36, 0.88);
  --bubble-out: rgba(92, 224, 176, 0.18);
  --shadow-glow: 0 20px 60px -18px rgba(92, 224, 176, 0.42);
}

html[data-theme="daylight"] {
  --bg: #f6f4fb;
  --bg-2: #ece9f6;
  --surface: #ffffff;
  --surface-high: #ece9f6;
  --text: #1d1b33;
  --muted: #6e6a8a;
  --accent: #6c5ce7;
  --accent-2: #0091b5;
  --accent-3: #ff7bac;

  --line: rgba(29, 27, 51, 0.1);
  --line-strong: rgba(29, 27, 51, 0.18);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --nav-bg: rgba(250, 249, 254, 0.82);
  --card-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  --shadow-lg: 0 30px 70px -30px rgba(29, 27, 51, 0.35);
  --shadow-glow: 0 20px 50px -22px rgba(108, 92, 231, 0.4);
  --grid-line: rgba(29, 27, 51, 0.06);
  --noise-opacity: 0.02;
  --orb-opacity: 0.5;
  --bubble-in: #ffffff;
  --bubble-out: rgba(108, 92, 231, 0.14);
  --code-bg: rgba(29, 27, 51, 0.06);
  --glow: rgba(108, 92, 231, 0.28);
  --glow-2: rgba(0, 145, 181, 0.2);
  color-scheme: light;
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 800;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  white-space: nowrap;
}

::selection { background: var(--accent); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
  vertical-align: -0.16em;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

/* ---------- 3. 背景层 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 78% -8%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    radial-gradient(900px 700px at 6% 12%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  transition: background 0.6s ease;
}

.bg-grid {
  position: absolute;
  inset: -1px;
  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 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  will-change: transform;
}
.bg-orb--1 {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14vw; right: -8vw;
  background: radial-gradient(circle at 35% 35%, var(--accent), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-orb--2 {
  width: 34vw; height: 34vw; min-width: 300px; min-height: 300px;
  top: 46vh; left: -10vw;
  background: radial-gradient(circle at 50% 50%, var(--accent-2), transparent 66%);
  opacity: calc(var(--orb-opacity) * 0.7);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
.bg-orb--3 {
  width: 26vw; height: 26vw; min-width: 240px; min-height: 240px;
  bottom: -6vw; right: 22vw;
  background: radial-gradient(circle at 50% 50%, var(--accent-3), transparent 66%);
  opacity: calc(var(--orb-opacity) * 0.4);
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3vw, 4vh, 0) scale(1.1); }
}

/* ---------- 4. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 6px 18px -6px var(--glow);
}
.brand__name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links > a:not(.btn) {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: var(--glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.28s ease, border-color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent-2) 55%, var(--accent)));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 34px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
html[data-theme="daylight"] .btn--primary { color: #fff; }
.btn--primary:hover {
  box-shadow: 0 20px 44px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: transparent;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.34) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost { background: var(--glass); color: var(--text); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  padding-left: 9px;
  margin-left: 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

/* ---------- 6. 通用区块 ---------- */
.section { padding: clamp(58px, 6.6vw, 104px) 0; position: relative; }

.sec-head { max-width: 780px; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head h2 {
  font-size: clamp(29px, 4.2vw, 46px);
  margin: 14px 0 14px;
}
.sec-head__sub { color: var(--muted); font-size: 16.5px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); }
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.68, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.68, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 86px)) 0 clamp(60px, 8vw, 110px);
  min-height: min(940px, 100svh);
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: clamp(76px, 12vw, 148px);
  line-height: 0.94;
  letter-spacing: 0.04em;
  margin: 22px 0 0;
  background: linear-gradient(180deg, var(--text) 32%, color-mix(in srgb, var(--accent) 82%, var(--text)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 46px var(--glow));
  animation: heroIn 1s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}

.hero__en {
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
  padding-left: 3px;
  animation: heroIn 1s 0.06s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}

.hero__tagline {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  margin-top: 26px;
  color: var(--text);
  animation: heroIn 1s 0.12s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}
.hero__tagline::after {
  content: "";
  display: block;
  width: 58px; height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero__lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 33em;
  text-wrap: pretty;
  animation: heroIn 1s 0.18s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: heroIn 1s 0.24s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  animation: heroIn 1s 0.3s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Hero 视觉 */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin-inline: auto;
  width: 100%;
  animation: heroIn 1.1s 0.15s cubic-bezier(0.22, 0.68, 0.3, 1) both;
}

.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ring--1 { width: 92%; height: 92%; border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.ring--2 { width: 76%; height: 76%; border-style: dashed; border-color: color-mix(in srgb, var(--accent-2) 20%, transparent); }
.ring--3 {
  width: 100%; height: 100%;
  border-color: transparent;
  background: conic-gradient(from var(--ring-angle, 0deg), transparent 0 62%, color-mix(in srgb, var(--accent) 55%, transparent) 74%, transparent 84%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: ringSpin 16s linear infinite;
}
@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 56%;
  border-radius: 50%;
  padding: 0;
  box-shadow:
    0 40px 90px -30px var(--glow),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 120px -20px var(--glow);
  animation: float 7s ease-in-out infinite;
  overflow: hidden;
}
.badge img { width: 100%; height: auto; border-radius: 50%; }
.badge__gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), transparent 42%, transparent 70%, rgba(255, 255, 255, 0.07));
  pointer-events: none;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-14px); }
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  animation: chipFloat 8s ease-in-out infinite;
}
.chip .ico { color: var(--accent); }
.chip--a { top: 7%; left: -2%; animation-delay: -1s; }
.chip--b { top: 32%; right: -5%; animation-delay: -3.4s; }
.chip--c { bottom: 15%; left: 0; animation-delay: -5.2s; }

.bubble {
  position: absolute;
  max-width: 250px;
  padding: 12px 16px;
  border-radius: 17px;
  font-size: 13.5px;
  line-height: 1.6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.95);
  animation: chipFloat 9s ease-in-out infinite;
}
.bubble--ai {
  right: -3%;
  bottom: 0;
  background: var(--bubble-in);
  border-bottom-left-radius: 5px;
  animation-delay: -2.2s;
}
.bubble__name {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.bubble--me {
  left: 6%;
  bottom: -4%;
  background: var(--bubble-out);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  border-bottom-right-radius: 5px;
  font-size: 13px;
  animation-delay: -6s;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: wheel 1.9s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 8. Bento 特性 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.card {
  grid-column: span 2;
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.68, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 28px 60px -34px var(--glow);
}
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 3; }
.card--wide:last-child { grid-column: span 6; }

.card__ico {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.card__ico .ico { width: 22px; height: 22px; }

.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.8px; }
.card__note {
  margin-top: 12px;
  font-size: 13.2px !important;
  color: color-mix(in srgb, var(--muted) 88%, var(--accent)) !important;
}

.ticks { display: grid; gap: 7px; margin-top: 16px; }
.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 13.8px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transform: rotate(45deg) scale(0.72);
}

/* ---------- 9. 主题切换 ---------- */
.section--themes .wrap { position: relative; }

.themes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.themes__picker { display: grid; gap: 12px; }

.swatch {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.3s ease;
}
.swatch:hover { transform: translateX(4px); background: var(--glass-hover); }
.swatch.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 18px 44px -30px var(--glow);
}
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.swatch__dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(140deg, var(--s1), var(--s2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px -8px var(--s1);
}
.swatch__txt { display: flex; flex-direction: column; line-height: 1.35; }
.swatch__txt strong { font-size: 15px; letter-spacing: 0.02em; }
.swatch__txt small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.themes__hint {
  margin-top: 6px;
  font-size: 12.8px;
  color: var(--muted);
  text-align: center;
}
.themes__hint b { color: var(--accent); font-weight: 700; }

/* 手机预览 */
.preview {
  width: min(100%, 320px);
  margin-inline: auto;
  border-radius: 34px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--bg-2) 92%, transparent));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.5s ease;
  position: relative;
  overflow: hidden;
}
.preview::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 60%;
  background: radial-gradient(circle at 50% 50%, var(--glow), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.preview__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.preview__name { font-size: 13.5px; font-weight: 700; }
.preview__icons { margin-left: auto; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

.preview__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 6px 2px;
  justify-content: flex-end;
}
.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 12.8px;
  line-height: 1.62;
  border: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.msg--in {
  align-self: flex-start;
  background: var(--bubble-in);
  border-bottom-left-radius: 4px;
}
.msg--out {
  align-self: flex-end;
  background: var(--bubble-out);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
  border-bottom-right-radius: 4px;
}
.msg.is-typing {
  display: flex;
  gap: 5px;
  padding: 13px 14px;
  width: fit-content;
}
.msg.is-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.3s ease-in-out infinite;
}
.msg.is-typing i:nth-child(2) { animation-delay: 0.18s; }
.msg.is-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.preview__nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.preview__nav .is-on { color: var(--accent); font-weight: 700; }

/* ---------- 10. 三步上手 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-bg);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  opacity: 0.5;
  pointer-events: none;
}
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

.providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.providers__label {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  transition: border-color 0.25s ease, color 0.25s ease;
}
.pill:hover { border-color: color-mix(in srgb, var(--accent) 42%, transparent); color: var(--text); }

/* ---------- 11. 下载 ---------- */
.section--download { position: relative; }
.section--download::before {
  content: "";
  position: absolute;
  inset: 12% 0 18%;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, var(--glow), transparent 70%);
  opacity: 0.35;
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}

.dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dl__card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.dl__card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.dl__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.dl__head h3 { font-size: 20px; }
.dl__head p { font-size: 12.8px; color: var(--muted); margin-top: 2px; }

.dl__logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--glass);
}
.dl__logo .ico { width: 24px; height: 24px; }
.dl__logo--gh { color: var(--text); }
.dl__logo--gitee {
  font-weight: 800;
  font-size: 22px;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(140deg, #c9331f, #e8552f);
  border-color: transparent;
}

.dl__badge {
  margin-left: auto;
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-weight: 700;
}

.dl__spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}
.dl__spec div { display: flex; flex-direction: column; gap: 3px; }
.dl__spec dt { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dl__spec dd { font-size: 14px; font-weight: 600; }

.dl__actions { display: grid; gap: 14px; }
.dl__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.dl__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.2px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.dl__links a .ico { width: 13px; height: 13px; opacity: 0.8; }
.dl__links a:hover { color: var(--accent); }

.notes {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--glass) 60%, transparent);
}
.notes__item {
  display: flex;
  gap: 11px;
  font-size: 13.6px;
  color: var(--muted);
  align-items: flex-start;
}
.notes__item .ico { color: var(--accent); margin-top: 3px; }
.notes__item strong { color: var(--text); font-weight: 600; }

/* ---------- 12. 更新日志 ---------- */
.log { max-width: 880px; }
.log__card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-bg);
}
.log__list { display: grid; gap: 13px; }
.log__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.8px;
  color: var(--muted);
}
.log__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.66em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.log__list strong { color: var(--text); font-weight: 700; }
.log__list li.log__fix::before { background: var(--accent-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 16%, transparent); }

.log__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: 0 22px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { background: var(--card-bg); border-color: color-mix(in srgb, var(--accent) 26%, transparent); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
  border-color: var(--accent);
}
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62em;
}

/* ---------- 14. 结尾 CTA ---------- */
.cta { padding: clamp(20px, 4vw, 60px) 0 clamp(70px, 9vw, 120px); }
.cta__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 130% at 12% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    var(--card-bg);
  box-shadow: var(--shadow-lg), 0 0 120px -60px var(--glow);
  position: relative;
  overflow: hidden;
}
.cta__inner::after {
  content: "";
  position: absolute;
  right: -10%; top: -60%;
  width: 46%; height: 220%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}
.cta__icon { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 20px 50px -22px var(--glow); }
.cta__copy { flex: 1 1 320px; }
.cta__copy h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 8px; }
.cta__copy p { color: var(--muted); font-size: 14px; letter-spacing: 0.02em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 15. 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 44px 0 50px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 40px;
  justify-content: space-between;
}
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.9);
}
.foot__studio { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
.foot__slogan { font-size: 12.5px; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--muted); }
.foot__links a:hover { color: var(--accent); }
.foot__legal {
  flex-basis: 100%;
  font-size: 11.8px;
  color: var(--muted);
  opacity: 0.85;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}

/* ---------- 16. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
  transition: transform 0.45s cubic-bezier(0.22, 0.68, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .ico { color: var(--accent); }
.toast a {
  color: var(--accent);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  white-space: nowrap;
}
.toast button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--glass);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.toast button:hover { color: var(--text); }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__visual { max-width: 520px; margin-top: 30px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__tagline::after { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .card--wide { grid-column: span 3; }
  .themes { grid-template-columns: 1fr; }
  .themes__picker { max-width: 520px; margin-inline: auto; width: 100%; }
  .preview { margin-top: 12px; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 12px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: var(--nav-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a { padding: 11px 14px; border-radius: 12px; }
  .nav__links > a:hover { background: var(--glass-hover); }
  .nav__links .btn { justify-content: center; margin-top: 6px; }
  .nav__toggle { display: block; }
  .brand__sub { display: none; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card--wide, .card--wide:last-child { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl__spec { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .dl__spec div:nth-child(3) { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero__title { font-size: clamp(64px, 22vw, 96px); }
  .hero__visual { max-width: 400px; }
  .bubble { display: none; }
  .chip { font-size: 11.5px; padding: 6px 11px; }
  .chip--a { left: -4%; }
  .chip--b { right: -4%; }
  .bento { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; }
  .cta__inner { flex-direction: column; text-align: center; align-items: center; }
  .cta__copy { flex: 0 1 auto; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .foot__inner { justify-content: center; text-align: center; }
  .foot__legal { text-align: center; }
  .toast { font-size: 12px; padding: 10px 12px 10px 14px; gap: 8px; }
  .toast > span { max-width: 44vw; }
  .preview { transform: scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
