@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --ds-primary: #2563eb;
  --ds-primary-active: #1d4ed8;
  --ds-primary-glow: rgba(37, 99, 235, 0.12);
  --ds-art-violet: #7c3aed;
  --ds-art-cyan: #06b6d4;
  --ds-art-warm: #d97706;
  --ds-accent: #475569;
  --ds-ink: #0f172a;
  --ds-body: #334155;
  --ds-muted: #64748b;
  --ds-muted-soft: #94a3b8;
  --ds-hairline: #e2eaf8;
  --ds-hairline-soft: #eef3fc;
  --ds-hairline-strong: #c7d7f5;
  --ds-canvas: #fbfcff;
  --ds-canvas-soft: #f4f8ff;
  --ds-surface-card: #ffffff;
  --ds-surface-strong: #edf3ff;
  --ds-surface-blue: #f0f6ff;
  --ds-on-primary: #ffffff;
  --ds-font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ds-display: "Outfit", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ds-mono: "JetBrains Mono", "Fira Code", monospace;
  --ds-radius-md: 8px;
  --ds-radius-lg: 12px;
  --ds-section: 80px;
  /* Legacy aliases for channel inline styles */
  --primary: var(--ds-primary);
  --primary-light: #60a5fa;
  --primary-tint: rgba(37, 99, 235, 0.08);
  --text-dark: var(--ds-ink);
  --text-light: var(--ds-body);
  --text-secondary: var(--ds-body);
  --secondary-bg: var(--ds-canvas-soft);
  --card-border: var(--ds-hairline);
  --gray-light: var(--ds-canvas-soft);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
  --dark-bg: var(--ds-ink);
  --bg-soft: var(--ds-canvas-soft);
  --soft-bg: var(--ds-canvas-soft);
  --card-bg: var(--ds-surface-card);
  --border-light: var(--ds-hairline-soft);
  --text-primary: var(--ds-ink);
  --text-tertiary: var(--ds-body);
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--ds-canvas) 32%, var(--ds-canvas-soft) 100%) fixed !important;
  color: var(--ds-body);
  font-family: var(--ds-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .h1, .h2, .h3,
.cm-block-head-bottom + .cm-block-head,
.ds-page-title {
  font-family: var(--ds-display);
}

/* ── Nav ── */
.cm-navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--ds-hairline) !important;
  box-shadow: none !important;
  min-height: 64px;
}

.cm-navbar .navbar-brand img {
  height: 44px;
  width: auto;
}

.cm-navbar .navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-body);
  padding: 8px 14px;
  border-radius: var(--ds-radius-md);
  transition: color 0.15s ease, background 0.15s ease;
}

.cm-navbar .navbar-nav .nav-link:hover {
  color: var(--ds-primary);
}

.cm-navbar .navbar-nav .nav-link.active {
  color: var(--ds-primary);
  background: var(--ds-primary-glow);
}

.cm-navbar .btn-light.text-primary {
  color: var(--ds-primary) !important;
  background: #fff !important;
  border: 1px solid var(--ds-hairline) !important;
  border-radius: var(--ds-radius-md);
}

/* ── Buttons ── */
.btn-primary {
  background: var(--ds-primary) !important;
  border-color: var(--ds-primary) !important;
  color: var(--ds-on-primary) !important;
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ds-primary-active) !important;
  border-color: var(--ds-primary-active) !important;
  box-shadow: none;
}

.btn-secondary {
  background: var(--ds-surface-strong);
  border-color: var(--ds-hairline-strong);
  color: var(--ds-ink);
  border-radius: var(--ds-radius-md);
}

.btn-outline-primary {
  color: var(--ds-ink);
  border: 1px solid var(--ds-hairline-strong);
  background: var(--ds-surface-card);
  border-radius: var(--ds-radius-md);
}

.btn-outline-primary:hover {
  color: var(--ds-primary);
  background: var(--ds-primary-glow);
  border-color: var(--ds-hairline-strong);
}

.btn-link,
.btn-link.text-reset {
  color: var(--ds-body);
  font-weight: 500;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--ds-primary);
  text-decoration: none;
}

/* ── Subnav / breadcrumb bar ── */
.bg-gray-200 {
  background: var(--ds-surface-blue) !important;
  border-bottom: 1px solid var(--ds-hairline);
}

.bg-gray-200 .list-inline-item a {
  color: var(--ds-body);
}

.bg-gray-200 .btn-sm.btn-primary {
  background: var(--ds-primary-glow) !important;
  border-color: transparent !important;
  color: var(--ds-primary) !important;
}

.bg-gray-200 .btn-sm.btn-link {
  color: var(--ds-body);
}

/* ── Cards & content ── */
.card {
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-lg);
  box-shadow: none;
  background: var(--ds-surface-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--ds-hairline-strong);
  box-shadow: 0 0 0 1px var(--ds-primary-glow);
  transform: none;
}

.cm-block-head-bottom {
  border-color: var(--ds-primary) !important;
}

.cm-link:hover {
  color: var(--ds-primary) !important;
}

.article-content {
  color: var(--ds-body);
  line-height: 1.75;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ds-ink);
}

.badge-primary {
  background: var(--ds-primary);
}

.text-danger {
  color: #dc2626 !important;
}

/* ── Channel heroes (soft tech) ── */
.hero-product,
.hero-section,
.hero-mini {
  background: linear-gradient(165deg, #ffffff 0%, #f0f6ff 48%, #fbfcff 100%) !important;
  color: var(--ds-ink) !important;
  border-bottom: 1px solid var(--ds-hairline);
  position: relative;
}

.hero-product > .container,
.hero-mini > * {
  position: relative;
  z-index: 1;
}

.hero-product::before,
.hero-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(37, 99, 235, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 40% 35% at 6% 88%, rgba(96, 165, 250, 0.06) 0%, transparent 58%);
  pointer-events: none;
}

.hero-product h1,
.hero-product .lead,
.hero-section h1,
.hero-section p,
.hero-mini h1,
.hero-mini .tagline {
  color: var(--ds-ink) !important;
}

.hero-product .badge-free {
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--ds-primary) !important;
}

.hero-product .btn-outline-light {
  color: var(--ds-ink) !important;
  border-color: var(--ds-hairline-strong) !important;
  background: var(--ds-surface-card) !important;
}

.hero-product .text-white-50,
.hero-product .text-white {
  color: var(--ds-body) !important;
}

.purchase-guide {
  color: var(--ds-ink) !important;
  border-radius: var(--ds-radius-lg) !important;
}

.purchase-guide h2,
.purchase-guide .text-white {
  color: var(--ds-ink) !important;
}

.purchase-guide .lead {
  color: var(--ds-body) !important;
  font-size: 15px;
}

.purchase-guide #userTypeToggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--ds-canvas-soft);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-md);
}

.purchase-guide #userTypeToggle .btn {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: calc(var(--ds-radius-md) - 2px);
  min-height: 38px;
  box-shadow: none;
  border: none !important;
}

.purchase-guide #userTypeToggle .btn-light.active {
  background: #ffffff !important;
  color: var(--ds-ink) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.purchase-guide #userTypeToggle .btn-outline-light {
  background: transparent !important;
  color: var(--ds-muted) !important;
}

.purchase-guide #userTypeToggle .btn-outline-light:hover {
  color: var(--ds-ink) !important;
  background: transparent !important;
}

.store-card {
  border: 1px solid var(--ds-hairline) !important;
  border-radius: var(--ds-radius-lg) !important;
  padding: 28px !important;
  box-shadow: none !important;
}

.feature-card,
.sdk-card,
.teacher-card,
.product-card,
.contact-card,
.join-card,
.investor-card,
.legal-content {
  border-color: var(--ds-hairline) !important;
  box-shadow: none;
}

.feature-card,
.sdk-card,
.teacher-card,
.product-card {
  border-radius: var(--ds-radius-lg) !important;
}

.btn-join,
.product-card .card-btn:not(.card-btn--soon) {
  background: var(--ds-primary) !important;
  color: var(--ds-on-primary) !important;
  border-radius: var(--ds-radius-md);
}

/* ── Auth / member ── */
.bg-light {
  background: var(--ds-canvas) !important;
}

.reg-box-body {
  background: var(--ds-surface-card) !important;
  border: 1px solid var(--ds-hairline) !important;
  border-radius: var(--ds-radius-lg) !important;
  box-shadow: none;
}

.reg-logo a {
  color: var(--ds-ink);
}

body.page-auth .form-group label.sr-only {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-body);
}

body.page-auth .form-control {
  border-color: var(--ds-hairline-strong);
  color: var(--ds-ink);
  min-height: 44px;
}

body.page-auth .form-control::placeholder {
  color: var(--ds-muted-soft);
}

body.page-auth .form-control:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

/* ── Footer ── */
footer.bg-dark {
  background: linear-gradient(180deg, #f8faff 0%, #f0f6ff 100%) !important;
  color: var(--ds-body) !important;
  border-top: 1px solid var(--ds-hairline);
}

footer.bg-dark h5,
footer.bg-dark .text-white {
  color: var(--ds-ink) !important;
  font-size: 14px;
  font-weight: 600;
}

footer.bg-dark a.text-secondary,
footer.bg-dark .text-secondary {
  color: var(--ds-body) !important;
}

footer.bg-dark a.text-secondary:hover,
footer.bg-dark .hover-white:hover {
  color: var(--ds-primary) !important;
}

footer.bg-dark hr.bg-secondary {
  border-color: var(--ds-hairline) !important;
  background: var(--ds-hairline) !important;
  opacity: 1;
}

.container h1,
.container h2,
.container .h1,
.ds-page-title {
  color: var(--ds-ink);
}

.ds-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ── Forms ── */
.form-control {
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-md);
  font-size: 16px;
  color: var(--ds-ink);
  min-height: 44px;
  padding: 10px 14px;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.badge-secondary {
  background: var(--ds-surface-strong) !important;
  color: var(--ds-ink) !important;
  font-weight: 500;
  font-size: 13px;
}

.cm-ff-yh,
.article-content h1,
.article-content h2,
.article-content h3 {
  font-size: clamp(1.5rem, 2.8vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ds-ink);
}

.text-muted {
  color: var(--ds-muted) !important;
}

.text-secondary {
  color: var(--ds-body) !important;
}
