/* Bateersoft — 经典主题（原深色霓虹风格）
   这是叠加在 site.css 之上的覆盖层：重新定义全部设计变量，并补回
   渐变文字、极光光晕、网格噪点、玻璃卡片、跑马灯与多色标签。
   JS 通过切换本 <link> 的 disabled 属性在两套风格间来回切换。 */

:root {
  --bg: #05060a;
  --bg-soft: #070a13;
  --bg-tint: rgba(34, 211, 238, .07);
  --ink: #e6e8ef;
  --ink-2: #9aa4bb;
  --ink-3: #7c869e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --brand: #22d3ee;
  --brand-dark: #8b5cf6;
  --brand-soft: rgba(34, 211, 238, .09);
  --radius: 16px;
  --shadow: none;
  --surface: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  --field-bg: #06080f;
  --header-bg: rgba(5, 6, 10, .72);
  --on-brand: #0a0d18;
  --selection-bg: rgba(139, 92, 246, .45);
  --placeholder: #4b5568;
  --focus-ring: rgba(34, 211, 238, .14);
  --hover-shadow: 0 12px 60px -20px rgba(139, 92, 246, .45);
}

body { background: #05060a; color: #e6e8ef; }
.site-footer { background: #04060c; border-top-color: rgba(255, 255, 255, .06); }
.site-header { border-bottom-color: rgba(255, 255, 255, .06); }

/* ---------- 极光 / 网格 / 噪点 ---------- */
.hero, #capabilities, #cases, #why, #contact { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 3px 3px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px circle at 8% -10%, rgba(34, 211, 238, .24), transparent 62%),
    radial-gradient(680px circle at 92% 0%, rgba(139, 92, 246, .24), transparent 62%),
    radial-gradient(520px circle at 45% 110%, rgba(236, 72, 153, .18), transparent 62%);
  filter: blur(30px);
}
#capabilities::before, #cases::before, #why::before, #contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  filter: blur(60px); opacity: .55;
}
#capabilities::before { background: radial-gradient(500px circle at 0% 30%, rgba(139, 92, 246, .3), transparent 65%); }
#cases::before { background: radial-gradient(500px circle at 100% 25%, rgba(34, 211, 238, .28), transparent 65%); }
#why::before { background: radial-gradient(600px circle at 50% 10%, rgba(139, 92, 246, .22), transparent 65%); }
#contact::before {
  background:
    radial-gradient(600px circle at 0% 100%, rgba(34, 211, 238, .25), transparent 62%),
    radial-gradient(600px circle at 100% 100%, rgba(236, 72, 153, .22), transparent 62%);
}

/* ---------- 渐变文字 / 标题 ---------- */
h1, h2, h3, h4 { font-weight: 750; letter-spacing: -.03em; }
h2 { line-height: 1.1; }
.accent {
  background: linear-gradient(100deg, #67e8f9 0%, #c4b5fd 38%, #f9a8d4 72%, #fde68a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent, .section h2 .accent {
  background: linear-gradient(100deg, #22d3ee, #8b5cf6 60%, #ec4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { color: #67e8f9; letter-spacing: .2em; }
.eyebrow::after { width: 48px; height: 2px; background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); }

/* ---------- 按钮 / 徽标 ---------- */
.btn { border-radius: 999px; }
.btn--primary {
  background: linear-gradient(120deg, #22d3ee, #8b5cf6 55%, #ec4899);
  color: #0a0d18; font-weight: 600;
}
.btn--primary:hover {
  background: linear-gradient(120deg, #22d3ee, #8b5cf6 55%, #ec4899);
  filter: brightness(1.1); box-shadow: 0 12px 40px -10px rgba(139, 92, 246, .6);
}
.btn--outline { background: rgba(255, 255, 255, .02); border-color: rgba(255, 255, 255, .15); color: #e6e8ef; }
.btn--outline:hover { border-color: rgba(34, 211, 238, .6); color: #67e8f9; }

.brand__mark {
  position: relative; font-size: 0;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6 55%, #ec4899);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 2px; border-radius: 7px;
  background: #05060a; z-index: 0;
}
.brand__mark::before {
  content: "B"; position: absolute; inset: 2px; z-index: 1;
  display: grid; place-items: center; font: 700 12px var(--mono);
  background: linear-gradient(100deg, #22d3ee, #8b5cf6 60%, #ec4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .1); color: #a5f3fc; }
.hero__tag i { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; animation: bts-pulse 2s ease-in-out infinite; }
@keyframes bts-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 数据条 ---------- */
.stats { gap: 1px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .06); }
.stats > div { background: #06080f; border-right: 0; }
.stats__value { color: #fff; }
@media (max-width: 760px) {
  .stats > div:nth-child(-n+2) { border-bottom: 0; }
  .stats > div:nth-child(2) { border-right: 0; }
}

/* ---------- 领域跑马灯 ---------- */
.sectors { background: #070a13; }
.sectors__inner { flex-wrap: nowrap; }
.sectors__viewport { position: relative; overflow: hidden; }
.sectors__viewport::before, .sectors__viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.sectors__viewport::before { left: 0; background: linear-gradient(90deg, #070a13, transparent); }
.sectors__viewport::after { right: 0; background: linear-gradient(270deg, #070a13, transparent); }
.sectors__list {
  flex-wrap: nowrap; gap: 40px; width: max-content;
  animation: bts-marquee 38s linear infinite;
}
.sectors__list:hover { animation-play-state: paused; }
.sectors__list span {
  background: none; border: 0; border-radius: 0; padding: 0;
  font-family: var(--mono); font-size: 14px; color: #98a2b8; white-space: nowrap;
}
.sectors__list span::before { content: "◆ "; color: #22d3ee; opacity: .7; }
.sectors__list .sectors__dup { display: inline; }
@keyframes bts-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- 玻璃卡片 + 渐变描边 ---------- */
.card, .contact { position: relative; border-color: rgba(255, 255, 255, .07); }
.card::before, .contact::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .45), rgba(139, 92, 246, .35) 50%, rgba(236, 72, 153, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .4;
}
a.card:hover, .card--hover:hover {
  border-color: rgba(139, 92, 246, .45);
  box-shadow: 0 12px 60px -20px rgba(139, 92, 246, .45);
  transform: translateY(-4px);
}
.card__index { color: #64748b; }
.icon { border: 1px solid transparent; }
#capabilities .card:nth-child(6n+1) .icon { background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .3); color: #67e8f9; }
#capabilities .card:nth-child(6n+2) .icon { background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .3); color: #c4b5fd; }
#capabilities .card:nth-child(6n+3) .icon { background: rgba(236, 72, 153, .12); border-color: rgba(236, 72, 153, .3); color: #f9a8d4; }
#capabilities .card:nth-child(6n+4) .icon { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); color: #fde68a; }
#capabilities .card:nth-child(6n+5) .icon { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: #6ee7b7; }
#capabilities .card:nth-child(6n+6) .icon { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .3); color: #fda4af; }

/* ---------- 渐变分隔线 ---------- */
.case__metrics, .step__out { border-top: 0; position: relative; padding-top: 20px; }
.case__metrics::before, .step__out::before, .example__block + .example__block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), rgba(139, 92, 246, .5), rgba(236, 72, 153, .4), transparent);
}
.example__block + .example__block { border-top: 0; background: rgba(255, 255, 255, .02); position: relative; }
.example__label { color: #67e8f9; }
#process .card:nth-child(4n+1) .step__no { color: #67e8f9; }
#process .card:nth-child(4n+2) .step__no { color: #c4b5fd; }
#process .card:nth-child(4n+3) .step__no { color: #f9a8d4; }
#process .card:nth-child(4n+4) .step__no { color: #fde68a; }

/* ---------- 案例：每个方向一个颜色 ---------- */
#cases .card:nth-child(1) { --case: #34d399; }
#cases .card:nth-child(2) { --case: #f472b6; }
#cases .card:nth-child(3) { --case: #fbbf24; }
#cases .card:nth-child(4) { --case: #fb7185; }
#cases .card:nth-child(5) { --case: #22d3ee; }
#cases .card:nth-child(6) { --case: #a78bfa; }
#cases .card:nth-child(7) { --case: #cbd5e1; }
#cases .card:nth-child(8) { --case: #e879f9; }
#cases .card:nth-child(9) { --case: #a3e635; }
.case__cat { background: rgba(255, 255, 255, .04); color: var(--case, #67e8f9); }
.case__metrics dd { color: var(--case, #67e8f9); }

#stack .stack > div:nth-child(4n+1) h4 { color: #67e8f9; }
#stack .stack > div:nth-child(4n+2) h4 { color: #c4b5fd; }
#stack .stack > div:nth-child(4n+3) h4 { color: #f9a8d4; }
#stack .stack > div:nth-child(4n+4) h4 { color: #fde68a; }
.stack > div { background: #06080f; }

#why .grid-3 .card:nth-child(1) .point__dot { background: #22d3ee; }
#why .grid-3 .card:nth-child(2) .point__dot { background: #a78bfa; }
#why .grid-3 .card:nth-child(3) .point__dot { background: #f472b6; }
.point__dot { box-shadow: 0 0 8px currentColor; }
.quote__avatar { background: linear-gradient(135deg, #34d399, #22d3ee); }

/* ---------- 表单 / 联系 ---------- */
.contact { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); }
.info-box { background: rgba(255, 255, 255, .02); }
.field input[type="text"], .field input[type="email"], .field textarea { color: #e6e8ef; }
.captcha__img { border-color: rgba(255, 255, 255, .2); }
.captcha__refresh { color: #9aa4bb; }
.checks label:has(input:checked) { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .5); }
.form__status.is-ok { color: #6ee7b7; }
.form__status.is-err { color: #fda4af; }

/* ---------- 主题切换控件 / 移动端下拉 ---------- */
.theme-switch { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.theme-switch button.is-active { background: rgba(139, 92, 246, .28); color: #fff; box-shadow: none; }
.nav__links.is-open { background: #0a0d18; }

@media (prefers-reduced-motion: reduce) {
  .sectors__list { animation: none !important; transform: none !important; flex-wrap: wrap; width: auto; }
  .sectors__list .sectors__dup { display: none; }
}
