/* ==========================================================================
   XBLACK 飞车试车房官网 (XBLACK Speed Racing Studio)
   ANIMAL ISLAND UI STYLE SYSTEM (动物森友会自然治愈·温暖大地色系与游戏立体按键规范)
   ========================================================================== */

/* -------------------- 1. Design Tokens (Animal Island UI 规范) -------------------- */
:root {
  /* 主色（薄荷青绿 / Mint Teal） */
  --primary-color: #19c8b9;
  --primary-hover: #3dd4c6;
  --primary-active: #11a89b;
  --primary-bg: #e6f9f6;
  --primary-dark: #0cc0b5;

  /* 文字色（温暖棕色系，禁止纯黑 #000） */
  --text-main: #794f27;        /* 主文字 / 标题 */
  --text-body: #725d42;        /* 正文 / 组件内文字 */
  --text-secondary: #9f927d;   /* 次级文字 */
  --text-muted: #8a7b66;       /* 浅棕 / 辅助文字 */
  --text-disabled: #c4b89e;    /* 禁用文字 */

  /* 边框色 */
  --border-main: #9f927d;
  --border-light: #c4b89e;     /* 输入框 / 卡片边框 */
  --border-hover: #a89878;     /* 输入框 hover */
  --border-subtle: #e8dcc8;    /* 浅米分割线 */

  /* 背景色（奶油米白 / 温暖大地色） */
  --bg-main: #f8f8f0;          /* 页面主背景 */
  --bg-content: #f7f3df;       /* 内容区 / Card / Modal (rgb 247, 243, 223) */
  --bg-secondary: #f0e8d8;     /* 二级浅米背景 */
  --bg-disabled: #f0ece2;      /* 禁用背景 */
  --bg-input: #f7f3df;          /* 输入框背景 */
  --bg-island-phone: #f8f4e8;  /* NookPhone 外壳奶油色 */

  /* 状态色与游戏特殊色 */
  --success-color: #6fba2c;    /* 动森叶绿 */
  --success-active: #5a9e1e;
  --warning-color: #f5c31c;    /* 警告金 */
  --error-color: #e05a5a;      /* 浆果红 */
  --error-active: #c94444;
  --focus-yellow: #ffcc00;     /* 游戏高亮黄（非冷蓝） */
  --focus-yellow-dark: #e0b800;

  /* 3D 游戏立体按键厚底阴影色 */
  --shadow-btn-3d: #bdaea0;    /* primary 按钮底座阴影 */
  --shadow-btn-danger: #c94444;
  --shadow-input-3d: #d4c9b4;  /* 输入框 3D 阴影 */
  --shadow-soft-sm: 0 2px 4px 0 rgba(61, 52, 40, 0.06);
  --shadow-soft-base: 0 3px 10px 0 rgba(61, 52, 40, 0.10);
  --shadow-soft-lg: 0 8px 24px 0 rgba(61, 52, 40, 0.14);

  /* Nook 12 色胶囊调色板 */
  --nook-pink: #f8a6b2;
  --nook-purple: #b77dee;
  --nook-blue: #889df0;
  --nook-yellow: #f7cd67;
  --nook-orange: #e59266;
  --nook-teal: #82d5bb;
  --nook-green: #8ac68a;
  --nook-red: #fc736d;
  --nook-lime: #d1da49;
  --nook-brown: #9a835a;
  --nook-peach: #e18c6f;

  /* 字体系统 */
  --font-family: 'Nunito', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* 几何圆角 */
  --radius-sm: 12px;
  --radius-base: 18px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --header-height: 80px;
  --max-width: 1280px;
}

/* -------------------- 2. Global Reset & Custom Cursor -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-body);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

section, [id] {
  scroll-margin-top: 100px;
}

body {
  background-color: var(--bg-main);
  /* 动森经典大地米白双层波点墙纸 */
  background-image: 
    radial-gradient(circle, rgba(160, 147, 125, 0.12) 2px, transparent 2px),
    radial-gradient(circle, rgba(25, 200, 185, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px, 16px 16px;
  background-position: 0 0, 8px 8px;
  color: var(--text-body);
  font-family: var(--font-family);
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  /* 动森游戏手指光标 */
  cursor: url('../img/cursor-icon.png') 4 0, auto !important;
}

a, button, input, select, textarea, .btn-glass-primary, .btn-glass-secondary, .nav-link, .preset-btn, .color-chip {
  cursor: url('../img/cursor-icon.png') 4 0, pointer !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #d4c9b4;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

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

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

button {
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* -------------------- 3. Floating Cute Leaves Decoration -------------------- */
.floating-leaves-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cute-leaf {
  position: absolute;
  font-size: 20px;
  opacity: 0.25;
  user-select: none;
  animation: leafFloat 14s infinite linear;
}

.leaf-1 { top: 12%; left: 5%; animation-duration: 18s; font-size: 24px; }
.leaf-2 { top: 38%; right: 8%; animation-duration: 15s; font-size: 22px; animation-delay: -3s; }
.leaf-3 { top: 65%; left: 7%; animation-duration: 20s; font-size: 28px; animation-delay: -7s; }
.leaf-4 { top: 85%; right: 5%; animation-duration: 16s; font-size: 20px; animation-delay: -11s; }

@keyframes leafFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-40px) rotate(35deg) scale(1.1); opacity: 0.35; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
}

/* -------------------- 4. Animal Island Floating Navigation Dock -------------------- */
.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 1.25rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2.5px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(114, 93, 66, 0.12), 0 3px 0 0 #d4c9b4;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-leaf-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 2px solid var(--primary-color);
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(25, 200, 185, 0.25);
  animation: leafWiggle 3s ease-in-out infinite;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title .teal {
  color: var(--primary-color);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-body);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 3px 0 0 var(--primary-active);
}

/* 3D Pixel Stack Game Key CTA Button */
.btn-island-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--focus-yellow);
  border: 2px solid #e0b800;
  color: var(--text-main);
  box-shadow: 0 4px 0 0 #c29e00;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-island-cta:hover {
  background: #ffe043;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 0 #c29e00;
}

.btn-island-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #c29e00;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 24px;
}

/* -------------------- 5. Hero Section & Nook HUD -------------------- */
.hero-section {
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 5;
}

/* HUD Live Realtime Clock (动森 HUD 时钟组件) */
.island-time-hud {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: #ffffff;
  border: 2.5px solid #d4cfc3;
  border-radius: 18px;
  box-shadow: 0 3px 0 0 #d4c9b4, var(--shadow-soft-sm);
  margin-bottom: 1.5rem;
}

.hud-date-col {
  display: flex;
  flex-direction: column;
  padding-right: 14px;
  border-right: 2.5px solid rgba(159, 146, 125, 0.25);
  white-space: nowrap;
}

.hud-weekday {
  color: var(--success-color);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.hud-monthday {
  color: #8b7355;
  font-weight: 800;
  font-size: 17px;
}

.hud-time-digits {
  color: #8b7355;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.hud-colon {
  margin: 0 2px;
  animation: hudBlink 1s step-end infinite;
  color: #8b7355;
}

@keyframes hudBlink {
  50% { opacity: 0; }
}

.hero-title {
  font-family: var(--font-family);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title span.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  white-space: nowrap;
}

/* Animal Island 3D Primary Button (50px pill, 3D 像素堆叠阴影) */
.btn-glass-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 48px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--primary-color);
  border: 2px solid var(--primary-active);
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 5px 0 0 var(--primary-active);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 0 var(--primary-active);
}

.btn-glass-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 var(--primary-active);
}

/* Animal Island Default Secondary Button */
.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 48px;
  padding: 0 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 2px solid var(--border-light);
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 4px 0 0 #d4c9b4;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass-secondary:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 0 #d4c9b4;
}

.btn-glass-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #d4c9b4;
}

/* Animal Island Stats Row (Pastel Pattern Cards) */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-glass-card {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: var(--bg-content);
  border: 2px solid var(--border-light);
  box-shadow: 0 3px 0 0 #d4c9b4;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-glass-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.stat-value {
  font-family: var(--font-family);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.stat-value .unit {
  font-size: 1.05rem;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* -------------------- 6. Animal Island Supercar Workbench & Throttle Stage -------------------- */
.showroom-spatial-slab {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 28px;
  background: #090d16;
  border: 3px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.showroom-spatial-slab.is-revving {
  border-color: #00f0ff;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), 0 16px 45px -6px rgba(0, 0, 0, 0.65);
}

.cockpit-hero-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cockpit-hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.45) 0%, transparent 22%, transparent 65%, rgba(9, 13, 22, 0.82) 100%);
}

.cockpit-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
  transform-origin: 50% 60%;
}

/* Acceleration Shake on Throttle */
.showroom-spatial-slab.is-revving .cockpit-car-img {
  transform: scale(1.05) translateY(6px);
  filter: brightness(1.15) contrast(1.05);
  animation: car-rev-rumble 0.08s infinite alternate ease-in-out;
}

@keyframes car-rev-rumble {
  0% { transform: scale(1.05) translate(1px, 6px); }
  50% { transform: scale(1.05) translate(-1px, 4px); }
  100% { transform: scale(1.05) translate(0px, 7px); }
}

/* Dual Nitro Plasma Jet Thrusters at the Rear Tail */
.nitro-exhaust-container {
  position: absolute;
  left: 68%;
  top: 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0% 50%;
  transform: rotate(-22deg);
  transition: opacity 0.12s ease-out;
  z-index: 6;
}

.showroom-spatial-slab.is-revving .nitro-exhaust-container {
  opacity: 1;
}

.nitro-jet-plume {
  position: relative;
  width: 190px;
  height: 30px;
  transform-origin: 0% 50%;
}

.flame-core {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 0% 50%, #FFFFFF 0%, #38BDF8 30%, #00F0FF 55%, #0044FF 85%, transparent 100%);
  border-radius: 50% 80% 80% 50% / 50% 50% 50% 50%;
  filter: drop-shadow(0 0 15px #00F0FF) drop-shadow(0 0 35px #00F0FF);
  animation: jet-flame-surge 0.05s infinite alternate ease-in-out;
  transform-origin: left center;
}

.flame-glow {
  position: absolute;
  top: -8px;
  left: -10px;
  width: 180px;
  height: 44px;
  background: radial-gradient(ellipse at 0% 50%, rgba(255, 255, 255, 0.9), rgba(0, 240, 255, 0.6) 40%, rgba(0, 85, 255, 0.2) 75%, transparent 100%);
  filter: blur(6px);
  border-radius: 50%;
  animation: jet-flame-flicker 0.07s infinite alternate ease-in-out;
}

.plume-2 {
  transform: translateY(-4px) scaleY(0.85);
  animation-delay: 0.02s;
}

@keyframes jet-flame-surge {
  0% { transform: scaleX(0.85) scaleY(0.9) skewY(-1deg); }
  100% { transform: scaleX(1.3) scaleY(1.15) skewY(1deg); }
}

@keyframes jet-flame-flicker {
  0% { opacity: 0.7; transform: scaleX(0.9); }
  100% { opacity: 1; transform: scaleX(1.25); }
}

/* Speed Tunnel Particle Lines */
.speed-wind-tunnel {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(25, 200, 185, 0.12) 41px, transparent 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.showroom-spatial-slab.is-revving .speed-wind-tunnel {
  opacity: 1;
  animation: speed-tunnel-rush 0.15s infinite linear;
}

@keyframes speed-tunnel-rush {
  0% { background-position: 0 0; }
  100% { background-position: -80px 0; }
}

/* Top & Bottom Controls on Workbench */
.showroom-top-controls {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  white-space: nowrap;
}

.showroom-pill-badge {
  pointer-events: auto;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.color-chips-group {
  pointer-events: auto;
  display: flex;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.color-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-chip:hover, .color-chip.active {
  transform: scale(1.3);
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 12px var(--focus-yellow);
}

.color-chip.cyan { background: var(--primary-color); }
.color-chip.purple { background: #c084fc; }
.color-chip.gold { background: #fbbf24; }
.color-chip.red { background: #f43f5e; }

/* Showroom Bottom Telemetry Deck */
.showroom-bottom-deck {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 22, 0.45) 35%, rgba(9, 13, 22, 0.9) 100%);
}

.telemetry-metrics {
  display: flex;
  gap: 0.85rem;
  pointer-events: auto;
  white-space: nowrap;
}

.telemetry-gauge {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 0.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.telemetry-gauge:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.gauge-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.gauge-val {
  font-family: var(--font-family);
  font-size: 1.38rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

#hud-live-speed {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

#hud-live-gear {
  color: #fb923c !important;
  text-shadow: 0 0 14px rgba(251, 146, 60, 0.5);
}

/* Animal Island 3D Red Flame Throttle Button */
.btn-rev-throttle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 55%, #be123c 100%);
  border: 2px solid #fda4af;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-family);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 5px 0 #9f1239, 0 8px 25px rgba(225, 29, 72, 0.45);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-rev-throttle:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 55%, #e11d48 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #9f1239, 0 12px 30px rgba(225, 29, 72, 0.55);
}

.btn-rev-throttle:active, .btn-rev-throttle.active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9f1239, 0 4px 14px rgba(225, 29, 72, 0.35);
}

/* -------------------- 7. Animal Island Swallowtail Ribbon Title (<Title>) -------------------- */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background: rgba(240, 232, 216, 0.45);
  border-top: 2.5px solid var(--border-subtle);
  border-bottom: 2.5px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #6fba2c;
  background: #eef8e5;
  border: 1.5px solid #8ac68a;
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Swallowtail Ribbon Title Banner (燕尾飘带横幅标题) */
.island-ribbon-title {
  --rf: #27d039; /* front 正面 */
  --rb: #20992a; /* back 燕尾 */
  --rk: #115017; /* fold 折角阴影 */
  --rt: #ffffff; /* text 文字色 */

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.3em;
  padding: 0 2em;
  font-size: 24px;
  font-weight: 900;
  color: var(--rt);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 10px rgba(61, 52, 40, 0.12));
}

.island-ribbon-title.teal-ribbon {
  --rf: #19c8b9;
  --rb: #11a89b;
  --rk: #086b62;
  --rt: #ffffff;
}

.island-ribbon-title.yellow-ribbon {
  --rf: #f7cd67;
  --rb: #d4a030;
  --rk: #8a6010;
  --rt: #725d42;
}

.island-ribbon-title.pink-ribbon {
  --rf: #f8a6b2;
  --rb: #d97585;
  --rk: #8c3543;
  --rt: #ffffff;
}

.island-ribbon-title.purple-ribbon {
  --rf: #b77dee;
  --rb: #9050d0;
  --rk: #5a1a9a;
  --rt: #ffffff;
}

.island-ribbon-title.blue-ribbon {
  --rf: #889df0;
  --rb: #677ed6;
  --rk: #3b50a3;
  --rt: #ffffff;
}

/* 燕尾左/右 */
.ribbon-back-left, .ribbon-back-right {
  position: absolute;
  width: 1.8em;
  height: 1.8em;
  background: var(--rb);
  bottom: -0.42em;
  z-index: 1;
}

.ribbon-back-left {
  left: -0.9em;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 30% 50%, 0% 0%);
}

.ribbon-back-right {
  right: -0.9em;
  clip-path: polygon(0% 0%, 100% 0%, 70% 50%, 100% 100%, 0% 100%);
}

/* 折角阴影 */
.ribbon-fold-left, .ribbon-fold-right {
  position: absolute;
  bottom: -0.42em;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 2;
}

.ribbon-fold-left {
  left: 0.05em;
  border-width: 0 0.95em 0.45em 0;
  border-color: transparent var(--rk) transparent transparent;
}

.ribbon-fold-right {
  right: 0.05em;
  border-width: 0 0 0.45em 0.95em;
  border-color: transparent transparent transparent var(--rk);
}

/* 正面主体 */
.ribbon-front {
  position: absolute;
  inset: 0 0.1em;
  background: var(--rf);
  border-radius: 0.25em;
  transform: perspective(12em) rotateX(3deg);
  z-index: 3;
}

.ribbon-text {
  position: relative;
  z-index: 4;
  font-weight: 900;
  white-space: nowrap;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.75;
  font-weight: 500;
}

/* -------------------- 8. Animal Island Pattern Cards (<Card pattern="...">) -------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* 动森波点墙纸卡片 */
.feature-card {
  border-radius: 24px;
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border-light);
  background: var(--bg-content);
  box-shadow: 0 4px 0 0 #d4c9b4, var(--shadow-soft-sm);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 0 #d4c9b4, var(--shadow-soft-base);
}

/* Pattern: Teal */
.pattern-teal {
  background: 
    radial-gradient(circle, rgba(130, 213, 187, 0.2) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(25, 200, 185, 0.12) 1px, transparent 1px) 6px 6px/13px 13px,
    #e8f8f4;
  border-color: #82d5bb;
}

/* Pattern: Pink */
.pattern-pink {
  background: 
    radial-gradient(circle, rgba(248, 166, 178, 0.2) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(255, 200, 210, 0.12) 1px, transparent 1px) 6px 6px/13px 13px,
    #fde8ec;
  border-color: #f8a6b2;
}

/* Pattern: Yellow */
.pattern-yellow {
  background: 
    radial-gradient(circle, rgba(247, 205, 103, 0.22) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(255, 220, 140, 0.14) 1px, transparent 1px) 6px 6px/13px 13px,
    #fef6dc;
  border-color: #f7cd67;
}

/* Pattern: Blue */
.pattern-blue {
  background: 
    radial-gradient(circle, rgba(136, 157, 240, 0.2) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(180, 200, 255, 0.12) 1px, transparent 1px) 6px 6px/13px 13px,
    #edf0fe;
  border-color: #889df0;
}

/* Pattern: Green */
.pattern-green {
  background: 
    radial-gradient(circle, rgba(138, 198, 138, 0.22) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(170, 220, 170, 0.14) 1px, transparent 1px) 6px 6px/13px 13px,
    #ebf7eb;
  border-color: #8ac68a;
}

/* Pattern: Orange */
.pattern-orange {
  background: 
    radial-gradient(circle, rgba(229, 146, 102, 0.2) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(255, 180, 140, 0.12) 1px, transparent 1px) 6px 6px/13px 13px,
    #fceee6;
  border-color: #e59266;
}

/* Pattern: Purple */
.pattern-purple {
  background: 
    radial-gradient(circle, rgba(186, 104, 200, 0.2) 1.5px, transparent 1.5px) 0 0/26px 26px,
    radial-gradient(circle, rgba(216, 180, 254, 0.14) 1px, transparent 1px) 6px 6px/13px 13px,
    #f8effe;
  border-color: #d8b4fe;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid var(--border-light);
  color: var(--text-main);
  margin-bottom: 1.35rem;
  box-shadow: 0 3px 0 0 #d4c9b4;
  font-size: 26px;
}

.feature-title {
  font-family: var(--font-family);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-tech-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  align-self: flex-start;
  white-space: nowrap;
  box-shadow: 0 2px 0 0 #d4c9b4;
}

/* -------------------- 9. Animal Island Handfeel Workbench -------------------- */
.configurator-wrapper {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-content);
  border: 3px solid var(--border-light);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 6px 0 0 #d4c9b4, var(--shadow-soft-lg);
}

.config-editor-panel {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Presets Bar */
.presets-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed var(--border-subtle);
}

.presets-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.presets-label {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.presets-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.presets-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.preset-btn {
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 2px solid var(--border-light);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 0 0 #d4c9b4;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.preset-btn:hover {
  background: var(--primary-bg);
  border-color: var(--primary-color);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.preset-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-active);
  color: #ffffff;
  box-shadow: 0 4px 0 0 var(--primary-active);
}

/* 2-Column Balanced Cards for Power and Drift */
.config-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.config-group-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 3px 0 0 #d4c9b4;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.config-group-title {
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.65rem;
  white-space: nowrap;
  border-bottom: 2px dashed var(--border-subtle);
}

.group-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.control-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
}

.control-val-badge {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-bg);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary-color);
  white-space: nowrap;
}

/* Cute Range Slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #e8dcc8;
  border-radius: var(--radius-pill);
  outline: none;
  border: 1.5px solid var(--border-light);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 0 0 var(--primary-active), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-hover);
}

/* Toggles Card */
.config-toggles-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 3px 0 0 #d4c9b4;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.control-toggle-card {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--bg-content);
  border: 2px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 2px 0 0 #d4c9b4;
  gap: 1rem;
  transition: all 0.2s ease;
}

.control-toggle-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.toggle-icon-badge {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 0 0 #d4c9b4;
  flex-shrink: 0;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.toggle-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
}

.toggle-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Bulletproof Modern Toggle Switch */
.switch-wrapper,
.island-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.switch-wrapper input[type="checkbox"],
.island-switch input[type="checkbox"],
.island-switch input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.custom-switch-track,
.switch-slider {
  display: block;
  position: relative;
  width: 52px;
  height: 28px;
  background-color: #dcd1be;
  border-radius: 30px;
  border: 2px solid var(--border-light);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.switch-wrapper input:checked + .custom-switch-track,
.island-switch input:checked + .switch-slider {
  background-color: var(--primary-color);
  border-color: var(--primary-active);
}

.switch-wrapper input:checked + .custom-switch-track .custom-switch-thumb {
  transform: translateX(24px);
}

@media (max-width: 860px) {
  .config-columns-grid,
  .toggles-grid,
  .presets-pills {
    grid-template-columns: 1fr;
  }
  .config-editor-panel {
    padding: 1.5rem;
  }
}

/* -------------------- 10. Database Search & Explorer -------------------- */
.db-explorer-container {
  background: var(--bg-content);
  border: 3px solid var(--border-light);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 6px 0 0 #d4c9b4, var(--shadow-soft-lg);
}

.db-toolbar {
  padding: 1.75rem 2.25rem;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.db-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
}

.db-search-box svg {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.db-search-input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  background: var(--bg-input);
  border: 2.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.db-search-input:focus {
  border-color: var(--focus-yellow);
  box-shadow: 0 3px 0 0 #e0b800, 0 0 0 3px rgba(255, 204, 0, 0.18);
}

.db-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  white-space: nowrap;
}

.db-filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 2px solid var(--border-light);
  color: var(--text-body);
  white-space: nowrap;
  box-shadow: 0 3px 0 0 #d4c9b4;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.db-filter-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.db-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-active);
  color: #ffffff;
  box-shadow: 0 4px 0 0 var(--primary-active);
}

.db-items-grid {
  padding: 2.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
  max-height: 580px;
  overflow-y: auto;
}

.db-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 3px 0 0 #d4c9b4;
  transition: all 0.2s ease;
}

.db-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 0 #d4c9b4;
}

.db-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.db-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

/* Nook Grade Capsule Tags (<Tag>) */
.grade-badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  white-space: nowrap;
}

.grade-S { background: #fde8ec; color: #fc736d; border: 1.5px solid #fc736d; }
.grade-T1, .grade-T2, .grade-T3 { background: #fef6dc; color: #e59266; border: 1.5px solid #f7cd67; }
.grade-A { background: #f4ecfd; color: #b77dee; border: 1.5px solid #b77dee; }
.grade-B { background: #e8f8f4; color: #19c8b9; border: 1.5px solid #82d5bb; }
.grade-C, .grade-D { background: #f0e8d8; color: #9a835a; border: 1.5px solid #c4b89e; }
.grade-skin { background: #fceee6; color: #e18c6f; border: 1.5px solid #f8a6b2; }
.grade-pet { background: #ebf7eb; color: #6fba2c; border: 1.5px solid #8ac68a; }

.db-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.db-code-val {
  color: var(--primary-dark);
  font-weight: 800;
}

.btn-copy-id {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  box-shadow: 0 2px 0 0 #d4c9b4;
  transition: all 0.15s ease;
}

.btn-copy-id:hover {
  background: var(--primary-bg);
  border-color: var(--primary-color);
  color: var(--primary-dark);
}

.db-status-bar {
  padding: 1rem 2.25rem;
  background: #ffffff;
  border-top: 2px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

/* -------------------- 11. Pet Evolution & Gem Matrix -------------------- */
.gem-matrix-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.gem-slots-card, .gem-stats-summary {
  background: var(--bg-content);
  border: 3px solid var(--border-light);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 6px 0 0 #d4c9b4, var(--shadow-soft-sm);
}

.gem-slot-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gem-slot-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 2px 0 0 #d4c9b4;
  min-width: 0;
  max-width: 100%;
}

.slot-index {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  width: 32px;
  white-space: nowrap;
  flex-shrink: 0;
}

.slot-select {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-select:focus {
  border-color: var(--focus-yellow);
}

.gem-stat-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gem-stat-cell {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 0 0 #d4c9b4;
  min-width: 0;
}

.gem-stat-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 1.35;
}

.gem-stat-val {
  font-family: var(--font-family);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary-dark);
  word-break: break-word;
}

/* -------------------- 12. Download Matrix & 3-Step Guide -------------------- */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.release-card {
  background: var(--bg-content);
  border: 3px solid var(--border-light);
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 0 0 #d4c9b4, var(--shadow-soft-sm);
  transition: transform 0.2s ease;
}

.release-card:hover {
  transform: translateY(-3px);
}

.release-card.featured {
  border-color: var(--primary-color);
  background: #f0faf8;
}

.release-badge-top {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--focus-yellow);
  border: 1.5px solid #e0b800;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
}

.release-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 1.35rem;
  box-shadow: 0 3px 0 0 #d4c9b4;
  font-size: 24px;
}

.release-name {
  font-family: var(--font-family);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.release-meta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

.release-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* -------------------- 13. Animal Island FAQ Accordion (<Collapse>) -------------------- */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 2.5px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 0 0 #d4c9b4;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary-color);
}

.faq-question-btn {
  width: 100%;
  padding: 1.4rem 1.85rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.15s ease;
}

.faq-question-btn:hover {
  color: var(--primary-dark);
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 1.5px solid var(--primary-color);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--primary-color);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.85rem;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.85rem 1.5rem 1.85rem;
}

/* -------------------- 14. Community Box (<Wallet>) -------------------- */
.community-box {
  background: var(--bg-content);
  border: 3.5px solid var(--border-light);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  box-shadow: 0 8px 0 0 #d4c9b4, var(--shadow-soft-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.community-title {
  font-family: var(--font-family);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.community-desc {
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* 动森钱袋/胶囊样式 QQ 群号 */
.nook-wallet-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.4rem;
  background: #b3a046;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(91, 78, 30, 0.25), 0 3px 0 0 #8e7d2c;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bot-commands-panel {
  background: #ffffff;
  border: 2.5px solid var(--border-light);
  border-radius: 22px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 0 4px 0 0 #d4c9b4;
}

.bot-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.bot-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bot-cmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-main);
  border-radius: 16px;
  border: 1.5px solid var(--border-light);
  white-space: nowrap;
}

.cmd-badge {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.cmd-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* -------------------- 15. Animal Island Footer (<Footer type="tree" />) -------------------- */
.site-footer {
  background: #ffffff;
  border-top: 3px solid var(--border-light);
  padding: 4rem 0 2.5rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
}

.footer-tree-silhouette {
  width: 100%;
  height: 40px;
  background: repeating-linear-gradient(90deg, #6fba2c, #6fba2c 20px, #8ac68a 20px, #8ac68a 40px);
  clip-path: polygon(0 100%, 2% 40%, 4% 100%, 6% 30%, 8% 100%, 10% 50%, 12% 100%, 14% 35%, 16% 100%, 18% 45%, 20% 100%, 22% 30%, 24% 100%, 26% 50%, 28% 100%, 30% 35%, 32% 100%, 34% 45%, 36% 100%, 38% 30%, 40% 100%, 42% 50%, 44% 100%, 46% 35%, 48% 100%, 50% 45%, 52% 100%, 54% 30%, 56% 100%, 58% 50%, 60% 100%, 62% 35%, 64% 100%, 66% 45%, 68% 100%, 70% 30%, 72% 100%, 74% 50%, 76% 100%, 78% 35%, 80% 100%, 82% 45%, 84% 100%, 86% 30%, 88% 100%, 90% 50%, 92% 100%, 94% 35%, 96% 100%, 98% 45%, 100% 100%);
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col-title {
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 2px dashed var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-beian {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.footer-beian a:hover {
  color: var(--text-main);
}

/* -------------------- 16. Toast Notifications -------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 2.5px solid var(--primary-color);
  box-shadow: 0 4px 0 0 var(--primary-active), var(--shadow-soft-base);
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(20px);
  opacity: 0;
  animation: toast-in 0.25s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toast-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* -------------------- 17. Responsive -------------------- */
@media (max-width: 1200px) {
  .nav-menu { gap: 0.2rem; }
  .nav-link { padding: 0.4rem 0.65rem; font-size: 0.86rem; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .showroom-spatial-slab { height: 420px; }
  .features-grid, .releases-grid { grid-template-columns: repeat(2, 1fr); }
  .gem-matrix-layout, .community-box { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  /* Global Container & Spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }

  /* Ribbon Titles */
  .island-ribbon-title {
    font-size: 16px;
    padding: 0 1.2em;
    height: 2.3em;
    max-width: 94vw;
  }
  .ribbon-text {
    font-size: 14.5px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .section-desc {
    font-size: 0.92rem;
    padding: 0 0.5rem;
  }

  /* Header Dock */
  .header-dock {
    margin: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 20px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.62rem;
  }
  .btn-island-cta {
    display: none;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 2.5px solid var(--border-light);
    box-shadow: var(--shadow-soft-lg);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .btn-glass-primary, .btn-glass-secondary {
    width: 100%;
    justify-content: center;
    height: 46px;
    font-size: 0.98rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .stat-glass-card {
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
  }
  .stat-value {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .showroom-spatial-slab {
    height: 440px;
    border-radius: 22px;
  }
  .showroom-top-controls {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }
  .showroom-pill-badge {
    font-size: 0.74rem;
    padding: 0.35rem 0.7rem;
  }
  .color-chips-group {
    padding: 0.25rem 0.5rem;
    gap: 0.45rem;
  }
  .color-chip {
    width: 22px;
    height: 22px;
  }
  .showroom-bottom-deck {
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    pointer-events: auto;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 22, 0.65) 25%, rgba(9, 13, 22, 0.95) 100%);
  }
  .telemetry-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    width: 100%;
  }
  .telemetry-gauge {
    padding: 0.5rem 0.35rem;
    border-radius: 12px;
    text-align: center;
    align-items: center;
    min-width: 0;
  }
  .gauge-title {
    font-size: 0.62rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .gauge-val {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .btn-rev-throttle {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Features Grid */
  .features-grid, .releases-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .feature-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  /* Handfeel Configurator (Section 3) */
  .config-editor-panel {
    padding: 1.25rem 0.85rem;
    border-radius: 22px;
  }
  .presets-bar {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }
  .presets-bar-title {
    font-size: 0.92rem;
  }
  .presets-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .preset-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.45rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .config-columns-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .config-group-card,
  .config-toggles-card {
    padding: 1.25rem 0.95rem;
    border-radius: 18px;
  }
  .config-group-title {
    font-size: 1rem;
  }
  .control-header {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .control-label {
    font-size: 0.84rem;
  }
  .control-val-badge {
    font-size: 0.8rem;
  }
  .toggles-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .control-toggle-card {
    padding: 0.85rem 0.75rem;
    gap: 0.65rem;
  }
  .toggle-icon-badge {
    width: 38px;
    height: 38px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .toggle-info {
    min-width: 0;
    flex: 1;
  }
  .toggle-title {
    font-size: 0.92rem;
  }
  .toggle-desc {
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: normal;
  }

  /* Database Explorer (Section 4) */
  .db-explorer-container {
    border-radius: 22px;
  }
  .db-toolbar {
    padding: 1rem 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .db-search-box {
    max-width: 100%;
    width: 100%;
  }
  .db-filter-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    width: 100%;
  }
  .db-filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }
  .db-items-grid {
    padding: 1rem 0.85rem;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-height: 480px;
  }
  .db-card {
    padding: 1rem;
    border-radius: 16px;
  }
  .db-status-bar {
    padding: 0.85rem 1rem;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.82rem;
  }

  /* Pet Evolution & Gem Matrix (Section 5) */
  .gem-slots-card, .gem-stats-summary {
    padding: 1.35rem 0.95rem;
    border-radius: 22px;
  }
  .gem-slot-row {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
    border-radius: 14px;
    min-width: 0;
    width: 100%;
  }
  .slot-index {
    font-size: 1.05rem;
    width: 26px;
    flex-shrink: 0;
  }
  .slot-select {
    font-size: 0.82rem;
    padding: 0.45rem 0.65rem;
  }
  .gem-stat-box {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
  }
  .gem-stat-cell {
    padding: 0.85rem 0.65rem;
    border-radius: 14px;
    min-width: 0;
  }
  .gem-stat-title {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .gem-stat-val {
    font-size: 1.25rem;
  }

  /* Releases / 3 Steps (Section 6) */
  .release-card {
    padding: 1.5rem 1.15rem;
    border-radius: 22px;
  }
  .release-name {
    font-size: 1.25rem;
  }
  .release-meta {
    font-size: 0.82rem;
    white-space: normal;
  }
  .release-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* FAQ (Section 7) */
  .faq-item {
    border-radius: 16px;
  }
  .faq-question-btn {
    padding: 1.1rem 1.15rem;
    font-size: 0.96rem;
    gap: 0.65rem;
  }
  .faq-toggle-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .faq-answer {
    padding: 0.85rem 1.15rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Community (Section 8) */
  .community-box {
    padding: 1.85rem 1.15rem;
    border-radius: 24px;
    gap: 2rem;
  }
  .community-title {
    font-size: 1.65rem;
  }
  .community-desc {
    font-size: 0.92rem;
    margin: 0.75rem 0 1.25rem 0 !important;
  }
  .nook-wallet-capsule {
    font-size: 1.15rem;
    padding: 0.55rem 1rem;
    width: 100%;
    justify-content: center;
  }
  .community-info > div:last-child {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem !important;
  }
  .community-info .btn-copy-id {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem !important;
  }
  .bot-commands-panel {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }
  .bot-cmd-row {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }
  .cmd-desc {
    font-size: 0.82rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    white-space: normal;
    font-size: 0.82rem;
  }
  .footer-beian {
    flex-direction: column;
    gap: 0.35rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .island-ribbon-title {
    font-size: 14px;
    padding: 0 0.8em;
    max-width: 96vw;
  }
  .ribbon-text {
    font-size: 12.5px;
  }
  .showroom-spatial-slab {
    height: 420px;
  }
  .presets-pills {
    grid-template-columns: 1fr;
  }
  .gem-stat-box {
    grid-template-columns: 1fr;
  }
}
