:root {
  --bg: #fff9f5;
  --surface: #ffffff;
  --surface-soft: #fff2ea;
  --primary: #ff7a45;
  --primary-dark: #e55f2b;
  --text: #2c1f1a;
  --muted: #756158;
  --border: #f2dfd5;
  --shadow: 0 12px 32px rgba(92, 46, 24, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 69, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-disabled {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px dashed var(--border);
  cursor: default;
  pointer-events: none;
}
.btn-disabled:hover { transform: none; }

.hero-card {
  background: linear-gradient(145deg, #fff3eb 0%, #ffe6d6 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 16px 36px rgba(229, 95, 43, 0.22);
}
.hero-pet-video {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(229, 95, 43, 0.18));
}
.hero-card .caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.section {
  padding: 52px 0;
}
.section-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: 28px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card.featured {
  border: 2px solid var(--primary);
  position: relative;
}
.tag-hot {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--primary-dark);
}
.price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.feature-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #f5e6de;
}
.feature-list li:last-child { border-bottom: none; }

.pledge-box {
  background: var(--surface-soft);
  border: 1px solid #ffd5bf;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  outline: none;
}
.input:focus { border-color: var(--primary); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; }

.pet-stage {
  background: radial-gradient(circle at 50% 60%, #fff4ec 0%, #ffe8da 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  cursor: pointer;
  user-select: none;
}
.speech-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  max-width: 88%;
  text-align: center;
}
.pet-avatar {
  width: 176px;
  height: 176px;
  border-radius: 40px;
  transition: transform 0.25s ease;
  box-shadow: 0 14px 30px rgba(229, 95, 43, 0.2);
}
.pet-avatar.bounce { transform: scale(1.08) translateY(-8px); }
.pet-avatar.spin { transform: rotate(360deg); transition: transform 0.6s ease; }

/* ============================================================
   Mac & Windows 双系统桌面视窗交互展示
   ============================================================ */
.top-hero-title {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.switcher-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.os-switcher {
  display: inline-flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.os-tab, .pet-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.os-tab.active, .pet-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(92, 46, 24, 0.08);
}

.desktop-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(44, 31, 26, 0.12);
  box-shadow: 0 24px 60px rgba(44, 31, 26, 0.16);
  height: 460px;
  transition: background 0.35s ease;
  user-select: none;
}
.desktop-frame.os-mac {
  background: linear-gradient(135deg, #ffd6be 0%, #ffb997 38%, #f6a49d 72%, #d8a7ca 100%);
}
.desktop-frame.os-win {
  background: radial-gradient(circle at 22% 28%, #8fd3f4 0%, #5b8def 46%, #2b4c8c 100%);
}

/* macOS 顶部菜单栏 */
.mac-menubar {
  height: 28px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #2c1f1a;
}
.os-win .mac-menubar { display: none; }
.mac-menu-left, .mac-menu-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tray-mini {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: middle;
}

/* 桌面中的模拟办公窗口 */
.mock-window {
  position: absolute;
  top: 52px;
  left: 38px;
  width: 62%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.os-win .mock-window {
  top: 34px;
  border-radius: 10px;
}
.mock-titlebar {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 245, 242, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: #6b5b53;
}
.mac-dots {
  display: flex;
  gap: 7px;
}
.mac-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.mac-dots i:nth-child(1) { background: #ff5f56; }
.mac-dots i:nth-child(2) { background: #ffbd2e; }
.mac-dots i:nth-child(3) { background: #27c93f; }
.os-win .mac-dots { display: none; }

.win-controls {
  display: none;
  gap: 14px;
  font-size: 13px;
  color: #444;
}
.os-win .win-controls { display: flex; }

.mock-body {
  padding: 22px 24px 26px;
  font-size: 13px;
  color: #4a3a33;
}
.mock-body h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.window-hero-title {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #2c1f1a;
}
.mock-line {
  height: 10px;
  border-radius: 6px;
  background: #f0e4dd;
  margin-bottom: 10px;
}
.mock-chip-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.mock-chip {
  background: #fff3eb;
  color: #d95a26;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* 悬浮在桌面右下角的真实透明宠物（双缓冲无闪烁切换） */
.desktop-pet-wrap {
  position: absolute;
  right: 36px;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  cursor: pointer;
}
.os-win .desktop-pet-wrap { bottom: 48px; }
.desktop-bubble {
  background: rgba(255, 255, 255, 0.95);
  color: #2c1f1a;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  margin-bottom: 6px;
  max-width: 240px;
  text-align: center;
  white-space: nowrap;
}
.pet-video-stack {
  position: relative;
  width: 210px;
  height: 210px;
}
.pet-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.2s ease;
  pointer-events: none;
}
.pet-video.is-visible {
  opacity: 1;
}
.desktop-pet-wrap:hover .pet-video.is-visible { transform: scale(1.04); }

/* macOS Dock */
.mac-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  height: 46px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.os-win .mac-dock { display: none; }
.dock-item {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.dock-item img { width: 32px; height: 32px; border-radius: 8px; }

/* Windows 11 底部任务栏 */
.win-taskbar {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: rgba(243, 246, 252, 0.82);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.os-win .win-taskbar { display: flex; }
.win-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.win-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.win-icon img { width: 24px; height: 24px; border-radius: 6px; }
.win-tray {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #1f2937;
}

.showcase-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.action-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.action-pill:hover, .action-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero h1, .top-hero-title { font-size: 30px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pledge-box { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 12px; font-size: 13px; }
  .desktop-frame { height: 390px; }
  .mock-window { width: 84%; left: 8%; top: 44px; }
  .desktop-pet-wrap { right: 10px; bottom: 52px; }
  .pet-video-stack { width: 150px; height: 150px; }
}
