/* ==========================================================================
   威小蜜AI · agent.veisun.net
   设计系统：清爽浅色科技风
   配色 60-30-10：白/浅灰底 60% · 卡片与分区浅色 30% · 品牌蓝紫+蜜橙 10%
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* 品牌 */
  --brand: #5b5bd6;
  --brand-600: #4b4bc4;
  --brand-700: #3d3da8;
  --brand-300: #8f8fe8;
  --brand-100: #e8e8fb;
  --brand-50: #f4f4fe;
  --honey: #ff8a3d;
  --honey-600: #f2701f;
  --honey-100: #ffeedd;

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #5b5bd6 0%, #8b5cf6 100%);
  --grad-honey: linear-gradient(135deg, #ff9a4d 0%, #ff6b35 100%);
  --grad-text: linear-gradient(100deg, #4b4bc4 0%, #7c3aed 42%, #ff8a3d 100%);

  /* 中性 */
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --bg-soft: #fbfbfe;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #4a5568;
  --text-3: #8b95a8;
  --border: #e7eaf3;
  --border-strong: #d5dbea;

  /* 功能色 */
  --green: #10b981;
  --green-bg: #e7f8f1;
  --amber: #f59e0b;
  --red: #ef4444;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas,
    "Liberation Mono", Menlo, monospace;

  /* 字号 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.5rem;

  /* 间距（4px 网格） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --sh-md: 0 8px 24px -8px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  --sh-lg: 0 24px 56px -18px rgba(30, 32, 90, 0.18), 0 8px 20px -8px rgba(15, 23, 42, 0.06);
  --sh-brand: 0 12px 28px -10px rgba(91, 91, 214, 0.5);
  --sh-honey: 0 12px 28px -10px rgba(255, 122, 45, 0.45);

  /* 布局 */
  --maxw: 1180px;
  --nav-h: 68px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-700);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

::selection {
  background: var(--brand-100);
  color: var(--brand-700);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  position: relative;
  padding: var(--sp-24) 0;
}

.section--alt {
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(139, 92, 246, 0.07), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-16);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.16);
}

.eyebrow--honey {
  color: var(--honey-600);
  background: #fff7f0;
  border-color: var(--honey-100);
}

.eyebrow--honey::before {
  background: var(--honey);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, var(--fs-4xl));
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--text-2);
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 标题与引导语断行均衡，避免末行只剩两三个字 */
.section-title,
.section-sub,
.hero__title,
.cta__title,
.cta__desc {
  text-wrap: balance;
}

.detail__desc,
.card__desc,
.faq__a,
.hero__desc {
  text-wrap: pretty;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-6);
  height: 46px;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease,
    background 0.22s ease, border-color 0.22s ease, color 0.18s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  position: relative;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(91, 91, 214, 0.6);
  color: #fff;
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--honey {
  color: #fff;
  background: var(--grad-honey);
  box-shadow: var(--sh-honey);
}

.btn--honey:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 18px 34px -12px rgba(255, 122, 45, 0.6);
}

.btn--ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--sh-xs);
}

.btn--ghost:hover {
  color: var(--brand-700);
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.btn--sm {
  height: 38px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-sm);
}

.btn--lg {
  height: 52px;
  padding: 0 var(--sp-8);
  font-size: var(--fs-md);
}

.btn--block {
  width: 100%;
}

/* ---------- 5. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -12px rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.88);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

/* 品牌标：用真实品牌图（透明 PNG），保留柔和投影衬托彩色缎带 */
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(24, 30, 54, 0.16));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand__mark {
  transform: translateY(-1px) scale(1.06);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-full);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__link.is-active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.nav__ver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border-radius: var(--r-full);
}

.nav__ver::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.nav__mobile {
  display: none;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-20)) 0 var(--sp-16);
  overflow: hidden;
  background:
    radial-gradient(760px 460px at 8% -6%, rgba(91, 91, 214, 0.13), transparent 62%),
    radial-gradient(680px 420px at 92% 6%, rgba(255, 138, 61, 0.13), transparent 60%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 68%);
}

/* 细网格背景 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr);
  gap: var(--sp-12);
  align-items: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--sh-xs);
}

.chip svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.chip--honey svg {
  color: var(--honey);
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, var(--fs-6xl));
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.hero__desc {
  max-width: 560px;
  font-size: var(--fs-lg);
  line-height: 1.78;
  color: var(--text-2);
  margin-bottom: var(--sp-8);
}

.hero__desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.hero__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* --- 产品界面示意 --- */
.mock {
  position: relative;
  perspective: 1400px;
}

.mock__glow {
  position: absolute;
  /* 仅上下扩散，避免在窄视口下横向溢出 */
  inset: -12% 0 -16% 0;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.mock__window {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: rotate3d(1, -1, 0, 2.2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mock__window:hover {
  transform: rotate3d(0, 0, 0, 0deg) translateY(-4px);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 11px 14px;
  background: linear-gradient(180deg, #fbfbfe, #f6f7fc);
  border-bottom: 1px solid var(--border);
}

.mock__dots {
  display: flex;
  gap: 6px;
}

.mock__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e5ef;
}

.mock__dots i:nth-child(1) {
  background: #ffb3a7;
}

.mock__dots i:nth-child(2) {
  background: #ffd79a;
}

.mock__dots i:nth-child(3) {
  background: #a8e6c0;
}

.mock__bar-title {
  margin: 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.mock__bar-right {
  display: flex;
  gap: 6px;
}

.mock__bar-right i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #eef0f7;
}

.mock__body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 344px;
}

.mock__side {
  padding: 12px 10px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock__side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  white-space: nowrap;
}

.mock__side-item i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #dfe3ee;
  flex: none;
}

.mock__side-item.is-on {
  color: var(--brand-700);
  background: var(--brand-100);
  font-weight: 600;
}

.mock__side-item.is-on i {
  background: var(--brand-300);
}

.mock__side-sep {
  height: 1px;
  margin: 7px 9px;
  background: var(--border);
}

.mock__main {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.mock__hello {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mock__avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex: none;
  box-shadow: 0 4px 10px -4px rgba(91, 91, 214, 0.6);
}

.mock__hello-txt b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.mock__hello-txt span {
  font-size: 10px;
  color: var(--text-3);
}

.mock__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mock__card {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.mock__card i {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--brand-100);
  flex: none;
}

.mock__card:nth-child(2) i {
  background: var(--honey-100);
}

.mock__card:nth-child(3) i {
  background: #e6f7f1;
}

.mock__card:nth-child(4) i {
  background: #fdeef2;
}

.mock__bubble {
  align-self: flex-end;
  max-width: 78%;
  padding: 9px 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 12px 12px 3px 12px;
  box-shadow: 0 6px 16px -8px rgba(91, 91, 214, 0.7);
}

.mock__reply {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mock__reply .mock__avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
}

.mock__reply-card {
  flex: 1;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 3px;
  background: var(--bg-soft);
}

.mock__line {
  height: 6px;
  border-radius: 3px;
  background: #e6e9f3;
  margin-bottom: 6px;
}

.mock__line:nth-child(1) {
  width: 92%;
}

.mock__line:nth-child(2) {
  width: 78%;
}

.mock__line:nth-child(3) {
  width: 56%;
  margin-bottom: 0;
}

.mock__input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: var(--sh-xs);
}

.mock__input span {
  font-size: 10px;
  color: var(--text-3);
}

.mock__send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  margin-left: auto;
  flex: none;
  display: grid;
  place-items: center;
}

.mock__send::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}

/* 浮层小卡 */
.mock__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.mock__float--1 {
  top: -3%;
  right: -7%;
}

.mock__float--2 {
  bottom: 6%;
  left: -6%;
  animation-delay: -3s;
}

.mock__float-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.mock__float-ico svg {
  width: 15px;
  height: 15px;
}

.mock__float-ico--brand {
  background: var(--brand-100);
  color: var(--brand);
}

.mock__float-ico--honey {
  background: var(--honey-100);
  color: var(--honey-600);
}

.mock__float-txt b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.mock__float-txt span {
  font-size: 10px;
  color: var(--text-3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- 7. 数据条 ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--sp-10) 0;
}

.stat {
  position: relative;
  text-align: center;
  padding: 0 var(--sp-4);
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--border);
}

.stat__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  /* 每个数字使用同一段短渐变，避免各列取到长渐变的不同色段 */
  background: linear-gradient(120deg, #4b4bc4 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__unit {
  font-size: var(--fs-md);
  font-weight: 700;
}

.stat__label {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* ---------- 8. 特色卡片（bento） ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease,
    border-color 0.28s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-100);
  box-shadow: var(--sh-md);
}

.card:hover::before {
  opacity: 1;
}

.card--wide {
  grid-column: span 2;
}

.card__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  background: var(--brand-50);
  color: var(--brand);
  border: 1px solid var(--brand-100);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card__ico {
  transform: scale(1.08) rotate(-4deg);
}

.card__ico svg {
  width: 21px;
  height: 21px;
}

.card__ico--honey {
  background: #fff7f0;
  color: var(--honey-600);
  border-color: var(--honey-100);
}

.card__ico--green {
  background: var(--green-bg);
  color: #0d9c6d;
  border-color: #cdeee1;
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.card__desc {
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--text-2);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-4);
}

.tag {
  padding: 3px 9px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.tag--brand {
  color: var(--brand-600);
  background: var(--brand-50);
  border-color: var(--brand-100);
}

/* 宽卡内部双列 */
.card__split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

/* ---------- 9. 功能详解 ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: var(--sp-16);
  align-items: center;
  padding: var(--sp-12) 0;
  border-bottom: 1px dashed var(--border);
}

.detail:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail:first-child {
  padding-top: 0;
}

.detail--flip .detail__media {
  order: -1;
}

.detail__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}

.detail__kicker i {
  width: 20px;
  height: 1px;
  background: var(--brand-300);
}

.detail__title {
  font-size: clamp(1.4rem, 2.4vw, var(--fs-3xl));
  margin-bottom: var(--sp-3);
}

.detail__desc {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: var(--sp-6);
}

.detail__list {
  display: grid;
  gap: var(--sp-3);
}

.detail__list li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-2);
}

.detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}

.detail__list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 5px;
  height: 3px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}

.detail__list b {
  color: var(--text);
  font-weight: 600;
}

/* 媒体面板 */
.panel {
  position: relative;
  padding: var(--sp-6);
  background: linear-gradient(160deg, #fbfbff 0%, #f6f7fd 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.panel__head span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

.panel__head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

/* 专家卡片阵列 */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.persona {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}

.persona__ava {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex: none;
}

.persona__meta b {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
}

.persona__meta span {
  font-size: 11px;
  color: var(--text-3);
}

.bg-1 {
  background: linear-gradient(135deg, #5b5bd6, #8b5cf6);
}
.bg-2 {
  background: linear-gradient(135deg, #ff9a4d, #ff6b35);
}
.bg-3 {
  background: linear-gradient(135deg, #10b981, #059669);
}
.bg-4 {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}
.bg-5 {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.bg-6 {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

/* 通道列表 */
.chan-list {
  display: grid;
  gap: 9px;
}

.chan {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.chan__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  flex: none;
}

.chan b {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-right: auto;
}

/* 状态标签：仅作用于显式类名，避免误伤 .chan__dot */
.chan__state {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  flex: none;
}

/* 检索结果 */
.rag {
  display: grid;
  gap: 9px;
}

.rag__q {
  padding: 10px 13px;
  font-size: var(--fs-sm);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
}

.rag__hit {
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
}

.rag__hit b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 4px;
}

.rag__hit p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3);
}

.rag__score {
  float: right;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 1px 6px;
  border-radius: var(--r-full);
}

/* 终端 */
.term {
  background: #131a2e;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #1b2340;
}

.term__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #364065;
}

.term__bar i:nth-child(1) {
  background: #ff7b72;
}
.term__bar i:nth-child(2) {
  background: #ffd279;
}
.term__bar i:nth-child(3) {
  background: #7ee787;
}

.term__bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #78849e;
}

.term__body {
  padding: 14px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: #cfd7e6;
  overflow-x: auto;
}

.term__body .c {
  color: #7ee787;
}

.term__body .p {
  color: #79c0ff;
}

.term__body .m {
  color: #8b95a8;
}

/* 设备 */
.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.device {
  padding: 14px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.device:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
}

.device svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 7px;
  color: var(--brand);
}

.device b {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- 10. 架构 ---------- */
.arch {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.arch__layer {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arch__layer:hover {
  border-color: var(--brand-300);
  box-shadow: var(--sh-sm);
}

.arch__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  padding-right: var(--sp-4);
  border-right: 1px solid var(--border);
}

.arch__items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.arch__item {
  padding: 5px 11px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.arch__item--brand {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.arch__item--honey {
  color: var(--honey-600);
  background: #fff7f0;
  border-color: var(--honey-100);
}

.arch__flow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 14px;
  color: #c2c9da;
}

.arch__flow svg {
  width: 18px;
  height: 18px;
}

/* ---------- 11. 下载 ---------- */
.dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  max-width: 940px;
  margin: 0 auto;
}

.dlcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-8);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.dlcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.dlcard--primary {
  border-color: var(--brand-300);
  background: linear-gradient(170deg, #fdfdff 0%, #f6f6fe 100%);
  box-shadow: 0 18px 44px -22px rgba(91, 91, 214, 0.45);
}

.dlcard__badge {
  position: absolute;
  top: -11px;
  right: var(--sp-6);
  padding: 3px 11px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: var(--r-full);
  box-shadow: var(--sh-brand);
}

.dlcard__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.dlcard__ico {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--brand-50);
  color: var(--brand);
  border: 1px solid var(--brand-100);
}

.dlcard__ico--honey {
  background: #fff7f0;
  color: var(--honey-600);
  border-color: var(--honey-100);
}

.dlcard__ico svg {
  width: 20px;
  height: 20px;
}

.dlcard__name {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.35;
}

.dlcard__pkg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  word-break: break-all;
}

.dlcard__desc {
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--text-2);
  margin-bottom: var(--sp-5);
}

.dlcard__specs {
  display: grid;
  gap: 7px;
  margin-bottom: var(--sp-6);
}

.dlcard__specs li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.dlcard__specs li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
  flex: none;
  transform: translateY(-2px);
}

.dlcard__specs b {
  font-weight: 600;
  color: var(--text);
}

.dlcard__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border);
}

.dlcard__size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: var(--sp-3);
  font-family: var(--font-mono);
}

/* 截图版本说明 */
.dl__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 940px;
  margin: var(--sp-6) auto 0;
  padding: 11px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-3);
}

.dl__note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--text-3);
}

/* 校验信息 */
.sha {
  max-width: 940px;
  margin: var(--sp-6) auto 0;
}

.sha__box {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  overflow: hidden;
}

.sha__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  transition: background 0.18s ease;
}

.sha__toggle:hover {
  background: var(--bg-alt);
}

.sha__toggle svg {
  width: 15px;
  height: 15px;
  color: var(--text-3);
  transition: transform 0.25s ease;
}

.sha__toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.sha__toggle span {
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-3);
}

.sha__body {
  display: none;
  padding: 0 16px 16px;
}

.sha__body.is-open {
  display: block;
}

.sha__row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}

.sha__row:last-child {
  margin-bottom: 0;
}

.sha__row b {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
}

.sha__row code {
  font-size: 11px;
  color: var(--text-3);
  word-break: break-all;
  line-height: 1.6;
}

/* ---------- 12. 快速开始 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-12);
}

.step {
  position: relative;
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 9px;
  box-shadow: var(--sh-brand);
}

.step__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}

.step__desc {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-2);
}

.step__desc code {
  padding: 1px 5px;
  font-size: 12px;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 4px;
}

/* 代码块 */
.codeblock {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: #131a2e;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
}

.codeblock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1b2340;
  font-size: var(--fs-xs);
  color: #9aa6bf;
  font-family: var(--font-mono);
}

.codeblock__head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #364065;
}

.codeblock pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #d5dcec;
  font-size: 12.5px;
  line-height: 1.95;
}

.codeblock .cm {
  color: #8b98b3;
}

.codeblock .st {
  color: #7ee787;
}

.codeblock .kw {
  color: #79c0ff;
}

.codeblock .fn {
  color: #ffa657;
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #9aa6bf;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  transition: all 0.18s ease;
}

.copy:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.copy svg {
  width: 13px;
  height: 13px;
}

.copy.is-done {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.4);
}

/* ---------- 13. FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open] {
  border-color: var(--brand-300);
  box-shadow: var(--sh-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  background: var(--bg-soft);
}

.faq__q::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1.8px solid var(--text-3);
  border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
  flex: none;
}

.faq__item[open] .faq__q::after {
  transform: rotate(225deg) translateY(-2px);
  border-color: var(--brand);
}

.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-2);
}

.faq__a code {
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 4px;
}

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c4e 0%, #2f2a75 48%, #4a2f6d 100%);
  color: #fff;
  text-align: center;
  padding: var(--sp-24) 0;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.cta::before {
  width: 460px;
  height: 460px;
  top: -220px;
  left: -80px;
  background: rgba(91, 91, 214, 0.55);
}

.cta::after {
  width: 460px;
  height: 460px;
  bottom: -320px;
  right: -140px;
  background: rgba(255, 138, 61, 0.26);
}

.cta .wrap {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(1.7rem, 3.4vw, var(--fs-4xl));
  color: #fff;
  margin-bottom: var(--sp-4);
}

.cta__desc {
  max-width: 620px;
  margin: 0 auto var(--sp-8);
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

.cta .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.cta .btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 15. 页脚 ---------- */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer__brand p {
  margin: var(--sp-4) 0 var(--sp-5);
  max-width: 300px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-2);
}

/* 品牌名默认 nowrap（导航栏需要），但页脚在极窄屏 + 放大字号时会撑破容器，
   这里放开换行——正常字号下仍是一行，不影响观感 */
.footer .brand__name {
  white-space: normal;
}

.footer__col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: var(--text);
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.footer__col a:hover {
  color: var(--brand-600);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.footer__bottom a {
  color: var(--text-3);
}

.footer__bottom a:hover {
  color: var(--brand-600);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: center;
}

/* ---------- 16. 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.21s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.28s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.35s;
}
.reveal[data-delay="6"] {
  transition-delay: 0.42s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mock__float,
  .btn--primary::after {
    animation: none;
    transition: none;
  }
  .mock__window {
    transform: none;
  }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }
  .hero__desc {
    max-width: none;
  }
  .mock {
    max-width: 640px;
    margin: 0 auto;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .card--wide {
    grid-column: span 2;
  }
  /* 页脚：品牌区独占一行，三个链接栏目并排。
     与 ≤640 的手机端同构，从 1080 缩到 640 过程里只有间距/字号变化，不会发生列数跳变 */
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-8);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__brand p {
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  :root {
    --sp-24: 68px;
    --sp-20: 56px;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__ver {
    display: none;
  }
  .nav__mobile {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: block;
    padding: var(--sp-4) var(--sp-6) var(--sp-6);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav__mobile.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav__mobile a {
    display: block;
    padding: 12px 4px;
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
  }
  .nav__mobile a:last-of-type {
    border-bottom: 0;
  }
  .nav__mobile .btn {
    margin-top: var(--sp-4);
  }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6) 0;
    padding: var(--sp-8) 0;
  }
  .stat:nth-child(3)::before {
    display: none;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    padding: var(--sp-10) 0;
  }
  .detail--flip .detail__media {
    order: 0;
  }
  .dl {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .arch__layer {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .arch__label {
    padding-right: 0;
    padding-bottom: var(--sp-2);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .mock__float {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 var(--sp-4);
  }
  :root {
    --fs-6xl: 2rem;
    --fs-5xl: 1.75rem;
    --fs-4xl: 1.6rem;
    --fs-3xl: 1.35rem;
  }
  .hero {
    padding-top: calc(var(--nav-h) + var(--sp-12));
  }
  .hero__cta .btn {
    width: 100%;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .card--wide {
    grid-column: span 1;
  }
  .card__split {
    grid-template-columns: 1fr;
  }
  .mock__body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mock__side {
    display: none;
  }
  .devices {
    grid-template-columns: 1fr 1fr;
  }
  .persona-grid {
    grid-template-columns: 1fr;
  }
  /* 页脚：品牌区独占一行，三个链接栏目并排成三栏（不再整列堆叠） */
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-8) var(--sp-3);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__brand p {
    max-width: none;
  }
  .footer__col h4 {
    margin-bottom: 10px;
  }
  .footer__col ul {
    gap: 8px;
  }
  /* 栏宽变窄后允许链接折行，不要溢出或挤压相邻栏 */
  .footer__col a {
    display: block;
    line-height: 1.45;
    overflow-wrap: break-word;
  }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat__num {
    font-size: var(--fs-3xl);
  }
  .dlcard {
    padding: var(--sp-6);
  }
  .section-head {
    margin-bottom: var(--sp-10);
  }
}

/* ---------- 17.5 界面截图与灯箱 ---------- */
/* 截图区块：媒体列加宽，界面细节才看得清；文案列略窄 */
.detail--shot {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: var(--sp-10);
  align-items: start;
}

/* 标题两行时均分，避免出现孤字换行 */
.detail--shot .detail__title {
  text-wrap: balance;
}

.detail__media--stack {
  display: grid;
  gap: var(--sp-5);
}

.shot {
  margin: 0;
  display: grid;
  gap: 10px;
}

.shot__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px -22px rgba(15, 23, 42, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    border-color 0.2s ease;
}

.shot__btn img {
  display: block;
  width: 100%;
  height: auto;
}

.shot__btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 56px -24px rgba(15, 23, 42, 0.42);
}

.shot__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* 放大提示：桌面端 hover 出现，触屏常显 */
.shot__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.shot__hint svg {
  width: 15px;
  height: 15px;
}

.shot__btn:hover .shot__hint,
.shot__btn:focus-visible .shot__hint {
  opacity: 1;
  transform: none;
}

.shot figcaption {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}

/* 灯箱 */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200; /* 必须高于固定导航（z-index:100），否则导航会浮在遮罩之上 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: clamp(14px, 3vw, 32px);
  background: rgba(8, 11, 20, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
}

body.lb-open {
  overflow: hidden;
}

.lb__top {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lb__count {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.62);
}

.lb__img {
  max-width: min(1400px, 100%);
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  transform: scale(0.975);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb.is-open .lb__img {
  transform: none;
}

.lb__bottom {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
}

.lb__cap {
  margin: 0;
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.lb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lb__btn svg {
  width: 18px;
  height: 18px;
}

.lb__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

.lb__btn--prev svg {
  transform: rotate(180deg);
}

.lb__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lb__btn[disabled] {
  opacity: 0.32;
  cursor: default;
}

/* 品牌名变长后不换行 */
.brand__name {
  white-space: nowrap;
}

/* ---------- 18. 打印 ---------- */
@media print {
  .nav,
  .cta,
  .nav__mobile,
  .copy {
    display: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  body {
    color: #000;
  }
}

/* ---------- 19. 截图区块的响应式（必须晚于上方断点，避免被 .detail--shot 覆盖） ---------- */
@media (max-width: 900px) {
  .detail--shot {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }
  .detail--shot .detail__media {
    order: 0;
  }
  .detail--shot .detail__title {
    text-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .lb__img {
    max-height: 70vh;
  }
  .lb__bottom {
    gap: var(--sp-2);
  }
  .lb__cap {
    font-size: var(--fs-xs);
  }
  .lb__btn {
    width: 36px;
    height: 36px;
  }
  /* 触屏没有 hover，放大提示常显 */
  .shot__hint {
    opacity: 1;
    transform: none;
    font-size: 11px;
  }
}

/* ---------- 20. 页脚极窄屏适配（≤380px，如折叠屏外屏 280px） ---------- */
@media (max-width: 380px) {
  /* 收紧栏间距，给每栏多让出 4px */
  .footer__grid {
    column-gap: var(--sp-2);
  }
  /* 12px × 6 汉字 = 72px，能塞进 280px 下的 77px 栏宽，
     避免「全部下载文件」「MIT 开源协议」在极窄屏折成两行。
     用 --fs-xs（rem）而不是硬编码 px，用户放大系统字号时能跟着放大 */
  .footer__col a {
    font-size: var(--fs-xs);
  }
  .footer__col h4 {
    font-size: var(--fs-xs);
  }
}

/* ---------- 21. 窄屏导航：收起下载按钮，保证汉堡按钮永远可见 ---------- */
@media (max-width: 420px) {
  /* 实测：品牌 160 + 间距 32 + 操作区 165 = 357px，390 宽下只剩 1px 余量，
     380 及以下开始裁切，280 时汉堡按钮完全跑到视口外（菜单打不开）。
     收起按钮后操作区仅剩汉堡 42px，合计 234px，280 宽下仍有 14px 余量。
     下载入口不丢：移动端菜单（.nav__mobile）里有整宽按钮，首屏 CTA 也在。 */
  .nav__actions .btn {
    display: none;
  }
  .nav__inner {
    gap: var(--sp-4);
  }
}

/* ---------- 22. 桌面窄档：浮动信息卡不要探出视口 ---------- */
@media (max-width: 1200px) {
  /* 浮动卡默认 right: -7%（相对模拟窗口宽度）会探出窗口右边缘，
     在 1081~1120 这段窄桌面下会贴到/超出视口被裁。
     改为贴齐窗口右边缘，仍保留错落感。 */
  .mock__float--1 {
    right: 0;
  }
}

/* ---------- 23. 极窄屏：CTA 按钮不要被裁 ---------- */
@media (max-width: 380px) {
  .cta__btns .btn {
    max-width: 100%;
    white-space: normal;
  }
}
