:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-hover: #eef2f6;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --green-bg: #dcfce7;
  --green-ink: #15803d;
  --green-dot: #16a34a;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 隐私政策 */
.policy-page {
  min-height: 100vh;
}

.policy-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.policy-header-inner,
.policy-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.policy-language-links {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

.policy-language-links a.active {
  color: var(--ink);
  font-weight: 600;
}

.policy-content {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.policy-content h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.policy-content .policy-meta {
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.policy-content h2 {
  font-size: 21px;
  margin: 36px 0 12px;
}

.policy-content p,
.policy-content li {
  color: var(--ink-secondary);
}

.policy-content p + p {
  margin-top: 14px;
}

.policy-content ul {
  margin: 12px 0 0 24px;
}

.policy-content li + li {
  margin-top: 6px;
}

.policy-contact {
  font-weight: 600;
  color: var(--ink) !important;
}

.policy-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--ink-muted);
  font-size: 14px;
}

@media (max-width: 560px) {
  .policy-header-inner,
  .policy-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-content {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

/* 正式标志 */
.logo-mark {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.icon-link:hover {
  background: var(--bg-hover);
  color: var(--ink);
}

/* Segmented Control (matching Display Mode in Popup) */
.segmented {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.segmented a {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.segmented a.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  padding: 68px 0 48px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, color 0.15s;
}

.pill-badge:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-dot);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero h1 .muted-accent {
  display: inline-block;
  max-width: 100%;
  color: #047857;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 .muted-accent {
    background-image:
      linear-gradient(110deg, transparent 42%, rgba(153, 246, 228, 0.8) 50%, transparent 58%),
      linear-gradient(135deg, #047857 0%, #10b981 55%, #0d9488 100%);
    background-size: 250% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat;
    animation: hero-text-shimmer 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@keyframes hero-text-shimmer {
  0% {
    background-position: 100% 0, 0 0;
  }
  60%, 100% {
    background-position: 0% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .muted-accent {
    animation: none;
    background-image: linear-gradient(135deg, #047857 0%, #10b981 55%, #0d9488 100%);
    background-size: 100% 100%;
    background-position: 0 0;
  }
}

@media (forced-colors: active) {
  .hero h1 .muted-accent {
    animation: none;
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.hero-note {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Interactive Browser Showcase */
.showcase-section {
  padding: 12px 0 72px;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-tabs {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.demo-tab {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}

.demo-tab.active {
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.browser-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.browser-bar {
  height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: grid;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.url-bar {
  width: 100%;
  min-width: 0;
  justify-self: center;
  overflow: hidden;
  white-space: nowrap;
  max-width: 400px;
  height: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.browser-body {
  min-height: 390px;
}

.webpage-canvas {
  padding: 32px 36px;
  background: #ffffff;
}

.demo-panel {
  display: none;
  max-width: 820px;
  margin: 0 auto;
}

.demo-panel.active {
  display: block;
}

.article-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.article-title-zh {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.bilingual-block {
  margin-bottom: 18px;
}

.bilingual-en {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.65;
}

.bilingual-zh {
  margin-top: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--green-dot);
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Selection Demo */
.highlight-text {
  background: #dcfce7;
  color: var(--ink);
  padding: 1px 4px;
  border-radius: 4px;
}

.selection-popover {
  margin-top: 16px;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.popover-result {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

/* Input Box Demo */
.comment-box {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #f8fafc;
}

.comment-input {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
}

.input-hint {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--ink-secondary);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--ink-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}

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

.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-muted);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* FAQ */
.faq-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-trigger:hover {
  background: #fcfcfd;
}

.faq-chevron {
  color: var(--ink-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

.install-steps {
  margin: 0;
  padding-left: 22px;
}

.install-steps > li + li {
  margin-top: 8px;
}

.install-addresses {
  margin: 6px 0 0;
  padding-left: 20px;
}

.install-addresses code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.install-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
}

.install-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}

.install-warning span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

/* Responsive */
@media (max-width: 860px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

.segmented a { text-decoration: none; }
.segmented a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 600px) {
  .webpage-canvas {
    padding: 24px 20px;
  }
  .browser-bar {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .demo-tabs {
    width: 100%;
  }
  .demo-tab {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
  }
}
