:root {
      --primary: #2563eb;
      --accent: #06b6d4;
      --bg: #f4f8ff;
      --text: #0f1e3d;
      --radius-lg: 24px;
      --radius-md: 16px;
      --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.06);
      --shadow-hover: 0 20px 45px rgba(37, 99, 235, 0.15);
    }
    * { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
    body {
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      scroll-behavior: smooth;
    }
    /* 滚动进度条 */
    #scrollProgress {
      position: fixed;
      top: 0; left: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      width: 0%;
      z-index: 9999;
      border-radius: 2px;
    }
    /* 导航 */
    .navbar {
      background: rgba(255,255,255,0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(37,99,235,0.1);
      padding: 0.8rem 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    }
    .navbar-brand {
      font-weight: 900;
      font-size: 1.8rem;
      letter-spacing: -0.5px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .navbar-brand i { font-size: 1.8rem; -webkit-text-fill-color: var(--primary); }
    .nav-link {
      font-weight: 600;
      color: var(--text) !important;
      margin: 0 0.8rem;
      transition: 0.2s;
      position: relative;
    }
    .nav-link:hover, .nav-link.active { color: var(--primary) !important; }
    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0;
      width: 0%; height: 3px;
      background: var(--accent);
      border-radius: 2px;
      transition: 0.25s;
    }
    .nav-link:hover::after { width: 100%; }
    /* hero 打字机 */
    .hero {
      padding: 4rem 0 3rem;
      background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
      border-bottom-left-radius: 40px;
      border-bottom-right-radius: 40px;
      box-shadow: var(--shadow-soft);
      position: relative;
    }
    .hero h1 {
      font-size: 3.6rem;
      font-weight: 900;
      letter-spacing: -1px;
      min-height: 4.5rem;
      background: linear-gradient(135deg, #0f1e3d, #2563eb);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero .lead { max-width: 600px; margin-top: 1.2rem; color: #3f4e6b; }
    .hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
    .hero-stats span { font-weight: 800; font-size: 1.4rem; color: var(--primary); }
    /* 卡片区域 */
    .section-title {
      font-size: 2rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 2rem;
      position: relative;
    }
    .section-title i { color: var(--primary); font-size: 1.8rem; }
    .card-poster {
      border: none;
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: white;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, box-shadow 0.35s ease;
      cursor: pointer;
      border: 1px solid rgba(255,255,255,0.5);
    }
    .card-poster:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: var(--shadow-hover);
      border-color: var(--primary);
    }
    .card-poster .poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; }
    .card-poster img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
    .card-poster:hover img { transform: scale(1.05); }
    .badge-quality {
      position: absolute;
      top: 12px; right: 12px;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(4px);
      color: white;
      font-weight: 600;
      font-size: 0.7rem;
      padding: 4px 10px;
      border-radius: 30px;
      letter-spacing: 0.3px;
      border: 1px solid rgba(255,255,255,0.3);
    }
    .card-info { padding: 1rem 0.9rem 1.1rem; }
    .card-info h5 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
    .card-meta { font-size: 0.85rem; color: #5f6b7a; display: flex; gap: 6px; align-items: center; }
    .rating { color: #f5b50a; font-weight: 600; }
    /* 榜单 */
    .ranking-item {
      background: white;
      border-radius: var(--radius-md);
      padding: 1rem 1.2rem;
      margin-bottom: 1rem;
      box-shadow: var(--shadow-soft);
      display: flex;
      align-items: center;
      transition: 0.2s;
    }
    .ranking-item:hover { border-left: 5px solid var(--primary); transform: translateX(6px); }
    .ranking-num { font-size: 1.8rem; font-weight: 900; color: var(--primary); width: 50px; }
    .ranking-info h6 { font-weight: 700; margin-bottom: 0; }
    /* 侧边弹窗 */
    .side-drawer {
      position: fixed;
      top: 0; right: -480px;
      width: 460px;
      max-width: 90vw;
      height: 100vh;
      background: white;
      box-shadow: -10px 0 40px rgba(0,0,0,0.1);
      z-index: 1050;
      transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      border-radius: 24px 0 0 24px;
      padding: 2rem;
      overflow-y: auto;
    }
    .drawer-open .side-drawer { right: 0; }
    .drawer-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15,30,61,0.5);
      backdrop-filter: blur(3px);
      z-index: 1040;
      opacity: 0;
      pointer-events: none;
      transition: 0.3s;
    }
    .drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
    .close-drawer { position: absolute; top: 20px; left: 20px; font-size: 1.8rem; background: none; border: none; color: var(--text); }
    /* 回到顶部 */
    #backToTop {
      position: fixed;
      bottom: 30px; right: 30px;
      width: 50px; height: 50px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      border: none;
      box-shadow: 0 8px 25px rgba(37,99,235,0.3);
      font-size: 1.4rem;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
      transition: 0.2s;
    }
    #backToTop.show { display: flex; }
    .btn-watch { background: var(--primary); color: white; border-radius: 30px; padding: 0.4rem 1.2rem; font-weight: 600; border: none; }
    /* 友链 */
    .friend-links { background: white; border-radius: var(--radius-lg); padding: 1.5rem 2rem; box-shadow: var(--shadow-soft); }
    .friend-links a { color: var(--text); text-decoration: none; margin-right: 1.8rem; font-weight: 500; }
    /* footer */
    footer { background: #0b1322; color: #a8b3c7; padding: 2rem 0; border-radius: 40px 40px 0 0; }
    footer a { color: #cfd8e6; text-decoration: none; }
    /* 步骤条/指南 */
    .step-guide { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
    .step-item { background: white; border-radius: var(--radius-md); padding: 1.5rem; flex: 1 1 220px; box-shadow: var(--shadow-soft); }
    /* 辅助 */
    .bg-soft-primary { background: #e8f0fe; }
    .rounded-4 { border-radius: var(--radius-lg) !important; }

/* --- 子页面追加 --- */
/* 排行榜页面专属样式 - 与首页风格保持一致 */
        .rank-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            border-radius: var(--radius-lg);
            padding: 3rem 2rem;
            color: #fff;
            margin-bottom: 2.5rem;
            position: relative;
            overflow: hidden;
        }
.rank-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 400px;
            height: 400px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }
.rank-hero h1 {
            font-weight: 800;
            font-size: 2.2rem;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }
.rank-hero p {
            font-size: 1.05rem;
            opacity: 0.9;
            max-width: 600px;
            margin-bottom: 0;
            position: relative;
            z-index: 1;
        }
.rank-tabs {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
.rank-tab-btn {
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            background: var(--bg);
            border: 1px solid rgba(37, 99, 235, 0.2);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text);
        }
.rank-tab-btn:hover {
            background: rgba(37, 99, 235, 0.1);
            border-color: var(--primary);
        }
.rank-tab-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        }
.rank-card {
            background: #fff;
            border-radius: var(--radius-md);
            padding: 1.25rem;
            margin-bottom: 1rem;
            box-shadow: var(--shadow-soft);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }
.rank-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
.rank-number {
            font-size: 1.8rem;
            font-weight: 900;
            color: var(--primary);
            min-width: 50px;
            text-align: center;
            opacity: 0.8;
        }
.rank-number.top-1 {
            color: #f59e0b;
            font-size: 2.2rem;
            opacity: 1;
        }
.rank-number.top-2 {
            color: #94a3b8;
            font-size: 2rem;
            opacity: 1;
        }
.rank-number.top-3 {
            color: #d97706;
            font-size: 1.9rem;
            opacity: 1;
        }
.rank-poster {
            width: 90px;
            height: 120px;
            border-radius: 12px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
.rank-info {
            flex: 1;
        }
.rank-info h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
            color: var(--text);
        }
.rank-info .rank-meta {
            font-size: 0.85rem;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
.rank-info .badge-quality {
            font-size: 0.75rem;
            padding: 0.25rem 0.6rem;
        }
.rank-stats {
            display: flex;
            gap: 1rem;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: #94a3b8;
        }
.rank-stats span i {
            margin-right: 0.25rem;
            color: var(--primary);
        }
.trend-up {
            color: #10b981;
            font-size: 0.8rem;
        }
.trend-down {
            color: #ef4444;
            font-size: 0.8rem;
        }
.trend-flat {
            color: #94a3b8;
            font-size: 0.8rem;
        }
.rank-note {
            background: rgba(37, 99, 235, 0.05);
            border-left: 4px solid var(--primary);
            padding: 1rem 1.25rem;
            border-radius: 0 12px 12px 0;
            margin: 2rem 0;
            font-size: 0.95rem;
            color: var(--text);
        }
.rank-section-title {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 2.5rem 0 1.5rem;
        }
.rank-section-title h2 {
            font-weight: 800;
            font-size: 1.4rem;
            margin: 0;
            color: var(--text);
        }
.rank-section-title .icon-badge {
            background: var(--primary);
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .guide-hero { background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); border-radius: 0 0 32px 32px; padding: 80px 0 60px; margin-bottom: -20px; }
.guide-hero h1 { color: #fff; font-weight: 800; }
.guide-hero p { color: rgba(255,255,255,.9); }
.step-card { background: #fff; border-radius: var(--radius-md); padding: 28px; height: 100%; box-shadow: var(--shadow-soft); transition: all .3s ease; }
.step-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.step-number { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.tip-box { background: var(--bg); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.section-spacer { padding: 60px 0; }
.guide-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); height: 100%; transition: all .3s ease; }
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.guide-card i { font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: flex-start; }
.feature-list i { color: var(--accent); margin-right: 8px; font-size: 14px; margin-top: 4px; }
.table-custom { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.table-custom th { background: var(--bg); color: var(--text); font-weight: 600; padding: 16px 20px; border-bottom: 2px solid var(--primary); }
.table-custom td { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,.05); }
.table-custom tr:hover td { background: var(--bg); }
.guide-hero { padding: 60px 0 40px; }
.guide-hero h1 { font-size: 28px; }
.section-spacer { padding: 40px 0; }

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