/* ============================================
   智能厨房 Smart Kitchen — 官网样式
   深空科技风：#0a0a0f + 青蓝光效
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-soft: #0e0e17;
  --surface: #14141f;
  --surface-2: #1a1a28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --primary: #22d3ee;
  --primary-deep: #0ea5e9;
  --accent: #ff6b35;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #818cf8 100%);

  --text: #eef0f8;
  --text-muted: #9aa0b5;
  --text-faint: #6b7186;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration: 200ms;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-brand img.brand-wordmark {
  width: auto;
  height: 20px;
  border-radius: 0;
}

.footer-brand img.brand-wordmark {
  width: auto;
  height: 22px;
  border-radius: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 14.5px;
  color: var(--text-muted);
}

.nav-links a { transition: color var(--duration) var(--ease-standard); }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: var(--space-4); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration) var(--ease-standard);
}

.lang-switch button.active {
  background: var(--surface-2);
  color: var(--primary);
}

/* 语言下拉框（全端统一使用） */
.lang-switch { display: none; }

.lang-select {
  display: block;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  height: 34px;
  padding: 0 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform var(--duration) var(--ease-standard),
    box-shadow var(--duration) var(--ease-standard),
    filter var(--duration) var(--ease-standard);
}

.btn-primary {
  background: var(--gradient);
  color: #06121a;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(64px + var(--space-24)) 0 var(--space-24);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  color: var(--primary);
  font-size: 13px;
  margin-bottom: var(--space-6);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: nowrap; }

.hero-actions .btn {
  padding: 0 20px;
  height: 46px;
  font-size: 14px;
  white-space: nowrap;
}

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-visual .app-icon {
  width: min(320px, 70vw);
  border-radius: 28%;
  box-shadow: 0 24px 80px rgba(34, 211, 238, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- 通用区块 ---------- */
.section { padding: var(--space-24) 0; }

.section-head { text-align: center; margin-bottom: var(--space-16); }

.section-head .eyebrow {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--text-muted);
  max-width: 620px;
  margin-inline: auto;
  font-size: 16px;
}

/* ---------- 功能网格 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: transform var(--duration) var(--ease-standard),
    border-color var(--duration) var(--ease-standard),
    box-shadow var(--duration) var(--ease-standard);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: var(--space-6);
}

.feature-card.warn .feature-icon {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
}

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 产品展示 ---------- */
.showcase {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.showcase-list { display: flex; flex-direction: column; gap: var(--space-6); }

.showcase-item { display: flex; gap: var(--space-4); }

.showcase-item .num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.showcase-item h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 4px; }
.showcase-item p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 下载区 ---------- */
.download { text-align: center; position: relative; overflow: hidden; }

.download::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.download .badges {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  position: relative;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: transform var(--duration) var(--ease-standard),
    border-color var(--duration) var(--ease-standard);
}

.store-badge:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.4); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .small { display: block; font-size: 11px; color: var(--text-faint); line-height: 1.3; }
.store-badge .big { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ---------- 硬件产品 ---------- */
.hardware-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hardware-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.spec-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  transition: border-color var(--duration) var(--ease-standard);
}

.spec-item:hover { border-color: rgba(34, 211, 238, 0.35); }

.spec-item svg { flex: none; width: 22px; height: 22px; color: var(--primary); }

.spec-item strong { font-weight: 650; margin-right: 6px; }
.spec-item span { color: var(--text-muted); }

/* ---------- APP 截图 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.shot {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: transform var(--duration) var(--ease-standard),
    border-color var(--duration) var(--ease-standard);
}

.shot:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(6, 8, 14, 0.88));
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.shot.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-style: dashed;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: var(--space-4);
}

.shot.placeholder svg { width: 32px; height: 32px; opacity: 0.5; }

/* ---------- 关于我们 ---------- */
.about { background: var(--bg-soft); border-block: 1px solid var(--border); }

.about-inner { max-width: 760px; margin-inline: auto; text-align: center; }

.about-inner p { color: var(--text-muted); font-size: 15.5px; margin-bottom: var(--space-4); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: var(--space-4); }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer p { color: var(--text-faint); font-size: 13.5px; max-width: 340px; }

.footer h4 { font-size: 14px; font-weight: 650; margin-bottom: var(--space-4); color: var(--text-muted); }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-faint); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- 协议页（privacy / terms） ---------- */
.legal { padding: calc(64px + var(--space-16)) 0 var(--space-24); }

.legal-inner { max-width: 820px; margin-inline: auto; }

.legal h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.legal .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: var(--space-12); }

.legal h2 {
  font-size: 19px;
  font-weight: 700;
  margin: var(--space-8) 0 var(--space-4);
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.legal h3 { font-size: 16px; font-weight: 650; margin: var(--space-6) 0 10px; color: var(--text); }

.legal p, .legal li { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }

.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

.legal strong { color: var(--text); font-weight: 650; }

/* 双语块显隐 */
[lang-block] { display: none; }
body[data-lang="zh"] [lang-block="zh"] { display: block; }
body[data-lang="en"] [lang-block="en"] { display: block; }

/* ---------- 滚动淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-standard), transform 600ms var(--ease-standard);
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-12); }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .app-icon { width: min(220px, 55vw); }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .showcase-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hardware-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 15, 0.96);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .lang-switch { display: none; }
  .lang-select { display: block; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
