/* ==========================================================================
   中南工具箱 · CSU Hub — 全局样式系统
   默认主题：清爽中南蓝 + 毛玻璃现代卡片风
   切换主题：暗黑「焚决」极客模式 ([data-theme="dark"])
   ========================================================================== */

:root {
  /* Brand Colors — CSU Blue */
  --brand-900: #0f2952;
  --brand-800: #153b75;
  --brand-700: #004b97;
  --brand-600: #1d5ed8;
  --brand-500: #2563eb;
  --brand-400: #60a5fa;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;

  /* Accent Colors */
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #ef4444;
  --accent-violet: #6366f1;

  /* Light Mode Surfaces & Typography */
  --bg-page: #f4f7fb;
  --bg-mesh-1: rgba(37, 99, 235, 0.10);
  --bg-mesh-2: rgba(14, 165, 233, 0.09);
  --bg-mesh-3: rgba(99, 102, 241, 0.06);
  --bg-surface: rgba(255, 255, 255, 0.84);
  --bg-surface-solid: #ffffff;
  --bg-surface-muted: #f8fafc;
  --bg-surface-hover: rgba(255, 255, 255, 0.96);
  --bg-nav: rgba(255, 255, 255, 0.78);
  --bg-code: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-brand: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(37, 99, 235, 0.22);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 39, 82, 0.14), 0 8px 20px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 10px 26px -6px rgba(37, 99, 235, 0.38);

  --hero-gradient: linear-gradient(135deg, #003a75 0%, #004b97 48%, #2563eb 100%);
  --pill-bg: rgba(37, 99, 235, 0.09);
  --pill-text: #1d4ed8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

/* --- Dark "焚决" Mode --- */
[data-theme="dark"] {
  --brand-700: #3b82f6;
  --brand-600: #f97316;
  --brand-500: #38bdf8;
  --brand-400: #fb923c;
  --brand-100: rgba(249, 115, 22, 0.18);
  --brand-50: rgba(56, 189, 248, 0.10);

  --bg-page: #070b14;
  --bg-mesh-1: rgba(249, 115, 22, 0.13);
  --bg-mesh-2: rgba(56, 189, 248, 0.11);
  --bg-mesh-3: rgba(139, 92, 246, 0.09);
  --bg-surface: rgba(15, 23, 42, 0.78);
  --bg-surface-solid: #111827;
  --bg-surface-muted: #0d1424;
  --bg-surface-hover: rgba(30, 41, 59, 0.88);
  --bg-nav: rgba(7, 11, 20, 0.82);
  --bg-code: #030712;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(249, 115, 22, 0.38);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 26px 54px -12px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 10px 28px -6px rgba(249, 115, 22, 0.42);

  --hero-gradient: linear-gradient(135deg, #7c2d12 0%, #c2410c 46%, #ea580c 78%, #f59e0b 100%);
  --pill-bg: rgba(249, 115, 22, 0.16);
  --pill-text: #fdba74;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(at 12% 8%, var(--bg-mesh-1) 0px, transparent 48%),
    radial-gradient(at 88% 12%, var(--bg-mesh-2) 0px, transparent 46%),
    radial-gradient(at 52% 85%, var(--bg-mesh-3) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

body.gate-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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

/* --- Announcement Top Bar --- */
.announce-bar {
  background: var(--hero-gradient);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.announce-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.15s ease;
}

.announce-link:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* --- Sticky Glass Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--hero-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-en {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.nav-btn.theme-btn[data-fenjue="true"] {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.18);
}

/* --- Hero Section (Home View) --- */
.hero {
  padding: 44px 0 28px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 40px 38px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--bg-mesh-1);
  filter: blur(36px);
  pointer-events: none;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 12.5px;
  font-weight: 700;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.4px;
}

.hero-title-highlight {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--hero-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--bg-surface-solid);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

/* Featured Spotlight Card on Right of Hero */
.hero-spotlight {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
}

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

.spotlight-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.spotlight-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

[data-theme="dark"] .spotlight-tag {
  color: #34d399;
}

.spotlight-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.spotlight-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.spotlight-check {
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.spotlight-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* --- Filter & Search Toolbar --- */
.toolbar-section {
  margin: 10px 0 22px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cat-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface-muted);
}

.cat-tab.active {
  background: var(--hero-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 230px;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-solid);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease;
}

.search-input:focus {
  border-color: var(--brand-500);
}

/* --- Tools Grid --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tool-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.tool-card.live-card {
  border-color: var(--border-strong);
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--pill-bg);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  overflow: hidden;
}

.tool-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.status-badge.live {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

[data-theme="dark"] .status-badge.live {
  color: #34d399;
}

.status-badge.soon {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

[data-theme="dark"] .status-badge.soon {
  color: #fbbf24;
}

.tool-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.tool-desc {
  margin: 0 0 14px;
  font-size: 13.8px;
  color: var(--text-secondary);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tool-tag {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.tool-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-meta-info {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-upvote {
  background: var(--pill-bg);
  color: var(--pill-text);
  border: 1px solid transparent;
}

.btn-upvote:hover {
  border-color: var(--border-strong);
}

.btn-upvote.voted {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

[data-theme="dark"] .btn-upvote.voted {
  color: #34d399;
}

/* Quick Campus Links Bar */
.quick-links-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.quick-links-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.quick-links-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.quick-chip:hover {
  border-color: var(--border-strong);
  color: var(--brand-500);
}

/* ==========================================================================
   DETAIL VIEW: 图书馆抢座插件专区 & 双端保姆级使用教程
   ========================================================================== */
.detail-view {
  padding: 26px 0 56px;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.back-btn:hover {
  border-color: var(--border-strong);
  transform: translateX(-2px);
}

/* Plugin Header Banner */
.plugin-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.plugin-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.plugin-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.plugin-version-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ver-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--pill-bg);
  color: var(--pill-text);
}

.plugin-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 22px;
}

.hl-item {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 13px;
}

.hl-title {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 3px;
}

.hl-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.download-box {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-btn-big {
  width: 100%;
  padding: 14px 20px;
  font-size: 15.5px;
  border-radius: 14px;
}

.dl-meta-list {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

/* --- Interactive Simulator Section --- */
.section-block {
  margin-bottom: 32px;
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.sim-wrapper {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #172554 100%);
  border-radius: var(--radius-xl);
  padding: 26px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 26px;
  align-items: start;
  color: #f8fafc;
}

.sim-guide-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-browser-bar {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.sim-dots {
  display: flex;
  gap: 6px;
}

.sim-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sim-dots span:nth-child(1) { background: #ef4444; }
.sim-dots span:nth-child(2) { background: #f59e0b; }
.sim-dots span:nth-child(3) { background: #10b981; }

.sim-url {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 7px;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #93c5fd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-seat-canvas {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
}

.sim-map-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.sim-seats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sim-seat-cell {
  padding: 9px 4px;
  border-radius: 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transition: all 0.25s ease;
}

.sim-seat-cell.free {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #6ee7b7;
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.sim-seat-cell.mine {
  background: rgba(59, 130, 246, 0.34);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.sim-try-tips {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #e0f2fe;
}

.sim-try-tips strong {
  color: #fde047;
}

/* Authentic Floating Plugin Panel Replica inside Simulator */
.sim-panel-stage {
  display: flex;
  justify-content: center;
}

.mock-csg-pill {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #172554 0%, #1e40af 55%, #2563eb 100%);
  color: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.mock-csg-pill.visible {
  display: inline-flex;
}

.mock-csg-panel {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.mock-csg-panel.hidden {
  display: none;
}

.mock-csg-header {
  padding: 13px 15px;
  background: linear-gradient(135deg, #172554 0%, #1e40af 54%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-csg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-csg-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.mock-csg-pro {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.26);
  border: 1px solid rgba(253, 224, 71, 0.5);
  color: #fef08a;
  font-weight: 800;
  margin-left: 5px;
}

.mock-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.mock-csg-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-hero-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.mock-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.mock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.mock-status-pill.running {
  background: #dcfce7;
  color: #15803d;
}

.mock-status-pill.success {
  background: #dbeafe;
  color: #1d4ed8;
}

.mock-seat-line {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.mock-cd-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.mock-cd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mock-cd-clock {
  font-size: 18px;
  font-weight: 800;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}

.mock-quick-rebook {
  padding: 4px 9px;
  border-radius: 7px;
  border: none;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.mock-quick-rebook:hover {
  background: #dbeafe;
}

.mock-bar-bg {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.3s ease;
}

.mock-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.mock-tab {
  padding: 6px 4px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.mock-tab.active {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mock-pane {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mock-pane.hidden {
  display: none;
}

.mock-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
}

.mock-primary-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.mock-primary-btn.stop {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.mock-accent-btn {
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

.mock-logs-box {
  max-height: 150px;
  overflow-y: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Step-by-Step Tutorials (PC + Android + Usage + FAQ) --- */
.tut-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tut-tab-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

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

.tut-tab-btn.active {
  background: var(--hero-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.tut-pane {
  display: none;
}

.tut-pane.active {
  display: block;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--hero-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.step-desc {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-secondary);
}

.copy-cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-code);
  color: #93c5fd;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.copy-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.visual-diagram {
  background: var(--bg-surface-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.8px;
  color: var(--text-secondary);
}

.folder-tree {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-primary);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-q {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

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

/* Disclaimer Box */
.disclaimer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 28px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Modals (Campus Trivia Gate & Feedback Modal) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 11, 20, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.25s ease;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.gate-closing {
  opacity: 0;
}

.modal-card {
  width: 100%;
  max-width: 490px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.gate-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gate-q-box {
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

.gate-q-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
}

.gate-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gate-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-solid);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gate-opt-btn:hover:not(:disabled) {
  border-color: var(--brand-500);
  transform: translateX(3px);
}

.gate-opt-btn.correct {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #059669;
}

[data-theme="dark"] .gate-opt-btn.correct {
  color: #34d399;
}

.gate-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
}

.gate-opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--pill-bg);
  color: var(--pill-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.gate-feedback {
  min-height: 22px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gate-feedback.ok { color: #10b981; }
.gate-feedback.err { color: #ef4444; }

.gate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}

.text-btn {
  border: none;
  background: transparent;
  color: var(--brand-500);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

/* Feedback Form Controls */
.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
}

.form-textarea {
  min-height: 92px;
  resize: vertical;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 960px) {
  .hero-card,
  .plugin-hero,
  .sim-wrapper {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-card,
  .plugin-hero {
    padding: 24px 20px;
  }

  .plugin-highlights,
  .spotlight-actions {
    grid-template-columns: 1fr;
  }

  .brand-sub {
    display: none;
  }

  .nav-btn span.hide-sm {
    display: none;
  }
}
