/* HyperMS — 与项目前端风格统一的官网与设计系统 */

/* ─── 变量（与前端的 global.css 对齐） ─── */
:root {
  --primary: #3498db;
  --primary-dark: #297fb9;
  --success: #2ecc71;
  --warning: #ffa100;
  --danger: #e74c3c;
  --text-main: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-body-start: #b2d1ff99;
  --bg-body-end: #eaeef69c;
  --glass-bg: rgba(255, 255, 255, 0.56);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.55);
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-bg-hover: rgba(255, 255, 255, 0.88);
  --card-border: rgba(0, 0, 0, 0.06);
  --shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: linear-gradient(45deg, var(--bg-body-start), var(--bg-body-end));
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection {
  background: rgba(52, 152, 219, 0.2);
  color: var(--text-main);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── 导航 ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 40px; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);
}

.nav-brand-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.nav-cta {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* ─── Section ─── */
.section {
  position: relative;
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section { padding: 140px 40px; }
}

.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* ─── 排版 ─── */
.display-1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--text-main);
}

.display-2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--text-main);
}

.lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* ─── 首页增强 ─── */
body.home-page {
  min-height: 100vh;
  font-family:
    "Avenir Next",
    "SF Pro Display",
    -apple-system,
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  background:
    linear-gradient(135deg, rgba(178, 209, 255, 0.72) 0%, rgba(234, 238, 246, 0.72) 48%, rgba(247, 251, 255, 0.86) 100%);
}

.home-page .nav {
  background: rgba(255, 255, 255, 0.56);
  border-bottom-color: rgba(255, 255, 255, 0.58);
}

.home-page .nav-scrolled {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 28px rgba(20, 32, 61, 0.08);
}

.home-page .nav-inner {
  max-width: min(1440px, calc(100vw - 48px));
  padding-left: 0;
  padding-right: 0;
}

.home-hero {
  position: relative;
  min-height: 88svh;
  padding: 132px max(24px, calc((100vw - 1440px) / 2)) 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(178, 209, 255, 0.52), rgba(234, 238, 246, 0.5) 52%, rgba(247, 251, 255, 0.88));
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.94) 0%, rgba(247, 251, 255, 0.52) 44%, rgba(247, 251, 255, 0.72) 100%),
    linear-gradient(135deg, rgba(52, 152, 219, 0.14), rgba(108, 92, 231, 0.08) 50%, rgba(46, 204, 113, 0.06));
}

.home-hero::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1440px) / 2));
  right: max(24px, calc((100vw - 1440px) / 2));
  bottom: 0;
  height: 1px;
  background: rgba(31, 41, 55, 0.08);
}

.home-scene {
  position: absolute;
  inset: 96px max(24px, calc((100vw - 1440px) / 2)) 58px;
  z-index: 1;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.26)),
    linear-gradient(135deg, rgba(52, 152, 219, 0.16), rgba(108, 92, 231, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 68px rgba(20, 32, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  pointer-events: none;
}

.home-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.42;
}

.home-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.92) 0%, rgba(247, 251, 255, 0.58) 38%, rgba(247, 251, 255, 0.1) 100%),
    linear-gradient(180deg, transparent 0%, rgba(247, 251, 255, 0.24) 100%);
}

.scene-window {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 72px);
  top: clamp(48px, 7vw, 96px);
  width: 520px;
  max-width: 42vw;
  min-height: 320px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    0 20px 54px rgba(20, 32, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.scene-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 18px;
}

.scene-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.18);
}

.scene-topbar strong {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.scene-search {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: inset 0 1px 2px rgba(20, 32, 61, 0.04);
  font-size: 13px;
}

.scene-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  margin-top: 12px;
}

.scene-main,
.scene-side {
  display: grid;
  gap: 10px;
}

.scene-row,
.scene-side > div {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.05);
  box-shadow: 0 8px 18px rgba(20, 32, 61, 0.04);
}

.scene-row {
  min-height: 56px;
  padding: 12px 14px;
}

.scene-row.is-active {
  background: rgba(52, 152, 219, 0.12);
  border-color: rgba(52, 152, 219, 0.18);
}

.scene-row b,
.scene-side strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.scene-row span,
.scene-side span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.scene-side > div {
  min-height: 82px;
  padding: 14px;
}

.scene-side strong {
  margin-top: 8px;
  font-size: 17px;
}

.home-page .btn {
  height: 52px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 700;
}

.home-page .btn-primary {
  box-shadow: 0 10px 24px rgba(52, 152, 219, 0.24);
}

.home-page .btn-primary:hover {
  box-shadow: 0 14px 32px rgba(52, 152, 219, 0.3);
}

.home-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 580px;
  padding-bottom: 0;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  height: 30px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.home-hero h1 {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-main);
  font-size: clamp(48px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 27rem;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.75;
}

.home-hero-strip {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 70px;
}

.home-hero-strip span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.home-band,
.home-docs-band {
  padding: 92px max(24px, calc((100vw - 1440px) / 2));
}

.home-band-inner,
.home-docs-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.home-section-title {
  max-width: 560px;
  margin-bottom: 34px;
}

.home-section-title span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.home-section-title h2,
.home-docs-inner h2 {
  margin-top: 10px;
  color: var(--text-main);
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-feature-card {
  min-height: 190px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 38px rgba(20, 32, 61, 0.07);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 44px rgba(20, 32, 61, 0.1);
}

.home-feature-card span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.home-feature-card h3 {
  margin-top: 34px;
  color: var(--text-main);
  font-size: 22px;
  line-height: 1.2;
}

.home-feature-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.home-docs-band {
  padding-top: 56px;
}

.home-docs-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
  padding-top: 54px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.home-docs-inner p {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.home-doc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-doc-links a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.66);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(20, 32, 61, 0.05);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-doc-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
}

.home-page .footer {
  padding-top: 72px;
  border-top: 0;
}

.home-page .footer::before {
  content: "";
  display: block;
  width: min(1320px, calc(100vw - 48px));
  height: 1px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.home-page .footer a {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ─── 按钮 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.35);
}

.btn-secondary {
  color: var(--text-main);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ─── 卡片 ─── */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: all 0.4s var(--ease-out-expo);
}

.glass-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.15);
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── 网格 ─── */
.grid-2, .grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 分隔线 ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  border: none;
  margin: 0;
}

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

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

/* ─── 渐入动画 ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ============ TOPIC WIKI PAGES ============ */

body:not(.home-page):not(.docs-page) {
  font-family:
    "Avenir Next",
    "SF Pro Display",
    -apple-system,
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  background:
    linear-gradient(135deg, rgba(178, 209, 255, 0.62), rgba(234, 238, 246, 0.76) 56%, rgba(247, 251, 255, 0.88));
}

.site-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(20, 32, 61, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  font-size: 12px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.2;
}

.brand-copy em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.2;
}

.topbar .nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-panel {
  padding: 70px 0 44px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: end;
}

.eyebrow,
.section-label,
.card-kicker {
  display: inline-flex;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.hero-panel h1 {
  max-width: 820px;
  margin-top: 14px;
  color: var(--text-main);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.82;
}

.side-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 32px rgba(20, 32, 61, 0.06);
}

.side-card h3 {
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 12px;
}

.side-card ul,
.feature-list {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.86;
}

.site-shell > .section {
  max-width: none;
  padding: 58px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 8px;
  color: var(--text-main);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.card {
  min-height: 100%;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 34px rgba(20, 32, 61, 0.06);
}

.card h3 {
  margin: 6px 0 10px;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.35;
}

.card p,
.card li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.82;
}

.steps {
  display: grid;
  gap: 14px;
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 20px 18px 58px;
  border-radius: 18px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-main);
}

.placeholder-box {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px dashed rgba(52, 152, 219, 0.32);
}

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  background: rgba(52, 152, 219, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.placeholder-box strong {
  display: block;
  margin-top: 12px;
  color: var(--text-main);
}

.placeholder-box p,
.placeholder-box li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.settings-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}

.settings-guide-card {
  min-height: 100%;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(20, 32, 61, 0.045);
}

.settings-guide-card h3 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.3;
}

.settings-guide-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.78;
}

.settings-guide-card li + li {
  margin-top: 8px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.pager a {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(20, 32, 61, 0.05);
}

.pager span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.pager strong {
  display: block;
  margin-top: 4px;
  color: var(--text-main);
  font-size: 15px;
}

.footer-bar {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

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

.footer-bar a {
  color: var(--primary-dark);
  font-weight: 700;
}

.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 34px; }

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .topbar .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100vw - 20px, 1220px);
    padding-top: 10px;
    padding-bottom: 48px;
  }

  .topbar {
    top: 8px;
    gap: 12px;
    min-height: auto;
    padding: 12px;
    border-radius: 18px;
  }

  .brand-copy em {
    display: none;
  }

  .topbar .nav-links {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .topbar .nav-links::-webkit-scrollbar {
    display: none;
  }

  .topbar .nav-link {
    flex: 0 0 auto;
  }

  .hero-panel {
    padding: 38px 0 32px;
  }

  .hero-panel h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.72;
  }

  .side-card {
    padding: 18px;
    border-radius: 18px;
  }

  .site-shell > .section {
    padding: 42px 0;
  }

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

  .section-head h2 {
    font-size: 25px;
  }

  .steps li {
    padding: 16px 16px 16px 52px;
    border-radius: 16px;
  }

  .steps li::before {
    left: 16px;
    top: 17px;
  }

  .placeholder-box {
    padding: 20px;
    border-radius: 18px;
  }

  .settings-guide-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-guide-card {
    padding: 20px;
    border-radius: 18px;
  }

  .pager {
    grid-template-columns: 1fr;
  }
}

/* ─── 响应式 ─── */
@media (max-width: 1180px) {
  .scene-window {
    width: 480px;
    max-width: 44vw;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-docs-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .home-page .nav-inner {
    max-width: min(100vw - 24px, 1440px);
  }

  .section { padding: 80px 20px; }
  .section-hero { padding-top: 100px; }
  .display-1 { font-size: clamp(36px, 10vw, 52px); }

  .home-hero {
    min-height: 86svh;
    padding: 112px 18px 34px;
  }

  .home-scene {
    inset: 88px 12px 72px;
    border-radius: 26px;
  }

  .home-scene::after {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.86), rgba(247, 251, 255, 0.6) 56%, rgba(247, 251, 255, 0.24));
  }

  .scene-window {
    display: none;
  }

  .scene-window {
    right: 18px;
    bottom: 20px;
    width: min(520px, calc(100vw - 36px));
    min-height: 330px;
    padding: 16px;
    opacity: 0.72;
    transform: none;
  }

  .scene-body {
    grid-template-columns: 1fr;
  }

  .scene-side {
    display: none;
  }

  .home-hero h1 {
    max-width: 7ch;
    font-size: clamp(44px, 13vw, 66px);
  }

  .home-hero p {
    font-size: 16px;
  }

  .home-band,
  .home-docs-band {
    padding: 72px 18px;
  }

  .home-doc-links {
    grid-template-columns: 1fr;
  }

  .home-page .footer {
    padding-top: 48px;
  }
}

/* ============ DOCS PAGE ============ */

.docs-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 152, 219, 0.2), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(108, 92, 231, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(178, 209, 255, 0.52), rgba(234, 238, 246, 0.8) 52%, rgba(247, 251, 255, 0.94));
  background-attachment: fixed;
  font-family:
    "Avenir Next",
    "SF Pro Display",
    -apple-system,
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
}

.docs-page .nav {
  background: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.58);
}

.docs-page .nav-scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(20, 32, 61, 0.08);
}

.docs-page .nav-inner {
  max-width: min(1360px, calc(100vw - 48px));
}

.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1460px;
  margin: 0 auto;
  padding: 104px 28px 64px;
  min-height: 100vh;
  gap: 30px;
}

@media (min-width: 900px) {
  .docs-layout {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: clamp(28px, 3vw, 46px);
  }
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

@media (max-width: 899px) {
  .docs-sidebar {
    position: relative;
    top: 0;
  }
}

.docs-sidebar-panel {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(20, 32, 61, 0.07);
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.58);
}

.sidebar-link.active {
  color: var(--primary-dark);
  background: rgba(52, 152, 219, 0.11);
  box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.08);
}

.sidebar-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-note strong {
  display: block;
  color: var(--text-main);
  font-size: 13px;
  margin-bottom: 6px;
}

.sidebar-note span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.docs-content {
  padding: 0 0 80px;
  max-width: none;
  min-width: 0;
}

@media (min-width: 900px) {
  .docs-content {
    padding: 0 0 80px;
  }
}

.docs-intro {
  position: relative;
  padding: 38px 0 32px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.docs-intro-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.docs-intro h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--text-main);
}

.docs-intro-lead {
  max-width: 48rem;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.docs-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.docs-overview-card {
  display: block;
  padding: 18px 18px 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(20, 32, 61, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.docs-overview-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 42px rgba(20, 32, 61, 0.08);
}

.docs-overview-card strong {
  display: block;
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 6px;
}

.docs-overview-card span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.docs-content > article {
  scroll-margin-top: 118px;
  margin-top: 30px;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(20, 32, 61, 0.055);
}

.docs-content h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0;
  margin-bottom: 14px;
  line-height: 1.1;
}

.docs-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin: 48px 0 18px;
  letter-spacing: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.docs-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 30px 0 12px;
}

.docs-content p {
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 18px;
}

.docs-content ul,
.docs-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.82;
}

.docs-content li + li {
  margin-top: 8px;
}

.docs-content strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.docs-file-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -2px;
}

.docs-inline-link {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ─── 代码块 ─── */
.code-block {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at top right, rgba(52, 152, 219, 0.12), transparent 18%),
    linear-gradient(180deg, #0d1224 0%, #121a30 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 24px;
  color: #c4c4d0;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 26px 48px rgba(13, 18, 36, 0.16);
  margin: 20px 0;
}

.code-block code {
  font-family: inherit;
  color: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
}

code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--card-border);
  color: var(--primary-dark);
  overflow-wrap: anywhere;
}

/* ─── Callout ─── */
.callout {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.75;
  margin: 20px 0;
  box-shadow: 0 10px 24px rgba(20, 32, 61, 0.04);
}

.callout strong {
  color: var(--text-main);
  font-weight: 600;
}

.callout.info {
  background: rgba(52, 152, 219, 0.06);
  border-color: rgba(52, 152, 219, 0.12);
}

.callout.warning {
  background: rgba(234, 179, 8, 0.06);
  border-color: rgba(234, 179, 8, 0.12);
}

.callout.success {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.12);
}

.callout.tip {
  background: rgba(108, 92, 231, 0.05);
  border-color: rgba(108, 92, 231, 0.1);
}

/* ─── 表格 ─── */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(20, 32, 61, 0.05);
}

.docs-content th,
.docs-content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.docs-content th {
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}

.docs-content tr:last-child td {
  border-bottom: none;
}

/* ─── FAQ ─── */
.faq-list {
  display: grid;
  gap: 12px;
}

.docs-faq-list {
  margin-top: 32px;
}

.faq-item {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 28px rgba(20, 32, 61, 0.05);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  flex: none;
  transition: all 0.2s ease;
}

.faq-item:hover summary::after {
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary);
}

.faq-content {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.faq-content p {
  margin: 0 0 10px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content ul {
  padding-left: 18px;
  margin: 0;
}

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

.docs-compare-grid,
.docs-help-grid {
  margin-top: 24px;
}

.docs-compare-card,
.docs-help-card {
  background: rgba(255, 255, 255, 0.7);
}

.docs-compare-card.success .card-title {
  color: var(--success);
}

.docs-compare-card.danger .card-title {
  color: var(--danger);
}

.docs-content .settings-guide-card h3 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 18px;
}

.docs-content .settings-guide-card ul {
  margin: 0;
  padding-left: 18px;
}

/* ─── 文档底部导航 ─── */
.docs-nav-footer {
  display: flex;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
}

.docs-nav-footer a {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 32px rgba(20, 32, 61, 0.06);
  transition: all 0.2s ease;
}

.docs-nav-footer a:hover {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(0, 0, 0, 0.08);
}

.docs-nav-footer .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.docs-nav-footer .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

@media (max-width: 1080px) {
  .docs-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .docs-layout {
    display: block;
    max-width: none;
    padding: 86px 0 42px;
  }

  .docs-page .nav-inner {
    max-width: none;
    padding: 0 16px;
  }

  .docs-sidebar {
    position: sticky;
    top: 68px;
    z-index: 80;
    margin: 0 0 16px;
    padding: 9px 14px 11px;
    background:
      linear-gradient(180deg, rgba(244, 249, 255, 0.94), rgba(244, 249, 255, 0.8));
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(16px) saturate(150%);
  }

  .docs-sidebar-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .sidebar-title,
  .sidebar-note {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 1px 0 3px;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 18px rgba(20, 32, 61, 0.035);
    font-size: 13px;
  }

  .sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(52, 152, 219, 0.18);
  }

  .docs-content {
    padding: 0 14px 62px;
  }

  .docs-intro {
    margin: 0;
    padding: 24px 18px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 34px rgba(20, 32, 61, 0.05);
  }

  .docs-content > article {
    scroll-margin-top: 132px;
    margin-top: 16px;
    padding: 26px 20px 30px;
    border-radius: 24px;
  }

  .docs-overview-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-top: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .docs-overview-grid::-webkit-scrollbar {
    display: none;
  }

  .docs-overview-card {
    flex: 0 0 min(250px, 78vw);
    scroll-snap-align: start;
  }

  .docs-compare-grid,
  .docs-help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .docs-page .nav {
    padding: 12px 0;
  }

  .docs-page .nav-inner {
    gap: 10px;
  }

  .docs-page .nav-cta {
    height: 34px;
    padding: 0 14px;
  }

  .docs-sidebar {
    top: 59px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .docs-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .docs-intro {
    padding: 22px 16px 18px;
  }

  .docs-content h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .docs-content h2 {
    margin-top: 38px;
    font-size: 21px;
    padding-bottom: 12px;
  }

  .docs-content h3 {
    font-size: 16px;
    margin-top: 24px;
  }

  .docs-intro h1 {
    font-size: 34px;
  }

  .docs-intro-lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .docs-content p,
  .docs-content ul,
  .docs-content ol {
    font-size: 14px;
    line-height: 1.76;
  }

  .docs-content > article {
    padding: 24px 16px 28px;
    border-radius: 22px;
  }

  .code-block {
    margin: 16px -2px;
    padding: 18px 16px;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.65;
  }

  .callout {
    padding: 15px 16px;
    border-radius: 16px;
    font-size: 13px;
  }

  .docs-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    font-size: 13px;
  }

  .docs-content th,
  .docs-content td {
    min-width: 150px;
    padding: 12px 14px;
    white-space: normal;
    vertical-align: top;
  }

  .faq-item summary {
    padding: 16px;
    font-size: 14px;
  }

  .faq-content {
    padding: 0 16px 16px;
  }

  .glass-card,
  .card {
    padding: 20px;
  }

  .docs-nav-footer {
    flex-direction: column;
  }
}

/* ============ FULLSCREEN SHOWCASE HOME ============ */

body.home-showcase-page {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text-main);
  background: #f4f9ff;
}

.home-showcase-page .home-showcase-nav {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.home-showcase-page .nav-inner {
  max-width: none;
  width: 100%;
  padding: 0 clamp(18px, 4vw, 54px);
}

.home-showcase-page .nav-brand-text,
.home-showcase-page .nav-link {
  color: rgba(31, 41, 55, 0.86);
  text-shadow: none;
}

.home-showcase-page .nav-brand-mark {
  box-shadow: 0 12px 32px rgba(20, 32, 61, 0.22);
}

.home-showcase-page .nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.54);
}

.home-showcase-page .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(52, 152, 219, 0.2);
}

.showcase {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.showcase-media,
.showcase-image,
.showcase-shade {
  position: absolute;
  inset: 0;
}

.showcase-media {
  z-index: -3;
  background: #f4f9ff;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04) translate3d(1.8%, 0, 0);
  transition:
    opacity 1500ms ease,
    transform 6200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-image.is-active {
  opacity: 1;
  transform: scale(1.11) translate3d(-1.4%, -1.2%, 0);
}

.showcase-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.94) 0%, rgba(247, 251, 255, 0.7) 34%, rgba(247, 251, 255, 0.22) 74%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.18) 0%, rgba(247, 251, 255, 0.08) 54%, rgba(236, 246, 255, 0.36) 100%);
}

.showcase::after {
  content: "";
  position: absolute;
  inset: 26px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.showcase-copy {
  position: absolute;
  left: clamp(28px, 7vw, 118px);
  top: 50%;
  width: min(860px, calc(100vw - 56px));
  transform: translate3d(0, -44%, 0);
  opacity: 1;
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-copy.is-leaving {
  opacity: 0;
  transform: translate3d(0, calc(-44% + 22px), 0);
}

.showcase-kicker {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.showcase-stat {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 22px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(52, 152, 219, 0.16);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 700;
}

.showcase-copy h1 {
  max-width: none;
  margin-top: 24px;
  color: var(--text-main);
  font-size: clamp(52px, 6vw, 86px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 18px 54px rgba(255, 255, 255, 0.42);
}

.showcase-copy p:not(.showcase-kicker) {
  max-width: 34rem;
  margin-top: 24px;
  color: rgba(75, 85, 99, 0.92);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.78;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.home-showcase-page .showcase-actions .btn {
  height: 52px;
  padding: 0 26px;
}

.home-showcase-page .showcase-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  color: #fff;
  box-shadow: 0 18px 42px rgba(52, 152, 219, 0.24);
}

.home-showcase-page .showcase-actions .btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(20, 32, 61, 0.08);
  backdrop-filter: blur(16px);
}

.showcase-bottom {
  position: absolute;
  left: clamp(28px, 7vw, 118px);
  right: clamp(28px, 5vw, 72px);
  bottom: clamp(24px, 5vh, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-tags span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: rgba(75, 85, 99, 0.92);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 700;
}

.showcase-count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(75, 85, 99, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.showcase-count i {
  width: 68px;
  height: 1px;
  background: rgba(75, 85, 99, 0.24);
}

@media (max-width: 760px) {
  .showcase::after {
    inset: 14px;
    border-radius: 24px;
  }

  .showcase-shade {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.18) 0%, rgba(247, 251, 255, 0.72) 48%, rgba(247, 251, 255, 0.9) 100%);
  }

  .showcase-copy {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 158px;
    width: auto;
    transform: none;
  }

  .showcase-copy.is-leaving {
    transform: translateY(16px);
  }

  .showcase-copy h1 {
    max-width: 8ch;
    font-size: clamp(44px, 15vw, 72px);
  }

  .showcase-copy p:not(.showcase-kicker) {
    max-width: 22rem;
    font-size: 16px;
  }

  .showcase-bottom {
    left: 24px;
    right: 24px;
    bottom: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-image,
  .showcase-copy {
    transition: none;
  }
}
