/* OWLingo 官网：沿用原落地页的视觉（近黑背景、圆角卡片、蓝紫渐变与光晕），首屏为代码绘制的游戏内效果演示 */

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

:root {
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-soft: #8b9cf7;

  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #1a1a1a;
  --bg-elevated: #2a2a2a;

  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #707070;

  --border-color: rgba(255, 255, 255, 0.1);

  --team: #45d4f5;   /* 游戏里的队伍频道 */
  --all: #f7a54b;    /* 游戏里的全部频道 */

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.container-narrow { max-width: 820px; }

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

code, kbd {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}
kbd { border-bottom-width: 2px; color: var(--text-primary); }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(102, 126, 234, 0.5); }
.btn-ghost { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-color); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--color-primary); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; border-radius: 10px; }
.btn.is-disabled { opacity: 0.5; cursor: default; box-shadow: none; transform: none; }

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { background: rgba(10, 10, 10, 0.95); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: var(--spacing-xl); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { width: 34px; height: 34px; display: block; filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.35)); }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }
.nav-menu { display: flex; list-style: none; gap: var(--spacing-xl); margin-left: auto; }
.nav-menu a { color: var(--text-secondary); font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--color-primary); }

/* ==================== 首屏 ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(102, 126, 234, 0.15), transparent);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-50px, -50px) rotate(5deg); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--spacing-3xl);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: var(--spacing-lg);
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.35);
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary-soft);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-2xl);
  max-width: 540px;
}
.hero-actions { display: flex; gap: var(--spacing-md); flex-wrap: wrap; margin-bottom: var(--spacing-2xl); }
.hero-facts {
  list-style: none;
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}
.hero-facts b {
  margin-right: 4px;
  font-weight: 700;
  background: var(--color-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== 演示：模糊的真实游戏画面 + 聊天 + 悬浮框 ==================== */
.scene {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #2a3350 url("/static/img/scene.jpg") left center / cover no-repeat;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(102, 126, 234, 0.18);
  font-family: 'Segoe UI', 'Microsoft YaHei', 'Malgun Gothic', sans-serif;
}

/* 游戏原本的聊天框 */
.game-chat {
  position: absolute;
  left: 3.5%; top: 46%;
  width: 46%;
  font-size: clamp(9px, 1.25vw, 13.5px);
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
}
.chat-line { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-line.show { opacity: 1; transform: none; }
.chat-line.team { color: var(--team); }
.chat-line.all { color: var(--all); }
.chat-line .ch { font-size: 0.85em; margin-right: 4px; opacity: 0.9; }

/* OWLingo 悬浮框 */
.overlay-panel {
  position: absolute;
  right: 3%; top: 8%;
  width: 44%;
  max-height: 64%;
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.overlay-head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dot-on { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.overlay-tag { margin-left: auto; font-weight: 400; color: var(--text-tertiary); }
.overlay-list { padding: 4px 10px 6px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; flex: 1; overflow: hidden; }
.ov-msg { padding: 4px 0; opacity: 0; transform: translateX(10px); transition: opacity 0.35s, transform 0.35s; }
.ov-msg.show { opacity: 1; transform: none; }
.ov-msg + .ov-msg { border-top: 1px dashed rgba(255, 255, 255, 0.07); }
.ov-name { font-size: clamp(8px, 1vw, 11px); font-weight: 700; }
.ov-msg.team .ov-name { color: var(--team); }
.ov-msg.all .ov-name { color: var(--all); }
.ov-text { font-size: clamp(10px, 1.3vw, 14px); color: #fff; line-height: 1.4; }
.ov-orig { font-size: clamp(8px, 0.95vw, 10.5px); color: var(--text-tertiary); }
.ov-pending { color: var(--text-tertiary); font-style: italic; }
.overlay-send {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(102, 126, 234, 0.1);
  font-size: clamp(8.5px, 1.05vw, 11.5px);
  color: var(--text-secondary);
}
.send-key { font-family: Consolas, monospace; padding: 0 5px; border: 1px solid var(--border-color); border-radius: 4px; color: var(--primary-soft); }
.send-text { color: #fff; }
.send-arrow { color: var(--primary-soft); }
.send-out { color: var(--primary-soft); font-weight: 600; opacity: 0; transition: opacity 0.4s; }
.send-out.show { opacity: 1; }

/* ==================== 通用区块 ==================== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-darker); }
.section-head { text-align: center; margin-bottom: var(--spacing-3xl); }
.section-kicker {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  background: var(--color-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.25; }
.section-sub { color: var(--text-secondary); font-size: 1.1rem; margin: var(--spacing-md) auto 0; max-width: 640px; }
.fine { text-align: center; color: var(--text-tertiary); font-size: 0.9rem; margin-top: var(--spacing-2xl); }

/* ==================== 痛点对比 ==================== */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); }
.why-card {
  position: relative;
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--color-accent);
}
.why-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.why-before {
  margin-bottom: var(--spacing-lg);
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: #8c8c8c;
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}
.why-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-decoration: none;
  vertical-align: 1px;
}
.why-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: var(--spacing-sm); }
.why-card h3::before { content: "✓ "; color: var(--primary-soft); }
.why-card p { color: var(--text-secondary); line-height: 1.75; }

/* ==================== 软件界面 ==================== */
.screens { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: var(--spacing-2xl); align-items: center; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot-main img { max-width: 380px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(102, 126, 234, 0.15)); }
.shot-overlay img { border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-lg), 0 0 60px rgba(102, 126, 234, 0.15); }
.shot figcaption { margin-top: var(--spacing-md); text-align: center; color: var(--text-tertiary); font-size: 0.9rem; line-height: 1.7; }
.shot figcaption b { display: block; color: var(--text-primary); font-size: 1rem; margin-bottom: 2px; }

/* ==================== 功能 ==================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-xl);
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--spacing-md);
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: var(--primary-soft);
  font-weight: 700;
  font-size: 0.95rem;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-sm); }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

.lang-strip {
  display: flex; align-items: center; justify-content: center; gap: var(--spacing-xl); flex-wrap: wrap;
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}
.lang-col { display: flex; align-items: center; gap: var(--spacing-sm); flex-wrap: wrap; }
.lang-label { color: var(--text-tertiary); font-size: 0.9rem; margin-right: 6px; }
.lang-arrow { color: var(--primary-soft); font-size: 1.4rem; }
.chip { padding: 4px 14px; font-size: 0.9rem; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-elevated); }
.chip-on { border-color: var(--color-primary); color: #fff; background: rgba(102, 126, 234, 0.18); }

/* ==================== 步骤 ==================== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-xl); }
.step { position: relative; text-align: center; padding: 0 var(--spacing-sm); }
.step-num {
  width: 60px; height: 60px;
  margin: 0 auto var(--spacing-lg);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: var(--shadow-glow);
  font-size: 1.5rem;
  font-weight: 700;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px; left: calc(50% + 46px); right: calc(-50% + 46px);
  height: 1px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.15));
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-xs); }
.step p { color: var(--text-secondary); line-height: 1.7; }

/* ==================== 价格 ==================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); align-items: stretch; }
.pricing-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); transform: scale(1.05); }
.pricing-card.featured:hover { transform: translateY(-5px) scale(1.05); }
.badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-title { font-size: 1.4rem; font-weight: 600; margin-top: var(--spacing-xs); }
.price {
  margin: var(--spacing-md) 0 var(--spacing-lg);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--color-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price small { font-size: 0.5em; margin-right: 2px; }
.pricing-features { list-style: none; width: 100%; margin-bottom: var(--spacing-xl); flex: 1; text-align: left; }
.pricing-features li { padding: var(--spacing-sm) 0; color: var(--text-secondary); }
.pricing-features li::before { content: "✓"; color: var(--primary-soft); margin-right: 10px; font-weight: 700; }
.pricing-features b { color: var(--text-primary); }
.pricing-card .btn { min-width: 60%; }

/* ==================== 下载 ==================== */
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-lg); max-width: 860px; margin: 0 auto; }
.download-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s;
}
.download-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.download-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--spacing-sm); }
.download-card p { color: var(--text-secondary); }
.download-size { color: var(--text-tertiary); font-size: 0.9rem; margin: var(--spacing-md) 0 var(--spacing-lg); }

/* ==================== 常见问题 ==================== */
.faq {
  margin-bottom: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: border-color 0.3s;
}
.faq[open] { border-color: rgba(102, 126, 234, 0.5); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 56px 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary-soft); font-size: 1.5rem; font-weight: 400;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--text-secondary); padding: 0 24px 20px; line-height: 1.7; }

/* ==================== 页脚 ==================== */
.footer { background: var(--bg-darker); border-top: 1px solid var(--border-color); padding: var(--spacing-3xl) 0 var(--spacing-lg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-lg); flex-wrap: wrap; }
.footer-brand p { color: var(--text-tertiary); font-size: 0.9rem; margin-top: var(--spacing-sm); }
.footer-links { list-style: none; display: flex; gap: var(--spacing-lg); flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); transition: color 0.3s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-legal { margin-top: var(--spacing-xl); padding-top: var(--spacing-lg); border-top: 1px solid var(--border-color); color: var(--text-tertiary); font-size: 0.8rem; text-align: center; }
.footer-legal p + p { margin-top: 6px; }

/* ==================== 进场动画 ==================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s; }
.reveal.in { opacity: 1; transform: none; }
.pricing-card.featured.reveal.in { transform: scale(1.05); }
.pricing-card.featured.reveal.in:hover { transform: translateY(-5px) scale(1.05); }
.reveal.in:hover { transform: translateY(-5px); }
.faq.reveal.in:hover, .lang-strip.reveal.in:hover, .step.reveal.in:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .reveal, .chat-line, .ov-msg, .send-out { transition: none; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 108px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--spacing-2xl); }
  .hero-copy { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .br-wide { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .screens { grid-template-columns: 1fr; }
  .shot-main { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: var(--spacing-xl); }
  .pricing-card.featured, .pricing-card.featured.reveal.in { transform: none; }
  .pricing-card.featured:hover, .pricing-card.featured.reveal.in:hover { transform: translateY(-5px); }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-inner { gap: var(--spacing-sm); }
  .nav-menu { display: none; }
  .nav-cta { margin-left: auto; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: var(--spacing-2xl); }
  .feature-grid, .steps, .download-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .hero-facts { gap: var(--spacing-md); }
  .lang-strip { flex-direction: column; gap: var(--spacing-md); }
  .lang-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .scene { aspect-ratio: 4 / 3.6; }
  .game-chat { top: 48%; width: 92%; }
  .overlay-panel { width: 66%; max-height: 44%; top: 5%; }
}
