:root {
  /* 现代高级系统字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;

  /* HSL 核心色相 */
  --hue-orange: 20;
  --hue-green: 145;
  --hue-blue: 202;
  --hue-purple: 255;
  
  /* HSL 调色盘 (现代 CSS 变量映射) */
  --orange: light-dark(hsl(var(--hue-orange), 85%, 65%), hsl(var(--hue-orange), 90%, 68%));
  --orange-strong: light-dark(hsl(var(--hue-orange), 80%, 55%), hsl(var(--hue-orange), 95%, 72%));
  --orange-light: light-dark(hsl(var(--hue-orange), 100%, 96%), hsl(var(--hue-orange), 20%, 15%));
  
  --green: light-dark(hsl(var(--hue-green), 40%, 58%), hsl(var(--hue-green), 50%, 62%));
  --green-light: light-dark(hsl(var(--hue-green), 50%, 95%), hsl(var(--hue-green), 20%, 15%));
  
  --blue: light-dark(hsl(var(--hue-blue), 62%, 60%), hsl(var(--hue-blue), 70%, 64%));
  --blue-light: light-dark(hsl(var(--hue-blue), 60%, 95%), hsl(var(--hue-blue), 20%, 15%));
  
  --purple: light-dark(hsl(var(--hue-purple), 85%, 76%), hsl(var(--hue-purple), 80%, 80%));
  --purple-light: light-dark(hsl(var(--hue-purple), 70%, 97%), hsl(var(--hue-purple), 20%, 15%));

  /* 基础背景色和文字色 */
  --peach: light-dark(hsl(35, 100%, 98%), hsl(222, 20%, 10%));
  --cream: light-dark(hsl(35, 100%, 99%), hsl(222, 18%, 13%));
  --ink: light-dark(hsl(222, 17%, 22%), hsl(210, 20%, 94%));
  --muted: light-dark(hsl(218, 9%, 45%), hsl(215, 12%, 70%));
  --line: light-dark(rgba(47, 53, 66, 0.08), rgba(255, 255, 255, 0.08));
  
  /* 磨砂玻璃效果的底色和描边 */
  --glass-bg: light-dark(rgba(255, 253, 250, 0.75), rgba(20, 24, 33, 0.75));
  --glass-border: light-dark(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));

  /* 阴影与圆角 */
  --shadow-sm: light-dark(0 8px 24px rgba(82, 67, 56, 0.05), 0 8px 24px rgba(0, 0, 0, 0.2));
  --shadow: light-dark(0 20px 55px rgba(82, 67, 56, 0.08), 0 20px 55px rgba(0, 0, 0, 0.3));
  --shadow-lg: light-dark(0 28px 64px rgba(82, 67, 56, 0.12), 0 28px 64px rgba(0, 0, 0, 0.4));
  
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 34px;
}

/* 优雅降级：当浏览器不支持 light-dark() 时使用 data-theme 覆盖 */
:root[data-theme="dark"] {
  --orange: hsl(var(--hue-orange), 90%, 68%);
  --orange-strong: hsl(var(--hue-orange), 95%, 72%);
  --orange-light: hsl(var(--hue-orange), 20%, 15%);
  
  --green: hsl(var(--hue-green), 50%, 62%);
  --green-light: hsl(var(--hue-green), 20%, 15%);
  
  --blue: hsl(var(--hue-blue), 70%, 64%);
  --blue-light: hsl(var(--hue-blue), 20%, 15%);
  
  --purple: hsl(var(--hue-purple), 80%, 80%);
  --purple-light: hsl(var(--hue-purple), 20%, 15%);

  --peach: hsl(222, 20%, 10%);
  --cream: hsl(222, 18%, 13%);
  --ink: hsl(210, 20%, 94%);
  --muted: hsl(215, 12%, 70%);
  --line: rgba(255, 255, 255, 0.08);
  
  --glass-bg: rgba(20, 24, 33, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --orange: hsl(var(--hue-orange), 85%, 65%);
  --orange-strong: hsl(var(--hue-orange), 80%, 55%);
  --orange-light: hsl(var(--hue-orange), 100%, 96%);
  
  --green: hsl(var(--hue-green), 40%, 58%);
  --green-light: hsl(var(--hue-green), 50%, 95%);
  
  --blue: hsl(var(--hue-blue), 62%, 60%);
  --blue-light: hsl(var(--hue-blue), 60%, 95%);
  
  --purple: hsl(var(--hue-purple), 85%, 76%);
  --purple-light: hsl(var(--hue-purple), 70%, 97%);

  --peach: hsl(35, 100%, 98%);
  --cream: hsl(35, 100%, 99%);
  --ink: hsl(222, 17%, 22%);
  --muted: hsl(218, 9%, 45%);
  --line: rgba(47, 53, 66, 0.08);
  
  --glass-bg: rgba(255, 253, 250, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);

  --shadow-sm: 0 8px 24px rgba(82, 67, 56, 0.06);
  --shadow: 0 20px 55px rgba(82, 67, 56, 0.1);
  --shadow-lg: 0 28px 64px rgba(82, 67, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

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

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

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 60px;
  background: var(--glass-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover img {
  transform: rotate(15deg) scale(1.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.nav-links a:hover {
  color: var(--orange-strong);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ===== 主题切换按钮 ===== */
.theme-toggle-btn {
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  padding: 0;
}

.theme-toggle-btn:hover {
  background: var(--orange-light);
  color: var(--orange-strong);
  border-color: var(--orange);
  transform: scale(1.05) rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="light"] .moon-icon { display: block; }
:root[data-theme="dark"] .sun-icon { display: block; }
:root[data-theme="dark"] .moon-icon { display: none; }

/* ===== 移动端汉堡包按钮 ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== 主视觉区 (Hero) ===== */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 150px clamp(22px, 7vw, 108px) 78px;
  background: var(--peach);
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: var(--cream);
  opacity: 0.42;
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0% 100%);
  transition: background 0.3s;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15%;
  right: 8%;
  width: min(480px, 40vw);
  height: min(480px, 40vw);
  background: radial-gradient(circle, rgba(240, 140, 94, 0.15) 0%, rgba(240, 140, 94, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: floatLight 8s ease-in-out infinite alternate;
}

@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.1); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
}

h1, h2, h3, p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ink) 0%, var(--orange-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  width: min(600px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  scroll-margin-top: 80px;
}

.download-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  opacity: 0.7;
}

/* ===== 下载按钮 ===== */
.download-button {
  position: relative;
  overflow: hidden;
  min-width: 228px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  box-shadow: 0 12px 28px rgba(240, 140, 94, 0.12);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

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

.download-button.primary,
.download-button.is-recommended {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-strong) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 20px 46px rgba(240, 120, 58, 0.24);
}

.download-button.primary::before,
.download-button.is-recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}

.download-button.primary:hover::before,
.download-button.is-recommended:hover::before {
  animation: shimmer 1.5s ease-in-out infinite;
}

.download-button.is-recommended::after {
  content: "当前系统";
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

.download-button.secondary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--line);
}

.download-button.secondary:hover {
  border-color: var(--orange);
}

.download-button strong,
.download-button small {
  display: block;
}

.download-button strong {
  font-size: 16px;
}

.download-button small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.78;
  font-size: 12px;
}

.button-icon {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.windows-icon {
  background:
    linear-gradient(90deg, transparent 47%, currentColor 47%, currentColor 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, currentColor 47%, currentColor 53%, transparent 53%);
  border: 2px solid currentColor;
}

.android-icon {
  border-radius: 12px 12px 8px 8px;
  background: currentColor;
  opacity: 0.95;
}

.android-icon::before,
.android-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 2px;
  height: 8px;
  background: currentColor;
}

.android-icon::before {
  left: 9px;
  transform: rotate(-26deg);
}

.android-icon::after {
  right: 9px;
  transform: rotate(26deg);
}

/* ===== 主视觉宠物图 ===== */
.hero-pets {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: 0;
  width: min(44vw, 560px);
  max-height: 80vh;
  object-fit: contain;
  object-position: bottom right;
  animation: petFloat 6s ease-in-out infinite;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

/* ===== 浮动预览卡片 ===== */
.floating-preview {
  position: absolute;
  z-index: 3;
  right: calc(5% + min(44vw, 560px) * 0.68);
  bottom: calc(min(44vw, 560px) * 0.64);
  width: 200px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: previewDrift 4.8s ease-in-out infinite;
  will-change: transform;
}

.bubble {
  position: absolute;
  top: -14px;
  left: 28px;
  border-radius: 16px 16px 16px 4px;
  background: var(--ink);
  color: var(--cream);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-preview:hover .bubble {
  transform: scale(1.08) translateY(-2px);
}

.mini-window {
  height: 92px;
  border-radius: 16px;
  background: var(--peach);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}

.window-header {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.window-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pet-icon-mini {
  font-size: 28px;
  opacity: 0.85;
  animation: miniHeartbeat 1.8s ease-in-out infinite;
  z-index: 2;
}

.pulse-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange) 50%, transparent);
  opacity: 0.3;
  animation: pulseMove 2.4s linear infinite;
  z-index: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

@keyframes miniHeartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes pulseMove {
  0% { transform: scaleX(0.5); opacity: 0.1; }
  50% { transform: scaleX(1); opacity: 0.4; }
  100% { transform: scaleX(0.5); opacity: 0.1; }
}

.floating-preview p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* 思考气泡小圆点 */
.thought-dots {
  position: absolute;
  bottom: -28px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.thought-dot-lg,
.thought-dot-md,
.thought-dot-sm {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.thought-dot-lg {
  width: 14px;
  height: 14px;
  transform: translate(8px, 0);
}

.thought-dot-md {
  width: 9px;
  height: 9px;
  transform: translate(20px, 4px);
}

.thought-dot-sm {
  width: 5px;
  height: 5px;
  transform: translate(32px, 8px);
}

/* ===== 通用区块 ===== */
.section {
  padding: 92px clamp(22px, 7vw, 108px);
  scroll-margin-top: 80px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-sub {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== 产品介绍 ===== */
.intro-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: end;
  background: var(--cream);
}

.wide-text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

/* ===== 功能亮点 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
}

.feature-card:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.feature-card h3 {
  transform: translateZ(20px);
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  transform: translateZ(10px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  display: inline-block;
  position: relative;
  transform: translateZ(30px);
}

/* 桌面悬浮图标 */
.desktop-icon {
  background: var(--blue-light);
  border: 3px solid var(--blue);
}

.desktop-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 3px;
  background: var(--blue);
}

/* 心情气泡图标 */
.mood-icon {
  background: var(--green-light);
}

.mood-icon::before {
  content: "";
  position: absolute;
  inset: 9px 8px 13px;
  border-radius: 16px 16px 16px 4px;
  background: var(--green);
}

/* 缓存图标 */
.sync-icon {
  background: var(--orange-light);
}

.sync-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid var(--orange);
  border-left-color: transparent;
  border-radius: 50%;
}

/* 多宠物图标 */
.multi-pet-icon {
  background: var(--purple-light);
}

.multi-pet-icon::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  top: 6px;
  left: 6px;
  box-shadow: 14px 6px 0 var(--purple);
}

/* 待机图标 */
.idle-icon {
  background: var(--orange-light);
  border: 3px solid var(--orange);
}

.idle-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* 低功耗图标 */
.light-icon {
  background: var(--green-light);
  border: 3px solid var(--green);
}

.light-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green) 30%, transparent 70%);
}

/* ===== 互动体验模拟器 ===== */
.actions-section {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
  background: var(--cream);
}

.phone-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--cream);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding: 0 4px;
}

.pet-stage {
  position: relative;
  height: 260px;
  border-radius: 20px;
  background: var(--peach);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#interactive-pet {
  max-width: 70%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  user-select: none;
}

#interactive-pet:hover {
  transform: scale(1.05);
}

/* 动画效果 */
.pet-jump {
  animation: petJump 0.5s ease-in-out;
}

.pet-shake {
  animation: petShake 0.5s ease-in-out;
}

.pet-lift {
  animation: petLift 1.2s ease-in-out;
}

@keyframes petJump {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(0.95, 1.05); }
}

@keyframes petShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

@keyframes petLift {
  0%, 100% { transform: translateY(0); }
  20%, 80% { transform: translateY(-70px) scale(0.95); }
}

.stage-bubble {
  position: absolute;
  top: 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.stage-bubble.show {
  opacity: 0.95;
  transform: translateY(0);
}

/* 爱心粒子特效 */
.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.heart-particle {
  position: absolute;
  color: #ff6b81;
  font-size: 24px;
  animation: floatHeart 0.8s ease-out forwards;
  pointer-events: none;
  user-select: none;
}

@keyframes floatHeart {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-60px) scale(1.2); opacity: 0; }
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--peach);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.progress-bar-container {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-strong) 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 按钮组 */
.interaction-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.interact-btn {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.interact-btn:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.interact-btn:active {
  transform: translateY(0);
}

.interact-btn .btn-icon {
  font-size: 18px;
}

.actions-copy p {
  color: var(--muted);
}

.action-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.action-list div {
  border-left: 4px solid var(--orange);
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.action-list div:hover {
  border-color: var(--orange);
}

.action-list strong,
.action-list span {
  display: block;
}

.action-list strong {
  font-size: 17px;
}

.action-list span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ===== 宠物定制区 ===== */
.customize-section {
  background: var(--cream);
}

.customize-section .section-heading {
  text-align: center;
}

.customize-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.customize-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
}

.customize-card:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.customize-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-strong));
  border-radius: 4px 4px 0 0;
  transform: translateZ(10px);
}

.customize-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
  transform: translateZ(30px);
}

.customize-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.customize-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  transform: translateZ(10px);
}

/* ===== 常见问题区 ===== */
.faq-section {
  background: var(--peach);
}

.faq-section .section-heading {
  text-align: center;
}

.faq-list {
  width: min(980px, 100%);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 18px;
  line-height: 1.35;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ===== 合作推广区 ===== */
.cooperation-section {
  background: var(--cream);
}

.cooperation-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(30px, 7vw, 72px);
  align-items: center;
}

.cooperation-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0 0;
}

.cooperation-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.cooperation-list li {
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.cooperation-list li:hover {
  transform: translateX(4px);
  border-color: var(--orange);
}

.cooperation-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}

/* ===== 联系卡片 ===== */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card-header {
  background: linear-gradient(135deg, var(--green), #5cb878);
  color: #ffffff;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card-body {
  padding: 28px 24px;
}

.contact-label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.contact-value {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
}

.wechat-id {
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  letter-spacing: 0.02em;
}

.contact-desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.copy-wechat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  border: 2px solid var(--green);
  border-radius: 24px;
  background: var(--cream);
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 150ms ease;
  width: 100%;
  justify-content: center;
}

.copy-wechat-btn:hover {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-2px);
}

.copy-wechat-btn:active {
  transform: translateY(0);
}

.copy-wechat-btn.copied {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

/* ===== 底部 ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 36px clamp(22px, 7vw, 108px);
  color: var(--muted);
  background: var(--cream);
  font-size: 14px;
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer-copy {
  font-size: 13px;
  text-align: right;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  z-index: 100;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 移动端侧边菜单 Drawer ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s;
}

.mobile-drawer.is-active {
  pointer-events: auto;
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-drawer.is-active .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 80%);
  background: var(--cream);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
  padding: 24px;
}

.mobile-drawer.is-active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.drawer-header .brand img {
  width: 32px;
  height: 32px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
  padding: 6px 0;
}

.drawer-link:hover {
  color: var(--orange-strong);
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.drawer-theme-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--peach);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

:root[data-theme="light"] .drawer-theme-btn .sun-text { display: none; }
:root[data-theme="light"] .drawer-theme-btn .moon-text { display: inline; }
:root[data-theme="dark"] .drawer-theme-btn .sun-text { display: inline; }
:root[data-theme="dark"] .drawer-theme-btn .moon-text { display: none; }

/* ===== 滚动显示动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 关键帧动画 ===== */
@keyframes petFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

/* ===== 响应式适配 ===== */
@media (max-width: 1100px) {
  .customize-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(42px, 8vw, 64px);
  }

  h2 {
    font-size: clamp(28px, 6vw, 38px);
  }

  .hero {
    min-height: 92vh;
    padding-top: 112px;
    padding-bottom: 280px;
    align-items: flex-start;
  }

  .hero-pets {
    right: -100px;
    width: min(80vw, 520px);
  }

  .floating-preview {
    right: auto;
    left: 24px;
    top: auto;
    bottom: 170px;
  }

  .thought-dots {
    display: none;
  }

  .intro-section,
  .actions-section,
  .faq-list,
  .cooperation-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  .site-header {
    height: 64px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 230px;
  }

  .hero-text,
  .wide-text {
    font-size: 15.5px;
  }

  .download-button {
    width: 100%;
  }

  .floating-preview {
    display: none;
  }

  .hero-pets {
    width: 108vw;
    right: -160px;
  }

  .section {
    padding: 64px 20px;
  }

  .feature-grid,
  .customize-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .phone-panel {
    border-radius: 24px;
  }

  .pet-stage {
    height: 220px;
  }

  .contact-value {
    font-size: 22px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px 20px;
    text-align: center;
    gap: 12px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== macOS 图标 & 安装指南 ===== */
.macos-icon {
  background: var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mac-guide-trigger {
  color: var(--orange-strong);
  font-weight: 800;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
  cursor: pointer;
}

.mac-guide-trigger:hover {
  color: var(--orange);
}

.mac-guide-panel {
  margin-top: 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  overflow: hidden;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mac-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.mac-guide-header span {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange-strong);
}

.close-guide-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.close-guide-btn:hover {
  background: var(--line);
  color: var(--ink);
}

.mac-guide-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .mac-guide-body {
    grid-template-columns: 1fr;
  }
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: flex;
  gap: 12px;
  align-items: start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange-strong);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 14px;
  line-height: 1.6;
}

.step-text strong {
  color: var(--ink);
  display: inline-block;
  margin-bottom: 2px;
}

.step-text span {
  color: var(--muted);
}

.code-copy-box {
  margin-top: 8px;
  background: var(--peach);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-copy-box code {
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
  user-select: all;
}

.copy-code-btn {
  background: var(--orange-light);
  border: 1px solid var(--orange);
  color: var(--orange-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.copy-code-btn:hover {
  background: var(--orange-strong);
  color: #fff;
  transform: translateY(-1px);
}

.copy-code-btn:active {
  transform: translateY(0);
}

.guide-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--peach);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.guide-image-container img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.image-caption {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.text-nowrap {
  display: inline-block;
  white-space: nowrap;
}
