:root {
      --primary: #f472b6;
      --accent: #fbbf24;
      --bg: #fff5f7;
      --text: #4a2530;
      --surface: #ffffff;
      --border: #f8dfe7;
      --shadow: 0 6px 18px rgba(244, 114, 182, 0.10);
      --radius: 8px;
    }
    * { box-sizing: border-box; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }
    a { text-decoration: none; color: inherit; }
    .navbar {
      background: rgba(255, 245, 247, 0.85);
      backdrop-filter: blur(12px);
      transition: background 0.3s ease, box-shadow 0.3s;
      border-bottom: 1px solid var(--border);
    }
    .navbar.scrolled {
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 4px 12px rgba(74, 37, 48, 0.06);
    }
    .navbar-brand {
      font-weight: 800;
      font-size: 1.6rem;
      color: var(--text) !important;
      letter-spacing: -0.5px;
    }
    .navbar-brand i { color: var(--primary); margin-right: 6px; }
    .nav-link {
      font-weight: 500;
      color: var(--text) !important;
      margin: 0 8px;
      font-size: 0.95rem;
      transition: color 0.15s;
    }
    .nav-link:hover { color: var(--primary) !important; }
    .hero-section {
      padding: 4rem 0 2.5rem;
      background: radial-gradient(circle at 20% 30%, #ffe4ef, transparent 70%);
      position: relative;
      overflow: hidden;
    }
    .hero-grad-text {
      background: linear-gradient(135deg, #f472b6, #fbbf24, #f472b6);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      font-weight: 900;
      font-size: 3rem;
      letter-spacing: -1px;
    }
    .hero-sub { font-size: 1.1rem; font-weight: 400; color: #7d4d5e; max-width: 640px; }
    .floating-icon {
      position: absolute;
      font-size: 2.5rem;
      opacity: 0.2;
      animation: floatY 6s infinite alternate ease-in-out;
    }
    .fi1 { top: 10%; left: 5%; animation-delay: 0s; color: var(--primary); }
    .fi2 { top: 60%; right: 8%; animation-delay: 1s; color: var(--accent); }
    .fi3 { bottom: 10%; left: 15%; animation-delay: 2s; color: var(--primary); }
    @keyframes floatY { from { transform: translateY(0); } to { transform: translateY(-15px); } }
    .section-title {
      font-weight: 800;
      font-size: 1.6rem;
      margin-bottom: 1.2rem;
      border-left: 6px solid var(--primary);
      padding-left: 14px;
      letter-spacing: -0.3px;
      color: var(--text);
    }
    .section-title i { color: var(--primary); margin-right: 8px; }
    .card-film {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.3s, border-color 0.2s;
      height: 100%;
      cursor: pointer;
    }
    .card-film:hover {
      transform: scale(1.02) translateY(-4px);
      box-shadow: 0 14px 24px rgba(244, 114, 182, 0.18);
      border-color: var(--primary);
    }
    .card-img-wrapper { position: relative; background: #ffe4ee; aspect-ratio: 2/3; }
    .card-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      background: #fbdce8;
    }
    .badge-quality {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(0,0,0,0.65);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 4px;
      backdrop-filter: blur(4px);
    }
    .card-body {
      padding: 10px 12px 12px;
    }
    .card-title {
      font-weight: 700;
      font-size: 0.98rem;
      margin-bottom: 2px;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-meta {
      font-size: 0.8rem;
      color: #a3707f;
      display: flex;
      justify-content: space-between;
    }
    .rating { font-weight: 700; color: var(--accent); font-size: 0.85rem; }
    .scroll-row {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding-bottom: 8px;
      scrollbar-width: thin;
      scrollbar-color: var(--primary) #ffe0eb;
    }
    .scroll-row::-webkit-scrollbar { height: 6px; }
    .scroll-row::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }
    .scroll-row .col-card { min-width: 150px; max-width: 150px; flex: 0 0 150px; }
    .rank-list .list-group-item {
      background: transparent;
      border-color: var(--border);
      font-weight: 500;
      padding: 12px 16px;
    }
    .rank-number {
      display: inline-block;
      width: 24px;
      font-weight: 800;
      color: var(--primary);
    }
    .accordion-button:not(.collapsed) {
      background-color: #ffe4ef;
      color: var(--text);
    }
    .accordion-button:focus { box-shadow: none; }
    .footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; background: #fff; }
    .friend-links { background: #fff; border-top: 1px solid var(--border); padding: 1.5rem 0; }
    .btn-filter { border: 1px solid var(--border); background: white; border-radius: 30px; padding: 4px 16px; font-size: 0.85rem; color: var(--text); }
    .btn-filter:hover { border-color: var(--primary); color: var(--primary); }
    /* 抽屉 */
    .drawer-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.4);
      z-index: 1060;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }
    .drawer-panel {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      background: #fff;
      border-radius: 20px 20px 0 0;
      z-index: 1070;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      max-height: 80vh;
      overflow-y: auto;
      padding: 2rem 1.5rem;
      box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    }
    .drawer-overlay.active { opacity: 1; visibility: visible; }
    .drawer-panel.active { transform: translateY(0); }
    .drawer-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 1.6rem; color: var(--text); }
    .inview { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .inview.visible { opacity: 1; transform: translateY(0); }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .guide-hero {
            background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
            border-radius: var(--radius);
            padding: 3rem 2rem;
            margin-bottom: 2.5rem;
            text-align: center;
        }
.guide-section {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
        }
.guide-section h2 {
            color: var(--primary);
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--border);
        }
.guide-section h3 {
            color: var(--text);
            font-weight: 700;
            font-size: 1.15rem;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }
.guide-section p {
            color: var(--text);
            line-height: 1.8;
            margin-bottom: 1rem;
        }
.guide-section ul, .guide-section ol {
            color: var(--text);
            line-height: 1.8;
            padding-left: 1.5rem;
            margin-bottom: 1rem;
        }
.guide-section li {
            margin-bottom: 0.5rem;
        }
.guide-tip {
            background: rgba(244, 114, 182, 0.08);
            border-left: 4px solid var(--primary);
            padding: 1rem 1.25rem;
            border-radius: 0 var(--radius) var(--radius) 0;
            margin: 1.25rem 0;
        }
.guide-tip strong {
            color: var(--primary);
        }
.guide-steps {
            counter-reset: step;
        }
.guide-steps li {
            counter-increment: step;
            position: relative;
            padding-left: 2.5rem;
            list-style: none;
        }
.guide-steps li::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0.2rem;
            width: 1.75rem;
            height: 1.75rem;
            background: var(--primary);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: 700;
        }
.badge-key {
            display: inline-block;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 0.1rem 0.6rem;
            font-family: 'Inter', monospace;
            font-size: 0.85rem;
            color: var(--text);
            margin: 0 0.2rem;
        }
.shortcut-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
            margin: 1.25rem 0;
        }
.shortcut-item {
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1rem;
            text-align: center;
        }
.shortcut-item .key-icon {
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 0.5rem;
            display: block;
        }
.shortcut-item .key-label {
            font-size: 0.9rem;
            color: var(--text);
            font-weight: 600;
        }
.shortcut-item .key-desc {
            font-size: 0.8rem;
            color: var(--text);
            opacity: 0.8;
            margin-top: 0.25rem;
        }
.guide-hero {
                padding: 2rem 1rem;
            }
.guide-section {
                padding: 1.25rem;
            }
.shortcut-grid {
                grid-template-columns: 1fr 1fr;
            }

/* --- 子页面追加 --- */
/* 免责声明页专属样式 */
        .disclaimer-page {
            padding: 50px 0;
            background: var(--bg);
        }
.disclaimer-header {
            text-align: center;
            margin-bottom: 40px;
        }
.disclaimer-header h1 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text);
            position: relative;
            display: inline-block;
            padding-bottom: 12px;
        }
.disclaimer-header h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }
.disclaimer-header p {
            color: #9a7b85;
            font-size: 0.95rem;
            margin-top: 12px;
        }
.disclaimer-section {
            background: var(--surface);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 28px 30px;
            margin-bottom: 24px;
            border-left: 4px solid var(--primary);
            transition: transform 0.2s ease;
        }
.disclaimer-section:hover {
            transform: translateX(6px);
        }
.disclaimer-section h2 {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.disclaimer-section h2 i {
            color: var(--primary);
            font-size: 1.1rem;
        }
.disclaimer-section p {
            color: #6b4b55;
            line-height: 1.75;
            margin-bottom: 12px;
        }
.disclaimer-section ul {
            padding-left: 20px;
            margin-bottom: 12px;
        }
.disclaimer-section ul li {
            color: #6b4b55;
            line-height: 1.75;
            margin-bottom: 6px;
            position: relative;
            padding-left: 6px;
        }
.disclaimer-section ul li::marker {
            color: var(--primary);
        }
.disclaimer-tag {
            display: inline-block;
            background: rgba(244, 114, 182, 0.1);
            color: var(--primary);
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 16px;
        }
.disclaimer-footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            background: rgba(244, 114, 182, 0.06);
            border-radius: var(--radius);
            border: 1px dashed var(--border);
        }
.disclaimer-footer p {
            color: #9a7b85;
            font-size: 0.9rem;
            margin-bottom: 0;
        }
.disclaimer-footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
.disclaimer-footer a:hover {
            text-decoration: underline;
        }
.disclaimer-section {
                padding: 22px 20px;
            }
.disclaimer-header h1 {
                font-size: 1.8rem;
            }

/* --- 子页面追加 --- */
/* 覆盖 Bootstrap 组件默认白底黑字，保持粉色主题 */
    .list-group-item, .card, .card-body, .card-header, .card-footer,
    .form-control, .form-select, .form-label, .input-group-text,
    .table, .accordion-item, .accordion-button, .accordion-body,
    .modal-content, .dropdown-menu, .dropdown-item, .nav-link, .navbar {
      background: var(--surface);
      color: var(--text);
      border-color: var(--border);
    }
.navbar-brand, .nav-link, .navbar-toggler-icon {
      color: var(--text);
    }
.rank-card-film {
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
      transition: transform .2s ease;
    }
.rank-card-film:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 20px rgba(244,114,182,.15);
    }
.rank-number-badge {
      font-weight: 800;
      color: var(--primary);
      background: rgba(244,114,182,.08);
      border-radius: 10px;
      padding: 4px 10px;
      display: inline-block;
    }
.btn-filter:hover, .btn-filter.active {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }
.film-card-meta {
      color: var(--text);
      opacity: .75;
      font-size: .9rem;
    }
.footer a {
      color: var(--text);
      text-decoration: none;
      font-weight: 500;
    }
.footer a:hover {
      color: var(--primary);
    }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.accordion-header { background:transparent !important; }
