/* 贝贝云 — 机甲整备库低多边形战术样式表 */
:root {
  --bg-hangar: #060B12;
  --bg-panel: #0B1522;
  --bg-card: #101E30;
  --bg-elevated: #162A42;
  --poly-light: #3A8BB0;
  --poly-mid: #204E6B;
  --poly-dark: #12293F;
  --accent-cyan: #00E5FF;
  --accent-dim: rgba(0, 229, 255, 0.14);
  --text-main: #E0F6FF;
  --text-muted: #7DB0C2;
  --tick-color: #6A9AAB;
  --border-line: rgba(58, 139, 176, 0.34);
  --border-bright: rgba(0, 229, 255, 0.65);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg-hangar);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-hangar);
  background-image:
    linear-gradient(rgba(58, 139, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 139, 176, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--text-main);
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent-cyan);
  color: var(--bg-hangar);
  padding: 12px 18px;
  font-weight: 700;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

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

/* 顶部战术状态栏 */
.hud {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
}

.hud::after {
  content: "";
  display: block;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(58, 139, 176, 0.35) 0 10px,
    transparent 10px 20px
  );
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 44px;
  padding: 6px 4px;
}

.brand:hover {
  color: var(--accent-cyan);
}

.mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  border: 1px solid transparent;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav a:hover,
.nav a.active {
  color: var(--accent-cyan);
  background: var(--accent-dim);
  border-color: var(--border-line);
}

.unit {
  color: var(--tick-color);
  font-size: 0.78rem;
}

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--border-line);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.drawer {
  display: none;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-line);
  padding: 12px 20px 20px;
}

.drawer.open {
  display: block;
}

.drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(58, 139, 176, 0.18);
  font-size: 0.98rem;
}

.drawer a:last-child {
  border-bottom: none;
}

.drawer a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* 警示斜纹带 */
.caution {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 229, 255, 0.28) 0 10px,
    rgba(16, 30, 48, 0.6) 10px 20px
  );
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

/* 光束扫射签名动效 */
.scan {
  position: relative;
  overflow: hidden;
}

.beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 90px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.08) 30%,
    rgba(0, 229, 255, 0.34) 50%,
    rgba(0, 229, 255, 0.08) 70%,
    transparent 100%
  );
  border-left: 1px solid rgba(0, 229, 255, 0.45);
  transform: translateX(-140%);
  animation: sweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sweep {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    transform: translateX(920%);
    opacity: 1;
  }
  82% {
    opacity: 0;
  }
  100% {
    transform: translateX(920%);
    opacity: 0;
  }
}

/* Hero 主整备平台 */
.hero {
  position: relative;
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--border-line);
  background:
    radial-gradient(circle at 78% 35%, rgba(58, 139, 176, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(11, 21, 34, 0.8) 0%, var(--bg-hangar) 100%);
}

.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.copy {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--poly-light);
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 6.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.subtitle {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 148px;
  padding: 12px 26px;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent-cyan);
  color: var(--bg-hangar);
  border-color: var(--accent-cyan);
}

.primary:hover {
  background: #4DF0FF;
  color: var(--bg-hangar);
}

.secondary {
  background: var(--bg-panel);
  color: var(--text-main);
  border-color: var(--poly-light);
}

.secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--bg-card);
}

.badgebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(58, 139, 176, 0.22);
  font-size: 12.5px;
  color: var(--text-muted);
}

.visual {
  position: relative;
  padding: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

/* 通用整备模块 */
.module {
  padding: 64px 0;
  border-bottom: 1px solid rgba(58, 139, 176, 0.2);
}

.head {
  margin-bottom: 34px;
}

.code {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: rgba(58, 139, 176, 0.15);
  border-left: 3px solid var(--accent-cyan);
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
}

.lead {
  margin: 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* 网格系统 */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* 战术整备卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--poly-light);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.slot {
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-panel) 100%);
}

.slothead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(58, 139, 176, 0.16);
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  font-size: 12.5px;
}

/* AI 与 流媒体矩阵芯片 */
.chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.chip svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: 2px;
}

.chip h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.chip p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.notice {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(11, 21, 34, 0.9);
  border-left: 3px solid var(--poly-light);
  color: var(--text-muted);
  font-size: 13.5px;
}

/* 套餐权限卡 */
.bay {
  justify-content: space-between;
  gap: 20px;
}

.priority {
  background: linear-gradient(165deg, #122840 0%, #0B192B 100%);
  border: 1px solid var(--border-bright);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.22);
}

.priority::before {
  width: 68px;
  background: var(--accent-cyan);
}

.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tierbadge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-cyan);
  color: var(--bg-hangar);
  font-size: 12.5px;
  font-weight: 700;
}

.metric {
  margin: 8px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.points {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(58, 139, 176, 0.25);
}

.points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 14.5px;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cardfoot {
  margin-top: auto;
  padding-top: 12px;
}

.cardfoot .btn {
  width: 100%;
}

/* 使用场景日志卡 */
.log {
  gap: 12px;
}

.device {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 13px;
}

/* 系统诊断手风琴 FAQ */
.diagnostic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.item {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.trigger:hover {
  color: var(--accent-cyan);
}

.chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--poly-light);
  color: var(--accent-cyan);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.trigger[aria-expanded="true"] .chevron {
  transform: rotate(45deg);
  background: var(--accent-cyan);
  color: var(--bg-hangar);
  border-color: var(--accent-cyan);
}

.answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  border-top: 1px solid rgba(58, 139, 176, 0.2);
}

.answer p {
  margin: 14px 0 0;
}

.answer[hidden] {
  display: none;
}

/* 底部启动整备程序 CTA 框景 */
.launch {
  padding: 64px 0;
}

.frame {
  position: relative;
  padding: 36px 24px;
  background: linear-gradient(135deg, #0D1E31 0%, #091320 100%);
  border: 1px solid var(--poly-light);
  text-align: center;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.frame p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

/* 底部战术状态行 Footer */
.footer {
  background: #04080E;
  border-top: 1px solid var(--border-line);
  padding: 36px 0 44px;
}

.footnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.copyright {
  margin: 0 0 8px;
  text-align: center;
  color: var(--text-main);
  font-size: 0.9rem;
}

.disclosure {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* 移动端底部吸顶 CTA */
.sticky {
  display: none;
}

/* 面包屑与子页布局 */
.crumb {
  padding: 20px 0 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-muted);
}

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

/* 指南列表页卡片 */
.guide {
  padding: 0;
  overflow: hidden;
}

.cover {
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-hangar);
}

.cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guidebody {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
  gap: 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--tick-color);
}

.read {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.read:hover {
  color: var(--text-main);
}

/* 文章页排版 */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0 64px;
}

.article h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.7rem, 4.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.prose {
  margin-top: 24px;
  padding: 28px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.prose h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-cyan);
  font-size: 1.32rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
  color: var(--text-main);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-main);
}

.prose li {
  margin-bottom: 8px;
}

.endcta {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(140deg, #102438 0%, #0B1624 100%);
  border: 1px solid var(--poly-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.endcta p {
  margin: 0;
  color: var(--text-muted);
}

.related {
  margin-top: 32px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
}

.related ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-cyan);
}

/* 法律页与网站地图 */
.legal {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 0 64px;
}

.legal h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
}

.updated {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.group ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.group li {
  border-bottom: 1px solid rgba(58, 139, 176, 0.18);
}

.group li:last-child {
  border-bottom: none;
}

.group a {
  display: flex;
  align-items: center;
  min-height: 46px;
  color: var(--text-main);
}

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

/* 响应式断点 */
@media (max-width: 768px) {
  .sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px;
    background: rgba(6, 11, 18, 0.96);
    border-top: 1px solid var(--poly-light);
    transform: translateY(115%);
    transition: transform 0.25s ease;
  }

  .sticky.visible {
    transform: translateY(0);
  }

  .sticky span {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 600;
  }

  .sticky .btn {
    min-width: 124px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.92rem;
  }
}

@media (min-width: 640px) {
  .two {
    grid-template-columns: repeat(2, 1fr);
  }

  .chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .prose {
    padding: 34px 36px;
  }

  .endcta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .toggle,
  .drawer {
    display: none !important;
  }

  .three {
    grid-template-columns: repeat(3, 1fr);
  }

  .four {
    grid-template-columns: repeat(2, 1fr);
  }

  .chips {
    grid-template-columns: repeat(3, 1fr);
  }

  .map {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 64px 0 76px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 3.6vw, 3.5rem);
  }

  .stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }

  .four {
    grid-template-columns: repeat(4, 1fr);
  }

  .frame {
    padding: 48px 44px;
  }
}

/* 减少动态偏好支持 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .beam {
    animation: none !important;
    transform: translateX(0);
    width: 4px;
    opacity: 0.6;
    background: var(--accent-cyan);
  }
}
