:root {
      --primary: #f472b6;
      --accent: #fbbf24;
      --bg: #fff5f7;
      --text: #4a2530;
      --soft-shadow: 0 8px 30px rgba(244, 114, 182, 0.15);
      --radius-lg: 24px;
      --radius-md: 16px;
    }
    * { font-family: 'Inter', system-ui, sans-serif; }
    body {
      background-color: var(--bg);
      color: var(--text);
      font-size: 0.95rem;
      line-height: 1.5;
      overflow-x: hidden;
    }
    /* 自定义滚动条 */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #ffe3ec; border-radius: 10px; }
    ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

    /* 导航 */
    .navbar-mengyu {
      background: rgba(255, 245, 247, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 2px solid rgba(244, 114, 182, 0.2);
      padding: 0.8rem 1.5rem;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      box-shadow: 0 4px 20px rgba(244,114,182,0.1);
    }
    .navbar-brand {
      font-weight: 900;
      font-size: 1.6rem;
      color: var(--text);
      letter-spacing: -0.02em;
    }
    .navbar-brand i { color: var(--primary); margin-right: 6px; }
    .nav-link {
      font-weight: 500;
      color: var(--text);
      margin: 0 0.5rem;
      border-radius: 50px;
      padding: 0.4rem 1rem !important;
      transition: all 0.2s;
    }
    .nav-link:hover, .nav-link.active {
      background: var(--primary);
      color: #fff;
    }

    /* 轮播区域 (简洁) */
    .hero-carousel {
      background: linear-gradient(145deg, #ffe0ee, #ffd0e2);
      border-radius: var(--radius-lg);
      padding: 2rem 2rem;
      margin: 1.8rem 1.2rem;
      box-shadow: var(--soft-shadow);
      border: 1px solid rgba(244,114,182,0.2);
    }
    .hero-title {
      font-weight: 900;
      font-size: 3.2rem;
      letter-spacing: -2px;
    }
    .hero-sub { font-weight: 500; opacity: 0.8; }

    /* 打字机效果 */
    #typewriter {
      display: inline-block;
      border-right: 3px solid var(--primary);
      white-space: nowrap;
      overflow: hidden;
      animation: blink 0.7s step-end infinite;
    }
    @keyframes blink { 50% { border-color: transparent; } }

    /* 主布局：左侧分类 + 右侧瀑布流 */
    .category-sidebar {
      background: #fff;
      border-radius: var(--radius-lg);
      padding: 1.5rem 1rem;
      box-shadow: var(--soft-shadow);
      position: sticky;
      top: 100px;
      height: fit-content;
    }
    .category-sidebar .list-group-item {
      background: transparent;
      border: none;
      font-weight: 600;
      border-radius: 30px;
      padding: 0.6rem 1rem;
      color: var(--text);
      margin-bottom: 4px;
      transition: 0.2s;
    }
    .category-sidebar .list-group-item:hover, .category-sidebar .list-group-item.active {
      background: var(--primary);
      color: #fff;
    }

    /* 瀑布流卡片区 */
    .masonry-grid {
      column-count: 2;
      column-gap: 1.5rem;
    }
    @media (min-width: 768px) { .masonry-grid { column-count: 3; } }
    @media (min-width: 1200px) { .masonry-grid { column-count: 4; } }
    .masonry-item {
      break-inside: avoid;
      margin-bottom: 1.5rem;
    }
    .movie-card {
      background: #fff;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(74, 37, 48, 0.08);
      transition: transform 0.3s, box-shadow 0.3s;
      cursor: pointer;
      position: relative;
    }
    .movie-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 18px 40px rgba(244, 114, 182, 0.25);
    }
    .movie-card .poster {
      width: 100%;
      aspect-ratio: 2/3;
      object-fit: cover;
      display: block;
      background: #ffe1ec;
    }
    .badge-quality {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(0,0,0,0.7);
      color: #fff;
      font-weight: 700;
      font-size: 0.75rem;
      padding: 2px 8px;
      border-radius: 30px;
      backdrop-filter: blur(4px);
    }
    .card-body {
      padding: 0.8rem 0.9rem 1rem;
    }
    .card-title {
      font-weight: 800;
      font-size: 1rem;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-meta {
      font-size: 0.8rem;
      color: #a05a6d;
      display: flex;
      justify-content: space-between;
    }
    .rating { font-weight: 700; color: var(--accent); }
    .genre-tag { background: var(--bg); border-radius: 20px; padding: 2px 10px; font-size: 0.7rem; }

    /* hover播放按钮 */
    .play-overlay {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .movie-card:hover .play-overlay { opacity: 1; }
    .play-btn {
      width: 60px; height: 60px;
      background: rgba(255,255,255,0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 2rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
      padding-left: 8px;
    }

    /* 区块标题 */
    .section-title {
      font-weight: 900;
      font-size: 1.8rem;
      letter-spacing: -0.02em;
      margin: 2.5rem 0 1.2rem;
      position: relative;
      display: inline-block;
    }
    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px; left: 0;
      width: 50%; height: 5px;
      background: var(--primary);
      border-radius: 10px;
    }

    /* 对比表格、编号清单 */
    .comparison-table {
      background: #fff;
      border-radius: var(--radius-lg);
      padding: 1.8rem;
      box-shadow: var(--soft-shadow);
    }
    .comparison-table table { margin: 0; }
    .comparison-table th { background: var(--primary); color: white; font-weight: 600; }
    .comparison-table td, .comparison-table th { padding: 0.8rem; }

    .tip-list {
      background: white;
      border-radius: var(--radius-lg);
      padding: 2rem;
      box-shadow: var(--soft-shadow);
    }
    .tip-list li {
      margin-bottom: 0.8rem;
      display: flex;
      align-items: baseline;
    }
    .tip-list li i { color: var(--primary); margin-right: 10px; font-size: 1.2rem; }

    /* 弹窗侧栏 */
    .sidebar-detail {
      position: fixed;
      top: 0; right: -100%;
      width: 380px;
      max-width: 90vw;
      height: 100%;
      background: white;
      box-shadow: -10px 0 30px rgba(0,0,0,0.2);
      z-index: 1050;
      transition: right 0.4s cubic-bezier(0.25, 0.1, 0.1, 1);
      border-radius: 24px 0 0 24px;
      padding: 1.8rem;
      overflow-y: auto;
    }
    .sidebar-detail.open { right: 0; }
    .detail-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(74,37,48,0.4);
      z-index: 1049;
      display: none;
      backdrop-filter: blur(4px);
    }
    .detail-backdrop.show { display: block; }

    /* 回到顶部 */
    #backTop {
      position: fixed;
      bottom: 40px; right: 30px;
      width: 50px; height: 50px;
      background: var(--primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.4rem;
      box-shadow: 0 8px 20px rgba(244,114,182,0.5);
      opacity: 0;
      visibility: hidden;
      transition: 0.3s;
      border: none;
      z-index: 1000;
    }
    #backTop.show { opacity: 1; visibility: visible; }

    footer {
      background: #ffe2ed;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      padding: 2.5rem 0 1rem;
      margin-top: 3rem;
    }
    .friend-links a {
      color: var(--text);
      text-decoration: none;
      margin: 0 8px;
      font-weight: 500;
    }

/* --- 子页面追加 --- */
/* 页面专属微调 */
        .about-hero { padding: 80px 0 50px; text-align: center; }
.about-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 15px; }
.about-hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 30px; color: rgba(74, 37, 48, 0.8); }
.about-section { padding: 50px 0; }
.about-card { background: #fff; border-radius: var(--radius-lg); padding: 35px 30px; box-shadow: var(--soft-shadow); height: 100%; border: 1px solid rgba(244, 114, 182, 0.1); }
.about-card h3 { color: var(--primary); font-weight: 700; margin-bottom: 18px; font-size: 1.4rem; }
.about-card p, .about-card li { color: rgba(74, 37, 48, 0.85); line-height: 1.8; font-size: 0.98rem; }
.about-card ul { padding-left: 20px; }
.about-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 18px; display: block; }
.stat-row { background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), rgba(251, 191, 36, 0.08)); border-radius: var(--radius-lg); padding: 40px 30px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: rgba(74, 37, 48, 0.7); font-size: 0.95rem; margin-top: 5px; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.feature-list i { color: var(--primary); margin-top: 4px; }
.about-hero h1 { font-size: 2rem; }
.about-card { padding: 25px 20px; }

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