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

  /*
   * 与 Flutter 客户端保持一致的 Material 3 色板。
   * 源项目种子色：kSeedColor = #FF7EB3（樱花粉）。
   */
  color-scheme: light;
  --seed: #ff7eb3;
  --primary: #8b4a63;
  --on-primary: #ffffff;
  --primary-container: #ffd9e4;
  --on-primary-container: #6f334c;
  --secondary: #735760;
  --secondary-container: #ffd9e4;
  --tertiary: #7d5636;
  --tertiary-container: #ffdcc4;
  --surface: #fff8f8;
  --surface-lowest: #ffffff;
  --surface-container: #faeaed;
  --surface-container-high: #f4e4e7;
  --surface-container-highest: #eedfe2;
  --on-surface: #22191c;
  --on-surface-variant: #514347;
  --outline: #837377;
  --outline-variant: #d5c2c6;
  --error: #ba1a1a;

  /* 客户端互动 HUD 与菜单中的功能色 */
  --green: #55c98b;
  --green-strong: #55b98a;
  --green-light: #e7f7ee;
  --blue: #6c8ee8;
  --blue-light: #e9eeff;
  --purple: #8b72e8;
  --purple-light: #eeeafe;
  --amber: #ffa24a;
  --intimacy: #ff6f91;

  /* 保留现有组件变量名，并映射到客户端的语义色 */
  --orange: var(--primary);
  --orange-strong: var(--on-primary-container);
  --orange-light: var(--primary-container);
  --peach: var(--surface);
  --cream: var(--surface-container-high);
  --ink: var(--on-surface);
  --muted: var(--on-surface-variant);
  --line: var(--outline-variant);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(131, 115, 119, 0.24);
  --accent-gradient: linear-gradient(135deg, var(--primary), var(--tertiary));
  --background-gradient: linear-gradient(
    135deg,
    color-mix(in srgb, var(--surface) 90%, var(--seed)),
    var(--surface),
    color-mix(in srgb, var(--surface) 90%, var(--tertiary))
  );

  /* Flutter 客户端同款黑色柔和阴影 */
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.14);
  
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 34px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #ffb0cc;
  --on-primary: #541d35;
  --primary-container: #6f334c;
  --on-primary-container: #ffd9e4;
  --secondary: #e2bdc8;
  --secondary-container: #5a3f48;
  --tertiary: #f0bc95;
  --tertiary-container: #623f21;
  --surface: #191114;
  --surface-lowest: #130c0f;
  --surface-container: #261d20;
  --surface-container-high: #31282a;
  --surface-container-highest: #3c3235;
  --on-surface: #eedfe2;
  --on-surface-variant: #d5c2c6;
  --outline: #9d8c91;
  --outline-variant: #514347;
  --error: #ffb4ab;
  --green-light: #17382a;
  --blue-light: #202943;
  --purple-light: #28213f;
  --glass-bg: rgba(38, 29, 32, 0.8);
  --glass-border: rgba(213, 194, 198, 0.16);
  --background-gradient: linear-gradient(
    135deg,
    var(--surface),
    color-mix(in srgb, var(--surface) 90%, var(--seed)),
    var(--surface)
  );
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.45);
}

* {
  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;
}

main {
  padding-bottom: clamp(24px, 3vw, 44px);
  background: var(--surface-container);
}

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);
}

.language-toggle-btn {
  min-width: 46px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

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

.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: 116px clamp(22px, 7vw, 108px) 78px;
  background: var(--background-gradient);
  display: flex;
  align-items: flex-start;
  transition: background 0.3s;
  scroll-margin-top: 0;
}

.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(255, 126, 179, 0.18) 0%, rgba(255, 126, 179, 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(--primary) 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;
  padding-top: 14px; /* 给「适合当前电脑」角标留出上沿空间 */
}

.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 color-mix(in srgb, var(--primary) 18%, transparent);
  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: var(--accent-gradient);
  color: var(--on-primary);
  border-color: transparent;
  box-shadow: 0 20px 46px color-mix(in srgb, var(--primary) 32%, transparent);
}

.download-button.is-recommended {
  overflow: visible;
}

.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);
  border-radius: inherit;
  pointer-events: none;
}

.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: attr(data-recommended-label);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  transform: translate(25%, -50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 18%, transparent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

@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;
}

/* 移动端应用下载按钮暂未上线，保留图标样式以便后续恢复。
.mobile-os-icon {
  border: 2px solid currentColor;
  border-radius: 9px;
}

.mobile-os-icon::before,
.mobile-os-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.mobile-os-icon::before {
  top: 4px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
}

.mobile-os-icon::after {
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
*/

/* ===== 主视觉宠物图 ===== */
/* 横构图：控制在首屏可视区内，避免 overflow 裁掉头 */
.hero-pets {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 0;
  width: min(34vw, 380px);
  max-height: min(42vh, 360px);
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  animation: petFloat 6s ease-in-out infinite;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 1101px) {
  .hero {
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-pets {
    top: auto;
    right: 5%;
    bottom: 0;
    width: min(32vw, 400px);
    max-height: min(46vh, 380px);
  }
}

/* ===== 通用区块 ===== */
.section {
  width: min(1500px, calc(100% - clamp(28px, 4vw, 64px)));
  margin: clamp(18px, 2.2vw, 32px) auto 0;
  padding: 92px clamp(22px, 7vw, 108px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 80px;
  overflow: hidden;
}

.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: start;
  background: var(--surface-lowest);
}

.intro-section .wide-text {
  margin-top: 34px;
}

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

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

.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;
  padding: 0;
}

.pet-carousel,
.pet-carousel-track {
  position: absolute;
  inset: 0;
}

.pet-carousel {
  cursor: pointer;
}

.pet-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  pointer-events: none;
}

.pet-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.pet-carousel:hover .pet-carousel-slide.is-active {
  transform: scale(1.03);
}

.pet-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.pet-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.pet-carousel-dot.is-active {
  width: 22px;
  background: var(--cream);
}

.stage-bubble {
  position: absolute;
  top: 16px;
  z-index: 3;
  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;
  pointer-events: none;
}

.stage-bubble.show {
  opacity: 0.95;
}

.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: var(--accent-gradient);
}

/* 按钮组 */
.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;
}

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

.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(--surface-lowest);
}

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

.customize-section .section-sub {
  margin: 16px auto 0;
}

.customize-grid {
  width: min(1040px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.customize-card {
  --card-accent: var(--primary);
  --card-tint: color-mix(in srgb, var(--primary-container) 58%, var(--surface-lowest));
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: var(--radius);
  background: var(--surface-lowest);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease, border-color 240ms ease;
  position: relative;
  overflow: hidden;
}

.customize-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--card-accent);
}

.customize-card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

.customize-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 54px;
  height: 4px;
  background: var(--card-accent);
  border-radius: 0 0 999px 999px;
}

.customize-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: fit-content;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--card-tint);
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.customize-card h3 {
  flex-shrink: 0;
  margin: 22px 0 0;
  padding-top: 0;
  font-size: 20px;
  line-height: 1.35;
  min-height: 1.35em;
}

.customize-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 12px 0 0;
  /* 固定从标题下方起排，三张卡正文顶部对齐 */
  flex: 1 1 auto;
}

/* ===== 常见问题区 ===== */
.faq-section {
  background: color-mix(in srgb, var(--surface) 86%, var(--purple-light));
}

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

.faq-section .section-sub {
  margin: 16px auto 0;
}

.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(--surface-lowest);
}

.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(--surface-lowest);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card-header {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  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 {
  appearance: none;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  letter-spacing: 0.02em;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--primary) 58%, transparent);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.wechat-id:hover,
.wechat-id:focus-visible {
  color: var(--primary);
  border-bottom-color: currentColor;
}

.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(--surface-lowest);
  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-links a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-contact-copy {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--primary) 48%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-contact-copy:hover,
.footer-contact-copy:focus-visible {
  color: var(--orange-strong);
  border-bottom-color: currentColor;
}

.footer-links a:hover {
  color: var(--orange-strong);
  border-bottom-color: currentColor;
}

.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;
}

.drawer-language-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.drawer-language-btn:hover {
  background: var(--orange-light);
  color: var(--orange-strong);
  border-color: var(--orange);
}

: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(-8px); }
}

/* ===== 响应式适配 ===== */
@media (max-width: 820px) {
  .customize-grid {
    width: min(620px, 100%);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .customize-card {
    min-height: 210px;
  }
}

@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: 2%;
    bottom: 0;
    width: min(58vw, 300px);
    max-height: min(30vh, 260px);
    height: auto;
  }

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

  .intro-section .wide-text {
    margin-top: 0;
  }

}

@media (max-width: 980px) {
  .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%;
  }

  .hero-pets {
    right: 0;
    bottom: 0;
    width: min(68vw, 260px);
    max-height: min(26vh, 220px);
    height: auto;
  }

  .section {
    width: calc(100% - 24px);
    margin-top: 14px;
    padding: 64px 20px;
    border-radius: 24px;
  }

  .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;
}

.guide-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

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

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

.os-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);
  }
}

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

.os-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);
}

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

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

.guide-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-images-stack .guide-image-container {
  margin: 0;
}

.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;
}
