/* ========================================
   ProspectClaw Portal — 门户网站样式
   ======================================== */

/* ── 主题变量 ── */
:root, [data-theme="light"] {
  --p-bg: #F7F8FA;
  --p-bg-alt: #FFFFFF;
  --p-bg-card: #FFFFFF;
  --p-bg-glass: rgba(255,255,255,0.72);
  --p-bg-glass-strong: rgba(255,255,255,0.88);
  --p-text: #0F1419;
  --p-text-secondary: #4B5563;
  --p-text-tertiary: #9CA3AF;
  --p-accent: #1E3A5F;
  --p-accent-hover: #15294A;
  --p-accent-muted: rgba(30,58,95,0.08);
  --p-accent-subtle: rgba(30,58,95,0.04);
  --p-gold: #A67C3D;
  --p-gold-muted: rgba(166,124,61,0.08);
  --p-border: #E2E5EB;
  --p-border-soft: #ECEEF2;
  --p-shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --p-shadow-md: 0 2px 8px rgba(15,23,42,0.06);
  --p-shadow-lg: 0 4px 24px rgba(15,23,42,0.10);
  --p-shadow-xl: 0 8px 40px rgba(15,23,42,0.12);
  --p-nav-bg: rgba(255,255,255,0.78);
  --p-hero-orb1: rgba(30,58,95,0.06);
  --p-hero-orb2: rgba(166,124,61,0.05);
  --p-hero-grid: rgba(30,58,95,0.03);
  --p-code-bg: #f1f3f5;
  --p-chip-bg: rgba(30,58,95,0.07);
  --p-chip-text: #1E3A5F;
  --p-step-line: #E2E5EB;
  --p-step-num-bg: #1E3A5F;
  --p-step-num-text: #fff;
}

[data-theme="dark"] {
  --p-bg: #0D1117;
  --p-bg-alt: #161B22;
  --p-bg-card: #161B22;
  --p-bg-glass: rgba(22,27,34,0.78);
  --p-bg-glass-strong: rgba(22,27,34,0.92);
  --p-text: #E4E4E7;
  --p-text-secondary: #9CA3AF;
  --p-text-tertiary: #6B7280;
  --p-accent: #88B0D8;
  --p-accent-hover: #a3c4e6;
  --p-accent-muted: rgba(136,176,216,0.1);
  --p-accent-subtle: rgba(136,176,216,0.05);
  --p-gold: #D4A24C;
  --p-gold-muted: rgba(212,162,76,0.1);
  --p-border: #30363D;
  --p-border-soft: #21262D;
  --p-shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --p-shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  --p-shadow-lg: 0 4px 24px rgba(0,0,0,0.3);
  --p-shadow-xl: 0 8px 40px rgba(0,0,0,0.4);
  --p-nav-bg: rgba(13,17,23,0.82);
  --p-hero-orb1: rgba(136,176,216,0.06);
  --p-hero-orb2: rgba(212,162,76,0.05);
  --p-hero-grid: rgba(136,176,216,0.02);
  --p-code-bg: #1c2128;
  --p-chip-bg: rgba(136,176,216,0.1);
  --p-chip-text: #88B0D8;
  --p-step-line: #30363D;
  --p-step-num-bg: #88B0D8;
  --p-step-num-text: #0D1117;
}

/* ── 基础重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--p-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── 滚动进度条 ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 10001;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--p-accent), var(--p-gold));
  transition: width 0.1s linear;
}

/* ── 导航栏 ── */
.portal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  background: var(--p-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--p-border-soft);
  transition: background 0.3s;
}

.portal-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 60px;
}

.portal-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--p-text);
  text-decoration: none;
}
.portal-nav-brand:hover { text-decoration: none; }

.portal-nav-brand img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: contain;
}

.portal-nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}

.portal-nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--p-text-secondary);
  transition: color 0.2s;
}
.portal-nav-links a:hover { color: var(--p-text); text-decoration: none; }

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

.theme-toggle {
  background: none; border: 1px solid var(--p-border); border-radius: 8px;
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--p-text-secondary); font-size: 18px;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--p-accent); color: var(--p-accent); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: var(--p-text);
  border-radius: 1px; transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--p-bg-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--p-border);
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 10px 0; font-size: 15px; font-weight: 500;
  color: var(--p-text-secondary); border-bottom: 1px solid var(--p-border-soft);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--p-text); text-decoration: none; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 80px;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}

.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.hero-orb-1 {
  width: 500px; height: 500px; top: -120px; right: -100px;
  background: var(--p-hero-orb1);
  animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px; bottom: -80px; left: -60px;
  background: var(--p-hero-orb2);
  animation: orbFloat 25s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--p-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--p-hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: var(--p-accent-muted);
  color: var(--p-accent); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--p-border-soft);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: 3rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--p-accent) 0%, var(--p-gold) 50%, var(--p-accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 17px; color: var(--p-text-secondary);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
}

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

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

.btn-primary {
  background: var(--p-accent); color: #fff;
}
.btn-primary:hover { background: var(--p-accent-hover); transform: translateY(-1px); box-shadow: var(--p-shadow-md); }

.btn-outline {
  background: transparent; color: var(--p-accent);
  border: 1.5px solid var(--p-border);
}
.btn-outline:hover { border-color: var(--p-accent); transform: translateY(-1px); }

.hero-image {
  margin-top: 56px; position: relative;
  perspective: 1000px;
}

.hero-image-frame {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: var(--p-shadow-xl);
  transform: rotateX(2deg);
  transition: transform 0.4s;
  max-width: 900px; margin: 0 auto;
}
.hero-image-frame:hover { transform: rotateX(0deg); }

.hero-image-frame::before {
  content: ''; position: absolute; inset: -2px; border-radius: 14px; z-index: -1;
  background: linear-gradient(135deg, var(--p-accent), var(--p-gold), var(--p-accent));
  background-size: 300% 300%;
  animation: gradShift 4s ease-in-out infinite;
}

.hero-image-frame img {
  border-radius: 12px; width: 100%; display: block;
}

/* ── 统计栏 ── */
.stats {
  padding: 60px 0;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.stat-card {
  text-align: center; padding: 28px 16px;
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 14px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }

.stat-value {
  font-size: 2rem; font-weight: 800;
  color: var(--p-accent); margin-bottom: 6px;
}

.stat-label {
  font-size: 13px; color: var(--p-text-tertiary); font-weight: 500;
}

/* ── 区块通用 ── */
.section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center; margin-bottom: 56px;
}

.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--p-gold); margin-bottom: 12px;
}

.section-title {
  font-size: 2rem; font-weight: 800;
  color: var(--p-text); margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 15px; color: var(--p-text-secondary);
  max-width: 560px; margin: 0 auto;
}

/* ── 功能展示行 ── */
.showcase-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }

.showcase-text { }

.showcase-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--p-gold); margin-bottom: 12px;
}

.showcase-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--p-text); margin-bottom: 12px;
}

.showcase-desc {
  font-size: 15px; color: var(--p-text-secondary);
  line-height: 1.7; margin-bottom: 16px;
}

.showcase-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.chip {
  display: inline-block; padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  background: var(--p-chip-bg);
  color: var(--p-chip-text);
  border-radius: 6px;
}

.showcase-image {
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--p-shadow-lg);
  border: 1px solid var(--p-border-soft);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.showcase-image:hover { transform: scale(1.02); box-shadow: var(--p-shadow-xl); }
.showcase-image img { width: 100%; display: block; }

/* ── 教程引导 ── */
.tutorials-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}

.tutorial-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tutorial-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-lg); }

.tutorial-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--p-gold-muted);
  color: var(--p-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tutorial-card-icon {
  font-size: 28px; margin-bottom: 16px;
}

.tutorial-card-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--p-text); margin-bottom: 8px;
}

.tutorial-card-desc {
  font-size: 13px; color: var(--p-text-tertiary);
  margin-bottom: 24px;
}

.tutorial-steps { list-style: none; }

.tutorial-step {
  display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--p-border-soft);
}
.tutorial-step:last-child { border-bottom: none; }

.tutorial-step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--p-step-num-bg);
  color: var(--p-step-num-text);
  font-size: 12px; font-weight: 700;
  border-radius: 50%;
}

.tutorial-step-body { flex: 1; min-width: 0; }

.tutorial-step-title {
  font-size: 14px; font-weight: 600;
  color: var(--p-text); margin-bottom: 2px;
}

.tutorial-step-desc {
  font-size: 12px; color: var(--p-text-tertiary);
  line-height: 1.5;
}

.tutorial-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tutorial-card-note {
  font-size: 12px;
  color: var(--p-text-tertiary);
}

/* ── OpenClaw 指南页 ── */
.hero-guide {
  padding-bottom: 96px;
}

.guide-quickbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.guide-quickbar-card {
  text-align: left;
  background: var(--p-bg-glass);
  border: 1px solid var(--p-border-soft);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: var(--p-shadow-sm);
}

.guide-quickbar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-quickbar-text {
  font-size: 14px;
  color: var(--p-text-secondary);
  line-height: 1.65;
}

.guide-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.guide-intro-copy {
  background: linear-gradient(180deg, var(--p-bg-card), color-mix(in srgb, var(--p-bg-card) 90%, var(--p-accent-muted)));
  border: 1px solid var(--p-border-soft);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--p-shadow-md);
}

.guide-intro-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--p-accent-muted);
  color: var(--p-accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.guide-intro-copy h3 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.guide-intro-copy p {
  color: var(--p-text-secondary);
  font-size: 15px;
}

.guide-steps {
  display: grid;
  gap: 24px;
}

.guide-step-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--p-shadow-sm);
}

.guide-step-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.guide-step-index {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--p-accent), var(--p-gold));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.guide-step-meta {
  color: var(--p-text-tertiary);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.guide-step-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.guide-step-content.reverse {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.guide-step-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.guide-step-copy > p {
  font-size: 15px;
  color: var(--p-text-secondary);
  line-height: 1.72;
  margin-bottom: 16px;
}

.guide-bullet-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.guide-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--p-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.guide-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-accent), var(--p-gold));
}

.guide-checkpoint {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--p-accent-subtle);
  border: 1px solid var(--p-border-soft);
  color: var(--p-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.guide-skill-note {
  display: grid;
  gap: 12px;
}

.guide-mini-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--p-border-soft);
  background: var(--p-bg);
}

.guide-mini-card h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--p-text);
}

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

.guide-test-box {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--p-gold) 50%, var(--p-border));
  background: color-mix(in srgb, var(--p-gold-muted) 48%, var(--p-bg-card));
  margin-bottom: 18px;
}

.guide-test-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--p-text);
  margin-bottom: 8px;
}

.guide-test-message {
  font-size: 14px;
  color: var(--p-text-secondary);
  line-height: 1.7;
}

.guide-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.guide-focus-card {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--p-border-soft);
  background: var(--p-bg-card);
  box-shadow: var(--p-shadow-sm);
}

.guide-focus-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--p-accent-muted);
  color: var(--p-accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.guide-focus-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

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

.guide-callout {
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--p-border-soft);
  background: linear-gradient(135deg, var(--p-accent-subtle), var(--p-gold-muted));
}

.guide-callout-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--p-accent);
  margin-bottom: 8px;
}

.guide-callout p {
  color: var(--p-text-secondary);
  font-size: 14px;
  line-height: 1.72;
}

.guide-fix-grid,
.guide-glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-fix-card,
.guide-glossary-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--p-shadow-sm);
}

.guide-fix-card h3,
.guide-glossary-card h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

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

.guide-final {
  padding-top: 0;
}

.guide-final-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--p-accent) 14%, var(--p-bg-card)), color-mix(in srgb, var(--p-gold) 12%, var(--p-bg-card)));
  border: 1px solid var(--p-border-soft);
  box-shadow: var(--p-shadow-md);
}

.guide-final-copy h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.guide-final-copy p {
  color: var(--p-text-secondary);
  font-size: 15px;
  line-height: 1.72;
  max-width: 720px;
}

.guide-final-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ── 技术架构 ── */
.tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}

.tech-card {
  position: relative; overflow: hidden;
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }

.tech-card-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), var(--p-accent-muted), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.tech-card:hover .tech-card-spotlight { opacity: 1; }

.tech-card-icon {
  font-size: 28px; margin-bottom: 14px;
}

.tech-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--p-text); margin-bottom: 6px;
}

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

/* ── 下载区 ── */
.download-badge {
  display: inline-block; padding: 4px 14px;
  background: var(--p-accent-muted);
  color: var(--p-accent); font-size: 13px; font-weight: 700;
  border-radius: 8px; margin-bottom: 12px;
}

.download-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}

.download-card {
  text-align: center;
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 14px;
  padding: 32px 20px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }

.download-card-icon {
  font-size: 36px; margin-bottom: 14px;
}

.download-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--p-text); margin-bottom: 4px;
}

.download-card-detail {
  font-size: 12px; color: var(--p-text-tertiary);
  margin-bottom: 18px;
}

.download-card .btn { width: 100%; justify-content: center; }

/* ── 联系我们 ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  text-align: center;
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 14px;
  padding: 28px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }

.contact-card-icon {
  font-size: 32px; margin-bottom: 12px;
}

.contact-card-title {
  font-size: 15px; font-weight: 700; color: var(--p-text); margin-bottom: 6px;
}

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

.contact-card a {
  color: var(--p-accent); font-weight: 600;
}

.contact-info {
  text-align: center; font-size: 14px;
  color: var(--p-text-tertiary);
}

/* ── 为什么选择 ── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.why-card {
  position: relative; overflow: hidden;
  background: var(--p-bg-card);
  border: 1px solid var(--p-border-soft);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }

.why-card-icon {
  font-size: 28px; margin-bottom: 14px;
}

.why-card-title {
  font-size: 15px; font-weight: 700;
  color: var(--p-text); margin-bottom: 6px;
}

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

/* ── Waitlist 按钮 ── */
.btn-waitlist {
  background: transparent;
  color: var(--p-gold);
  border: 1.5px solid var(--p-gold);
}
.btn-waitlist:hover {
  background: var(--p-gold-muted);
  transform: translateY(-1px);
}

.download-card-soon {
  font-size: 12px; color: var(--p-text-tertiary);
  margin-top: 8px;
}

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

.portal-footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: var(--p-text);
  margin-bottom: 12px;
}
.portal-footer-brand img { width: 24px; height: 24px; border-radius: 6px; }

.portal-footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 16px;
}
.portal-footer-links a {
  font-size: 13px; color: var(--p-text-tertiary);
}
.portal-footer-links a:hover { color: var(--p-accent); }

.portal-footer-copy {
  font-size: 12px; color: var(--p-text-tertiary);
}

/* ── 灯箱 ── */
.lightbox {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.82);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ── 滚动动画 ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

/* ── 关键帧 ── */
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(0.95); }
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .portal-nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row.reverse { direction: ltr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .guide-quickbar { grid-template-columns: 1fr; }
  .guide-intro-panel { grid-template-columns: 1fr; }
  .guide-step-content,
  .guide-step-content.reverse { grid-template-columns: 1fr; }
  .guide-four-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-fix-grid,
  .guide-glossary-grid { grid-template-columns: 1fr; }
  .guide-final-panel { flex-direction: column; align-items: flex-start; }
  .guide-final-actions { flex-direction: row; flex-wrap: wrap; }
  .download-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 15px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  .guide-step-card { padding: 22px; }
  .guide-intro-copy h3 { font-size: 1.35rem; }
  .guide-final-copy h2 { font-size: 1.45rem; }
  .tech-grid { grid-template-columns: 1fr; }
  .guide-four-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .tutorial-card-actions .btn,
  .guide-final-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 12px; }
}
