/* ==========================================================================
   北斗云官网主题 - beidou-web.css
   极光青 #3ED0F5 设计系统，深色为默认
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --bd-brand: #3ED0F5;
  --bd-brand-2: #7C5CFF;
  --bd-gold: #FFB020;
  --bd-violet: #7C5CFF;

  /* Semantic */
  --bd-ok: #22C55E;
  --bd-warn: #F59E0B;
  --bd-err: #EF4444;
  --bd-info: #3ED0F5;

  /* Radii */
  --bd-r-lg: 16px;
  --bd-r-md: 10px;
  --bd-r-sm: 6px;

  /* Shadows (dark default) */
  --bd-shadow: 0 4px 24px rgba(0,0,0,.35);
  --bd-shadow-lg: 0 8px 48px rgba(0,0,0,.5);

  /* Dark theme (default) */
  --bd-bg: #0A0E1A;
  --bd-bg-2: #0F1629;
  --bd-surface: #141B2D;
  --bd-surface-2: #1A2340;
  --bd-line: rgba(255,255,255,.08);
  --bd-line-2: rgba(255,255,255,.14);
  --bd-text: #EAF3FF;
  --bd-text-2: #A8C0E0;
  --bd-text-3: #6B84A8;
  --bd-brand-soft: rgba(62,208,245,.12);
  --bd-mono: 'SF Mono','Cascadia Code','Consolas',monospace;

  /* Layout */
  --bd-nav-h: 64px;
  --bd-max-w: 1200px;
  --bd-section-py: 80px;

  /* Font stack - system only */
  --bd-font: -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Noto Sans SC','Helvetica Neue',Arial,sans-serif;
}

/* ---------- Light Theme ---------- */
html[data-bd-theme="light"] {
  --bd-bg: #F8FAFC;
  --bd-bg-2: #FFFFFF;
  --bd-surface: #FFFFFF;
  --bd-surface-2: #F1F5F9;
  --bd-line: rgba(0,0,0,.08);
  --bd-line-2: rgba(0,0,0,.14);
  --bd-text: #0F172A;
  --bd-text-2: #475569;
  --bd-text-3: #94A3B8;
  --bd-brand-soft: rgba(62,208,245,.08);
  --bd-shadow: 0 4px 24px rgba(0,0,0,.06);
  --bd-shadow-lg: 0 8px 48px rgba(0,0,0,.1);
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bd-font);
  background: var(--bd-bg);
  color: var(--bd-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,svg { display: block; max-width: 100%; }
a { color: var(--bd-brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bd-brand-2); }
ul,ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input,select,textarea { font: inherit; }

/* ---------- Skip Link ---------- */
.bdw-skip {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--bd-brand);
  color: #0A0E1A;
  border-radius: var(--bd-r-sm);
  font-weight: 600;
}
.bdw-skip:focus { top: 8px; }

/* ---------- Scroll Progress ---------- */
.bdw-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}
.bdw-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bd-brand), var(--bd-brand-2));
  transition: width .15s ease;
}

/* ---------- Container ---------- */
.bdw-container {
  max-width: var(--bd-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.bdw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd-line);
  height: var(--bd-nav-h);
  transition: background .3s, box-shadow .3s;
}
html[data-bd-theme="light"] .bdw-header {
  background: rgba(255,255,255,.9);
}
.bdw-header.is-scrolled {
  box-shadow: var(--bd-shadow);
}
.bdw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.bdw-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bd-text);
}
.bdw-nav-logo img { height: 36px; width: auto; }
.bdw-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bdw-nav-links a {
  padding: 8px 14px;
  border-radius: var(--bd-r-sm);
  color: var(--bd-text-2);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.bdw-nav-links a:hover,
.bdw-nav-links a.is-active {
  color: var(--bd-brand);
  background: var(--bd-brand-soft);
}
.bdw-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bdw-nav-cart {
  position: relative;
}
.bdw-nav-cart .bdw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--bd-err);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Buttons ---------- */
.bdw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--bd-r-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.bdw-btn-primary {
  background: linear-gradient(135deg, var(--bd-brand), var(--bd-brand-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(62,208,245,.25);
}
.bdw-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(62,208,245,.35);
  color: #fff;
}
.bdw-btn-ghost {
  border-color: var(--bd-line-2);
  color: var(--bd-text);
  background: transparent;
}
.bdw-btn-ghost:hover {
  border-color: var(--bd-brand);
  color: var(--bd-brand);
  background: var(--bd-brand-soft);
}
.bdw-btn-sm { padding: 6px 14px; font-size: .8rem; }
.bdw-btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ---------- Theme Toggle ---------- */
.bdw-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bd-text-2);
  transition: color .2s, background .2s;
}
.bdw-theme-toggle:hover {
  color: var(--bd-brand);
  background: var(--bd-brand-soft);
}
.bdw-theme-toggle .bdw-ico { width: 20px; height: 20px; }
html[data-bd-theme="dark"] .bdw-theme-toggle .bdw-icon-sun { display: block; }
html[data-bd-theme="dark"] .bdw-theme-toggle .bdw-icon-moon { display: none; }
html[data-bd-theme="light"] .bdw-theme-toggle .bdw-icon-sun { display: none; }
html[data-bd-theme="light"] .bdw-theme-toggle .bdw-icon-moon { display: block; }

/* ---------- Mobile Drawer ---------- */
.bdw-drawer-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--bd-text);
}
.bdw-drawer-btn .bdw-ico { width: 24px; height: 24px; }

.bdw-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bd-surface);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--bd-shadow-lg);
}
.bdw-drawer.is-open { transform: translateX(0); }
.bdw-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bd-text-2);
}
.bdw-drawer-nav { margin-top: 48px; }
.bdw-drawer-nav a {
  display: block;
  padding: 12px 0;
  color: var(--bd-text);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--bd-line);
}
.bdw-drawer-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bdw-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.bdw-scrim.is-visible { opacity: 1; visibility: visible; }

/* ---------- Icons ---------- */
.bdw-ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Section ---------- */
.bdw-section {
  padding: var(--bd-section-py) 0;
}
.bdw-section-alt {
  background: var(--bd-bg-2);
}
.bdw-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.bdw-section-head h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--bd-text), var(--bd-brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bdw-section-head p {
  color: var(--bd-text-2);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.bdw-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(62,208,245,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(124,92,255,.06) 0%, transparent 50%);
}
.bdw-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .15;
  pointer-events: none;
}
.bdw-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.bdw-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.bdw-hero h1 span {
  background: linear-gradient(135deg, var(--bd-brand), var(--bd-brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bdw-hero p {
  font-size: 1.15rem;
  color: var(--bd-text-2);
  margin-bottom: 32px;
  max-width: 560px;
}
.bdw-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.bdw-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--bd-line);
}
.bdw-hero-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bd-brand);
}
.bdw-hero-stat-label {
  font-size: .85rem;
  color: var(--bd-text-3);
  margin-top: 4px;
}

/* ---------- Product Cards ---------- */
.bdw-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bdw-product-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bdw-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bd-shadow);
  border-color: var(--bd-brand);
}
.bdw-product-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--bd-brand);
}
.bdw-product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.bdw-product-card p {
  font-size: .85rem;
  color: var(--bd-text-3);
}

/* ---------- Why Us ---------- */
.bdw-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.bdw-why-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 32px 24px;
  text-align: center;
}
.bdw-why-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bd-brand);
  line-height: 1;
  margin-bottom: 8px;
}
.bdw-why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.bdw-why-card p {
  font-size: .85rem;
  color: var(--bd-text-3);
}

/* ---------- Global Nodes / Map ---------- */
.bdw-map-wrap {
  position: relative;
  border-radius: var(--bd-r-lg);
  overflow: hidden;
  border: 1px solid var(--bd-line);
  background: var(--bd-surface);
}
.bdw-map-wrap img,
.bdw-map-wrap svg { width: 100%; height: auto; }
.bdw-region-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.bdw-region-tab {
  padding: 8px 20px;
  border-radius: var(--bd-r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--bd-text-2);
  border: 1px solid var(--bd-line);
  transition: all .2s;
}
.bdw-region-tab.is-active,
.bdw-region-tab:hover {
  color: var(--bd-brand);
  border-color: var(--bd-brand);
  background: var(--bd-brand-soft);
}
.bdw-region-panel { display: none; }
.bdw-region-panel.is-active { display: grid; }
.bdw-region-panel {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.bdw-node-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-sm);
  padding: 20px;
}
.bdw-node-card h4 { font-size: .95rem; margin-bottom: 6px; }
.bdw-node-card p { font-size: .8rem; color: var(--bd-text-3); }

/* ---------- Certifications ---------- */
.bdw-certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.bdw-cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
}
.bdw-cert-item .bdw-ico { width: 32px; height: 32px; color: var(--bd-gold); }

/* ---------- Partners Logo Wall ---------- */
.bdw-partners-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.bdw-partner-logo {
  width: 120px;
  height: 48px;
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bd-text-3);
  font-size: .8rem;
  font-weight: 500;
  transition: border-color .2s;
}
.bdw-partner-logo:hover { border-color: var(--bd-brand); }

/* ---------- News ---------- */
.bdw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bdw-news-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 24px;
  transition: border-color .2s;
}
.bdw-news-card:hover { border-color: var(--bd-brand); }
.bdw-news-date {
  font-size: .8rem;
  color: var(--bd-text-3);
  margin-bottom: 8px;
}
.bdw-news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.bdw-news-card p {
  font-size: .85rem;
  color: var(--bd-text-2);
}

/* ---------- FAQ Accordion ---------- */
.bdw-acc { max-width: 760px; margin: 0 auto; }
.bdw-acc-item {
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.bdw-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.bdw-acc-head:hover { background: var(--bd-brand-soft); }
.bdw-acc-head .bdw-ico {
  width: 18px;
  height: 18px;
  transition: transform .3s;
  color: var(--bd-text-3);
}
.bdw-acc-item.is-open .bdw-acc-head .bdw-ico { transform: rotate(180deg); }
.bdw-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.bdw-acc-body-inner {
  padding: 0 24px 18px;
  color: var(--bd-text-2);
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.bdw-cta {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(135deg, rgba(62,208,245,.08), rgba(124,92,255,.06));
  border-radius: var(--bd-r-lg);
  border: 1px solid var(--bd-line);
}
.bdw-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.bdw-cta p {
  color: var(--bd-text-2);
  margin-bottom: 24px;
}

/* ---------- Breadcrumb ---------- */
.bdw-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: .85rem;
  color: var(--bd-text-3);
}
.bdw-crumb a { color: var(--bd-text-2); }
.bdw-crumb a:hover { color: var(--bd-brand); }
.bdw-crumb-sep { color: var(--bd-text-3); }

/* ---------- Footer ---------- */
.bdw-footer {
  background: var(--bd-surface);
  border-top: 1px solid var(--bd-line);
  padding: 64px 0 32px;
}
.bdw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.bdw-footer-brand p {
  color: var(--bd-text-3);
  font-size: .85rem;
  margin-top: 16px;
  max-width: 280px;
}
.bdw-footer-col h4 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--bd-text);
}
.bdw-footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--bd-text-3);
  font-size: .85rem;
  transition: color .2s;
}
.bdw-footer-col a:hover { color: var(--bd-brand); }
.bdw-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--bd-line);
  font-size: .8rem;
  color: var(--bd-text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.bdw-footer-links {
  display: flex;
  gap: 16px;
}
.bdw-footer-links a { color: var(--bd-text-3); }
.bdw-footer-links a:hover { color: var(--bd-brand); }

/* ---------- Back to Top ---------- */
.bdw-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bd-text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 900;
}
.bdw-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bdw-top:hover {
  border-color: var(--bd-brand);
  color: var(--bd-brand);
}
.bdw-top .bdw-ico { width: 20px; height: 20px; }

/* ---------- Fatal Code (404) ---------- */
.bdw-fatal-code {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--bd-brand), var(--bd-brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ---------- Page-specific: Solutions ---------- */
.bdw-solution-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 32px;
  margin-bottom: 24px;
}
.bdw-solution-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--bd-brand);
}
.bdw-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.bdw-solution-block h4 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bd-text);
}
.bdw-solution-block ul { padding-left: 18px; list-style: disc; }
.bdw-solution-block li {
  font-size: .85rem;
  color: var(--bd-text-2);
  margin-bottom: 4px;
}
.bdw-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.bdw-compare-table th,
.bdw-compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bd-line);
  font-size: .9rem;
}
.bdw-compare-table th {
  background: var(--bd-surface-2);
  font-weight: 600;
  color: var(--bd-text);
}
.bdw-compare-table td { color: var(--bd-text-2); }

/* ---------- Page-specific: Activity ---------- */
.bdw-activity-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 28px;
  margin-bottom: 20px;
}
.bdw-countdown {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.bdw-countdown-unit {
  text-align: center;
  background: var(--bd-surface-2);
  border-radius: var(--bd-r-sm);
  padding: 10px 14px;
  min-width: 60px;
}
.bdw-countdown-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bd-brand);
  font-variant-numeric: tabular-nums;
}
.bdw-countdown-label {
  font-size: .7rem;
  color: var(--bd-text-3);
  margin-top: 2px;
}
.bdw-activity-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bd-brand-soft);
  color: var(--bd-brand);
  margin-bottom: 12px;
}

/* ---------- Page-specific: BT Panel ---------- */
.bdw-code-block {
  background: #0D1117;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-sm);
  padding: 16px 20px;
  font-family: var(--bd-mono);
  font-size: .85rem;
  color: #EAF3FF;
  overflow-x: auto;
  position: relative;
  margin: 12px 0;
}
.bdw-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: .75rem;
  background: var(--bd-brand-soft);
  color: var(--bd-brand);
  border-radius: var(--bd-r-sm);
  transition: background .2s;
}
.bdw-code-copy:hover { background: var(--bd-brand); color: #fff; }

/* ---------- Page-specific: Partner ---------- */
.bdw-steps {
  display: flex;
  gap: 0;
  margin: 32px 0;
}
.bdw-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.bdw-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bd-brand-soft);
  color: var(--bd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}
.bdw-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--bd-line);
}
.bdw-step:last-child::after { display: none; }
.bdw-step h4 { font-size: .9rem; margin-bottom: 4px; }
.bdw-step p { font-size: .8rem; color: var(--bd-text-3); }

.bdw-form {
  max-width: 560px;
  margin: 0 auto;
}
.bdw-form-group {
  margin-bottom: 16px;
}
.bdw-form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--bd-text-2);
}
.bdw-form-group input,
.bdw-form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bd-surface-2);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-sm);
  color: var(--bd-text);
  font-size: .9rem;
  transition: border-color .2s;
}
.bdw-form-group input:focus,
.bdw-form-group select:focus {
  outline: none;
  border-color: var(--bd-brand);
}

/* ---------- Page-specific: Terms/Privacy ---------- */
.bdw-legal {
  max-width: 800px;
  margin: 0 auto;
}
.bdw-legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.bdw-legal-toc {
  position: sticky;
  top: calc(var(--bd-nav-h) + 24px);
  align-self: start;
}
.bdw-legal-toc a {
  display: block;
  padding: 6px 0;
  font-size: .85rem;
  color: var(--bd-text-3);
  border-left: 2px solid var(--bd-line);
  padding-left: 12px;
  transition: color .2s, border-color .2s;
}
.bdw-legal-toc a:hover,
.bdw-legal-toc a.is-active {
  color: var(--bd-brand);
  border-left-color: var(--bd-brand);
}
.bdw-legal-section {
  margin-bottom: 40px;
}
.bdw-legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd-line);
}
.bdw-legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 10px;
}
.bdw-legal-section p,
.bdw-legal-section li {
  font-size: .9rem;
  color: var(--bd-text-2);
  margin-bottom: 8px;
  line-height: 1.7;
}
.bdw-legal-section ul { padding-left: 20px; list-style: disc; }

/* ---------- 404 Page ---------- */
.bdw-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
}
.bdw-404-bg {
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
}
.bdw-404 h1 {
  font-size: 1.2rem;
  color: var(--bd-text-2);
  margin-bottom: 8px;
}
.bdw-404 p {
  color: var(--bd-text-3);
  margin-bottom: 32px;
  max-width: 480px;
}
.bdw-404-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Responsive: Tablet (768-1199) ---------- */
@media (max-width: 1199px) {
  .bdw-hero h1 { font-size: 2.4rem; }
  .bdw-products { grid-template-columns: repeat(3, 1fr); }
  .bdw-why-grid { grid-template-columns: repeat(2, 1fr); }
  .bdw-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .bdw-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .bdw-news-grid { grid-template-columns: repeat(2, 1fr); }
  .bdw-region-panel { grid-template-columns: repeat(2, 1fr); }
  .bdw-solution-grid { grid-template-columns: repeat(2, 1fr); }
  .bdw-legal-layout { grid-template-columns: 1fr; }
  .bdw-legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .bdw-legal-toc a { border-left: none; padding-left: 0; border-bottom: 2px solid var(--bd-line); padding-bottom: 4px; }
  .bdw-legal-toc a.is-active { border-bottom-color: var(--bd-brand); }
}

/* ---------- Responsive: Mobile (<=767) ---------- */
@media (max-width: 767px) {
  :root { --bd-section-py: 48px; }
  .bdw-nav-links { display: none; }
  .bdw-drawer-btn { display: flex; }
  .bdw-hero { padding: 60px 0 48px; }
  .bdw-hero h1 { font-size: 1.8rem; }
  .bdw-hero p { font-size: 1rem; }
  .bdw-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bdw-why-grid { grid-template-columns: 1fr; }
  .bdw-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bdw-footer-brand { grid-column: span 2; }
  .bdw-news-grid { grid-template-columns: 1fr; }
  .bdw-region-panel { grid-template-columns: 1fr; }
  .bdw-solution-grid { grid-template-columns: 1fr; }
  .bdw-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bdw-hero-stat-val { font-size: 1.5rem; }
  .bdw-section-head h2 { font-size: 1.6rem; }
  .bdw-fatal-code { font-size: 5rem; }
  .bdw-steps { flex-direction: column; gap: 16px; }
  .bdw-step::after { display: none; }
  .bdw-compare-table { font-size: .8rem; }
  .bdw-compare-table th,
  .bdw-compare-table td { padding: 10px 8px; }
  .bdw-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ---------- Print ---------- */
@media print {
  .bdw-header, .bdw-footer, .bdw-top, .bdw-drawer, .bdw-scrim,
  .bdw-progress, .bdw-theme-toggle, .bdw-drawer-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .bdw-section { padding: 24px 0; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Fade-in Animation ---------- */
.bdw-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.bdw-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .bdw-fade { opacity: 1; transform: none; }
}

/* ---------- Toast 提示（复制 / 表单校验） ---------- */
.bdw-toasts {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9998;
  pointer-events: none;
}
.bdw-toast {
  padding: 10px 18px;
  border-radius: var(--bd-r-sm);
  background: var(--bd-surface);
  border: 1px solid var(--bd-line-2);
  color: var(--bd-text);
  font-size: .85rem;
  box-shadow: var(--bd-shadow);
  animation: bdw-toast-in .22s ease;
  transition: opacity .3s, transform .3s;
}
.bdw-toast.ok { border-color: rgba(34,197,94,.4); }
.bdw-toast.warn { border-color: rgba(245,158,11,.45); }
.bdw-toast.is-out { opacity: 0; transform: translateY(6px); }
@keyframes bdw-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 表单校验态 ---------- */
.bdw-form-group input.is-invalid,
.bdw-form-group select.is-invalid {
  border-color: var(--bd-err);
  box-shadow: 0 0 0 3px rgba(239,68,68,.14);
}
.bdw-form-err {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--bd-err);
}

/* ---------- 复制按钮反馈 ---------- */
.bdw-code-copy.is-done { background: var(--bd-ok); color: #fff; }

/* ---------- 页脚联系方式 / ICP ---------- */
.bdw-footer-contact { margin-top: 16px; display: grid; gap: 8px; }
.bdw-footer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--bd-text-3);
}
.bdw-footer-line .bdw-ico { width: 16px; height: 16px; color: var(--bd-brand); flex: 0 0 auto; }
.bdw-footer-line a { color: var(--bd-text-2); }
.bdw-footer-line a:hover { color: var(--bd-brand); }
.bdw-footer-icp { margin-left: 8px; color: var(--bd-text-3); }
.bdw-footer-icp:hover { color: var(--bd-brand); }

/* ---------- 活动筛选按钮 ---------- */
.bdw-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.bdw-filter button {
  padding: 8px 18px;
  border-radius: var(--bd-r-sm);
  border: 1px solid var(--bd-line);
  font-size: .88rem;
  color: var(--bd-text-2);
  transition: all .2s;
}
.bdw-filter button:hover,
.bdw-filter button.is-active {
  color: var(--bd-brand);
  border-color: var(--bd-brand);
  background: var(--bd-brand-soft);
}

/* ---------- 页内英雄横幅（子页共用） ---------- */
.bdw-page-hero {
  padding: 56px 0 40px;
  background: radial-gradient(ellipse at 20% 40%, rgba(62,208,245,.1), transparent 58%),
              radial-gradient(ellipse at 80% 20%, rgba(124,92,255,.08), transparent 52%);
  border-bottom: 1px solid var(--bd-line);
}
.bdw-page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.bdw-page-hero p {
  color: var(--bd-text-2);
  font-size: 1.05rem;
  max-width: 640px;
}
.bdw-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bdw-tag {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--bd-line);
  font-size: .78rem;
  color: var(--bd-text-3);
}

@media (max-width: 767px) {
  .bdw-page-hero { padding: 36px 0 28px; }
  .bdw-page-hero h1 { font-size: 1.6rem; }
  .bdw-toasts { bottom: 16px; width: calc(100% - 32px); }
  .bdw-toast { text-align: center; }
}

/* ==========================================================================
   页面补充组件（活动 / 宝塔 / 合作 / 法务 / 404 共用）
   ========================================================================== */

/* 活动卡片内部 */
.bdw-activity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bdw-activity-top h2 { font-size: 1.15rem; font-weight: 700; }
.bdw-activity-desc {
  margin: 10px 0 4px;
  font-size: .9rem;
  color: var(--bd-text-2);
  line-height: 1.7;
}
.bdw-activity-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px dashed var(--bd-line);
  border-bottom: 1px dashed var(--bd-line);
}
.bdw-activity-meta li { font-size: .82rem; color: var(--bd-text-3); }
.bdw-activity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bdw-activity-price { font-size: .9rem; color: var(--bd-text-2); }
.bdw-activity-price strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bd-brand);
  font-variant-numeric: tabular-nums;
}
.bdw-countdown.is-over .bdw-countdown-num { color: var(--bd-text-3); }
.bdw-countdown-state {
  align-self: center;
  font-size: .8rem;
  color: var(--bd-text-3);
}

/* 代金券卡片 */
.bdw-coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bdw-coupon-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 24px;
  text-align: center;
}
.bdw-coupon-val {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--bd-brand), var(--bd-brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bdw-coupon-cond {
  font-size: .8rem;
  color: var(--bd-text-3);
  margin: 6px 0 16px;
}

/* 通用说明 / 列表 / 表格容器 */
.bdw-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--bd-text-3);
  line-height: 1.7;
}
.bdw-list {
  list-style: disc;
  padding-left: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.bdw-list li {
  font-size: .9rem;
  color: var(--bd-text-2);
  line-height: 1.8;
}
.bdw-table-wrap { overflow-x: auto; }
.bdw-inline-code {
  font-family: var(--bd-mono);
  font-size: .82em;
  padding: 2px 6px;
  border-radius: var(--bd-r-sm);
  background: var(--bd-surface-2);
  border: 1px solid var(--bd-line);
  color: var(--bd-brand);
  white-space: nowrap;
}

/* 宝塔页：系统卡片与分组标题 */
.bdw-os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bdw-os-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 22px;
}
.bdw-os-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 8px; }
.bdw-os-card p { font-size: .84rem; color: var(--bd-text-2); margin-bottom: 12px; line-height: 1.7; }
.bdw-panel-subject {
  font-size: .92rem;
  font-weight: 600;
  color: var(--bd-text-2);
  margin: 24px 0 8px;
}
.bdw-region-panel {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-r-md);
  padding: 28px;
}
.bdw-region-panel h3:first-child { margin-top: 0; }

/* 资质小注 */
.bdw-cert-note { font-size: .78rem; color: var(--bd-text-3); margin-top: 2px; }
.bdw-why-ico { width: 34px; height: 34px; color: var(--bd-brand); margin-bottom: 14px; }

/* 表单必填标记与按钮行 */
.bdw-req { color: var(--bd-err); }
.bdw-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.bdw-form .bdw-note { margin-top: 12px; }

/* 筛选空态 */
.bdw-filter-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: .9rem;
  color: var(--bd-text-3);
  border: 1px dashed var(--bd-line);
  border-radius: var(--bd-r-md);
}

/* 404 帮助卡片可点击 */
a.bdw-why-card { display: block; text-decoration: none; }
a.bdw-why-card:hover { border-color: var(--bd-brand); transform: translateY(-4px); }

@media (max-width: 1199px) {
  .bdw-coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .bdw-os-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .bdw-coupon-grid,
  .bdw-os-grid { grid-template-columns: 1fr; }
  .bdw-activity-top,
  .bdw-activity-foot { flex-direction: column; align-items: flex-start; }
  .bdw-countdown { flex-wrap: wrap; }
  .bdw-region-panel { padding: 20px 16px; }
  .bdw-steps { flex-direction: column; gap: 20px; }
  .bdw-step::after { display: none; }
  .bdw-legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .bdw-legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .bdw-legal-toc a { border-left: none; padding-left: 0; }
}
