/* Nexus OS 官网 — 暗黑科技风 · 青蓝发光 */

:root {
  --bg-deep: #06080c;
  --bg-mid: #0c1018;
  --bg-card: #111827;
  --bg-elevated: #151d2e;
  --text-primary: #e8f4fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00e5ff;
  --accent-soft: #22d3ee;
  --accent-dim: #0891b2;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-line: rgba(0, 229, 255, 0.5);
  --border: rgba(0, 229, 255, 0.12);
  --radius: 12px;
  --header-h: 64px;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(0, 229, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(8, 145, 178, 0.06), transparent);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ----- Header + 标签栏下方微光 ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem 0 1.5rem;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-line) 20%,
    var(--accent) 50%,
    var(--accent-line) 80%,
    transparent 100%
  );
  opacity: 0.85;
  filter: blur(0.5px);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 32px rgba(0, 229, 255, 0.15);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-dim), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--bg-deep);
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-main a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.nav-main a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.nav-main a[aria-current='page'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-switch button:hover {
  color: var(--accent);
}

.lang-switch button.is-active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent-soft));
  color: var(--bg-deep);
  border: none;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 28px var(--accent-glow);
}

.header-actions .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
}

.header-actions .menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text-primary);
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    background: rgba(11, 15, 22, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    display: none;
    gap: 0;
    flex: none;
  }

  .nav-main.is-open {
    display: flex;
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    overflow-y: auto;
  }

  .nav-main a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-main a[aria-current='page'] {
    border-bottom-color: var(--border);
    border-left: 3px solid var(--accent);
    padding-left: 0.5rem;
  }

  .header-actions .menu-toggle {
    display: block;
  }

  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lang-switch {
    display: none;
  }
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1280px;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 20% 10% auto;
  height: 40%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 2.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1.08;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--accent-soft);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.06em;
}

.hero-tagline {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  color: var(--text-secondary);
  margin: 0.35rem 0 0;
  line-height: 1.55;
  font-weight: 500;
  max-width: 26em;
}

.hero-slogan {
  margin: 1.25rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(0, 229, 255, 0.14);
  max-width: 38rem;
  width: 100%;
  font-size: clamp(0.82rem, 1.35vw, 0.95rem);
  font-weight: 500;
  color: rgba(0, 229, 255, 0.88);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.hero-cta .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.hero-cta .btn-ghost {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

/* ----- 首屏标题：字号随窗口流动，一行放不下就自动缩字，绝不折行 ----- */
.hero-title {
  font-size: clamp(1.7rem, 4.2vw, 3.75rem);
}

.hero-title-single {
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

@media (min-width: 1025px) {
  .hero-title {
    font-size: clamp(2.1rem, 4.7vw, 3.75rem);
  }
}

/* 窄屏放不下的长标题（如英文）才允许折行，避免被裁掉 */
@media (max-width: 480px) {
  .hero-title:lang(en) {
    white-space: normal;
  }
}

/* ----- 三列模块 ----- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

.module-card {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.module-card:hover {
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.08);
}

.module-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.module-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.module-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* ----- Why Nexus ----- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.why-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.55);
}

.why-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.why-table th,
.why-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.why-table th {
  font-weight: 700;
  color: var(--accent-soft);
  background: rgba(0, 229, 255, 0.06);
}

.why-table tbody tr:last-child th,
.why-table tbody tr:last-child td {
  border-bottom: none;
}

.why-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 32%;
  min-width: 10rem;
}

.why-table td:last-child {
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .why-table td:first-child {
    width: 40%;
  }
}

/* ----- Pricing (compliance / checkout) ----- */
.section-pricing {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.5) 0%, rgba(6, 8, 12, 0.2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-lead-wide {
  max-width: 40rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(165deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
}

.pricing-card--featured {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.12),
    0 12px 48px rgba(0, 229, 255, 0.12);
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.pricing-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-card-price {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.pricing-card-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pricing-features {
  margin: 0 0 1.35rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.pricing-features li {
  margin-bottom: 0.35rem;
}

.btn-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.08);
  color: #f0fdff;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.15);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-pricing:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.28);
}

.btn-pricing--primary {
  border: none;
  background: linear-gradient(135deg, #00c8e8, #5eead4);
  color: #030712;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.45), 0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn-pricing--primary:hover {
  background: linear-gradient(135deg, #22d3ee, #99f6e4);
  color: #020617;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.55), 0 6px 24px rgba(0, 0, 0, 0.4);
}

.pricing-card-alt {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.8rem;
}

.pricing-card-alt-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-card-alt-link:hover {
  color: var(--accent);
}

.pricing-footnote {
  margin: 0 auto;
  max-width: 44rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ----- Compliance disclosure ----- */
.section-compliance-disclosure {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.compliance-disclosure-text {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.compliance-banner {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(17, 24, 39, 0.55);
}

.compliance-banner__title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.compliance-banner__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.product-compliance-strip {
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
  color: var(--text-secondary);
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(12, 18, 28, 0.85);
}

.legal-governing-law {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.subscribe-payment-callout {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.12);
}

.subscribe-payment-callout p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: #f0fdff;
}

/* ----- Legal placeholder pages ----- */
.legal-page {
  padding: 2.5rem 0 3rem;
  min-height: calc(100vh - var(--header-h) - 200px);
}

.legal-page-inner {
  max-width: 42rem;
}

.legal-page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.legal-page-meta {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-page-body p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.subscribe-actions .btn {
  flex: 1 1 auto;
  min-width: 10rem;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: rgba(6, 8, 12, 0.6);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand .brand-text {
  font-size: 1.1rem;
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: 48rem;
}

.footer-policy-inline {
  margin: 0 0 1rem;
  font-size: 0.82rem;
}

.footer-policy-inline a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-policy-inline a:hover {
  color: var(--accent);
}

.footer-policy-sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
  user-select: none;
}

.footer-company-name {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-email-line {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-email-line a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-email-line a:hover {
  text-decoration: underline;
}

.footer-compliance {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.section-about .about-intro {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  margin: 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-admin {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ----- Page shell (skeleton pages) ----- */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.shell-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 4rem;
}

@media (min-width: 900px) {
  .shell-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.shell-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.shell-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.shell-nav a:hover,
.shell-nav a[aria-current='page'] {
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
}

.shell-body {
  min-height: 320px;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shell-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ----- Product tabs ----- */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.product-tab {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.product-tab:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 255, 0.35);
}

.product-tab.is-active {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-dim), var(--accent-soft));
  border-color: transparent;
  box-shadow: 0 0 20px var(--accent-glow);
}

.product-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.product-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--accent-soft);
}

.product-detail .lead {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.feature-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.demo-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 280px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ----- Community tabs ----- */
.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.community-tabs .product-tab {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
}

.post-row .meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.toolbar-row input[type='search'] {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
}

/* ----- Admin / User table stub ----- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
}

/* =====================================================================
   MathConstruct — 本站新增组件（沿用上面的设计令牌，不改动原组件）
   ===================================================================== */

/* ----- 首屏：小标签 + 流程链 ----- */
.mc-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.mc-flow {
  margin: 1.25rem auto 0;
  max-width: 46rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ----- 信任条 ----- */
.mc-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.6);
}

.mc-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: center;
  margin: 0;
  padding: 0.9rem 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mc-trust-list li::before {
  content: '◆';
  margin-right: 0.5rem;
  color: var(--accent-dim);
}

/* ----- 四列网格（案例 / 可复核） ----- */
.modules-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .modules-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .modules-grid,
  .modules-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ----- 应用方向卡：状态徽章 ----- */
.app-card {
  position: relative;
}

.status-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
}

.status-ok {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.status-wip {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.status-open {
  color: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.card-link::after {
  content: ' →';
}

/* ----- 演示：代价函数切换 ----- */
.cost-widget {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  padding: 1.25rem;
}

.cost-widget-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seg button.is-active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent);
}

.cost-table-wrap {
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cost-table th,
.cost-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
}

.cost-table thead th {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cost-table td {
  font-family: var(--font-mono);
}

/* 当前口径那一列高亮 */
.cost-widget[data-mode='ascent'] th.cell-ascent,
.cost-widget[data-mode='ascent'] td.cell-ascent,
.cost-widget[data-mode='contacts'] th.cell-contacts,
.cost-widget[data-mode='contacts'] td.cell-contacts {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
}

.cost-table tr.is-winner th,
.cost-table tr.is-winner td {
  color: var(--accent);
  font-weight: 700;
}

.cost-table tr.is-dim {
  opacity: 0.45;
}

.cost-table tr.is-tie th,
.cost-table tr.is-tie td {
  color: var(--text-secondary);
}

.cost-verdict {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cost-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ----- 关于：两列 ----- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ----- 滚动渐显 ----- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----- 案例卡（比通用模块卡更窄的标题节奏） ----- */
.case-card h3 {
  font-size: 1rem;
}

.case-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* =====================================================================
   KE几何地形 — 新增组件（沿用上面的设计令牌）
   ===================================================================== */

/* ----- 首屏：核心主张（大字 + 左侧光条） ----- */
.mc-claim {
  position: relative;
  margin: 1.5rem 0 1rem;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: left;
}

.mc-claim-box {
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
}

.mc-claim-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.mc-claim-box .mc-claim {
  margin: 0;
}

/* ----- 首屏：六段链 ----- */
.mc-flow-block {
  margin-top: 1.75rem;
}

.mc-flow-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mc-flow-block .mc-flow {
  margin: 0;
  max-width: none;
  text-align: left;
}

/* ----- 两问对照 ----- */
.two-q {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 900px) {
  .two-q {
    grid-template-columns: 1fr;
  }
}

.q-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.6);
}

.q-card-trad {
  opacity: 0.82;
}

.q-card-ke {
  border-color: rgba(0, 229, 255, 0.32);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07), var(--bg-card));
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.07);
}

.q-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.q-card-ke .q-label {
  color: var(--accent);
}

.q-text {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.q-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ----- 小标题 / 通用表 ----- */
.mc-h3 {
  margin: 2rem 0 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.6);
}

.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.mc-table th,
.mc-table td {
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

.mc-table thead th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(21, 29, 46, 0.6);
}

.mc-table tbody th {
  font-weight: 600;
  color: var(--accent-soft);
  white-space: nowrap;
}

.mc-table tbody tr:last-child th,
.mc-table tbody tr:last-child td {
  border-bottom: 0;
}

.mc-table-compare .col-hl {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  font-weight: 600;
}

/* ----- 结论句 ----- */
.mc-quote {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 229, 255, 0.04);
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ----- 八个概念 ----- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

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

@media (max-width: 640px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }
}

.concept-card {
  position: relative;
  padding: 1.25rem 1.15rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  transition: border-color 0.25s, box-shadow 0.25s;
}

.concept-card:hover {
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.07);
}

.concept-num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
}

.concept-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.concept-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ----- 三个硬约束卡 ----- */
.limit-card h3 {
  font-size: 1rem;
}

.limit-card p {
  margin: 0;
  color: var(--accent-soft);
}

/* ----- 方向卡里的一句话（口号） ----- */
.app-claim {
  margin: 0.75rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-soft);
}

/* ----- 视频看板 ----- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem 1.05rem;
}

.video-card figcaption strong {
  font-size: 0.98rem;
  color: var(--text-primary);
}

.video-card figcaption span {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ----- 动手：AdK 构型地形 ----- */
.adk-ui {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .adk-ui { grid-template-columns: 1fr 1fr; }
  .adk-side { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .adk-ui { grid-template-columns: 1fr; }
  .adk-side { grid-column: auto; }
}

.adk-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  padding: 0.9rem;
}

.adk-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: rgba(6, 8, 12, 0.6);
}

.adk-caption {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.adk-side {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.6);
  padding: 1.1rem;
}

.adk-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.9rem 0 0.3rem;
}

.adk-field label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.adk-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.adk-side input[type='range'] {
  width: 100%;
  accent-color: #00e5ff;
}

.adk-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.1rem;
}

.adk-presets button {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.adk-presets button:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}

.adk-read {
  margin: 0 0 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.adk-read div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.adk-read dt {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.adk-read dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
}

.adk-badge {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.adk-badge.is-on {
  color: #34d399;
}

.adk-note {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
