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

:root {
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.bg-gradient {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  font-size: 28px;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  width: 36px;
  height: 30px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 28px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 16px;
}

/* ── 演示区 ── */
.demo-section {
  padding: 40px 0 80px;
}

.demo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.06);
  overflow: hidden;
}

.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #f59e0b; }
.demo-dot:nth-child(3) { background: #22c55e; }

.demo-address-bar {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 12px;
}

.demo-ext-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

@media (max-width: 768px) {
  .demo-content {
    grid-template-columns: 1fr;
  }
}

.demo-left,
.demo-right {
  padding: 28px 24px;
  position: relative;
}

.demo-left {
  border-right: 1px solid var(--border);
}

@media (max-width: 768px) {
  .demo-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.demo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.demo-block {
  height: 7px;
  background: #f1f5f9;
  border-radius: 3px;
  margin-bottom: 8px;
}

.demo-block-short { width: 60%; }
.demo-block-mid   { width: 80%; }

/* ── Overlay Demo: 正文 + 侧边栏 ── */
.demo-article-row {
  display: flex;
  gap: 14px;
}

.demo-article-body {
  flex: 1;
  min-width: 0;
}

.demo-article-body .demo-page-title {
   font-size: 18px;
   font-weight: 700;
   margin-bottom: 6px;
   color: var(--text);
 }

 .demo-article-body .demo-page-sub {
   font-size: 12px;
   color: var(--text-secondary);
   margin-bottom: 16px;
   line-height: 1.5;
 }

.demo-sidebar {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-sidebar-block {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.demo-sidebar-block:nth-child(2) {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: var(--text-muted);
}

.demo-sidebar-block:nth-child(3) {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: var(--text-muted);
}

.demo-sidebar-ad-img {
  height: 40px;
  background: currentColor;
  opacity: 0.12;
  border-radius: 4px;
  margin-bottom: 6px;
}

.demo-overlay-cover {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 114px;
  bottom: 28px;
  background: #f3f3fe;
  border: 2px dashed #3b82f6;
  border-radius: 10px;
  z-index: 3;
  pointer-events: none;
}

/* Compat mode for old focus-area if reused */
.demo-focus-area {
  position: relative;
  overflow: hidden;
}

.demo-focus-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 38%;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(30, 41, 59, 0.55);
  border-radius: 10px;
  border: 2px solid var(--accent);
  pointer-events: none;
  z-index: 2;
}

.demo-focus-window::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--accent-glow);
  pointer-events: none;
}

/* ── Video Layout (Focus Demo) ── */

.demo-video-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.demo-video-nav-logo {
  width: 22px;
  height: 22px;
  background: #ef4444;
  border-radius: 6px;
  flex-shrink: 0;
}

.demo-video-nav-item {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  width: 36px;
}

.demo-video-nav-search {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  width: 60px;
  margin-left: auto;
}

.demo-video-row {
  display: flex;
  gap: 12px;
}

.demo-video-main {
  flex: 1;
  min-width: 0;
}

.demo-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: url('ui/city.jpg') center/cover no-repeat;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.demo-video-play {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  position: relative;
}

.demo-video-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 14px solid #1e293b;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.demo-video-title-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  width: 70%;
  margin-bottom: 8px;
}

.demo-video-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.demo-video-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
}

.demo-video-channel {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  width: 55px;
}

.demo-video-sub-btn {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  width: 40px;
  margin-left: auto;
}

.demo-video-comment-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.demo-video-comment-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  flex-shrink: 0;
}

.demo-video-comment-lines {
  flex: 1;
}

.demo-video-comment-line {
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  margin-bottom: 5px;
}

.demo-video-comment-line:nth-child(2) { width: 80%; }
.demo-video-comment-line:nth-child(3) { width: 50%; }

.demo-video-sidebar {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
}

.demo-video-thumb::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  width: 22px;
  height: 8px;
}

.demo-video-thumb-title {
  height: 5px;
  background: #f1f5f9;
  border-radius: 2px;
  width: 90%;
  margin-top: 4px;
}

.demo-video-thumb-sub {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  width: 60%;
  margin-top: 3px;
}

/* Focus window for video demo */
.demo-video-focus-area {
  position: relative;
}

.demo-video-focus-window {
  position: absolute;
  top: 0;
  left: -8px;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.9);
  pointer-events: none;
  z-index: 1;
}

.demo-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border);
}

.demo-mode-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.2s;
}

.demo-mode-tab.active {
  background: var(--accent);
  color: #fff;
}

/* ── Features ── */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

.demo-section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-top: 36px;
  margin-bottom: 14px;
}

.demo-section > .demo-section-title:first-child {
  margin-top: 0;
}

.demo-section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border-color: var(--accent-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon-blur {
  background: rgba(99, 102, 241, 0.1);
}

.feature-icon-focus {
  background: rgba(139, 92, 246, 0.1);
}

.feature-icon-color {
  background: rgba(34, 197, 94, 0.1);
}

.feature-icon-memory {
  background: rgba(249, 115, 22, 0.1);
}

.feature-icon-unlimited {
  background: rgba(236, 72, 153, 0.1);
}

.feature-icon-cross {
  background: rgba(20, 184, 166, 0.1);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Pricing ── */
.pricing {
  padding: 80px 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.plan-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-glow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-slogan {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.price-symbol {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-saving {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  border: none;
}

.plan-btn-primary {
  background: var(--accent);
  color: #fff;
}

.plan-btn-primary:hover {
  background: var(--accent-dark);
}

.plan-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.plan-btn-secondary {
  background: #1e293b;
  color: #fff;
}

.plan-btn-secondary:hover {
  background: #334155;
}

/* ── CTA ── */
.cta {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.cta-card p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-card .btn {
  background: #fff;
  color: var(--accent);
  padding: 14px 36px;
  font-size: 16px;
}

.cta-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-note {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── 法律页面 ── */
.legal-page {
  padding: 60px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
}

.legal-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-page ul, .legal-page ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.legal-page li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page .legal-section {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 40px 0 60px;
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .legal-page h2 {
    font-size: 20px;
  }

  .legal-page p, .legal-page li {
    font-size: 14px;
  }
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .section-title {
    font-size: 26px;
  }

  .demo-section-title {
    font-size: 26px;
  }

  .features,
  .pricing,
  .cta {
    padding: 48px 0;
  }
}
