:root {
      --primary: #06b6d4;
      --accent: #ec4899;
      --bg-dark: #0c0a1a;
      --text-light: #e0f2fe;
      --card-bg: #141028;
      --border-light: #2a2440;
      --font-title: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, cursive;
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --radius: 8px;
      --shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    * { box-sizing: border-box; }
    body {
      background-color: var(--bg-dark);
      color: var(--text-light);
      font-family: var(--font-body);
      margin: 0;
      letter-spacing: 0.2px;
    }
    h1, h2, h3, h4, .navbar-brand, .display-title {
      font-family: var(--font-title);
      font-weight: 700;
    }
    /* 滚动进度条 */
    #scroll-progress {
      position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 9999; border-radius: 0 4px 4px 0;
    }
    .navbar-custom {
      background: rgba(12, 10, 26, 0.8);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border-light);
      padding: 10px 24px;
    }
    .navbar-brand {
      font-size: 1.6rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-right: 20px;
    }
    .nav-link {
      color: var(--text-light);
      font-weight: 500;
      transition: 0.2s;
      border-bottom: 2px solid transparent;
    }
    .nav-link:hover {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }
    .hero-media {
      width: 100%;
      border-radius: 12px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border-light);
      aspect-ratio: 16/9;
      object-fit: cover;
    }
    .outline-card {
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border-light);
      border-radius: var(--radius);
      padding: 20px;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .outline-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 24px rgba(6,182,212,0.2);
      border-color: var(--primary);
    }
    .poster-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 18px;
      width: 100%;
    }
    @media (min-width: 768px) {
      .poster-grid { grid-template-columns: repeat(4, 1fr); }
    }
    @media (min-width: 1200px) {
      .poster-grid { grid-template-columns: repeat(6, 1fr); }
    }
    .poster-card {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      background: #1b1530;
      border: 1px solid var(--border-light);
      aspect-ratio: 2/3;
      cursor: pointer;
      transition: transform 0.2s;
    }
    .poster-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: 0.4s;
    }
    .poster-card .overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(10,5,20,0.85) 0%, transparent 60%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 12px;
      opacity: 0;
      transition: 0.3s;
    }
    .poster-card:hover .overlay { opacity: 1; }
    .overlay .card-title {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 4px;
    }
    .overlay .rating {
      color: #facc15;
      font-size: 0.85rem;
    }
    .play-icon {
      position: absolute;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 2.5rem;
      color: white;
      text-shadow: 0 0 20px rgba(0,0,0,0.5);
      background: rgba(6, 182, 212, 0.6);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
      opacity: 0;
    }
    .poster-card:hover .play-icon { opacity: 1; }
    .section-title {
      font-size: 1.8rem;
      font-weight: 800;
      margin-bottom: 12px;
      border-left: 6px solid var(--accent);
      padding-left: 16px;
      letter-spacing: -0.01em;
    }
    .numbered-title::before {
      content: "0" counter(section);
      counter-increment: section;
      color: var(--accent);
      font-weight: 800;
      margin-right: 12px;
    }
    .magazine-section {
      counter-increment: section;
      margin-top: 60px;
    }
    .section-title .star-icon { color: var(--primary); }
    .btn-soft {
      background: rgba(6, 182, 212, 0.15);
      border: 1px solid var(--primary);
      border-radius: 50px;
      padding: 8px 24px;
      color: var(--text-light);
      transition: 0.2s;
      font-weight: 600;
    }
    .btn-soft:hover {
      background: var(--primary);
      color: #0c0a1a;
      border-color: var(--primary);
    }
    .badge-cyber {
      background: var(--accent);
      color: white;
      padding: 4px 8px;
      border-radius: 40px;
      font-size: 0.7rem;
    }
    .accordion-button:not(.collapsed) {
      background: rgba(6, 182, 212, 0.1);
    }
    .accordion-item {
      background: transparent;
      border: 1px solid var(--border-light);
    }
    .accordion-button {
      background: #151129;
      color: var(--text-light);
    }
    .footer-links a {
      color: #cbd5e1;
      text-decoration: none;
      font-size: 0.9rem;
    }
    .footer-links a:hover { color: var(--primary); }
    /* 打字机效果 */
    .typewriter h1 {
      overflow: hidden; 
      border-right: 0.15em solid var(--primary);
      white-space: nowrap;
      margin: 0 auto;
      letter-spacing: 0.1em;
      animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite;
      width: fit-content;
      font-size: 2.5rem;
    }
    @keyframes typing {
      from { width: 0; }
      to { width: 100%; }
    }
    @keyframes blink-caret {
      from, to { border-color: transparent; }
      50% { border-color: var(--primary); }
    }
    /* 数字滚动 */
    .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: var(--primary);
      display: inline-block;
    }
    /* 手风琴背景 */
    .accordion-item { background-color: #100e1f; }
    .accordion-button { background-color: #1c1830; }
    .accordion-button:not(.collapsed) { color: white; }
    .accordion-button:focus { box-shadow: none; }
    /* 暗色微调 */
    hr { border-color: var(--border-light); }
    .magazine-section h3 { color: var(--primary); }
    /* 侧滑弹窗样式 */
    .detail-sidebar {
      position: fixed;
      top: 0; right: -420px;
      width: 380px;
      max-width: 100vw;
      height: 100%;
      background: #0b0818;
      border-left: 2px solid var(--primary);
      z-index: 10000;
      transition: right 0.4s ease;
      overflow-y: auto;
      padding: 28px 20px;
      box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    .detail-sidebar.open { right: 0; }
    .sidebar-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .detail-sidebar.open ~ .sidebar-backdrop,
    .sidebar-backdrop.active { opacity: 1; pointer-events: auto; }
    .detail-sidebar img { width: 100%; border-radius: 8px; }
    /* 媒体适配 */
    @media (max-width: 600px) {
      .typewriter h1 { font-size: 1.8rem; white-space: normal; }
      .poster-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .movie-chip {
      display: inline-block; background: rgba(6,182,212,0.2); padding: 4px 8px; border-radius: 30px; margin-right: 6px;
    }

/* --- 子页面追加 --- */
/* 确保所有卡片、列表背景继承深色主题 */
    .guide-step, .guide-tip-card, .table-custom, .list-group-custom {
      background-color: var(--card-bg) !important;
      color: var(--text-light);
      border: 1px solid var(--border-light);
      border-radius: var(--radius);
    }
/* 标题强调色 */
    .guide-section-title {
      color: var(--primary);
      font-weight: 700;
      letter-spacing: 0.02em;
      border-left: 4px solid var(--accent);
      padding-left: 14px;
    }
.guide-subhead {
      color: var(--text-light);
      font-weight: 600;
      border-bottom: 1px dashed var(--border-light);
      padding-bottom: 6px;
    }
/* 表格、列表覆盖bootstrap默认白底 */
    .table-custom {
      --bs-table-bg: transparent !important;
      --bs-table-color: var(--text-light) !important;
      border-color: var(--border-light) !important;
    }
.table-custom th, .table-custom td {
      background-color: transparent !important;
      color: var(--text-light) !important;
      border-color: var(--border-light) !important;
      padding: 12px 8px;
    }
.list-group-custom .list-group-item {
      background: transparent !important;
      color: var(--text-light) !important;
      border-color: var(--border-light) !important;
    }
.list-group-custom .list-group-item i {
      color: var(--accent);
      margin-right: 10px;
    }
/* 覆盖bootstrap collapse/导航可能带来的杂色 */
    .navbar-collapse {
      background: transparent;
    }
.guide-sticky-sidebar .card {
      background: var(--card-bg) !important;
      color: var(--text-light) !important;
      border: 1px solid var(--border-light) !important;
    }
/* 自定义步骤圈 */
    .step-circle {
      width: 36px; height: 36px;
      background: var(--primary);
      color: #0c0a1a;
      font-weight: 800;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      flex-shrink: 0;
    }
.btn-outline-custom {
      border: 1px solid var(--primary);
      color: var(--primary);
      background: transparent;
      transition: 0.2s;
    }
.btn-outline-custom:hover {
      background: var(--primary);
      color: #0c0a1a;
    }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.card-body { background:transparent !important; color:#e0f2fe !important; }
.table { color:#e0f2fe !important; border-color:rgba(255,255,255,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#e0f2fe !important; }
.accordion-body { background:transparent !important; color:#e0f2fe !important; }
.accordion-header { background:transparent !important; }
