:root,
[data-theme="dark"] {
  --bg-base: #07080c;
  --bg-surface: #0e1118;
  --bg-elevated: #141923;
  --bg-card: rgba(18, 23, 34, 0.85);
  --bg-glass: rgba(12, 15, 23, 0.82);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(245, 158, 11, 0.35);
  --text-primary: #f4f6fb;
  --text-secondary: #a1acc4;
  --text-muted: #69748c;

  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.22);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.2);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.22);
  --accent-green: #10b981;

  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.38);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

[data-theme="light"] {
  --bg-base: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-elevated: #eef2f8;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-gold: rgba(217, 119, 6, 0.35);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-red: #dc2626;
  --accent-red-glow: rgba(220, 38, 38, 0.12);
  --accent-gold: #d97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.12);
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.12);
  --accent-green: #059669;

  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

code, pre, kbd {
  font-family: "JetBrains Mono", monospace;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== 顶部高危装机警示条 ==================== */
.top-alert-bar {
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.92), rgba(180, 83, 9, 0.9), rgba(153, 27, 27, 0.92));
  border-bottom: 1px solid rgba(252, 165, 165, 0.25);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.86rem;
  position: relative;
  z-index: 101;
}

.top-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.alert-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #fde047;
  border-radius: 50%;
  box-shadow: 0 0 8px #fde047;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.top-alert-text {
  flex: 1;
  font-weight: 500;
  min-width: 240px;
}

.top-alert-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.top-alert-btn:hover {
  background: #fff;
  color: #991b1b;
}

/* ==================== 导航栏 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e1b18, #0f131d);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -1px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.emblem-knox {
  color: #ef4444;
}

.emblem-odma {
  color: #f59e0b;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-surface);
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  background: linear-gradient(135deg, #ef4444, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.32);
}

.nav-count-badge {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.kbd-shortcut {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.08rem 0.38rem;
  border-radius: 5px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.admin-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-entry-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

/* ==================== 视图切换 ==================== */
.main-content {
  flex: 1;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-section.active {
  display: block;
}

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

/* ==================== HERO 区域 ==================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-ambient-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(239, 68, 68, 0.14), transparent 45%),
    radial-gradient(circle at 82% 35%, rgba(245, 158, 11, 0.14), transparent 48%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

[data-theme="light"] .hero-eyebrow {
  color: #b91c1c;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, #fca5a5 70%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, #dc2626 75%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.04rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.1rem;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 0.78rem 1.4rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
}

.btn-xs {
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #d97706);
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger-outline:hover {
  background: #ef4444;
  color: #fff;
}

/* 4步上手条 */
.quick-steps-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.q-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex: 1;
  min-width: 125px;
}

.q-step:hover {
  background: var(--bg-elevated);
}

.q-step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.q-step div {
  display: flex;
  flex-direction: column;
}

.q-step strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.q-step span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.q-step-arrow {
  color: var(--text-muted);
  font-weight: 700;
}

/* 右侧 3D 渲染图展示台 */
.stage-card {
  background: linear-gradient(160deg, #150d10 0%, #0d1017 55%, #14110b 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.stage-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-Switch-btn {
  background: transparent;
  border: none;
  color: #a1acc4;
  padding: 0.52rem 0.75rem;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s;
}

.stage-Switch-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.dot-gold { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.stage-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 330px;
  background: #090608;
  border: 1px solid rgba(245, 158, 11, 0.22);
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.stage-image-wrap:hover img {
  transform: scale(1.04);
}

.stage-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.74rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stage-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.stage-thumb-item {
  width: 68px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s;
}

.stage-thumb-item.active,
.stage-thumb-item:hover {
  border-color: var(--accent-gold);
  opacity: 1;
}

.stage-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-port-legend {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.port-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
  color: #e2e8f0;
}

.port-pill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 0.12rem;
}

.port-pill p {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* ==================== SECTION BLOCKS ==================== */
.section-block {
  padding: 3.2rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ==================== 硬件选择大卡片矩阵 ==================== */
.hardware-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.hw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hw-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.hw-card-banner {
  position: relative;
  height: 210px;
  background: #0a080c;
  overflow: hidden;
  cursor: zoom-in;
}

.hw-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.hw-card:hover .hw-card-banner img {
  transform: scale(1.05);
}

.hw-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
}

.hw-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hw-card-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.2rem;
}

.hw-card-title {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hw-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hw-specs-list {
  list-style: none;
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.hw-specs-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hw-specs-list li::before {
  content: "◆";
  color: var(--accent-gold);
  font-size: 0.65rem;
}

.hw-tutorials-box {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.hw-tutorials-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  display: block;
}

.hw-tut-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  cursor: pointer;
  transition: all 0.2s;
}

.hw-tut-link:hover {
  border-color: var(--accent-gold);
  background: var(--bg-elevated);
  transform: translateX(3px);
}

.hw-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

/* ==================== 首页四大红线横幅 ==================== */
.danger-showcase-banner {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.18), rgba(18, 23, 34, 0.92));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.danger-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.danger-badge-pill {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.danger-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.home-notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.notice-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.notice-mini-card.level-warning {
  border-left-color: var(--accent-gold);
}

.notice-mini-card.level-info {
  border-left-color: var(--accent-cyan);
}

.notice-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.notice-mini-card h4 {
  font-size: 0.95rem;
  margin: 0.4rem 0;
}

.notice-mini-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==================== 按目的查找矩阵 ==================== */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.purpose-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  transition: all 0.2s;
}

.purpose-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.purpose-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.purpose-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.purpose-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ==================== 教程工作区 (左目录 + 右阅读器) ==================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.tutorial-workspace {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.tutorial-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.tut-nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.6rem 0.35rem;
}

.tut-nav-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 0.35rem;
  transition: all 0.2s;
  display: block;
}

.tut-nav-item:hover {
  background: var(--bg-elevated);
}

.tut-nav-item.active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.tut-nav-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.tut-nav-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--accent-gold);
}

.tut-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.tutorial-reader {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.reader-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.reader-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.reader-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* 教程内嵌必读红框 */
.reader-safety-box {
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.38);
  border-left: 5px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.65rem;
}

.reader-safety-box h4 {
  color: #f87171;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.reader-safety-box ul {
  padding-left: 1.2rem;
}

.reader-safety-box li {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

/* 教程内嵌硬件高清图与视频播放器 */
.reader-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.8rem;
}

.reader-board-figure {
  background: #0a080c;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  min-height: 220px;
}

.reader-board-figure img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.reader-board-caption {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: space-between;
}

.reader-video-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-placeholder {
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 230px;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.14), transparent 70%);
}

.play-circle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #d97706);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s;
}

.play-circle-btn:hover {
  transform: scale(1.08);
}

/* 教程正文步骤块 */
.reader-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}

.reader-section-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--accent-gold);
}

.reader-section-content p {
  margin-bottom: 0.75rem;
  font-size: 0.94rem;
}

.reader-section-content ul,
.reader-section-content ol {
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
}

.reader-section-content li {
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
}

.reader-section-content code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  font-size: 0.84rem;
  color: var(--accent-gold);
}

.reader-section-content pre {
  background: #06080d;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow-x: auto;
  font-size: 0.82rem;
  margin: 0.75rem 0;
}

.callout {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 0.85rem 0;
  font-size: 0.88rem;
}

.callout-danger {
  background: rgba(239, 68, 68, 0.12);
  border-left: 4px solid #ef4444;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid #f59e0b;
}

.reader-downloads-footer {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.reader-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

/* ==================== 驱动与工具下载中心 ==================== */
.download-safety-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.strip-icon {
  font-size: 1.6rem;
}

.strip-content {
  flex: 1;
  font-size: 0.88rem;
  min-width: 240px;
}

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.35rem;
}

.driver-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.driver-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.driver-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.driver-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

.driver-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.driver-meta-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
}

.driver-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.driver-sha-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.driver-sha-box code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ==================== 注意事项与接口对照 ==================== */
.board-comparison-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.board-comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
}

.board-comp-img {
  position: relative;
  background: #080609;
  cursor: zoom-in;
}

.board-comp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}

.board-comp-info {
  padding: 1.25rem;
}

.board-comp-info h3 {
  font-size: 1.1rem;
  margin: 0.45rem 0 0.65rem;
}

.board-comp-info ul {
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.board-comp-info li {
  margin-bottom: 0.38rem;
}

.notices-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.notice-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--accent-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.notice-full-card.level-warning { border-left-color: var(--accent-gold); }
.notice-full-card.level-info { border-left-color: var(--accent-cyan); }

.notice-full-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.notice-full-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.notice-summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.notice-details-ul {
  padding-left: 1.35rem;
  background: var(--bg-surface);
  padding: 1rem 1.25rem 1rem 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.notice-details-ul li {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

/* FAQ 折叠面板 */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 1.1rem 1.35rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question:hover {
  background: var(--bg-elevated);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==================== 交互式排障向导 ==================== */
.two-pc-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.8rem;
}

.pc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.pc-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  margin-bottom: 0.4rem;
}

.pc-badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.pc-box h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.pc-box p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.pc-cable-arrow {
  text-align: center;
  font-size: 0.76rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.cable-line {
  height: 3px;
  width: 90px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #06b6d4);
  margin: 0.4rem auto;
  border-radius: 999px;
}

.troubleshoot-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.wizard-card,
.ai-diag-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.wizard-step-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.wizard-question-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.wizard-question-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wizard-opt-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wizard-opt-btn:hover {
  border-color: var(--accent-gold);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.wizard-opt-btn strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.15rem;
}

.wizard-opt-btn span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.wizard-result-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.wizard-result-box h4 {
  color: #34d399;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.ai-card-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.ai-diag-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}

.ai-diag-card > p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.ai-step-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.ai-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.ai-step-tip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.code-block {
  background: #06080c;
  color: #cbd5e1;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.74rem;
  overflow-x: auto;
  max-height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block-sm {
  white-space: pre-wrap;
  max-height: 140px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.badge-red { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.badge-gold { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-cyan { background: rgba(6, 182, 212, 0.18); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.35); }
.badge-green { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }

/* ==================== 页脚 ==================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.48rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-support-tip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.support-item {
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==================== 弹窗体系 & 管理后台 ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-md { max-width: 680px; }
.modal-xl { max-width: 1140px; }

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group h3 {
  font-size: 1.18rem;
  margin-top: 0.25rem;
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.safety-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.safety-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.safety-check-item input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: #ef4444;
}

.safety-check-item strong {
  display: block;
  font-size: 0.9rem;
}

.safety-check-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 搜索弹窗 */
.search-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.search-modal-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-results-body {
  padding: 1rem 1.35rem;
  max-height: 440px;
  overflow-y: auto;
}

.search-result-item {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  margin-bottom: 0.55rem;
  cursor: pointer;
  transition: all 0.15s;
}

.search-result-item:hover {
  border-color: var(--accent-gold);
}

/* Lightbox */
.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* 管理后台样式 */
.admin-login-box {
  max-width: 420px;
  margin: 1.5rem auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}

.admin-login-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.admin-login-box > p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.58rem 0.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
}

.form-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.login-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  text-align: center;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-tab {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.admin-list-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.35rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #111827;
  color: #fff;
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.2s ease;
}

@media (max-width: 992px) {
  .hero-grid,
  .tutorial-workspace,
  .troubleshoot-grid,
  .two-pc-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .board-comparison-panel {
    grid-template-columns: 1fr;
  }
  .board-comp-card {
    grid-template-columns: 1fr;
  }
  .reader-media-grid {
    grid-template-columns: 1fr;
  }
  .tutorial-sidebar {
    position: static;
    max-height: none;
  }
}
