/* ========================================
   Privix Portal — Apple Design System
   ======================================== */

/* ── 主题变量 ── */
:root, [data-theme="light"] {
  --p-bg: #f5f5f7;
  --p-bg-alt: #000000;
  --p-bg-card: #f5f5f7;
  --p-bg-card-dark: #272729;
  --p-text: #1d1d1f;
  --p-text-secondary: rgba(0, 0, 0, 0.8);
  --p-text-tertiary: rgba(0, 0, 0, 0.48);
  --p-accent: #0071e3;
  --p-accent-hover: #0077ed;
  --p-link: #0066cc;
  --p-nav-bg: rgba(0, 0, 0, 0.8);
  --p-nav-text: #ffffff;
  --p-chip-bg: rgba(0, 113, 227, 0.08);
  --p-chip-text: #0066cc;
  --p-step-num-bg: #1d1d1f;
  --p-step-num-text: #ffffff;
  --p-step-line: #d2d2d7;
  --p-footer-bg: #f5f5f7;
  --p-footer-border: #d2d2d7;
}

[data-theme="dark"] {
  --p-bg: #000000;
  --p-bg-alt: #f5f5f7;
  --p-bg-card: #1d1d1f;
  --p-bg-card-dark: #272729;
  --p-text: #ffffff;
  --p-text-secondary: rgba(255, 255, 255, 0.8);
  --p-text-tertiary: rgba(255, 255, 255, 0.48);
  --p-accent: #0071e3;
  --p-accent-hover: #0077ed;
  --p-link: #2997ff;
  --p-nav-bg: rgba(0, 0, 0, 0.8);
  --p-nav-text: #ffffff;
  --p-chip-bg: rgba(41, 151, 255, 0.12);
  --p-chip-text: #2997ff;
  --p-step-num-bg: #ffffff;
  --p-step-num-text: #000000;
  --p-step-line: #424245;
  --p-footer-bg: #1d1d1f;
  --p-footer-border: #424245;
}

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

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

body {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

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

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

/* ── 导航栏 ── */
.portal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  background: var(--p-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s;
}

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

.portal-nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--p-nav-text);
  text-decoration: none; letter-spacing: -0.224px;
}
.portal-nav-brand:hover { text-decoration: none; }

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

.portal-nav-links {
  display: flex; align-items: center; gap: 24px;
  list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}

.portal-nav-links a {
  font-size: 12px; font-weight: 400;
  color: var(--p-nav-text);
  letter-spacing: -0.12px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.portal-nav-links a:hover { opacity: 1; text-decoration: none; }

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

/* 语言切换器 */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  overflow: hidden;
}
.lang-switcher button {
  background: none; border: none; cursor: pointer;
  padding: 5px 7px; font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.56);
  transition: background 0.2s, color 0.2s;
  line-height: 1; letter-spacing: -0.08px;
}
.lang-switcher button:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
.lang-switcher button.active {
  color: #ffffff; background: rgba(255,255,255,0.18);
}

.theme-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px; background: #ffffff;
  border-radius: 1px; transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed; top: 48px; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 10px 0; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: -0.224px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #ffffff; text-decoration: none; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
  text-align: center;
  background: #000000;
  color: #ffffff;
}

.hero-bg {
  display: none;
}

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

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 980px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -0.12px;
}

.hero-title {
  font-size: 56px; font-weight: 600; line-height: 1.07;
  letter-spacing: -0.28px; margin-bottom: 16px;
  color: #ffffff;
  /* 移除渐变效果 */
  background: none;
  -webkit-background-clip: unset; background-clip: unset;
  -webkit-text-fill-color: unset;
  animation: none;
}

.hero-subtitle {
  font-size: 21px; font-weight: 400; line-height: 1.19;
  color: rgba(255,255,255,0.7);
  max-width: 600px; margin: 0 auto 32px;
  letter-spacing: 0.231px;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 8px;
  font-size: 17px; font-weight: 400;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  border: none; text-decoration: none;
  letter-spacing: -0.374px;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: #0071e3; color: #ffffff;
}
.btn-primary:hover { background: #0077ed; }

.btn-outline {
  background: transparent; color: #2997ff;
  border: 1px solid #2997ff;
  border-radius: 980px;
  padding: 8px 20px;
}
.btn-outline:hover { background: rgba(41, 151, 255, 0.08); }

/* Light-section button overrides */
.section-light .btn-outline {
  color: #0066cc;
  border-color: #0066cc;
}
.section-light .btn-outline:hover { background: rgba(0, 102, 204, 0.06); }

.btn-disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.hero-image {
  margin-top: 48px; position: relative;
}

.hero-image-frame {
  position: relative; border-radius: 8px; overflow: hidden;
  max-width: 860px; margin: 0 auto;
}
.hero-image-frame::before {
  display: none;
}

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

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

[data-theme="dark"] .stats {
  background: #000000;
}

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

.stat-card {
  text-align: center; padding: 28px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
}

.stat-value {
  font-size: 40px; font-weight: 600;
  color: var(--p-text); margin-bottom: 6px;
  line-height: 1.10;
  letter-spacing: -0.28px;
}

.stat-label {
  font-size: 14px; color: var(--p-text-secondary); font-weight: 400;
  letter-spacing: -0.224px;
}

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

/* 交替区块背景 — light 主题: 偶数黑色, 奇数浅灰 */
.section-dark {
  background: #000000;
  color: #ffffff;
}

.section-light {
  background: #f5f5f7;
  color: #1d1d1f;
}

[data-theme="dark"] .section-dark {
  background: #000000;
  color: #ffffff;
}

[data-theme="dark"] .section-light {
  background: #1d1d1f;
  color: #ffffff;
}

/* 深色主题 .section-light 子元素继承 token 文字色(否则浅主题 color: #1d1d1f 在深底下不可读) */
[data-theme="dark"] .section-light .section-title,
[data-theme="dark"] .section-light .showcase-title,
[data-theme="dark"] .section-light .tutorial-card-title,
[data-theme="dark"] .section-light .tutorial-step-title,
[data-theme="dark"] .section-light .doc-card-title,
[data-theme="dark"] .section-light .tech-card-title,
[data-theme="dark"] .section-light .download-card-title {
  color: var(--p-text);
}
[data-theme="dark"] .section-light .section-subtitle,
[data-theme="dark"] .section-light .showcase-desc,
[data-theme="dark"] .section-light .doc-card-desc,
[data-theme="dark"] .section-light .tech-card-desc {
  color: var(--p-text-secondary);
}

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

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

.section-dark .section-tag { color: #2997ff; }
.section-light .section-tag { color: #0066cc; }

.section-title {
  font-size: 40px; font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: normal;
  line-height: 1.10;
}

.section-dark .section-title { color: #ffffff; }
.section-light .section-title { color: #1d1d1f; }

.section-subtitle {
  font-size: 17px; font-weight: 400;
  max-width: 560px; margin: 0 auto;
  line-height: 1.47; letter-spacing: -0.374px;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-light .section-subtitle { color: rgba(0,0,0,0.56); }

/* ── 功能展示行 ── */
.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-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: -0.12px; margin-bottom: 8px;
}

.section-dark .showcase-label { color: #2997ff; }
.section-light .showcase-label { color: #0066cc; }

.showcase-title {
  font-size: 28px; font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.14; letter-spacing: 0.196px;
}

.section-dark .showcase-title { color: #ffffff; }
.section-light .showcase-title { color: #1d1d1f; }

.showcase-desc {
  font-size: 17px; font-weight: 400;
  line-height: 1.47; margin-bottom: 16px;
  letter-spacing: -0.374px;
}

.section-dark .showcase-desc { color: rgba(255,255,255,0.7); }
.section-light .showcase-desc { color: rgba(0,0,0,0.56); }

.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: 5px;
  letter-spacing: -0.12px;
}

.showcase-image {
  border-radius: 8px; overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s;
}
.showcase-image:hover { opacity: 0.9; }
.showcase-image img { width: 100%; display: block; }

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

.tutorial-card {
  background: var(--p-bg-card-dark);
  border: none;
  border-radius: 8px;
  padding: 32px;
}

.section-light .tutorial-card {
  background: #ffffff;
}

[data-theme="dark"] .section-light .tutorial-card {
  background: #272729;
}

.section-dark .tutorial-card {
  background: #272729;
}

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

.tutorial-card-title {
  font-size: 21px; font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.19; letter-spacing: 0.231px;
}

.section-dark .tutorial-card-title { color: #ffffff; }
.section-light .tutorial-card-title { color: #1d1d1f; }

.tutorial-card-desc {
  font-size: 14px; color: var(--p-text-tertiary);
  margin-bottom: 24px;
  letter-spacing: -0.224px; line-height: 1.29;
}

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

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

.tutorial-step-num {
  width: 24px; height: 24px; 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: 600;
  border-radius: 50%;
  letter-spacing: -0.12px;
}

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

.tutorial-step-title {
  font-size: 14px; font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.224px; line-height: 1.29;
}

.section-dark .tutorial-step-title { color: #ffffff; }
.section-light .tutorial-step-title { color: #1d1d1f; }

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

/* ── 手册文档 ── */
.docs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.doc-card {
  display: block;
  background: #272729;
  border: none;
  border-radius: 8px;
  padding: 32px;
  text-decoration: none;
  transition: background 0.2s;
}
.doc-card:hover { background: #333336; text-decoration: none; }

.section-light .doc-card {
  background: #ffffff;
}
.section-light .doc-card:hover { background: #fafafa; }

[data-theme="dark"] .section-light .doc-card {
  background: #272729;
}
[data-theme="dark"] .section-light .doc-card:hover { background: #333336; }

.doc-card-icon {
  font-size: 32px; margin-bottom: 16px;
}

.doc-card-title {
  font-size: 21px; font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.19; letter-spacing: 0.231px;
}

.section-dark .doc-card-title { color: #ffffff; }
.section-light .doc-card-title { color: #1d1d1f; }

.doc-card-desc {
  font-size: 14px;
  line-height: 1.43; letter-spacing: -0.224px;
  margin-bottom: 16px;
}

.section-dark .doc-card-desc { color: rgba(255,255,255,0.56); }
.section-light .doc-card-desc { color: rgba(0,0,0,0.56); }

.doc-card-link {
  font-size: 14px; font-weight: 600;
  color: #2997ff;
  letter-spacing: -0.224px;
}

.section-light .doc-card-link { color: #0066cc; }

@media (max-width: 1024px) {
  .docs-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

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

.tech-card {
  position: relative; overflow: hidden;
  background: var(--p-bg-card-dark);
  border: none;
  border-radius: 8px;
  padding: 28px;
}

.section-light .tech-card {
  background: #ffffff;
}

[data-theme="dark"] .section-light .tech-card {
  background: #272729;
}

.section-dark .tech-card {
  background: #272729;
}

.tech-card-spotlight {
  display: none;
}

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

.tech-card-title {
  font-size: 21px; font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.19; letter-spacing: 0.231px;
}

.section-dark .tech-card-title { color: #ffffff; }
.section-light .tech-card-title { color: #1d1d1f; }

.tech-card-desc {
  font-size: 14px;
  line-height: 1.43; letter-spacing: -0.224px;
}

.section-dark .tech-card-desc { color: rgba(255,255,255,0.56); }
.section-light .tech-card-desc { color: rgba(0,0,0,0.56); }

/* ── 下载区 ── */
.download-badge {
  display: inline-block; padding: 4px 14px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--p-link); font-size: 14px; font-weight: 600;
  border-radius: 980px; margin-bottom: 12px;
  letter-spacing: -0.224px;
}

.section-dark .download-badge {
  background: rgba(41, 151, 255, 0.15);
  color: #2997ff;
}

.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-dark);
  border: none;
  border-radius: 8px;
  padding: 32px 20px;
}

.section-light .download-card {
  background: #ffffff;
}

[data-theme="dark"] .section-light .download-card {
  background: #272729;
}

.section-dark .download-card {
  background: #272729;
}

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

.download-card-title {
  font-size: 21px; font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.19; letter-spacing: 0.231px;
}

.section-dark .download-card-title { color: #ffffff; }
.section-light .download-card-title { color: #1d1d1f; }

.download-card-detail {
  font-size: 12px; color: var(--p-text-tertiary);
  margin-bottom: 18px;
  letter-spacing: -0.12px; line-height: 1.33;
}

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

.download-coming-soon {
  text-align: center;
  font-size: 14px;
  color: var(--p-text-tertiary);
  margin-top: 20px;
  letter-spacing: -0.224px;
}

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

[data-theme="dark"] .portal-footer {
  background: #1d1d1f;
  border-top-color: #424245;
}

.portal-footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--p-text);
  margin-bottom: 12px;
  letter-spacing: -0.224px;
}
.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: 12px; color: var(--p-text-tertiary);
  letter-spacing: -0.12px;
}
.portal-footer-links a:hover { color: var(--p-link); }

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

/* ── 灯箱 ── */
.lightbox {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.88);
  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;
}

/* ── 指南页面通用 ── */
.hero-guide {
  padding: 140px 0 60px;
}
.hero-guide .hero-subtitle {
  font-size: 17px;
  max-width: 680px;
}

/* 快速信息栏 */
.guide-quickbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.guide-quickbar-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}
.guide-quickbar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.12px;
  color: rgba(255,255,255,0.56);
  margin-bottom: 6px;
}
.guide-quickbar-text {
  font-size: 14px;
  line-height: 1.43;
  color: rgba(255,255,255,0.8);
}

/* 步骤卡片 */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.guide-step-card {
  background: var(--p-bg-card-dark);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}
.section-light .guide-step-card {
  background: #ffffff;
}
[data-theme="dark"] .section-light .guide-step-card {
  background: #272729;
}

.guide-step-topline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.guide-step-index {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 14px;
  flex-shrink: 0;
}
.guide-step-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-text-secondary);
  letter-spacing: -0.224px;
}
.guide-step-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.guide-step-content.reverse {
  direction: rtl;
}
.guide-step-content.reverse > * {
  direction: ltr;
}
.guide-step-copy h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.17;
  letter-spacing: 0.009px;
  color: var(--p-text);
}
.guide-step-copy h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--p-text);
}
.guide-step-copy p {
  font-size: 15px;
  line-height: 1.53;
  color: var(--p-text-secondary);
  margin-bottom: 12px;
}

/* 列表 */
.guide-bullet-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.guide-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.53;
  color: var(--p-text-secondary);
  margin-bottom: 8px;
}
.guide-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-accent);
}

/* 过关标准 */
.guide-checkpoint {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(0,113,227,0.06);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.43;
  color: var(--p-text-secondary);
}
[data-theme="dark"] .guide-checkpoint {
  background: rgba(41,151,255,0.1);
}

/* 提示框 */
.guide-callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(0,113,227,0.06);
  border-left: 3px solid var(--p-accent);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.53;
  color: var(--p-text-secondary);
}
[data-theme="dark"] .guide-callout {
  background: rgba(41,151,255,0.08);
}
.guide-callout-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 6px;
}

/* 版本卡片网格 */
.editions-grid {
  display: grid;
  gap: 20px;
}
.edition-card {
  background: var(--p-bg-card-dark);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.section-light .edition-card { background: #ffffff; }
[data-theme="dark"] .section-light .edition-card { background: #272729; }

.edition-card-icon { font-size: 36px; margin-bottom: 12px; }
.edition-card-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--p-text);
}
.edition-card-tagline {
  font-size: 14px;
  color: var(--p-text-tertiary);
  margin-bottom: 16px;
}
.edition-card-features {
  list-style: none;
  padding: 0;
  text-align: left;
}
.edition-card-features li {
  font-size: 14px;
  line-height: 1.43;
  color: var(--p-text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--p-step-line);
}
.edition-card-features li:last-child { border-bottom: none; }

/* 工具卡片网格 */
.guide-cards-panel {
  margin-top: 48px;
  padding: 40px;
  background: var(--p-bg-card-dark);
  border-radius: 16px;
}
.section-light .guide-cards-panel { background: #ffffff; }
[data-theme="dark"] .section-light .guide-cards-panel { background: #272729; }

.guide-cards-title {
  font-size: 21px;
  font-weight: 600;
  margin: 8px 0 6px;
  color: var(--p-text);
}
.guide-cards-desc {
  font-size: 14px;
  color: var(--p-text-tertiary);
  margin-bottom: 24px;
  max-width: 640px;
}
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.guide-tool-card {
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 20px;
}
[data-theme="dark"] .guide-tool-card {
  background: rgba(255,255,255,0.04);
}
.guide-tool-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.guide-tool-icon { font-size: 20px; }
.guide-tool-head h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--p-text);
}
.guide-tool-card p {
  font-size: 13px;
  line-height: 1.46;
  color: var(--p-text-secondary);
  margin-bottom: 8px;
}
.guide-tool-tip {
  font-size: 12px;
  color: var(--p-text-tertiary);
  font-style: italic;
}

/* 介绍面板 */
.guide-intro-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--p-bg-card-dark);
  border-radius: 16px;
}
.section-light .guide-intro-panel { background: #ffffff; }
[data-theme="dark"] .section-light .guide-intro-panel { background: #272729; }

.guide-intro-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--p-link);
  margin-bottom: 12px;
}
.guide-intro-copy h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.41;
  color: var(--p-text);
  margin-bottom: 10px;
}
.guide-intro-copy p {
  font-size: 14px;
  line-height: 1.43;
  color: var(--p-text-secondary);
}

/* 小卡片堆叠 */
.guide-mini-stack,
.guide-skill-note,
.guide-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-mini-card {
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 20px;
}
[data-theme="dark"] .guide-mini-card {
  background: rgba(255,255,255,0.04);
}
.guide-mini-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 6px;
}
.guide-mini-card p {
  font-size: 13px;
  line-height: 1.46;
  color: var(--p-text-secondary);
}

/* 双截图 */
.guide-dual-shots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 排障清单 */
.guide-fix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.guide-fix-card {
  background: var(--p-bg-card-dark);
  border-radius: 16px;
  padding: 28px;
}
.section-light .guide-fix-card { background: #ffffff; }
[data-theme="dark"] .section-light .guide-fix-card { background: #272729; }

.guide-fix-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 12px;
}

/* 概念速查 */
.guide-glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-glossary-card {
  background: var(--p-bg-card-dark);
  border-radius: 12px;
  padding: 24px;
}
.section-light .guide-glossary-card { background: #ffffff; }
[data-theme="dark"] .section-light .guide-glossary-card { background: #272729; }

.guide-glossary-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 8px;
}
.guide-glossary-card p {
  font-size: 13px;
  line-height: 1.46;
  color: var(--p-text-secondary);
}

/* 日常管理 4 格 */
.guide-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.guide-focus-card {
  background: var(--p-bg-card-dark);
  border-radius: 16px;
  padding: 28px;
}
.section-light .guide-focus-card { background: #ffffff; }
[data-theme="dark"] .section-light .guide-focus-card { background: #272729; }

.guide-focus-index {
  font-size: 28px;
  font-weight: 700;
  color: var(--p-accent);
  margin-bottom: 12px;
}
.guide-focus-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 8px;
}
.guide-focus-card p {
  font-size: 13px;
  line-height: 1.46;
  color: var(--p-text-secondary);
}

/* 测试消息框 */
.guide-test-box {
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
}
[data-theme="dark"] .guide-test-box {
  background: rgba(255,255,255,0.04);
}
.guide-test-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--p-text-tertiary);
  margin-bottom: 8px;
}
.guide-test-message {
  font-size: 14px;
  line-height: 1.43;
  color: var(--p-accent);
  font-style: italic;
}

/* 提示条 */
.guide-assistant-strip {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(0,113,227,0.06);
  border-radius: 12px;
  text-align: center;
}
[data-theme="dark"] .guide-assistant-strip {
  background: rgba(41,151,255,0.08);
}
.guide-assistant-strip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 4px;
}
.guide-assistant-strip p {
  font-size: 13px;
  color: var(--p-text-secondary);
}

/* 救援面板 */
.guide-rescue-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--p-bg-card-dark);
  border-radius: 12px;
  text-align: center;
}
.section-light .guide-rescue-panel { background: #ffffff; }
[data-theme="dark"] .section-light .guide-rescue-panel { background: #272729; }

.guide-rescue-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 12px;
}

/* 概要网格 */
.manual-outline {
  margin-bottom: 40px;
  padding: 28px;
  background: var(--p-bg-card-dark);
  border-radius: 16px;
}
.section-light .manual-outline { background: #ffffff; }
[data-theme="dark"] .section-light .manual-outline { background: #272729; }

.manual-outline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 16px;
}
.manual-outline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.manual-outline-item {
  font-size: 13px;
  line-height: 1.38;
  color: var(--p-text-secondary);
  padding: 10px 14px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
}
[data-theme="dark"] .manual-outline-item {
  background: rgba(255,255,255,0.04);
}

/* 结尾面板 */
.guide-final {
  padding: 60px 0;
}
.guide-final-panel {
  text-align: center;
  padding: 48px;
  background: var(--p-bg-card-dark);
  border-radius: 20px;
}
.section-light .guide-final-panel { background: #ffffff; }
[data-theme="dark"] .section-light .guide-final-panel { background: #272729; }

.guide-final-copy h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 12px;
}
.guide-final-copy p {
  font-size: 15px;
  color: var(--p-text-secondary);
  max-width: 540px;
  margin: 0 auto 24px;
}
.guide-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Agent 知识库 */
.ai-kb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--p-bg-card-dark);
  border-radius: 12px;
}
.section-light .ai-kb-toolbar { background: #ffffff; }
[data-theme="dark"] .section-light .ai-kb-toolbar { background: #272729; }

.ai-kb-block {
  font-family: "SF Mono", "Fira Code", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 32px;
  background: var(--p-bg-card-dark);
  border-radius: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--p-text-secondary);
}
.section-light .ai-kb-block { background: #ffffff; }
[data-theme="dark"] .section-light .ai-kb-block { background: #272729; }

/* ── 指南页面响应式 ── */
@media (max-width: 1024px) {
  .guide-quickbar { grid-template-columns: 1fr; }
  .guide-step-content { grid-template-columns: 1fr; }
  .guide-step-content.reverse { direction: ltr; }
  .guide-intro-panel { grid-template-columns: 1fr; }
  .guide-card-grid { grid-template-columns: 1fr; }
  .guide-fix-grid { grid-template-columns: 1fr; }
  .guide-glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-four-grid { grid-template-columns: repeat(2, 1fr); }
  .manual-outline-grid { grid-template-columns: repeat(2, 1fr); }
  .editions-grid { grid-template-columns: 1fr !important; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero-guide { padding: 100px 0 40px; }
  .guide-step-card { padding: 24px; }
  .guide-glossary-grid { grid-template-columns: 1fr; }
  .guide-four-grid { grid-template-columns: 1fr; }
  .manual-outline-grid { grid-template-columns: 1fr; }
}

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

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .portal-nav-links { display: none; }
  .hamburger { display: flex; }
  .lang-switcher { order: -1; }
  .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; }
  .download-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 40px; letter-spacing: -0.28px; }
  .hero-subtitle { font-size: 17px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; line-height: 1.14; }
  .tech-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 28px; }
}

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