/* 智启元音 · 全站色板对齐桌面 PNG（00 首页 / 01 网关 / 07 统计） */

:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-muted: #f4f7f9;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --accent-violet: #8b5cf6;
  --accent2: #2563eb;
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(37, 99, 235, 0.1);
  --chart-blue: #1890ff;
  --chart-orange: #fa8c16;
  --chart-green: #52c41a;
  --chart-purple: #722ed1;
  --chart-gray: #94a3b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, rgba(219, 234, 254, 0.95), transparent 58%),
    radial-gradient(ellipse 50% 35% at 92% 8%, rgba(224, 231, 255, 0.7), transparent 52%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 38%, #f8fafc 100%);
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
}

.logo span,
.logo-sub {
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
  font-size: 14px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 22px;
  font-size: 14px;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.15s;
}

nav a:hover { color: var(--accent-deep); }

nav a.nav-active,
nav a[aria-current="page"] {
  color: var(--accent-deep);
  font-weight: 600;
}

nav a.nav-active::after,
nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  padding: 56px 0 48px;
  text-align: center;
}

.eyebrow {
  color: var(--accent-deep);
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
}

.subtitle-product {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 0 18px;
  line-height: 1.6;
}

.local-hint {
  margin: 22px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 14px;
  border: 1px dashed var(--accent-border);
  border-radius: 10px;
  background: var(--accent-soft);
}

.lead {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 16px;
}

.lead a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.lead a:hover { text-decoration: underline; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  color: var(--accent-deep);
  background: var(--panel);
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.version-tag {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.features article {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.features article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-icon--blue {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: var(--accent-deep);
}

.feature-icon--violet {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  color: var(--accent-violet);
}

.feature-icon--green {
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
  color: #15803d;
}

.feature-icon--orange {
  background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
  color: #c2410c;
}

.features h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.features p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

.download-panel {
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-panel h2 {
  margin-top: 0;
  color: var(--text);
  font-size: 20px;
}

.download-panel ol {
  color: var(--text-secondary);
  line-height: 1.9;
}

.download-panel a {
  color: var(--accent-deep);
}

.note {
  color: var(--muted);
  font-size: 13px;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--accent-deep);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* download page */
.download-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.download-card {
  position: relative;
  z-index: 1;
  width: min(480px, 92vw);
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.download-card h1 {
  font-size: 22px;
  margin: 0 0 24px;
  color: var(--text);
}

.progress-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease;
}

.detail, .fallback {
  color: var(--muted);
  font-size: 13px;
}

.fallback a { color: var(--accent-deep); }

/* doc / beta pages */
.doc-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 1;
}

.doc-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.doc-page h2 {
  font-size: 18px;
  margin-top: 32px;
  color: var(--accent-deep);
}

.doc-page ul, .doc-page ol {
  color: var(--text-secondary);
  line-height: 1.85;
}

.doc-page code {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.doc-page textarea {
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 12px 0;
}

.version-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.version-row input {
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
}

.doc-page .btn { margin-top: 8px; }
