/* ==========================================================================
   ralasoi · 界面设计系统 (Design Tokens)
   风格：卡哇伊 Kawaii / 浅棕 + 白
   品牌色取自 logo 原始文件：主棕 #704F48 · 浅棕 #B5A29C · 白 #FFFFFF
   所有间距遵循 8px 基线；圆角遵循「圆润无锐角」原则
   ========================================================================== */

:root {
  /* ---------- 品牌色阶 Brand ---------- */
  --c-brand-900: #3a2621;
  --c-brand-800: #4e332c;
  --c-brand-700: #5e4038;
  --c-brand-600: #704f48; /* 品牌主棕（logo 取色） */
  --c-brand-500: #8a6259;
  --c-brand-400: #a07e76;
  --c-brand-300: #b5a29c; /* 品牌浅棕（logo 取色） */
  --c-brand-200: #d3c6c1;
  --c-brand-100: #e9e0dc;
  --c-brand-50: #f6f1ee;
  --c-cream: #fdfaf8;
  --c-white: #ffffff;

  /* ---------- 强调色 Accent（卡哇伊点缀，克制使用） ---------- */
  --c-blush-600: #d98872;
  --c-blush-500: #e9a18c;
  --c-blush-300: #f5c9bb;
  --c-blush-100: #fbe8e1;
  --c-honey-500: #e5b96b;
  --c-honey-100: #faeeDA;
  --c-mint-500: #8fae96;
  --c-mint-100: #e4eee6;

  /* ---------- 语义色 Semantic ---------- */
  --c-success: #4e7f5c;
  --c-warning: #b8862f;
  --c-error: #b54a3c;
  --c-info: #5a7a96;

  /* ---------- 文本 Text（对比度均 ≥ 4.5:1 on #FFF） ---------- */
  --c-text: #3a2621;        /* 13.7:1 */
  --c-text-2: #6b5b55;      /* 6.5:1  */
  --c-text-3: #7d6c66;      /* 5.0:1  */
  --c-text-inv: #ffffff;    /* on --c-brand-600 = 7.2:1 */

  /* ---------- 背景 / 描边 Surface ---------- */
  --c-bg: #ffffff;
  --c-bg-soft: #fdfaf8;
  --c-bg-mute: #f6f1ee;
  --c-border: #e9e0dc;
  --c-border-strong: #d3c6c1;

  /* ---------- 字体 Typography ---------- */
  --font-sans: "Nunito", "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Quicksand", "Nunito", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;

  /* 模块化字号刻度（8px 基线） */
  --fs-display: clamp(2rem, 5.4vw, 3.5rem);   /* 32 → 56 */
  --fs-h1: clamp(1.75rem, 4.4vw, 2.75rem);    /* 28 → 44 */
  --fs-h2: clamp(1.5rem, 3.4vw, 2.25rem);     /* 24 → 36 */
  --fs-h3: clamp(1.25rem, 2.4vw, 1.5rem);     /* 20 → 24 */
  --fs-h4: 1.125rem;                          /* 18 */
  --fs-lg: 1.125rem;                          /* 18 */
  --fs-base: 1rem;                            /* 16 */
  --fs-sm: 0.875rem;                          /* 14 */
  --fs-xs: 0.75rem;                           /* 12 */

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-base: 1.7;

  /* ---------- 间距 Spacing（8px 基线） ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 80px;
  --sp-11: 96px;
  --sp-12: 120px;

  /* 区块纵向节奏（移动优先 → 桌面增强） */
  --section-y: clamp(3.5rem, 9vw, 7.5rem);

  /* ---------- 圆角 Radius（卡哇伊 = 大圆角） ---------- */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-3xl: 56px;
  --r-pill: 999px;

  /* ---------- 阴影 Shadow（暖棕调，柔和不发灰） ---------- */
  --sh-xs: 0 1px 2px rgba(112, 79, 72, 0.06);
  --sh-sm: 0 2px 8px rgba(112, 79, 72, 0.07);
  --sh-md: 0 6px 20px rgba(112, 79, 72, 0.09);
  --sh-lg: 0 14px 36px rgba(112, 79, 72, 0.12);
  --sh-xl: 0 24px 60px rgba(112, 79, 72, 0.16);
  --sh-focus: 0 0 0 4px rgba(160, 126, 118, 0.35);

  /* ---------- 动效 Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.24s;
  --dur-slow: 0.4s;

  /* ---------- 布局 Layout ---------- */
  --container: 1200px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }
}

/* ==========================================================================
   1. 基础重置 Base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-text);
}

p {
  margin: 0;
}

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

/* 中文排版微调 */
:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
  letter-spacing: 0.01em;
}

/* ---------- 焦点可见（WCAG 2.2 · 2.4.11/2.4.13） ---------- */
:focus-visible {
  outline: 3px solid var(--c-brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-brand-600);
  color: var(--c-text-inv);
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 布局工具 Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-6);
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: var(--sp-7);
  }
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--soft {
  background: var(--c-bg-soft);
}

.section--mute {
  background: var(--c-bg-mute);
}

.section--brand {
  background: var(--c-brand-600);
  color: var(--c-text-inv);
}

.section--brand h2,
.section--brand h3 {
  color: var(--c-text-inv);
}

/* ---------- 区块标题 Section heading ---------- */
.sec-head {
  max-width: 680px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}

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

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand-600);
  background: var(--c-blush-100);
  border-radius: var(--r-pill);
}

.sec-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-4);
}

.sec-sub {
  color: var(--c-text-2);
  font-size: var(--fs-lg);
}

.section--brand .sec-sub {
  color: rgba(255, 255, 255, 0.86);
}

/* ==========================================================================
   2. 按钮 Button —— 微交互：hover 1.03x / active 0.96x
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-6);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.btn:active {
  transform: scale(0.96);
}

.btn svg {
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}

/* 主按钮：棕底白字，对比度 7.2:1 */
.btn--primary {
  background: var(--c-brand-600);
  color: var(--c-text-inv);
  box-shadow: var(--sh-md);
}

.btn--primary:hover {
  background: var(--c-brand-700);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--sh-lg);
}

/* 次按钮：白底棕字棕边 */
.btn--ghost {
  background: var(--c-white);
  color: var(--c-brand-600);
  border-color: var(--c-brand-200);
  box-shadow: var(--sh-xs);
}

.btn--ghost:hover {
  border-color: var(--c-brand-400);
  background: var(--c-brand-50);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--sh-sm);
}

/* 浅棕按钮：用于深色区块 */
.btn--light {
  background: var(--c-white);
  color: var(--c-brand-700);
}

.btn--light:hover {
  background: var(--c-brand-50);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--sh-lg);
}

/* 描边按钮：深色底 */
.btn--outline-light {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--c-white);
  transform: translateY(-2px) scale(1.03);
}

.btn--sm {
  min-height: 40px;
  padding: 0 var(--sp-5);
  font-size: var(--fs-sm);
}

.btn--lg {
  min-height: 56px;
  padding: 0 var(--sp-7);
  font-size: var(--fs-lg);
}

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

.btn:hover svg.icon-arrow {
  transform: translateX(4px);
}

/* ---------- 文字链接 ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--c-brand-600);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-base) var(--ease-out),
    gap var(--dur-base) var(--ease-out);
}

.link-arrow:hover {
  border-color: var(--c-brand-400);
  gap: 10px;
}

/* ==========================================================================
   3. 徽标 / 标签 Badge & Chip
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-blush-100);
  color: var(--c-brand-700);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.badge--dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-blush-500);
  animation: pulse 2s infinite;
}

.badge--solid {
  background: var(--c-brand-600);
  color: var(--c-white);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-bg-mute);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}

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

/* ==========================================================================
   4. 卡片 Card
   ========================================================================== */

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-brand-200);
}

/* ==========================================================================
   5. 顶部导航 Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
  transition: transform var(--dur-base) var(--ease-spring);
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 126px;
}

@media (min-width: 768px) {
  .logo img {
    width: 150px;
  }
}

.nav {
  display: none;
  margin-inline: auto;
  gap: var(--sp-1);
}

.nav a {
  display: block;
  padding: 10px var(--sp-4);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-text-2);
  transition: background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.nav a:hover,
.nav a[aria-current="location"] {
  background: var(--c-brand-50);
  color: var(--c-brand-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

.header-actions .btn {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-actions .btn {
    display: inline-flex;
  }
}

/* ---------- 语言切换 ---------- */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--c-bg-mute);
  border-radius: var(--r-pill);
}

.lang-btn {
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--c-text-3);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.lang-btn:hover {
  color: var(--c-brand-600);
}

.lang-btn.is-active {
  background: var(--c-white);
  color: var(--c-brand-700);
  box-shadow: var(--sh-xs);
}

/* ---------- 汉堡菜单 ---------- */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out);
}

.menu-toggle:hover {
  background: var(--c-brand-50);
}

.menu-toggle .bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.menu-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand-600);
  transition: transform var(--dur-base) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out), top var(--dur-base) var(--ease-out);
}

.menu-toggle .bars span:nth-child(1) {
  top: 0;
}
.menu-toggle .bars span:nth-child(2) {
  top: 6px;
}
.menu-toggle .bars span:nth-child(3) {
  top: 12px;
}

.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* ---------- 移动端抽屉 Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  padding: var(--sp-5) var(--sp-4) var(--sp-8);
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer[hidden] {
  display: none;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.drawer-nav {
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-2);
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-brand-800);
}

.drawer-nav a:hover {
  background: var(--c-brand-50);
}

.drawer-foot {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .drawer {
    display: none;
  }
}

/* ==========================================================================
   6. Hero 主视觉
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-brand-50) 0%, var(--c-cream) 58%, var(--c-white) 100%);
  padding-block: var(--sp-8) var(--sp-9);
}

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

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: var(--c-blush-100);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -140px;
  background: var(--c-brand-100);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 992px) {
  .hero {
    padding-block: var(--sp-10) var(--sp-11);
  }

  .hero-grid {
    grid-template-columns: 1.02fr 1fr;
    gap: var(--sp-9);
  }
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  font-size: var(--fs-display);
  margin: var(--sp-5) 0 var(--sp-4);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
  color: var(--c-brand-600);
}

/* 标题下卡哇伊手绘波浪线 */
.hero-title em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -10px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' fill='none'%3E%3Cpath d='M2 8C24 2 46 2 68 8s44 6 66 0 44-6 62 0' stroke='%23E9A18C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--c-text-2);
  margin-bottom: var(--sp-6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero-cta .btn {
  flex: 1 1 100%;
}

@media (min-width: 480px) {
  .hero-cta .btn {
    flex: 0 0 auto;
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px dashed var(--c-brand-200);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-2);
}

.hero-trust svg {
  color: var(--c-brand-500);
  flex: none;
}

/* ---------- Hero 视觉 ---------- */
.hero-visual {
  position: relative;
}

.hero-media {
  position: relative;
  z-index: 1;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-xl);
  aspect-ratio: 4 / 3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero-media:hover img {
  transform: scale(1.03);
}

/* 浮动信息气泡 */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: floaty 4.5s var(--ease-out) infinite;
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--c-brand-700);
}

.float-card span {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--c-blush-100);
  color: var(--c-brand-600);
  flex: none;
}

.float-card--tl {
  top: 14px;
  left: -8px;
}

.float-card--br {
  bottom: 18px;
  right: -8px;
  animation-delay: -2.2s;
}

@media (min-width: 576px) {
  .float-card--tl {
    top: 20px;
    left: -20px;
  }
  .float-card--br {
    bottom: 26px;
    right: -20px;
  }
}

/* 装饰飘浮爪印 */
.paw {
  position: absolute;
  color: var(--c-brand-300);
  opacity: 0.5;
  pointer-events: none;
  animation: floaty 6s var(--ease-out) infinite;
}

.paw--1 {
  top: 8%;
  left: 6%;
  width: 26px;
}
.paw--2 {
  top: 62%;
  left: 12%;
  width: 18px;
  animation-delay: -3s;
}
.paw--3 {
  display: none;
}

@media (min-width: 992px) {
  .paw--3 {
    display: block;
    top: 78%;
    right: 4%;
    width: 22px;
    animation-delay: -1.4s;
  }
}

/* ==========================================================================
   7. 信任数据条 Stats
   ========================================================================== */

.stats {
  border-block: 1px solid var(--c-border);
  background: var(--c-white);
  padding-block: var(--sp-6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5) var(--sp-4);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--c-brand-600);
  line-height: 1.1;
}

.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

/* ==========================================================================
   8. 产品家族 Product Family
   ========================================================================== */

.product-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: var(--c-brand-200);
}

.product-card__media {
  position: relative;
  /* 与产品图原生比例一致，保证产品主体不被裁切 */
  aspect-ratio: 1024 / 890;
  background: linear-gradient(160deg, var(--c-brand-50), var(--c-bg-mute));
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__flag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  flex: 1;
}

.product-card__model {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand-400);
}

.product-card__name {
  font-size: var(--fs-h3);
}

.product-card__desc {
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px dashed var(--c-border);
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--c-brand-700);
}

.price small {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-3);
}

/* ==========================================================================
   9. 卖点 Features
   ========================================================================== */

.feature-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 576px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
  }
}

.feature {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  transition: transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--c-brand-50);
  color: var(--c-brand-600);
  transition: background-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}

.feature:hover .feature__icon {
  background: var(--c-blush-100);
  transform: rotate(-6deg) scale(1.08);
}

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

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

/* ==========================================================================
   10. 产品详情 Split
   ========================================================================== */

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  box-shadow: var(--sh-lg);
}

.split__media img {
  width: 100%;
  aspect-ratio: 1024 / 890;
  object-fit: cover;
}

.split__badge {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--c-brand-700);
  box-shadow: var(--sh-sm);
}

.split__title {
  font-size: var(--fs-h2);
  margin: var(--sp-4) 0 var(--sp-4);
}

.split__text {
  color: var(--c-text-2);
  margin-bottom: var(--sp-5);
}

/* 特性清单（卡哇伊圆点） */
.check-list {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--c-text);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--c-blush-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23704F48' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* 参数速览 */
.mini-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-bg-soft);
  border: 1px dashed var(--c-brand-200);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-5);
}

.mini-specs dt {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  margin-bottom: 2px;
}

.mini-specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-brand-700);
}

/* ==========================================================================
   11. 品牌故事横幅 Banner
   ========================================================================== */

.story {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--sh-lg);
}

.story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(58, 38, 33, 0.2) 0%,
      rgba(58, 38, 33, 0.7) 55%,
      rgba(58, 38, 33, 0.92) 100%
    ),
    linear-gradient(90deg, rgba(58, 38, 33, 0.8) 0%, rgba(58, 38, 33, 0.35) 55%, rgba(58, 38, 33, 0) 100%);
}

.story__body {
  position: relative;
  padding: var(--sp-6);
  color: var(--c-white);
  max-width: 640px;
}

@media (min-width: 768px) {
  .story {
    min-height: 440px;
  }
  .story__body {
    padding: var(--sp-9);
  }
}

.story__body h2 {
  color: var(--c-white);
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-3);
}

.story__body p {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   12. 使用步骤 Steps
   ========================================================================== */

.steps {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
  }
}

.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-xl);
  backdrop-filter: blur(6px);
  transition: transform var(--dur-base) var(--ease-spring),
    background-color var(--dur-base) var(--ease-out);
}

.step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
}

.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-brand-700);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.step h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-2);
}

.step p {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   13. 规格参数 Tabs + Table
   ========================================================================== */

.tabs {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--c-bg-mute);
  border-radius: var(--r-pill);
  margin: 0 auto var(--sp-6);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.tab {
  min-height: 44px;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.tab:hover {
  color: var(--c-brand-600);
}

.tab[aria-selected="true"] {
  background: var(--c-white);
  color: var(--c-brand-700);
  box-shadow: var(--sh-sm);
}

.spec-panel[hidden] {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--sh-sm);
  -webkit-overflow-scrolling: touch;
}

table.spec-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec-table caption {
  text-align: left;
  padding: var(--sp-5) var(--sp-5) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--c-brand-700);
}

.spec-table th,
.spec-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 40%;
  font-weight: 700;
  color: var(--c-text-2);
  background: var(--c-bg-soft);
}

.spec-table tbody tr:hover th,
.spec-table tbody tr:hover td {
  background: var(--c-brand-50);
}

/* ==========================================================================
   14. 用户评价 Reviews
   ========================================================================== */

.review-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
  }
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.review:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--c-honey-500);
}

.review__text {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  flex: 1;
}

.review__who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-border);
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-brand-100);
  color: var(--c-brand-700);
  font-family: var(--font-display);
  font-weight: 700;
  flex: none;
}

.review__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.review__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

/* ==========================================================================
   15. FAQ 手风琴
   ========================================================================== */

.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-3);
}

.acc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.acc.is-open {
  border-color: var(--c-brand-300);
  box-shadow: var(--sh-sm);
}

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5);
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--c-brand-800);
  cursor: pointer;
  min-height: 56px;
}

.acc__btn:hover {
  background: var(--c-brand-50);
}

.acc__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-brand-50);
  color: var(--c-brand-600);
  transition: transform var(--dur-base) var(--ease-spring),
    background-color var(--dur-base) var(--ease-out);
}

.acc.is-open .acc__icon {
  transform: rotate(45deg);
  background: var(--c-blush-100);
}

.acc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.acc__panel > div {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

/* ==========================================================================
   16. CTA 区
   ========================================================================== */

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-5);
  background: linear-gradient(150deg, var(--c-brand-700), var(--c-brand-600) 55%, var(--c-brand-500));
  color: var(--c-white);
  text-align: center;
  box-shadow: var(--sh-lg);
}

@media (min-width: 768px) {
  .cta-box {
    padding: var(--sp-10) var(--sp-9);
  }
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.cta-box h2 {
  color: var(--c-white);
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-4);
  position: relative;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto var(--sp-6);
  position: relative;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  position: relative;
}

/* 订阅表单 */
.subscribe {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 480px;
  margin: var(--sp-6) auto 0;
  position: relative;
}

@media (min-width: 576px) {
  .subscribe {
    flex-direction: row;
  }
}

.input {
  flex: 1;
  min-height: 48px;
  padding: 0 var(--sp-5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  transition: border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.input:focus {
  outline: none;
  border-color: var(--c-white);
  background: rgba(255, 255, 255, 0.22);
}

.input:focus-visible {
  outline: 3px solid var(--c-white);
  outline-offset: 2px;
}

.form-note {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--sp-3);
  position: relative;
}

/* ==========================================================================
   17. 页脚 Footer
   ========================================================================== */

.site-footer {
  background: var(--c-brand-600);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--sp-9) var(--sp-6);
  font-size: var(--fs-sm);
}

.footer-top {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--sp-6);
  }
}

.footer-logo {
  width: 150px;
  border-radius: var(--r-sm);
}

.footer-brand p {
  margin-top: var(--sp-4);
  max-width: 320px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-contact {
  margin-top: var(--sp-4);
  display: grid;
  gap: 6px;
}

.footer-contact a {
  color: var(--c-white);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.footer-contact a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
  color: var(--c-white);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: grid;
  gap: var(--sp-3);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.76);
  transition: color var(--dur-base) var(--ease-out),
    padding-left var(--dur-base) var(--ease-out);
}

.footer-col a:hover {
  color: var(--c-white);
  padding-left: 4px;
}

.socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  transition: background-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.06);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.66);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-legal a:hover {
  color: var(--c-white);
}

/* ==========================================================================
   18. 移动端底部固定购买条
   ========================================================================== */

.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -6px 20px rgba(112, 79, 72, 0.08);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.sticky-buy.is-visible {
  transform: translateY(0);
}

.sticky-buy .price {
  font-size: var(--fs-lg);
  line-height: 1.2;
}

.sticky-buy .price small {
  display: block;
}

.sticky-buy .btn {
  flex: 1;
}

@media (min-width: 768px) {
  .sticky-buy {
    display: none;
  }
}

/* ==========================================================================
   19. 回到顶部 + 设备预览
   ========================================================================== */

.floating-tools {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(var(--sp-4) + 68px);
  z-index: 95;
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .floating-tools {
    right: var(--sp-6);
    bottom: var(--sp-6);
  }
}

.tool-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-brand-600);
  box-shadow: var(--sh-md);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring),
    background-color var(--dur-base) var(--ease-out);
}

.tool-btn:hover {
  background: var(--c-brand-50);
  transform: translateY(-3px) scale(1.06);
}

.tool-btn[hidden] {
  display: none;
}

/* ---------- 设备预览弹窗 ---------- */
.device-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}

.device-modal[hidden] {
  display: none;
}

.device-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 38, 33, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--dur-base) var(--ease-out);
}

.device-panel {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  animation: popIn var(--dur-base) var(--ease-spring);
}

.device-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.device-head h2 {
  font-size: var(--fs-h4);
  margin-right: auto;
}

.device-tabs {
  display: flex;
  gap: var(--sp-1);
  padding: 3px;
  background: var(--c-bg-mute);
  border-radius: var(--r-pill);
}

.device-tab {
  min-height: 36px;
  padding: 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-text-2);
  cursor: pointer;
}

.device-tab[aria-selected="true"] {
  background: var(--c-white);
  color: var(--c-brand-700);
  box-shadow: var(--sh-xs);
}

.device-stage {
  flex: 1;
  min-height: 60vh;
  padding: var(--sp-5);
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 20%, var(--c-brand-50), transparent 60%),
    var(--c-bg-soft);
}

.device-frame {
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform-origin: top center;
}

.device-frame iframe {
  border: 0;
  display: block;
  background: var(--c-white);
}

/* ==========================================================================
   20. Toast 提示
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sp-6) + 68px);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-brand-800);
  color: var(--c-white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xl);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring),
    opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 768px) {
  .toast {
    bottom: var(--sp-6);
  }
}

/* ==========================================================================
   21. 滚动进场动画（仅 transform / opacity）
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 尊重系统「减少动态效果」偏好（WCAG 2.3.3） ---------- */
@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;
  }
}

/* ---------- 嵌入预览模式（iframe 内隐藏浮层） ---------- */
body.is-embed .floating-tools,
body.is-embed .sticky-buy,
body.is-embed .toast {
  display: none !important;
}
