:root {
      --main: #6d5dfc;
      --accent: #22d3ee;
      --bg: #0f1020;
      --text: #e8eaf6;
      --border-thick: 4px solid #22233a;
      --shadow-hard: 6px 6px 0 rgba(0,0,0,0.8);
    }
    * { border-radius: 0 !important; font-family: 'Inter', sans-serif; }
    body {
      background-color: var(--bg);
      color: var(--text);
      font-size: 0.95rem;
      letter-spacing: 0.2px;
    }
    h1,h2,h3,h4,h5 { font-weight: 800; text-transform: uppercase; }
    .navbar {
      background: #111225 !important;
      border-bottom: var(--border-thick);
      box-shadow: var(--shadow-hard);
    }
    .navbar-brand {
      font-weight: 900;
      font-size: 1.6rem;
      color: var(--accent) !important;
      text-shadow: 2px 2px 0 var(--main);
      letter-spacing: -1px;
    }
    .nav-link {
      color: var(--text) !important;
      font-weight: 600;
      padding: 0.5rem 1.2rem !important;
      transition: 0.2s;
    }
    .nav-link:hover { color: var(--accent) !important; background: #1f2040; }
    .hero-section {
      padding: 5rem 0;
      border-bottom: var(--border-thick);
      background: radial-gradient(circle at 20% 30%, #1c1e3d, #0b0c1a);
      position: relative;
    }
    .typewriter {
      font-size: 3.2rem;
      font-weight: 900;
      color: var(--accent);
      background: #111225;
      display: inline-block;
      padding: 0.5rem 1.5rem;
      border: var(--border-thick);
      box-shadow: 8px 8px 0 var(--main);
      min-height: 6rem;
    }
    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 3px solid var(--main);
      margin: 2.5rem 0 1.2rem;
      font-weight: 800;
      font-size: 1.8rem;
    }
    .section-title i { color: var(--accent); font-size: 1.8rem; }
    .card-movie {
      background: #171834;
      border: 2px solid #2a2b4a;
      box-shadow: 4px 4px 0 #000;
      transition: all 0.15s ease-in;
      height: 100%;
      cursor: pointer;
      position: relative;
    }
    .card-movie:hover {
      transform: translate(-3px, -3px);
      box-shadow: 8px 8px 0 var(--main);
      border-color: var(--accent);
    }
    .card-movie img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      border-bottom: 2px solid #33345a;
    }
    .card-body { padding: 0.8rem; background: #171834; }
    .card-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
    .badge-corner {
      position: absolute;
      top: 8px; left: 8px;
      background: var(--main);
      color: white;
      font-weight: 700;
      padding: 0.2rem 0.6rem;
      font-size: 0.75rem;
      border: 1px solid black;
      box-shadow: 2px 2px 0 black;
      z-index: 2;
    }
    .rating-star { color: #fbbf24; font-size: 0.8rem; }
    .hot-badge { background: var(--accent); color: black; padding: 0.1rem 0.4rem; font-weight: 700; }
    .sidebar-detail {
      position: fixed;
      top: 0; right: -450px;
      width: 380px;
      height: 100%;
      background: #151631;
      border-left: 4px solid var(--main);
      box-shadow: -10px 0 30px rgba(0,0,0,0.7);
      transition: right 0.35s ease;
      z-index: 1050;
      overflow-y: auto;
      padding: 1.5rem;
    }
    .sidebar-detail.show { right: 0; }
    .overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; z-index: 1040; }
    .overlay.show { display: block; }
    .close-btn { cursor: pointer; font-size: 1.8rem; color: var(--accent); }
    .mono { font-family: 'Courier New', monospace; }
    .accordion-button { background: #1c1d3a; color: var(--text); font-weight: 600; border: 1px solid #33345a; }
    .accordion-button:not(.collapsed) { background: var(--main); color: white; }
    .accordion-body { background: #151631; color: #ccc; }
    .friend-links { border-top: 4px solid var(--main); border-bottom: 4px solid var(--main); background: #101126; }
    footer { background: #0a0b18; border-top: var(--border-thick); }
    .back-to-top {
      position: fixed;
      bottom: 30px; right: 30px;
      background: var(--main);
      color: white;
      width: 50px; height: 50px;
      font-size: 1.5rem;
      border: 2px solid black;
      box-shadow: 4px 4px 0 black;
      opacity: 0;
      transition: opacity 0.3s;
      z-index: 999;
      cursor: pointer;
    }
    .back-to-top.show { opacity: 1; }
    .stat-number { font-weight: 900; font-size: 1.8rem; color: var(--accent); }
    .filter-dark { background: #0b0c1a; }
    .hover-tilt:hover { transform: scale(1.02); }

/* --- 子页面追加 --- */
/* 本页专属样式 - 榜单页特殊元素 */
    .rank-hero {
      background: linear-gradient(135deg, rgba(109,93,252,0.15) 0%, rgba(34,211,238,0.1) 100%);
      border: var(--border-thick);
      border-radius: 12px;
      padding: 3rem 2rem;
      margin-bottom: 3rem;
      position: relative;
      overflow: hidden;
    }
.rank-hero::before {
      content: '\f0cb';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      right: -30px;
      bottom: -30px;
      font-size: 180px;
      opacity: 0.08;
      color: var(--accent);
      transform: rotate(-15deg);
    }
.rank-list-item {
      display: flex;
      align-items: center;
      padding: 1rem 1.25rem;
      border: 2px solid var(--border-color, #22233a);
      border-radius: 8px;
      margin-bottom: 0.75rem;
      transition: all 0.3s ease;
      background: rgba(255,255,255,0.02);
    }
.rank-list-item:hover {
      transform: translateX(8px);
      border-color: var(--accent);
      background: rgba(109,93,252,0.1);
    }
.rank-number {
      font-family: 'Inter', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--main);
      min-width: 55px;
      text-align: center;
      margin-right: 1.25rem;
    }
.rank-number.top-1 {
      color: #ffd700;
      font-size: 1.8rem;
      text-shadow: 0 0 15px rgba(255,215,0,0.4);
    }
.rank-number.top-2 {
      color: #c0c0c0;
      font-size: 1.6rem;
    }
.rank-number.top-3 {
      color: #cd7f32;
      font-size: 1.5rem;
    }
.rank-info {
      flex: 1;
    }
.rank-title {
      font-weight: 600;
      font-size: 1.1rem;
      color: var(--text);
      margin-bottom: 0.25rem;
    }
.rank-meta {
      font-size: 0.85rem;
      color: rgba(232,234,246,0.6);
    }
.rank-score {
      font-family: 'Inter', sans-serif;
      font-weight: 800;
      font-size: 1.25rem;
      color: var(--accent);
      margin-left: 1rem;
      min-width: 60px;
      text-align: right;
    }
.rank-tag {
      display: inline-block;
      padding: 0.2rem 0.6rem;
      background: rgba(109,93,252,0.2);
      border: 1px solid var(--main);
      border-radius: 4px;
      font-size: 0.75rem;
      color: var(--main);
      font-weight: 600;
      margin-right: 0.5rem;
    }
.rank-category-tabs {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }
.rank-cat-btn {
      padding: 0.5rem 1.25rem;
      background: rgba(255,255,255,0.05);
      border: 2px solid var(--border-color, #22233a);
      border-radius: 8px;
      color: var(--text);
      font-weight: 500;
      transition: all 0.3s ease;
      cursor: pointer;
    }
.rank-cat-btn:hover,
    .rank-cat-btn.active {
      background: var(--main);
      border-color: var(--main);
      color: #fff;
      box-shadow: var(--shadow-hard);
    }
.stat-card {
      background: rgba(109,93,252,0.08);
      border: 2px solid var(--border-color, #22233a);
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
      transition: all 0.3s ease;
    }
.stat-card:hover {
      transform: translateY(-5px);
      border-color: var(--accent);
    }
.stat-label {
      font-size: 0.9rem;
      color: rgba(232,234,246,0.6);
      margin-top: 0.25rem;
    }
.rank-note {
      background: rgba(34,211,238,0.05);
      border-left: 4px solid var(--accent);
      padding: 1rem 1.25rem;
      border-radius: 0 8px 8px 0;
      margin: 2rem 0;
    }
.rank-update-time {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      color: rgba(232,234,246,0.5);
      margin-bottom: 1.5rem;
    }
.rank-update-time i {
      color: var(--accent);
    }

/* --- 子页面追加 --- */
.legal-section { padding: 4rem 0; }
.legal-card { background: rgba(255,255,255,0.03); border: 2px solid #22233a; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; position: relative; }
.legal-card::before { content: ''; position: absolute; top: -2px; left: 20px; width: 60px; height: 4px; background: var(--main); border-radius: 0 0 4px 4px; }
.legal-card h2 { color: var(--text); font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid rgba(109,93,252,0.3); }
.legal-card h2 i { color: var(--accent); margin-right: 0.6rem; }
.legal-card p, .legal-card li { color: rgba(232,234,246,0.85); line-height: 1.8; font-size: 0.95rem; }
.legal-card ul { padding-left: 1.2rem; }
.legal-card li { margin-bottom: 0.5rem; }
.legal-card strong { color: var(--accent); }
.notice-box { background: rgba(109,93,252,0.08); border-left: 4px solid var(--main); padding: 1rem 1.5rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.notice-box p { margin-bottom: 0; }
.update-info { text-align: center; color: rgba(232,234,246,0.5); font-size: 0.85rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }
.legal-card { padding: 1.5rem; }
.legal-card h2 { font-size: 1.2rem; }

/* --- 子页面追加 --- */
/* 排行榜页面专属样式 */
    .ranking-page { padding-top: 90px; padding-bottom: 60px; }
.ranking-header {
      background: linear-gradient(135deg, rgba(109,93,252,0.15) 0%, rgba(34,211,238,0.1) 100%);
      border: var(--border-thick);
      border-radius: 12px;
      padding: 30px 25px;
      margin-bottom: 40px;
      box-shadow: var(--shadow-hard);
    }
.ranking-header h1 {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--main);
      margin-bottom: 10px;
    }
.ranking-header p {
      color: var(--text);
      opacity: 0.85;
      font-size: 1rem;
      margin-bottom: 0;
    }
.rank-section {
      margin-bottom: 50px;
    }
.rank-section-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 20px;
      padding-left: 15px;
      border-left: 4px solid var(--accent);
      display: flex;
      align-items: center;
      gap: 10px;
    }
.rank-section-title i {
      color: var(--main);
    }
.rank-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      background: rgba(255,255,255,0.03);
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #22233a;
    }
.rank-table thead {
      background: rgba(109,93,252,0.15);
    }
.rank-table th {
      padding: 15px 18px;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--accent);
      font-weight: 600;
      border-bottom: 2px solid var(--main);
      text-align: left;
    }
.rank-table td {
      padding: 14px 18px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      color: var(--text);
      font-size: 0.95rem;
      vertical-align: middle;
    }
.rank-table tr:last-child td {
      border-bottom: none;
    }
.rank-table tbody tr:hover {
      background: rgba(109,93,252,0.08);
      transition: background 0.3s ease;
    }
.trend-up { color: #4ade80; }
.trend-down { color: #f87171; }
.trend-same { color: #facc15; }
.trend-icon { margin-right: 5px; }
.rating-badge {
      background: rgba(109,93,252,0.2);
      color: var(--main);
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      display: inline-block;
    }
.update-note {
      text-align: center;
      color: rgba(232,234,246,0.5);
      font-size: 0.85rem;
      margin-top: 30px;
      padding: 20px;
      border-top: 1px solid #22233a;
    }
.ranking-header h1 { font-size: 1.6rem; }
.rank-section-title { font-size: 1.2rem; }
.rank-table { font-size: 0.85rem; }
.rank-table th, .rank-table td { padding: 10px 12px; }

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