:root{
      --main:#e50914;
      --accent:#f5c518;
      --bg:#0b0b0f;
      --text:#f5f5f7;
      --radius-lg:24px;
      --radius-md:18px;
      --radius-sm:12px;
      --shadow:0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,197,24,0.1);
      --font-family:'Inter', system-ui, -apple-system, sans-serif;
    }
    *{box-sizing:border-box; scroll-behavior:smooth}
    body{
      background-color:var(--bg);
      color:var(--text);
      font-family:var(--font-family);
      overflow-x:hidden;
    }
    a{color:var(--accent); text-decoration:none;}
    a:hover{color:var(--accent); filter:brightness(1.2)}
    .navbar-custom{
      background:rgba(11,11,15,0.85);
      backdrop-filter: blur(12px);
      border-bottom:1px solid rgba(255,255,255,0.05);
      padding:0.8rem 2rem;
      font-weight:500;
      z-index:1050;
    }
    .navbar-brand{
      font-size:1.6rem;
      font-weight:800;
      color:var(--accent)!important;
      letter-spacing:-0.5px;
      display:flex; align-items:center; gap:8px;
    }
    .nav-link{
      color:var(--text)!important;
      margin:0 12px;
      font-weight:500;
      transition:0.2s;
      border-radius:30px;
      padding:0.4rem 0.8rem!important;
    }
    .nav-link:hover{color:var(--accent)!important; background:rgba(245,197,24,0.05)}
    .dropdown-menu{
      background:#1c1c24;
      border-radius:16px;
      border:1px solid #333;
    }
    .dropdown-item{color:var(--text)}
    .dropdown-item:hover{background:#2a2a35;color:#fff}
    
    /* hero + 关键词云 */
    .hero-section{
      position:relative;
      padding:4rem 0 3rem;
      background:radial-gradient(circle at 70% 20%, rgba(229,9,20,0.2), transparent 60%);
      overflow:hidden;
    }
    .hero-section::before{
      content:'';
      position:absolute; inset:0;
      background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="120" cy="100" r="40" fill="none" stroke="%23f5c51822" stroke-width="1"/><circle cx="700" cy="300" r="80" fill="none" stroke="%23f5c51822" stroke-width="1.5"/><circle cx="300" cy="500" r="60" fill="none" stroke="%23e5091422" stroke-width="2"/></svg>');
      background-size:cover;
      opacity:0.5;
      transform:translateY(-20px);
      animation:parallaxMove 20s ease-in-out infinite alternate;
    }
    @keyframes parallaxMove{
      0%{transform:translateY(0) scale(1)}
      100%{transform:translateY(40px) scale(1.05)}
    }
    .hero-content{
      position:relative; z-index:2;
      text-align:center;
    }
    .keyword-cloud{
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      gap:10px 18px;
      margin:2rem auto 1rem;
      max-width:800px;
    }
    .keyword-chip{
      background:rgba(255,255,255,0.04);
      border:1px solid rgba(255,255,255,0.1);
      padding:0.4rem 1.2rem;
      border-radius:40px;
      font-size:1rem;
      color:#e0e0e0;
      backdrop-filter: blur(5px);
      transition:0.3s;
    }
    .keyword-chip:hover{border-color:var(--accent); color:var(--accent); transform:scale(1.05)}
    
    /* 区块 */
    .section-title{
      font-size:2.2rem;
      font-weight:800;
      letter-spacing:-1px;
      margin:2.5rem 0 1.5rem;
      display:flex;
      align-items:center;
      gap:12px;
    }
    .section-title i{color:var(--accent)}
    
    /* 卡片海报墙 */
    .movie-card{
      background:#16161d;
      border-radius:var(--radius-lg);
      overflow:hidden;
      box-shadow:var(--shadow);
      border:1px solid #26262e;
      transition:0.3s;
      height:100%;
      cursor:pointer;
      position:relative;
      transform-style:preserve-3d;
      transition:transform 0.5s, box-shadow 0.3s;
      margin-bottom:20px;
    }
    .movie-card:hover{
      transform:scale(1.02);
      box-shadow:0 20px 40px rgba(229,9,20,0.3), 0 0 0 1px #f5c51840;
    }
    .movie-poster{
      width:100%;
      aspect-ratio:2/3;
      object-fit:cover;
      background:#111118;
    }
    .movie-info{
      padding:0.9rem 1rem 1.2rem;
    }
    .movie-title{
      font-weight:700;
      font-size:1.05rem;
      line-height:1.3;
      margin-bottom:6px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .movie-meta{
      display:flex;
      justify-content:space-between;
      color:#aaa;
      font-size:0.85rem;
      font-weight:400;
    }
    .rating{color:var(--accent); font-weight:800; font-size:1.1rem}
    
    /* 翻转卡片详情 */
    .flip-card-back{
      position:absolute;
      inset:0;
      background:rgba(11,11,15,0.97);
      backdrop-filter:blur(8px);
      border-radius:var(--radius-lg);
      padding:1.5rem;
      transform:rotateY(180deg);
      transition:0.5s;
      backface-visibility:hidden;
      overflow-y:auto;
      font-size:0.9rem;
      line-height:1.5;
      z-index:5;
    }
    .movie-card.flipped{
      transform:rotateY(180deg);
    }
    .movie-card.flipped .flip-card-back{
      transform:rotateY(0deg);
      box-shadow:0 0 30px rgba(245,197,24,0.2);
    }
    .flip-card-back h6{color:var(--accent); font-weight:800}
    .btn-close-custom{
      position:absolute; top:10px; right:15px;
      font-size:1.4rem;
      color:#ccc;
      cursor:pointer;
      z-index:10;
    }
    
    /* 分类胶囊 */
    .filter-pills{
      display:flex; flex-wrap:wrap; gap:10px;
      margin:1.2rem 0;
    }
    .filter-pill{
      background:#1a1a22;
      padding:0.5rem 1.5rem;
      border-radius:60px;
      font-weight:500;
      font-size:0.9rem;
      border:1px solid #333;
      cursor:pointer;
      transition:0.2s;
    }
    .filter-pill.active{
      background:var(--main);
      border-color:var(--main);
      color:#fff;
    }
    .filter-pill:hover{background:#2a2a35; color:#fff}
    
    /* 排行榜 */
    .rank-badge{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:30px; height:30px;
      border-radius:12px;
      background:#333;
      font-weight:800;
      margin-right:10px;
      color:#ddd;
    }
    .rank-1{background:linear-gradient(145deg,#ffd700,#b8860b); color:#111}
    .rank-2{background:linear-gradient(145deg,#c0c0c0,#7a7a7a); color:#111}
    .rank-3{background:linear-gradient(145deg,#cd7f32,#8b5a2b); color:#fff}
    
    /* 时间线 */
    .timeline{
      border-left:3px solid var(--main);
      padding-left:1.5rem;
      margin:1.5rem 0;
    }
    .timeline-item{
      position:relative;
      margin-bottom:1.8rem;
    }
    .timeline-item::before{
      content:'';
      width:14px; height:14px;
      background:var(--accent);
      border-radius:50%;
      position:absolute;
      left:-2rem;
      top:5px;
      box-shadow:0 0 0 4px #0b0b0f;
    }
    
    /* 按钮 */
    .btn-gradient{
      background:linear-gradient(135deg,var(--main),#ff4d5e);
      border:none;
      border-radius:60px;
      padding:0.8rem 2.2rem;
      font-weight:700;
      color:#fff;
      transition:0.3s;
      position:relative;
      overflow:hidden;
    }
    .btn-gradient::after{
      content:'';
      position:absolute;
      top:0; left:-100%;
      width:100%; height:100%;
      background:linear-gradient(120deg,transparent,rgba(255,255,255,0.4),transparent);
      transition:0.6s;
    }
    .btn-gradient:hover::after{left:100%}
    
    footer{
      background:#0a0a0f;
      border-top:1px solid #1f1f28;
      padding:2rem 0;
      margin-top:4rem;
    }
    
    /* 布局：左侧分类 + 右侧瀑布 */
    .category-sidebar{
      position:sticky;
      top:100px;
      align-self:flex-start;
    }
    .movie-masonry{
      column-gap:20px;
      column-count: 3;
    }
    @media (max-width: 992px){
      .movie-masonry{column-count:2}
    }
    @media (max-width: 576px){
      .movie-masonry{column-count:1}
    }
    .movie-card{
      break-inside: avoid;
      margin-bottom:20px;
    }
    
    .footer-links a{
      margin:0 10px;
      color:#aaa;
      font-size:0.9rem;
    }

/* --- 子页面追加 --- */
/* 针对本页特殊布局做轻微补充，不影响全局设计 */
    .about-hero {
      background: radial-gradient(circle at 20% 30%, rgba(229, 9, 20, 0.15), transparent 60%),
                  radial-gradient(circle at 80% 70%, rgba(245, 197, 24, 0.08), transparent 50%);
      border-bottom: 1px solid rgba(245, 197, 24, 0.1);
    }
.about-section {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(245, 197, 24, 0.12);
      border-radius: var(--radius-lg);
      padding: 2rem 1.8rem;
      margin-bottom: 2rem;
      backdrop-filter: blur(4px);
      box-shadow: var(--shadow);
    }
.about-section h2 {
      color: var(--accent);
      font-weight: 700;
      letter-spacing: -0.02em;
      border-left: 4px solid var(--main);
      padding-left: 1rem;
      margin-bottom: 1.5rem;
    }
.about-section p, .about-section li {
      color: rgba(245, 245, 247, 0.9);
      line-height: 1.8;
    }
.about-section i.fa-quote-left {
      color: var(--accent);
      opacity: 0.6;
    }
.feature-icon {
      font-size: 2.2rem;
      color: var(--main);
      margin-bottom: 0.8rem;
    }
.timeline-badge {
      background: var(--main);
      color: #fff;
      font-weight: 600;
      border-radius: 30px;
      padding: 0.3rem 1rem;
      display: inline-block;
      font-size: 0.9rem;
    }
/* 覆盖Bootstrap可能带来的白色背景干扰 */
    .accordion-item, .accordion-button, .card, .card-body, .list-group-item {
      background: transparent !important;
      color: var(--text) !important;
      border-color: rgba(245, 197, 24, 0.15) !important;
    }
.accordion-button:not(.collapsed) {
      background: rgba(229, 9, 20, 0.15) !important;
      color: var(--accent) !important;
    }
/* 导航高亮当前页 */
    .navbar .nav-link.active {
      color: var(--accent) !important;
      font-weight: 600;
    }

/* --- 子页面追加 --- */
/* 页面专属微调 —— 指南页特殊排版，其余视觉全部继承站点 style.css */
        .guide-hero {
            background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(11, 11, 15, 0.8) 100%), var(--bg);
            border-bottom: 1px solid var(--accent);
        }
.step-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(245, 197, 24, 0.2);
            border-radius: var(--radius-md);
            padding: 1.8rem 1.5rem;
            height: 100%;
            transition: transform .2s ease, box-shadow .2s ease;
        }
.step-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
            border-color: var(--accent);
        }
.step-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--accent);
            line-height: 1;
            margin-bottom: 1rem;
            display: inline-block;
            background: rgba(245, 197, 24, 0.1);
            padding: 0.5rem 1rem;
            border-radius: var(--radius-sm);
        }
.pro-tip {
            background: rgba(245, 197, 24, 0.06);
            border-left: 4px solid var(--accent);
            padding: 1.2rem 1.5rem;
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            margin: 2rem 0;
        }
.guide-section-title {
            font-size: 2rem;
            font-weight: 700;
            margin: 3rem 0 1.5rem;
            color: var(--text);
            border-bottom: 2px solid var(--main);
            padding-bottom: 0.6rem;
            display: inline-block;
        }
.guide-list {
            list-style: none;
            padding-left: 0;
        }
.guide-list li {
            padding: 0.5rem 0 0.5rem 1.8rem;
            position: relative;
            color: rgba(245, 245, 247, 0.9);
        }
.guide-list li::before {
            content: "\f058";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--accent);
        }
.navbar-toggler-icon {
            filter: invert(1);
        }
.navbar-toggler {
            border-color: rgba(245, 197, 24, 0.3);
        }

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