:root {
  --main: #f97316;
  --accent: #facc15;
  --bg: #1a1410;
  --text: #fff7ed;
  --card-bg: #2a2119;
  --shadow-sm: 0 8px 16px rgba(0,0,0,0.6), 0 2px 4px rgba(249, 115, 22, 0.2);
  --shadow-lg: 0 14px 30px rgba(0,0,0,0.8), 0 0 0 1px rgba(250, 204, 21, 0.2);
  --grad-glow: linear-gradient(145deg, rgba(249,115,22,0.25) 0%, rgba(250,204,21,0.05) 100%);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.01em;
}
h1,h2,h3,.font-serif {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
  font-weight: 700;
}
/* 思源宋体/黑体 fallback */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
.navbar {
  background: rgba(20, 14, 8, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--main);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  padding: 0.5rem 1rem;
}
.navbar-brand {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent) !important;
  text-shadow: 0 2px 0 #000, 0 0 15px rgba(250,204,21,0.4);
  letter-spacing: 1px;
}
.navbar-brand i {
  color: var(--main);
  margin-right: 6px;
  filter: drop-shadow(0 0 6px #f97316);
}
.nav-link {
  color: #fde6c8 !important;
  font-weight: 500;
  margin: 0 4px;
  border-radius: 20px;
  transition: .2s;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem !important;
}
.nav-link:hover {
  background: rgba(249,115,22,0.2);
  color: #fff !important;
  box-shadow: 0 0 8px rgba(249,115,22,0.3);
}
.hero-typing {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(180deg, #ffd9a0, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 25px rgba(249,115,22,0.6);
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--main);
  width: max-content;
  margin: 0 auto;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
.hero-section {
  background: radial-gradient(circle at 20% 30%, rgba(249,115,22,0.15), transparent 60%), var(--bg);
  padding: 3.5rem 0 2rem;
  border-bottom: 2px solid rgba(249,115,22,0.4);
}
.card-film {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,0.25);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s;
  height: 100%;
  backdrop-filter: blur(2px);
  position: relative;
}
.card-film:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-film .poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #3a2c1d, #1f1812);
}
.card-film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: opacity .5s ease, transform .5s ease;
}
.card-film img:hover {
  opacity: 1;
  transform: scale(1.03);
}
/* 角标 */
.badge-update {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.8);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  border-left: 3px solid var(--main);
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px #000;
}
.badge-score {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #ffdd99;
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(2px);
  border: 1px solid var(--main);
}
.card-body {
  padding: 8px 10px;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f8e7ce;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 0.72rem;
  color: #bba78d;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
/* hover播放按钮 */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.card-film:hover .play-overlay {
  opacity: 1;
}
.play-overlay i {
  font-size: 2.8rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 20px var(--main);
  background: rgba(249,115,22,0.4);
  border-radius: 50%;
  padding: 12px;
  border: 2px solid #fff2d0;
}
.section-header {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  border-left: 6px solid var(--main);
  padding-left: 14px;
  text-shadow: 0 2px 5px #000;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header i {
  color: var(--accent);
}
/* 横向滚动 */
.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--main) #2a1e12;
}
.hscroll > * {
  flex: 0 0 140px;
  min-width: 140px;
}
@media (min-width: 768px) {
  .hscroll > * {
    flex-basis: 155px;
  }
}
/* 卡片错落渐显 */
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp .6s forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation-delay: .05s; }
.stagger-2 { animation-delay: .1s; }
.stagger-3 { animation-delay: .15s; }
.stagger-4 { animation-delay: .2s; }
.stagger-5 { animation-delay: .25s; }
.stagger-6 { animation-delay: .3s; }
/* 抽屉弹窗 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity .3s;
}
.drawer-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #241b13;
  border-top: 4px solid var(--main);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
  transform: translateY(100%);
  transition: transform .35s ease;
  z-index: 1050;
  padding: 1.8rem 1.5rem 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}
.drawer-panel.show {
  transform: translateY(0);
}
/* 分类入口 */
.cat-icon {
  background: linear-gradient(145deg, #2f2419, #241a11);
  border-radius: 16px;
  padding: 14px 6px;
  text-align: center;
  border: 1px solid #4a3a2a;
  box-shadow: inset 0 0 10px rgba(249,115,22,0.2), 0 5px 10px #000;
  transition: .15s;
}
.cat-icon i {
  font-size: 1.6rem;
  color: var(--accent);
}
.cat-icon span {
  display: block;
  font-size: 0.8rem;
  color: #f7d9a9;
  margin-top: 6px;
}
.cat-icon:hover {
  border-color: var(--main);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(249,115,22,0.3);
}
.btn-recommend {
  background: var(--main);
  color: #fff;
  border: none;
  box-shadow: 0 6px 0 #a04a0d;
  transition: .1s;
  font-weight: 600;
}
.btn-recommend:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #a04a0d;
}
footer {
  background: #0f0b08;
  border-top: 2px solid var(--main);
  color: #bda88b;
}
.friend-links {
  background: #241c14;
  border-radius: 20px;
  padding: 16px;
}
.badge-rank {
  background: rgba(0,0,0,0.6);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 2px 8px;
  font-weight: 700;
}

/* --- 子页面追加 --- */
.nav-link:hover, .nav-link.active {
            color: var(--main) !important;
        }
.navbar-toggler {
            color: var(--accent) !important;
        }
.ranking-page {
            padding: 60px 0 80px;
            min-height: 70vh;
        }
.page-header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
.page-header h1 {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 15px;
            text-shadow: 0 2px 20px rgba(249, 115, 22, 0.3);
        }
.page-header h1 span {
            color: var(--main);
        }
.page-header .lead {
            color: rgba(255, 247, 237, 0.7);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }
.rank-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 45px;
        }
.rank-tab {
            padding: 10px 28px;
            border: 2px solid rgba(249, 115, 22, 0.3);
            border-radius: 30px;
            color: rgba(255, 247, 237, 0.8);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s;
            background: transparent;
            text-decoration: none;
        }
.rank-tab:hover {
            border-color: var(--main);
            color: var(--main);
            transform: translateY(-2px);
        }
.rank-tab.active {
            background: linear-gradient(135deg, var(--main), #e85d04);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
        }
.rank-section {
            margin-bottom: 60px;
        }
.rank-section-title {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 30px;
            padding-left: 20px;
            border-left: 4px solid var(--main);
            display: flex;
            align-items: center;
            gap: 12px;
        }
.rank-section-title i {
            color: var(--main);
            font-size: 1.5rem;
        }
.rank-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
.rank-item {
            display: flex;
            align-items: center;
            padding: 18px 25px;
            background: var(--card-bg);
            border-radius: 15px;
            margin-bottom: 12px;
            border: 1px solid rgba(249, 115, 22, 0.1);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
.rank-item:hover {
            transform: translateX(8px);
            box-shadow: var(--shadow-sm);
            border-color: rgba(249, 115, 22, 0.3);
        }
.rank-number {
            font-size: 1.6rem;
            font-weight: 900;
            color: var(--main);
            width: 60px;
            text-align: center;
            flex-shrink: 0;
            position: relative;
        }
.rank-number.top {
            color: var(--accent);
            text-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
        }
.rank-number::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -8px;
            width: 24px;
            height: 3px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--main), transparent);
        }
.rank-info {
            flex: 1;
            margin-left: 20px;
        }
.rank-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
.rank-badge {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
.badge-hot {
            background: rgba(249, 115, 22, 0.2);
            color: var(--main);
        }
.badge-new {
            background: rgba(250, 204, 21, 0.2);
            color: var(--accent);
        }
.badge-trending {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }
.rank-desc {
            font-size: 0.9rem;
            color: rgba(255, 247, 237, 0.6);
            line-height: 1.5;
        }
.rank-stats {
            display: flex;
            align-items: center;
            gap: 20px;
            color: rgba(255, 247, 237, 0.5);
            font-size: 0.85rem;
            flex-shrink: 0;
        }
.rank-stats i {
            color: var(--main);
            margin-right: 5px;
        }
.rank-stats .score {
            color: var(--accent);
            font-weight: 700;
            font-size: 1.1rem;
        }
.footer {
            background: #14100c;
            border-top: 1px solid rgba(249, 115, 22, 0.2);
            padding: 30px 0;
            text-align: center;
            color: rgba(255, 247, 237, 0.6);
        }
.footer a {
            color: var(--main);
            text-decoration: none;
        }
.page-header h1 {
                font-size: 2rem;
            }
.rank-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                padding: 15px;
            }
.rank-number {
                width: auto;
                text-align: left;
            }
.rank-stats {
                width: 100%;
                justify-content: space-between;
                margin-top: 5px;
            }
.rank-tab {
                padding: 8px 20px;
                font-size: 0.85rem;
            }

/* --- 子页面追加 --- */
/* 关于页面专属样式 - 仅在需要时补充少量样式 */
        .about-hero {
            padding: 80px 0 40px;
            background: var(--grad-glow);
            border-bottom: 1px solid rgba(250, 204, 21, 0.1);
        }
.about-section {
            padding: 50px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
.about-section:last-child {
            border-bottom: none;
        }
.about-card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 28px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
            border-left: 3px solid var(--main);
            transition: all 0.3s ease;
        }
.about-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
.about-icon {
            font-size: 2.2rem;
            color: var(--main);
            margin-bottom: 12px;
        }
.about-stat {
            text-align: center;
            padding: 20px;
            background: var(--card-bg);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            height: 100%;
        }
.about-stat h3 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--main);
            margin-bottom: 4px;
        }
.about-stat p {
            color: rgba(255, 247, 237, 0.7);
            font-size: 0.9rem;
            margin: 0;
        }
.timeline {
            position: relative;
            padding-left: 30px;
            margin-left: 15px;
        }
.timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--main), var(--accent));
        }
.timeline-item {
            position: relative;
            margin-bottom: 30px;
        }
.timeline-item::before {
            content: '';
            position: absolute;
            left: -34px;
            top: 6px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent);
            border: 2px solid var(--bg);
            box-shadow: 0 0 0 3px var(--main);
        }
.timeline-item h4 {
            color: var(--text);
            font-weight: 700;
            margin-bottom: 6px;
        }
.timeline-item p {
            color: rgba(255, 247, 237, 0.75);
            margin: 0;
        }
.feature-list {
            list-style: none;
            padding: 0;
        }
.feature-list li {
            padding: 8px 0 8px 28px;
            position: relative;
            color: var(--text);
        }
.feature-list li::before {
            content: '\f058';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--main);
        }
.update-schedule {
            background: rgba(249, 115, 22, 0.08);
            border-radius: 12px;
            padding: 24px;
            border: 1px solid rgba(249, 115, 22, 0.2);
        }
.schedule-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
        }
.schedule-item:last-child {
            border-bottom: none;
        }
.schedule-day {
            font-weight: 700;
            color: var(--accent);
            min-width: 60px;
        }
.schedule-desc {
            color: rgba(255, 247, 237, 0.8);
            flex: 1;
            margin: 0 15px;
        }
.contact-link {
            color: var(--main);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }
.contact-link:hover {
            color: var(--accent);
        }

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