/* ==========================================================
   Google Fonts — 通过 HTML <link> 加载，此处不再重复 @import
   ========================================================== */

/* ==========================================================
   0. Design Tokens
   ========================================================== */
:root {
  --color-bg:          #FAFAFA;
  --color-text:        #1A1A2E;
  --color-text-sub:    #555566;
  --color-accent-gold: rgba(212, 175, 55, 0.45);
  --color-accent-cyan: rgba(0, 210, 211, 0.35);
  --color-accent-rose: rgba(255, 120, 180, 0.25);
  --glass-bg:          rgba(255, 255, 255, 0.65);
  --glass-bg-card:     rgba(255, 255, 255, 0.50);
  --glass-bg-btn:      rgba(255, 255, 255, 0.40);
  --glass-border:      1px solid rgba(0, 0, 0, 0.05);
  --glass-blur-nav:    blur(24px);
  --glass-blur-btn:    blur(16px);
  --glass-blur-card:   blur(20px);
  --shadow-nav:
    0 1px 2px rgba(0,0,0,0.03),
    0 4px 8px rgba(0,0,0,0.02),
    0 8px 24px rgba(0,0,0,0.03),
    0 20px 56px rgba(0,0,0,0.025);
  --shadow-btn:
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.02),
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 8px rgba(0,0,0,0.03),
    0 8px 32px rgba(0,0,0,0.05);
  --shadow-btn-hover:
    inset 0 2px 6px rgba(255,255,255,0.95),
    inset 0 -2px 4px rgba(0,0,0,0.03),
    0 2px 4px rgba(0,0,0,0.05),
    0 8px 16px rgba(0,0,0,0.06),
    0 20px 56px rgba(0,0,0,0.09);
  --shadow-card:
    0 1px 2px rgba(0,0,0,0.02),
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.02),
    0 8px 16px rgba(0,0,0,0.025),
    0 20px 56px rgba(0,0,0,0.035);
  --shadow-card-hover:
    0 2px 4px rgba(0,0,0,0.03),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 24px rgba(0,0,0,0.04),
    0 28px 72px rgba(0,0,0,0.07);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --radius-pill: 50px;
  --radius-card: 24px;
  --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================
   1. Reset
   ========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6; overflow-x: hidden;
  position: relative; min-height: 100vh;
  /* 移动端触摸优化 */
  -webkit-tap-highlight-color: transparent;
  /* 安全区域 */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* SVG 图标通用样式 */
.icon {
  display: inline-block; vertical-align: middle;
  width: 1em; height: 1em; flex-shrink: 0;
}
.icon--card { width: 28px; height: 28px; }

/* ==========================================================
   2. 弥散光晕
   ========================================================== */
.ambient-light {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.ambient-light__blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); will-change: transform;
}
.ambient-light__blob--gold {
  width: 750px; height: 750px;
  background: var(--color-accent-gold);
  top: -12%; left: -8%;
  animation: float-a 18s ease-in-out infinite alternate;
}
.ambient-light__blob--cyan {
  width: 700px; height: 700px;
  background: var(--color-accent-cyan);
  bottom: -8%; right: -6%;
  animation: float-b 22s ease-in-out infinite alternate-reverse;
}
.ambient-light__blob--rose {
  width: 550px; height: 550px;
  background: var(--color-accent-rose);
  top: 38%; left: 48%; transform: translateX(-50%);
  animation: float-c 15s ease-in-out infinite alternate;
}
@keyframes float-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.10); }
}
@keyframes float-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.06); }
}
@keyframes float-c {
  0%   { transform: translateX(-50%) translate(0, 0) scale(1); }
  100% { transform: translateX(-50%) translate(30px, -50px) scale(1.12); }
}

/* ==========================================================
   3. 容器
   ========================================================== */
.page-wrapper { position: relative; z-index: 1; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================
   4. 导航栏
   ========================================================== */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1100px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-nav);
  -webkit-backdrop-filter: var(--glass-blur-nav);
  border: var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  transition: var(--transition-base), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.navbar.is-hidden {
  transform: translateX(-50%) translateY(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}
.navbar::before {
  content: ''; position: absolute;
  top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.9) 70%, transparent 100%);
  border-radius: 1px;
}
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--color-text); flex-shrink: 0;
}
.navbar__logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #d4af37, #00d2d3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 900;
  box-shadow: 0 2px 8px rgba(212,175,55,0.3), 0 4px 16px rgba(0,210,211,0.15);
}
.navbar__links {
  display: flex; align-items: center; gap: 4px; list-style: none;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-pill);
  padding: 4px 5px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), inset 0 -1px 2px rgba(255,255,255,0.6);
}
.navbar__links a {
  display: block; padding: 8px 22px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--color-text-sub);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  position: relative; white-space: nowrap;
  background: transparent; border: 1px solid transparent;
}
.navbar__links a:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.70);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.9), inset 0 -1px 2px rgba(0,0,0,0.015), 0 2px 12px rgba(0,0,0,0.05);
}
.navbar__links a.is-active {
  color: var(--color-text);
  background: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.80);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.9), inset 0 -1px 3px rgba(0,0,0,0.02), 0 2px 12px rgba(0,0,0,0.06);
}
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: var(--transition-base);
}

/* ==========================================================
   5. 英雄首屏
   ========================================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; padding-bottom: 60px;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; width: 100%;
}
.hero__content { max-width: 560px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; font-size: 0.78rem; font-weight: 600;
  color: var(--color-text-sub);
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 24px; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.03);
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}
.hero__badge--offline .hero__badge-dot {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248,113,113,0.6);
  animation: none;
}
.hero__badge-sep { opacity: 0.35; margin: 0 2px; }
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--color-text);
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #d4af37 0%, #00d2d3 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 1.1rem; color: var(--color-text-sub);
  line-height: 1.7; margin-bottom: 40px; max-width: 480px;
}
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__buttons .btn-glass { min-width: 160px; justify-content: center; }

.btn-glass {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 28px; font-size: 0.88rem;
  font-weight: 600; font-family: var(--font-family);
  border: none; cursor: pointer; color: var(--color-text);
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  position: relative; overflow: hidden;
  background: var(--glass-bg-btn);
  backdrop-filter: var(--glass-blur-btn); -webkit-backdrop-filter: var(--glass-blur-btn);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-btn);
}
.btn-glass .icon { width: 16px; height: 16px; }
.btn-glass::before {
  content: ''; position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  border-radius: 1px;
}
.btn-glass:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
  background: rgba(255,255,255,0.52);
}
.btn-glass:active { transform: translateY(-1px) scale(0.98); }
.btn-glass--primary {
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(0,210,211,0.08)), var(--glass-bg-btn);
}
.btn-glass--assistant {
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(0,210,211,0.3);
}
.btn-glass--assistant:hover {
  background: rgba(0,210,211,0.12);
  border-color: rgba(0,210,211,0.5);
  box-shadow: 0 4px 24px rgba(0,210,211,0.15);
}
.btn-badge {
  position: absolute; top: -8px; right: -10px;
  padding: 2px 8px; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #00d2d3, #0abde3);
  border-radius: 20px; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,210,211,0.3);
  margin-left: 4px; line-height: 1.4;
}

/* 3D 模型区 */
.hero__visual {
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero__model-container {
  width: 100%; max-width: 520px; aspect-ratio: 1 / 1;
  border-radius: 40px; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
#hero-3d-canvas {
  width: 100%; height: 100%;
  position: absolute; inset: 0; z-index: 1; border-radius: 40px;
}
.hero__interact-hint {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  z-index: 10; pointer-events: none;
  font-size: 0.72rem; color: rgba(0,0,0,0.35); letter-spacing: 0.04em;
  background: rgba(255,255,255,0.45); backdrop-filter: blur(8px);
  padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.06);
  transition: opacity 0.8s ease; animation: hintPulse 3s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.hero__interact-hint.hidden { opacity: 0; animation: none; pointer-events: none; visibility: hidden; }
.hero__model-shadow {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  width: 50%; height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.04) 40%, transparent 72%);
  border-radius: 50%; filter: blur(6px); z-index: 0;
  animation: shadow-pulse 6s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
  50%      { transform: translateX(-50%) scaleX(0.82); opacity: 0.65; }
}
.hero__model-glow {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, rgba(0,210,211,0.10) 40%, transparent 70%);
  filter: blur(50px); z-index: 0; animation: glow-pulse 8s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; }
}
.hero__particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden; border-radius: 40px;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20%) scale(1); opacity: 0; }
}

/* ==========================================================
   5b. 统计数据条
   ========================================================== */
.stats-strip {
  padding: 40px 0 60px;
  position: relative;
}
.stats-strip__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.06) 20%, rgba(0,0,0,0.06) 80%, transparent 100%);
  margin: 0 auto;
  max-width: 800px;
}
.stats-strip__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 0;
}
.stats-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stats-strip__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stats-strip__number {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-text) 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stats-strip__unit {
  font-size: 1.6rem;
  font-weight: 800;
  color: #00d2d3;
  margin-left: -4px;
}
.stats-strip__label {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stats-strip__sep {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08), transparent);
  flex-shrink: 0;
}

/* ==========================================================
   5c. 区域分隔装饰
   ========================================================== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.section-divider__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.10);
}
.section-divider__dot:nth-child(2) {
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, rgba(212,175,55,0.4), rgba(0,210,211,0.4));
}

/* ==========================================================
   6. 特色卡片区
   ========================================================== */
.features {
  padding: 80px 0 100px;
}
.features__header {
  text-align: center;
  margin-bottom: 64px;
}
.features__label {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00b4b5;
  background: rgba(0,210,211,0.08);
  border: 1px solid rgba(0,210,211,0.15);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.features__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px;
}
.features__header p {
  font-size: 1.05rem;
  color: var(--color-text-sub);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 44px 36px 40px;
  border-radius: var(--radius-card);
  cursor: default;
  transition: var(--transition-base);
  position: relative;
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur-card);
  -webkit-backdrop-filter: var(--glass-blur-card);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.85), inset 0 -1px 1px rgba(0,0,0,0.01), var(--shadow-card);
  overflow: hidden;
  /* 滚动渐入动画 */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card__number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,0,0,0.03);
  pointer-events: none;
  letter-spacing: -0.04em;
}
.feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  border-radius: 1px;
}
.feature-card::after {
  content: ''; position: absolute;
  bottom: -8px; left: 12%; right: 12%; height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.06) 0%, transparent 70%);
  border-radius: 50%; filter: blur(5px); z-index: -1;
  transition: var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-8px); background: rgba(255,255,255,0.65);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.9), inset 0 -1px 2px rgba(0,0,0,0.015), var(--shadow-card-hover);
}
.feature-card.is-visible:hover {
  transform: translateY(-8px);
}
.feature-card:hover::after {
  bottom: -16px; left: 8%; right: 8%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.09) 0%, transparent 70%);
}
.feature-card__icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(0,210,211,0.08));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.7), 0 2px 8px rgba(0,0,0,0.04);
}
.feature-card__icon .icon { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ==========================================================
   6b. CTA 行动号召区
   ========================================================== */
.cta-section {
  padding: 40px 0 100px;
}
.cta-card {
  text-align: center;
  padding: 72px 40px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(0,210,211,0.04) 100%),
    var(--glass-bg-card);
  backdrop-filter: var(--glass-blur-card);
  -webkit-backdrop-filter: var(--glass-blur-card);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-card p {
  font-size: 1.05rem;
  color: var(--color-text-sub);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-card__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   7. 页脚
   ========================================================== */
.footer {
  padding: 40px 0 32px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-sub);
  border-top: 1px solid rgba(0,0,0,0.04);
  margin-top: 0;
}
.footer a { color: var(--color-text); font-weight: 600; transition: opacity var(--transition-base); }
.footer a:hover { opacity: 0.7; }
.footer .icon { width: 14px; height: 14px; color: #e25555; }

/* ==========================================================
   8. 响应式 — 平板
   ========================================================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero__subtitle { max-width: 520px; }
  .hero__buttons { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__model-container { max-width: 380px; }
  .stats-strip__item { padding: 0 32px; }
  .stats-strip__number { font-size: 2rem; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 56px 28px; }
}

/* ==========================================================
   8b. 响应式 — 手机
   ========================================================== */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }

  /* 导航栏 */
  .navbar { width: calc(100% - 16px); top: 8px; padding: 8px 12px; }
  .navbar__logo { font-size: 1rem; gap: 8px; }
  .navbar__logo-icon { width: 30px; height: 30px; font-size: 0.9rem; border-radius: 8px; }
  .navbar__links {
    display: none; position: absolute; top: calc(100% + 10px); left: 4px; right: 4px;
    flex-direction: column; gap: 2px;
    background: rgba(255,255,255,0.75); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.6); border-radius: 18px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.8), 0 4px 16px rgba(0,0,0,0.05), 0 16px 48px rgba(0,0,0,0.06);
    padding: 6px; z-index: 999;
  }
  .navbar__links.is-open { display: flex; }
  .navbar__links li { width: 100%; }
  .navbar__links a { display: block; padding: 12px 18px; font-size: 0.92rem; border-radius: 14px; }
  .navbar__links a:hover { background: rgba(255,255,255,0.5); }
  .navbar__hamburger { display: flex; }

  /* 英雄首屏 */
  .hero { padding-top: 80px; min-height: auto; padding-bottom: 32px; }
  .hero__title { font-size: 1.85rem; margin-bottom: 14px; }
  .hero__subtitle { font-size: 0.95rem; margin-bottom: 28px; }
  .hero__badge { font-size: 0.72rem; padding: 5px 12px; margin-bottom: 18px; }
  .hero__buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero__buttons .btn-glass { min-width: auto; flex: 0 1 auto; }
  .btn-glass { padding: 10px 20px; font-size: 0.82rem; }
  .hero__model-container { max-width: 260px; }
  .hero__interact-hint { font-size: 0.65rem; padding: 3px 10px; }

  /* 统计条 */
  .stats-strip { padding: 24px 0 36px; }
  .stats-strip__grid { flex-wrap: wrap; gap: 0; padding: 24px 0; }
  .stats-strip__item { padding: 12px 20px; width: 50%; }
  .stats-strip__number { font-size: 1.6rem; }
  .stats-strip__label { font-size: 0.75rem; }
  .stats-strip__sep { display: none; }

  /* 分隔线 */
  .section-divider { margin-bottom: 28px; }

  /* 特色卡片 */
  .features { padding: 48px 0 64px; }
  .features__header { margin-bottom: 36px; }
  .features__header h2 { font-size: 1.4rem; }
  .features__header p { font-size: 0.88rem; }
  .features__label { font-size: 0.65rem; margin-bottom: 14px; }
  .features__grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 22px; border-radius: 20px; }
  .feature-card__number { font-size: 2.2rem; top: 12px; right: 14px; }
  .feature-card__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
  .feature-card__icon .icon { width: 22px; height: 22px; }
  .feature-card h3 { font-size: 1.05rem; }
  .feature-card p { font-size: 0.85rem; }

  /* CTA区 */
  .cta-section { padding: 20px 0 56px; }
  .cta-card { padding: 40px 20px; border-radius: 24px; }
  .cta-card h2 { font-size: 1.3rem; }
  .cta-card p { font-size: 0.9rem; margin-bottom: 24px; }
  .cta-card__buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .cta-card__buttons .btn-glass { flex: 0 1 auto; }

  /* 弥散光晕 - 缩小避免性能问题 */
  .ambient-light__blob--gold { width: 350px; height: 350px; }
  .ambient-light__blob--cyan { width: 320px; height: 320px; }
  .ambient-light__blob--rose { width: 260px; height: 260px; }

  /* 页脚 */
  .footer { font-size: 0.75rem; padding: 24px 0; }

  /* 复制提示 */
  .copy-toast { font-size: 0.8rem; padding: 10px 20px; }
}

/* ==========================================================
   8c. 响应式 — 小屏手机 (iPhone SE 等)
   ========================================================== */
@media (max-width: 375px) {
  html { font-size: 14px; }
  .container { padding: 0 12px; }
  .navbar { width: calc(100% - 12px); top: 6px; padding: 6px 10px; }
  .navbar__logo { font-size: 0.9rem; }
  .navbar__logo-icon { width: 26px; height: 26px; font-size: 0.8rem; }
  .hero { padding-top: 68px; padding-bottom: 24px; }
  .hero__title { font-size: 1.55rem; }
  .hero__subtitle { font-size: 0.88rem; margin-bottom: 22px; }
  .hero__model-container { max-width: 200px; }
  .hero__buttons { gap: 8px; }
  .btn-glass { padding: 9px 16px; font-size: 0.78rem; }
  .feature-card { padding: 22px 16px; }
  .stats-strip__number { font-size: 1.3rem; }
  .stats-strip__item { padding: 8px 16px; }
  .cta-card { padding: 32px 16px; }
}

/* ==========================================================
   8d. 响应式 — 智能手表 (≤280px, 圆形/方形小屏)
   ========================================================== */
@media (max-width: 280px) {
  html { font-size: 12px; }
  body { -webkit-text-size-adjust: none; text-size-adjust: none; }

  /* 隐藏不必要的装饰 */
  .ambient-light, .hero__particles, .hero__model-glow,
  .hero__model-shadow, .hero__interact-hint { display: none; }

  /* 导航 → 简化底部标签栏 */
  .navbar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; max-width: 100%;
    transform: none; border-radius: 0;
    padding: 4px 2px; gap: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -1px 8px rgba(0,0,0,0.08);
    justify-content: center;
  }
  .navbar.is-hidden { transform: none; opacity: 1; pointer-events: auto; }
  .navbar::before { display: none; }
  .navbar__logo { display: none; }
  .navbar__hamburger { display: none; }
  .navbar__links {
    display: flex !important; position: static;
    flex-direction: row; gap: 0;
    background: none; border: none; box-shadow: none;
    padding: 0; border-radius: 0; width: 100%;
    justify-content: space-around;
  }
  .navbar__links li { width: auto; flex: 1; }
  .navbar__links a {
    display: flex; align-items: center; justify-content: center;
    padding: 6px 4px; font-size: 0.7rem; border-radius: 8px;
    font-weight: 600; text-align: center;
  }

  /* 页面需要底部留白给导航 */
  .page-wrapper { padding-bottom: 44px; }

  /* 英雄首屏 */
  .hero { padding-top: 8px; padding-bottom: 12px; min-height: auto; }
  .hero__inner { gap: 12px; }
  .hero__badge { font-size: 0.62rem; padding: 3px 8px; margin-bottom: 8px; }
  .hero__title { font-size: 1.2rem; margin-bottom: 6px; line-height: 1.2; }
  .hero__subtitle { font-size: 0.72rem; margin-bottom: 12px; line-height: 1.5; max-width: 100%; }
  .hero__buttons { gap: 6px; }
  .btn-glass { padding: 8px 12px; font-size: 0.7rem; border-radius: 16px; }
  .btn-badge { font-size: 0.5rem; padding: 1px 5px; top: -5px; right: -5px; }
  .hero__visual { display: none; }

  /* 统计条 */
  .stats-strip { padding: 8px 0 12px; }
  .stats-strip__divider { display: none; }
  .stats-strip__grid { padding: 8px 0; }
  .stats-strip__item { padding: 6px 8px; }
  .stats-strip__number { font-size: 1rem; }
  .stats-strip__label { font-size: 0.6rem; }

  /* 分隔线 */
  .section-divider { margin-bottom: 12px; }

  /* 特色卡片 */
  .features { padding: 16px 0 24px; }
  .features__header { margin-bottom: 12px; }
  .features__header h2 { font-size: 1rem; margin-bottom: 4px; }
  .features__header p { font-size: 0.72rem; }
  .features__label { font-size: 0.55rem; margin-bottom: 8px; padding: 3px 10px; }
  .features__grid { gap: 8px; }
  .feature-card { padding: 14px 12px; border-radius: 14px; }
  .feature-card__number { display: none; }
  .feature-card__icon { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 8px; }
  .feature-card__icon .icon { width: 16px; height: 16px; }
  .feature-card h3 { font-size: 0.85rem; margin-bottom: 4px; }
  .feature-card p { font-size: 0.7rem; line-height: 1.45; }

  /* CTA区 */
  .cta-section { padding: 8px 0 16px; }
  .cta-card { padding: 20px 12px; border-radius: 14px; }
  .cta-card h2 { font-size: 0.9rem; }
  .cta-card p { font-size: 0.65rem; margin-bottom: 12px; }
  .cta-card__buttons { gap: 6px; }

  /* 页脚 */
  .footer { font-size: 0.65rem; padding: 12px 0; }

  /* 复制提示 */
  .copy-toast { font-size: 0.7rem; padding: 6px 12px; border-radius: 12px; }
}

/* ==========================================================
   9. 复制提示
   ========================================================== */
.copy-toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateY(12px);
  padding: 12px 28px; background: rgba(255,255,255,0.70);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 4px 12px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.07);
  font-size: 0.88rem; font-weight: 600; color: var(--color-text);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; z-index: 9999;
  display: flex; align-items: center; gap: 8px;
}
.copy-toast .icon { width: 16px; height: 16px; color: #34d399; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, -50%) translateY(0); }

/* ==========================================================
   10. AI Studio 页面
   ========================================================== */
.ai-studio {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
  background: #f0f4f9;
}

/* ── 清空对话浮动按钮 ── */
.ai-studio__clear-float {
  position: absolute;
  top: 12px; right: 20px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sub);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ai-studio__clear-float:hover {
  color: #d93025;
  border-color: rgba(217,48,37,0.3);
  background: rgba(217,48,37,0.05);
}

/* ── 模型选择器（输入框内） ── */
.ai-studio__model-select-wrap {
  position: relative;
}
.ai-studio__model-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: rgba(0,0,0,0.5);
  font-size: 0.76rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
}
.ai-studio__model-btn:hover {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.7);
}
.ai-studio__model-arrow {
  transition: transform 0.2s;
}
.ai-studio__model-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08);
  z-index: 100;
  padding: 6px 0;
  animation: dropUp 0.2s ease;
}
@keyframes dropUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-studio__model-group {
  padding: 4px 0;
}
.ai-studio__model-group + .ai-studio__model-group {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ai-studio__model-group-label {
  padding: 6px 16px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-studio__model-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.82rem;
  font-family: var(--font-family);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s;
}
.ai-studio__model-item:hover {
  background: rgba(66,133,244,0.06);
}
.ai-studio__model-item.active {
  background: rgba(66,133,244,0.1);
  color: #4285f4;
  font-weight: 600;
}

/* ── 工具按钮（图片、语音） ── */
.ai-studio__tool-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(0,0,0,0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.ai-studio__tool-btn:hover {
  color: #4285f4;
  background: rgba(66,133,244,0.08);
}
.ai-studio__tool-btn.recording {
  color: #d93025;
  background: rgba(217,48,37,0.1);
  animation: pulse-recording 1.5s ease-in-out infinite;
}
@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,48,37,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(217,48,37,0); }
}

/* ── 附件预览 ── */
.ai-studio__attachments {
  padding: 0 24px;
  max-width: 820px;
  margin: 0 auto;
}
.ai-studio__attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 24px 0;
}
.ai-studio__attach-item {
  position: relative;
  display: inline-block;
}
.ai-studio__attach-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
}
.ai-studio__attach-remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: #d93025;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.ai-studio__attach-remove:hover {
  transform: scale(1.15);
}

/* ── 消息内音频 ── */
.ai-studio__msg-audio {
  margin-top: 10px;
}
.ai-studio__msg-audio audio {
  width: 100%;
  max-width: 360px;
  height: 36px;
  border-radius: 18px;
}

/* ── TTS 朗读按钮 ── */
.ai-studio__tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  background: transparent;
  color: rgba(0,0,0,0.4);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-studio__tts-btn:hover {
  color: #4285f4;
  border-color: rgba(66,133,244,0.3);
  background: rgba(66,133,244,0.05);
}

/* ── 主内容区 ── */
.ai-studio__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

/* ── 空状态欢迎 ── */
.ai-studio__welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.ai-studio__welcome-spark {
  margin-bottom: 20px;
  animation: sparkFloat 3s ease-in-out infinite;
}
@keyframes sparkFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.05); }
}
.ai-studio__welcome-title {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4285f4, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.ai-studio__welcome-sub {
  color: var(--color-text-sub);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.ai-studio__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px;
  justify-content: center;
}
.ai-studio__suggestion {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-family: var(--font-family);
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}
.ai-studio__suggestion:hover {
  border-color: #4285f4;
  background: rgba(66,133,244,0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(66,133,244,0.1);
}

/* ── 消息列表 ── */
.ai-studio__messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.ai-studio__messages::-webkit-scrollbar { width: 6px; }
.ai-studio__messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 6px; }
.ai-studio__messages::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }

.ai-studio__msg {
  display: flex;
  gap: 14px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  animation: msgFadeIn 0.35s ease;
  padding: 16px 0;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-studio__msg + .ai-studio__msg {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.ai-studio__msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}
.ai-studio__msg-avatar--user {
  background: linear-gradient(135deg, #4285f4, #5a95f5);
}
.ai-studio__msg-avatar--assistant {
  background: linear-gradient(135deg, #a855f7, #c084fc);
}

.ai-studio__msg-body {
  flex: 1;
  min-width: 0;
}
.ai-studio__msg-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text);
  word-break: break-word;
}

/* Markdown 样式 */
.ai-studio__msg-text h2,
.ai-studio__msg-text h3,
.ai-studio__msg-text h4,
.ai-studio__msg-text h5 {
  margin: 16px 0 8px;
  font-weight: 700;
  color: var(--color-text);
}
.ai-studio__msg-text h2 { font-size: 1.25rem; }
.ai-studio__msg-text h3 { font-size: 1.1rem; }
.ai-studio__msg-text h4 { font-size: 1rem; }
.ai-studio__msg-text strong { font-weight: 700; }
.ai-studio__msg-text em { font-style: italic; }
.ai-studio__msg-text ul,
.ai-studio__msg-text ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}
.ai-studio__msg-text li { margin-bottom: 4px; }
.ai-studio__msg-text a {
  color: #4285f4;
  text-decoration: none;
}
.ai-studio__msg-text a:hover { text-decoration: underline; }

.ais-inline-code {
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Fira Code', 'Consolas', monospace;
}
.ais-code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.6;
  font-family: 'Fira Code', 'Consolas', monospace;
}
.ais-code-block code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.ais-md-img {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0;
}

/* 图片消息 */
.ai-studio__msg-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.ai-studio__msg-img {
  max-width: 400px;
  max-height: 400px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  object-fit: contain;
}
.ai-studio__msg-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 打字动画 */
.ai-studio__typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}
.ai-studio__typing span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  animation: aisTyping 1.2s ease-in-out infinite;
}
.ai-studio__typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-studio__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aisTyping {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%         { transform: translateY(-8px); opacity: 1; }
}

/* ── 输入区 ── */
.ai-studio__input-wrap {
  padding: 16px 24px 20px;
  background: linear-gradient(to top, #f0f4f9 80%, transparent);
}
.ai-studio__input-box {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: visible;
}
.ai-studio__input-box:focus-within {
  border-color: #4285f4;
  box-shadow: 0 2px 16px rgba(66,133,244,0.12);
}

/* 上半部分：输入框 */
.ai-studio__input-top {
  padding: 14px 20px 4px;
}
.ai-studio__input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-family: var(--font-family);
  color: var(--color-text);
  background: transparent;
  resize: none;
  line-height: 1.5;
  max-height: 200px;
  padding: 0;
}
.ai-studio__input::placeholder { color: rgba(0,0,0,0.35); }

/* 下半部分：工具栏（图片、语音、模型选择 + 发送） */
.ai-studio__input-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 6px 8px;
}
.ai-studio__input-actions-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ai-studio__send {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4285f4, #5a95f5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(66,133,244,0.3);
}
.ai-studio__send:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(66,133,244,0.4);
}
.ai-studio__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ai-studio__input-meta {
  max-width: 820px;
  margin: 8px auto 0;
  display: flex;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(0,0,0,0.3);
  padding: 0 8px;
}

/* ── 图片预览 ── */
.ai-studio__lightbox {
  position: fixed; inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ai-studio__lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  cursor: default;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.ai-studio__lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-studio__lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ── AI Studio 响应式 ── */
@media (max-width: 900px) {
  .ai-studio__messages { padding: 16px; }
  .ai-studio__input-wrap { padding: 12px 16px 16px; }
  .ai-studio__model-dropdown { min-width: 220px; }
}
@media (max-width: 600px) {
  .ai-studio { padding-top: 60px; }
  .ai-studio__model-btn { font-size: 0.7rem; padding: 3px 8px; gap: 4px; }
  .ai-studio__model-btn svg:first-child { display: none; }
  .ai-studio__model-dropdown { min-width: 200px; border-radius: 12px; }
  .ai-studio__model-item { font-size: 0.78rem; padding: 7px 14px; }
  .ai-studio__clear-float { top: 8px; right: 12px; width: 32px; height: 32px; }
  .ai-studio__welcome { padding: 24px 16px; }
  .ai-studio__welcome-spark svg { width: 40px; height: 40px; }
  .ai-studio__welcome-title { font-size: 1.6rem; }
  .ai-studio__welcome-sub { font-size: 0.88rem; margin-bottom: 24px; }
  .ai-studio__suggestions { flex-direction: column; gap: 8px; }
  .ai-studio__suggestion { font-size: 0.8rem; padding: 9px 16px; }
  .ai-studio__messages { padding: 12px; gap: 4px; }
  .ai-studio__msg { gap: 10px; padding: 12px 0; }
  .ai-studio__msg-avatar { width: 28px; height: 28px; font-size: 0.58rem; }
  .ai-studio__msg-text { font-size: 0.85rem; line-height: 1.65; }
  .ai-studio__msg-img { max-width: 100%; }
  .ais-code-block { padding: 12px 14px; font-size: 0.78rem; border-radius: 10px; }
  .ai-studio__input-wrap { padding: 10px 12px 14px; }
  .ai-studio__input-top { padding: 10px 14px 2px; }
  .ai-studio__input-box { border-radius: 20px; }
  .ai-studio__input { font-size: 0.85rem; }
  .ai-studio__send { width: 32px; height: 32px; }
  .ai-studio__send svg { width: 18px; height: 18px; }
  .ai-studio__tool-btn { width: 30px; height: 30px; }
  .ai-studio__tool-btn svg { width: 16px; height: 16px; }
  .ai-studio__input-meta { font-size: 0.65rem; }
  .ai-studio__attach-img { width: 52px; height: 52px; }
  .ai-studio__lightbox img { max-width: 95vw; max-height: 85vh; border-radius: 8px; }
  .ai-studio__lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* AI Studio 手表端 */
@media (max-width: 280px) {
  .ai-studio { padding-top: 4px; padding-bottom: 44px; }
  .ai-studio__model-btn { font-size: 0.58rem; padding: 2px 5px; gap: 2px; }
  .ai-studio__model-btn svg { width: 10px; height: 10px; }
  .ai-studio__model-btn svg:first-child { display: none; }
  .ai-studio__model-dropdown { min-width: 150px; max-height: 180px; border-radius: 10px; }
  .ai-studio__model-group-label { font-size: 0.58rem; padding: 4px 10px 2px; }
  .ai-studio__model-item { font-size: 0.65rem; padding: 5px 10px; }
  .ai-studio__clear-float { top: 4px; right: 6px; width: 26px; height: 26px; }
  .ai-studio__clear-float svg { width: 12px; height: 12px; }
  .ai-studio__welcome { padding: 12px 8px; }
  .ai-studio__welcome-spark { margin-bottom: 8px; }
  .ai-studio__welcome-spark svg { width: 28px; height: 28px; }
  .ai-studio__welcome-title { font-size: 1rem; margin-bottom: 4px; }
  .ai-studio__welcome-sub { font-size: 0.68rem; margin-bottom: 12px; }
  .ai-studio__suggestions { gap: 4px; }
  .ai-studio__suggestion { font-size: 0.65rem; padding: 6px 10px; border-radius: 12px; }
  .ai-studio__messages { padding: 6px; gap: 2px; }
  .ai-studio__msg { gap: 6px; padding: 6px 0; }
  .ai-studio__msg-avatar { width: 20px; height: 20px; font-size: 0.5rem; }
  .ai-studio__msg-text { font-size: 0.7rem; line-height: 1.5; }
  .ais-code-block { padding: 8px 10px; font-size: 0.65rem; border-radius: 8px; margin: 6px 0; }
  .ai-studio__typing span { width: 5px; height: 5px; }
  .ai-studio__input-wrap { padding: 4px 6px 8px; }
  .ai-studio__input-top { padding: 6px 10px 0; }
  .ai-studio__input-box { border-radius: 16px; }
  .ai-studio__input-bottom { padding: 2px 4px 4px 6px; }
  .ai-studio__input { font-size: 0.72rem; }
  .ai-studio__send { width: 26px; height: 26px; }
  .ai-studio__send svg { width: 14px; height: 14px; }
  .ai-studio__tool-btn { width: 22px; height: 22px; }
  .ai-studio__tool-btn svg { width: 13px; height: 13px; }
  .ai-studio__input-meta { display: none; }
  .ai-studio__attach-img { width: 36px; height: 36px; border-radius: 6px; }
  .ai-studio__attach-remove { width: 14px; height: 14px; top: -4px; right: -4px; }
  .ai-studio__tts-btn { font-size: 0.6rem; padding: 2px 6px; }
  .ai-studio__msg-audio audio { height: 28px; max-width: 200px; }
  .ai-studio__lightbox-close { top: 8px; right: 8px; width: 28px; height: 28px; }
}

/* ==========================================================
   Wiki 页面
   ========================================================== */
.wiki-page { min-height: 100vh; padding-top: 80px; }

.wiki-header {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(0,210,211,0.06) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.wiki-hero { text-align: center; }
.wiki-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #b8932e 0%, #00b0b1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.wiki-hero p { color: var(--color-text-sub); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.wiki-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  align-items: start;
}

.wiki-toc { position: sticky; top: 100px; }
.wiki-toc__inner {
  background: var(--glass-bg-card);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: var(--glass-blur-card);
  box-shadow: var(--shadow-card);
}
.wiki-toc__title {
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-sub);
  margin-bottom: 0.6rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.wiki-toc__link {
  display: block; font-size: 0.84rem; color: var(--color-text-sub);
  padding: 0.38rem 0.55rem; border-radius: 8px; margin-bottom: 0.1rem;
  transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wiki-toc__link:hover { color: var(--color-text); background: rgba(0,0,0,0.04); }
.wiki-toc__link.is-active {
  color: #007b7c; background: rgba(0,210,211,0.10); font-weight: 600;
}

.wiki-section { margin-bottom: 2.5rem; scroll-margin-top: 108px; }
.wiki-section__title {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.9rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  color: var(--color-text);
}
.wiki-section__body {
  background: var(--glass-bg-card);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  line-height: 1.8;
  color: var(--color-text);
  backdrop-filter: var(--glass-blur-card);
  box-shadow: var(--shadow-card);
}
.wiki-section__body p { margin-bottom: 0.45rem; }
.wiki-section__body ul,
.wiki-section__body ol { margin: 0.4rem 0 0.4rem 1.2rem; padding: 0; }
.wiki-section__body li { margin-bottom: 0.3rem; }
.wiki-section__body strong { color: var(--color-text); }
.wiki-section__body code {
  background: rgba(0,210,211,0.12); color: #007b7c;
  padding: 0.1em 0.45em; border-radius: 4px; font-size: 0.86em;
  font-family: 'Fira Code', 'Consolas', monospace;
}
.wiki-section__body a { color: #007b7c; }
.wiki-section__body a:hover { text-decoration: underline; }

.wiki-faq {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px; margin-bottom: 0.7rem; overflow: hidden;
}
.wiki-faq__q {
  padding: 0.7rem 1rem; font-weight: 600;
  background: rgba(212,175,55,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.wiki-faq__a { padding: 0.7rem 1rem; color: var(--color-text-sub); }

/* ── 手机端浮动目录按钮 ── */
.wiki-mobile-toc-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 50px;
  border: none;
  background: rgba(0, 123, 124, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 123, 124, 0.35), 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.wiki-mobile-toc-btn:active {
  transform: scale(0.95);
}

/* ── 手机端目录遮罩 ── */
.wiki-mobile-toc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}
.wiki-mobile-toc-overlay.is-open {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* ── 手机端目录面板 ── */
.wiki-mobile-toc-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
  max-height: 65vh;
  overflow: hidden;
  flex-direction: column;
}
.wiki-mobile-toc-panel.is-open {
  display: flex;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.wiki-mobile-toc-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.wiki-mobile-toc-panel__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}
.wiki-mobile-toc-panel__close {
  width: 32px; height: 32px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sub);
  transition: background 0.15s;
}
.wiki-mobile-toc-panel__close:hover {
  background: rgba(0,0,0,0.1);
}
.wiki-mobile-toc-panel__nav {
  overflow-y: auto;
  padding: 12px 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.wiki-mobile-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 2px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--color-text-sub);
  transition: all 0.2s;
  text-decoration: none;
}
.wiki-mobile-toc-link:active {
  background: rgba(0,210,211,0.08);
}
.wiki-mobile-toc-link__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
  transition: all 0.2s;
}
.wiki-mobile-toc-link.is-active {
  color: #007b7c;
  font-weight: 600;
  background: rgba(0,210,211,0.08);
}
.wiki-mobile-toc-link.is-active .wiki-mobile-toc-link__dot {
  background: #00d2d3;
  box-shadow: 0 0 6px rgba(0,210,211,0.5);
}

@media (max-width: 768px) {
  .wiki-page { padding-top: 64px; padding-bottom: 80px; }
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
  .wiki-toc { display: none; }
  .tnt-float { display: none; }
  .wiki-mobile-toc-btn { display: flex; }

  .wiki-header { padding: 2rem 0 1.5rem; }
  .wiki-hero h1 { font-size: 1.5rem; }
  .wiki-hero p { font-size: 0.88rem; }
  .wiki-section { margin-bottom: 1.5rem; scroll-margin-top: 80px; }
  .wiki-section__title { font-size: 1.05rem; margin-bottom: 0.6rem; padding-bottom: 0.5rem; }
  .wiki-section__body {
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
    line-height: 1.7;
    border-radius: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .wiki-section__body a {
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .wiki-section__body ul,
  .wiki-section__body ol { margin-left: 1rem; }
  .wiki-section__body li { font-size: 0.86rem; line-height: 1.65; }
  .wiki-section__body code {
    font-size: 0.78rem;
    word-break: break-all;
  }
  .wiki-faq { border-radius: 8px; margin-bottom: 0.5rem; }
  .wiki-faq__q { padding: 0.55rem 0.8rem; font-size: 0.86rem; }
  .wiki-faq__a { padding: 0.55rem 0.8rem; font-size: 0.82rem; line-height: 1.65; }
}

/* Wiki 小屏手机 (iPhone SE 等) */
@media (max-width: 375px) {
  .wiki-page { padding-top: 56px; padding-bottom: 72px; }
  .tnt-float { width: 160px; height: 180px; margin-top: 10px; }
  .wiki-layout { gap: 1rem; padding-bottom: 2rem; }
  .wiki-section { margin-bottom: 1rem; }
  .wiki-section__title { font-size: 0.95rem; }
  .wiki-section__body { padding: 0.7rem 0.8rem; font-size: 0.8rem; border-radius: 12px; }
  .wiki-section__body li { font-size: 0.8rem; }
  .wiki-section__body code { font-size: 0.72rem; padding: 0.08em 0.35em; }
  .wiki-faq__q { padding: 0.45rem 0.65rem; font-size: 0.8rem; }
  .wiki-faq__a { padding: 0.45rem 0.65rem; font-size: 0.78rem; }
  .wiki-mobile-toc-btn { bottom: 16px; right: 12px; padding: 8px 14px; font-size: 0.72rem; }
  .wiki-mobile-toc-link { font-size: 0.82rem; padding: 10px 12px; }
}

/* Wiki 手表端 */
@media (max-width: 280px) {
  .wiki-page { padding-top: 8px; padding-bottom: 44px; }
  .tnt-float { display: none; }
  .wiki-mobile-toc-btn { display: none; }
  .wiki-header { padding: 1rem 0 0.8rem; }
  .wiki-hero h1 { font-size: 1rem; margin-bottom: 0.3rem; }
  .wiki-hero p { font-size: 0.68rem; }
  .wiki-layout { padding-top: 0.8rem; padding-bottom: 1rem; gap: 0.8rem; }
  .wiki-section { margin-bottom: 0.8rem; scroll-margin-top: 52px; }
  .wiki-section__title { font-size: 0.88rem; margin-bottom: 0.4rem; padding-bottom: 0.3rem; }
  .wiki-section__body { padding: 0.6rem 0.7rem; border-radius: 10px; font-size: 0.72rem; line-height: 1.55; }
  .wiki-section__body code { font-size: 0.66rem; padding: 0.05em 0.3em; }
  .wiki-faq__q { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
  .wiki-faq__a { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
}

/* TNT 悬浮模型（右侧固定居中） */
.tnt-float {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 340px;
  z-index: 30;
  pointer-events: auto;
}
.tnt-float canvas {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  cursor: grab;
}
.tnt-float__hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; color: rgba(0,0,0,0.32); letter-spacing: 0.03em;
  background: rgba(255,255,255,0.45); backdrop-filter: blur(8px);
  padding: 3px 12px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05);
  white-space: nowrap; pointer-events: none; z-index: 2;
  transition: opacity 0.6s ease;
  animation: hintPulse 3s ease-in-out infinite;
}
.tnt-float__hint.hidden { opacity: 0; animation: none; pointer-events: none; visibility: hidden; }

/* 全屏白色闪光 */
.explosion-flash {
  position: fixed; inset: 0; z-index: 9998;
  background: white;
  opacity: 0; pointer-events: none;
  transition: opacity 0.05s ease;
}
.explosion-flash.active {
  opacity: 0.85;
  animation: explosionFlash 0.4s ease-out forwards;
}
@keyframes explosionFlash {
  0%   { opacity: 0.85; }
  30%  { opacity: 0.5; }
  100% { opacity: 0; }
}

/* 全屏爆炸粒子容器 */
.explosion-particles {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none; overflow: hidden;
}

/* MC 风格方块粒子 */
.mc-particle {
  position: absolute;
  image-rendering: pixelated;
  transform: translate(-50%, -50%);
  animation: mcParticleFly ease-out forwards;
  will-change: transform, opacity;
}
@keyframes mcParticleFly {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  60%  { opacity: 0.8; }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
               scale(0.3) rotate(var(--rot));
    opacity: 0;
  }
}

/* 被炸飞的元素需要合适的 z-index */
.wiki-section,
.wiki-toc__inner {
  position: relative;
  will-change: transform, opacity;
}

/* 屏幕震动 */
.wiki-page.is-shaking {
  animation: screenShake 0.6s ease-out;
}
@keyframes screenShake {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-8px, 6px); }
  20%  { transform: translate(7px, -5px); }
  30%  { transform: translate(-6px, 4px); }
  40%  { transform: translate(5px, -3px); }
  50%  { transform: translate(-4px, 2px); }
  60%  { transform: translate(3px, -2px); }
  70%  { transform: translate(-2px, 1px); }
  80%  { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .wiki-layout { grid-template-columns: 220px 1fr; }
  .tnt-float { right: 16px; width: 220px; height: 250px; }
}
@media (max-width: 900px) {
  .tnt-float { display: none; }
}

