:root {
  --bg-canvas: #06070a;
  --bg-surface: #0b0d12;
  --bg-surface-elevated: #11141c;
  --bg-glass: rgba(14, 17, 24, 0.72);
  --text-primary: #f4f6fb;
  --text-secondary: #98a2b3;
  --text-muted: #667085;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-top-rim: rgba(255, 255, 255, 0.22);
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --accent-indigo: #6366f1;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 顶部大气层环境光晕与微透视网格 */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 45% at 50% -10%, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(ellipse 46% 36% at 50% 42%, rgba(56, 189, 248, 0.10), transparent 70%),
    radial-gradient(ellipse 35% 30% at 82% 28%, rgba(52, 211, 153, 0.06), transparent 70%);
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 10%, transparent 80%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 悬浮磨砂胶囊导航 */
.nav-wrap {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(12, 14, 20, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border-hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 50px rgba(0, 0, 0, 0.55);
}

.nav-brand {
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  z-index: 0;
}

.nav-link {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active:not(.has-indicator) {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* 页面主内容切换微动效 */
@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main.container.is-entering {
  animation: pageFadeUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

main.container.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.11s ease, transform 0.11s ease;
}

.cmdk-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.5);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmdk-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-toggle-btn {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  border-width: 0;
  opacity: 0;
  transform: scale(0.85);
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
  transition:
    max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    margin-left 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.18s ease,
    color 0.18s ease;
}

.lang-toggle-btn.is-visible {
  max-width: 64px;
  padding: 5px 10px;
  margin-left: 4px;
  border-width: 1px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* 金属渐变排版 */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  display: inline-block;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 15%, #b8c1d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  margin-top: 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 20%, #a5afbf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

/* 按钮体系 */
.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #dce2ec 100%);
  color: #090b10;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 30px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 #ffffff;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.16);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 顶部高光倒角面板基类 */
.craft-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.85) 0%, rgba(10, 12, 17, 0.94) 100%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.craft-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

/* 首页 3D 多产品舞台 */
.hero-section {
  padding: 72px 0 64px;
  text-align: center;
}

.hero-stage {
  position: relative;
  margin: 56px auto 0;
  max-width: 1120px;
  min-height: 490px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1400px;
}

.stage-glow {
  position: absolute;
  inset: 10% 15% 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(ellipse at 30% 60%, rgba(99, 102, 241, 0.15), transparent 60%);
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
}

.stage-desktop {
  position: relative;
  z-index: 2;
  width: min(820px, 86%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0e14;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 34px 90px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: rotateX(4deg);
  transition: transform 0.35s ease;
}

.stage-desktop:hover {
  transform: rotateX(1deg) translateY(-4px);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.stage-desktop img,
.stage-mangalens img,
.stage-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.stage-mangalens {
  position: absolute;
  left: 0;
  bottom: 78px;
  z-index: 3;
  width: 310px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 15, 22, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.stage-mangalens:hover {
  transform: translateY(-6px);
}

.stage-pill-zh {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(14, 17, 24, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 36px rgba(0, 0, 0, 0.75);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 550;
  transition: transform 0.2s ease;
}

.stage-pill-zh:hover {
  transform: translateY(-3px);
}

.stage-phone {
  position: absolute;
  right: 12px;
  bottom: 0;
  z-index: 4;
  width: 215px;
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(180deg, #272c38 0%, #10131a 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 28px 70px rgba(0, 0, 0, 0.88);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.stage-phone:hover {
  transform: translateY(-6px);
}

.stage-phone img {
  border-radius: 22px;
}

/* Bento 矩阵 */
.section-block {
  padding: 84px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.bento-right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
}

.bento-subrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-title {
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge-pro {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
}

.card-media {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #07090e;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.card-footer-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-primary);
}

/* 对比滑块 (MangaLens 专页) */
.compare-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 28px 70px rgba(0, 0, 0, 0.75);
  user-select: none;
  background: #080a0f;
}

.compare-box img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.compare-tab {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.compare-tab.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* 定价双栏 */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pricing-card {
  padding: 30px;
}

.pricing-card.featured {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(22, 30, 46, 0.78) 0%, rgba(10, 13, 20, 0.95) 100%);
}

.pricing-price {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-list li::before {
  content: "✓ ";
  color: var(--accent-emerald);
  font-weight: 700;
}

/* 命令行代码框 */
.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e2e8f0;
  overflow-x: auto;
}

.copy-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 子页 Hero 布局 */
.subhero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 40px;
}

.subhero-title {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 15%, #b1bac8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 命令面板 Modal */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(10px);
}

.cmdk-backdrop.open {
  display: flex;
}

.cmdk-modal {
  width: min(560px, 92vw);
  border-radius: 16px;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 32px 90px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.cmdk-input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.cmdk-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  cursor: pointer;
}

.cmdk-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

/* 页脚 */
.site-footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* 法律/条款文章排版 */
.legal-article {
  max-width: 780px;
  margin: 48px auto;
  padding: 36px;
}

.legal-article h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-article h2 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.legal-article p,
.legal-article li {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 10px;
}

.legal-article ul {
  padding-left: 20px;
}

/* 响应式 */
@media (max-width: 960px) {
  .bento-grid,
  .subhero-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .bento-subrow {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .stage-desktop {
    width: 100%;
    transform: none;
  }

  .stage-mangalens,
  .stage-phone,
  .stage-pill-zh {
    position: static;
    width: 100%;
    max-width: 380px;
  }

  .nav-links .hide-sm {
    display: none;
  }
}
