:root {
    --primary: #2563eb;
    --accent: #06b6d4;
    --bg: #f4f8ff;
    --text: #0f1e3d;
    --card-bg: #ffffff;
    --border-light: #e3edfc;
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-md: 0 6px 20px rgba(37, 99, 235, 0.12);
    --shadow-lg: 0 12px 32px rgba(37, 99, 235, 0.18);
    --radius: 8px;
}
* { font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, .logo-font { font-weight: 800; letter-spacing: -0.02em; }
a { text-decoration: none; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary); }

/* 滚动进度条 */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 9999; width: 0%; transition: width 0.1s;
}

/* Hero 区 */
.hero-section {
    background: linear-gradient(135deg, #e8f0ff 0%, var(--bg) 60%, #dff7ff 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-layer {
    position: absolute; top: -20%; right: -10%; width: 70%; height: 130%; background: radial-gradient(circle at 70% 30%, rgba(6,182,212,0.15), transparent 50%), radial-gradient(circle at 20% 70%, rgba(37,99,235,0.15), transparent 50%); transform: translateY(0); z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; background: rgba(37,99,235,0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.typewriter-title {
    font-size: 3.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; color: var(--text);
}
.typewriter-title .highlight { color: var(--primary); }
.hero-subtitle { font-size: 1.2rem; color: #49618c; max-width: 560px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats .stat-item .stat-num { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.hero-stats .stat-item .stat-label { color: #6a7fa3; font-size: 14px; }
.btn-custom-primary { background: var(--primary); border: none; color: white; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; transition: all 0.3s; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-custom-primary:hover { background: #1d4fc4; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.4); color: white; }
.btn-custom-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 12px 28px; border-radius: var(--radius); font-weight: 600; transition: all 0.3s; }
.btn-custom-outline:hover { background: rgba(37,99,235,0.08); transform: translateY(-2px); color: var(--primary); }

/* 导航 */
.navbar-custom { background: rgba(244,248,255,0.92) !important; backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); padding: 12px 0; }
.navbar-brand { font-size: 1.6rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; }
.navbar-brand i { color: var(--primary); margin-right: 4px; }
.navbar-custom .nav-link { font-weight: 500; color: #3d5582; padding: 8px 16px !important; transition: color 0.2s; }
.navbar-custom .nav-link:hover { color: var(--primary); }
.navbar-custom .navbar-toggler { border: none; color: var(--primary); }

/* 区块通用 */
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-subtitle { color: #6a7fa3; margin-bottom: 32px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.section-heading .more-link { color: var(--primary); font-weight: 600; font-size: 14px; }
.section-heading .more-link i { transition: transform 0.2s; }
.section-heading .more-link:hover i { transform: translateX(4px); }

/* 海报卡片 */
.movie-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); border: 1px solid var(--border-light); cursor: pointer; height: 100%; position: relative;
}
.movie-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.movie-poster { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: linear-gradient(145deg, #e0eaff, #f0f6ff); }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.08); }
.poster-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(15,30,61,0.85), transparent); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end;
}
.movie-card:hover .poster-overlay { opacity: 1; }
.poster-overlay .quick-info { color: white; font-size: 13px; font-weight: 500; }
.badge-quality { position: absolute; top: 8px; right: 8px; background: rgba(15,30,61,0.75); color: white; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); }
.badge-hot { position: absolute; top: 8px; left: 8px; background: var(--accent); color: white; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.movie-info { padding: 12px; }
.movie-title { font-weight: 700; font-size: 16px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-meta { color: #6a7fa3; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.movie-rating { color: #f59e0b; font-weight: 700; }
.movie-type-tag { color: var(--primary); background: rgba(37,99,235,0.08); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* 榜单卡片 */
.rank-card {
    background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); display: flex; align-items: center; gap: 16px; margin-bottom: 12px; transition: all 0.3s; cursor: pointer;
}
.rank-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.rank-num { font-size: 2rem; font-weight: 900; color: var(--border-light); width: 48px; text-align: center; transition: color 0.3s; }
.rank-card:hover .rank-num { color: var(--primary); }
.rank-thumb { width: 64px; height: 88px; border-radius: 6px; object-fit: cover; background: #dfe9f8; }
.rank-info { flex: 1; }
.rank-title { font-weight: 600; margin-bottom: 2px; }
.rank-meta { font-size: 13px; color: #6a7fa3; }

/* 分类筛选区 */
.category-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.category-tab {
    background: white; border: 1px solid var(--border-light); color: #49618c; padding: 8px 20px; border-radius: 50px; font-weight: 500; font-size: 14px; transition: all 0.2s; cursor: pointer;
}
.category-tab:hover { border-color: var(--primary); color: var(--primary); }
.category-tab.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 10px rgba(37,99,235,0.25); }

/* 手风琴 */
.accordion-item { border: 1px solid var(--border-light) !important; border-radius: var(--radius) !important; overflow: hidden; margin-bottom: 12px; }
.accordion-button { font-weight: 600; background: white; color: var(--text); padding: 18px 20px; }
.accordion-button:not(.collapsed) { background: rgba(37,99,235,0.05); color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border-light); }
.accordion-body { color: #49618c; line-height: 1.8; }

/* 特色图标列表 */
.feature-icon { width: 56px; height: 56px; background: rgba(37,99,235,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 22px; margin-bottom: 16px; transition: all 0.3s; }
.feature-item:hover .feature-icon { background: var(--primary); color: white; transform: scale(1.05); }
.feature-item h5 { font-weight: 700; margin-bottom: 8px; }

/* 弹窗 */
.movie-modal { display: none; position: fixed; inset: 0; z-index: 1050; }
.movie-modal.show { display: flex; align-items: center; justify-content: center; }
.modal-backdrop-custom { position: absolute; inset: 0; background: rgba(15,30,61,0.9); backdrop-filter: blur(12px); }
.modal-content-custom {
    position: relative; background: var(--card-bg); border-radius: 16px; max-width: 700px; width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(15,30,61,0.4); z-index: 1; padding: 40px;
}
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.06); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; transition: all 0.2s; }
.modal-close:hover { background: var(--primary); color: white; }
.modal-poster-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.1; z-index: 0; border-radius: 16px; }
.modal-inner { position: relative; z-index: 1; }
.modal-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.modal-meta-tag { display: inline-block; background: rgba(37,99,235,0.1); color: var(--primary); padding: 4px 12px; border-radius: 4px; font-size: 13px; margin-right: 8px; margin-bottom: 8px; font-weight: 500; }
.modal-rating { font-size: 2rem; color: #f59e0b; font-weight: 800; }
.modal-rating small { font-size: 14px; color: #6a7fa3; font-weight: 400; }
.modal-desc { color: #49618c; line-height: 1.8; margin-top: 16px; }
.modal-info-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.modal-info-list p { margin-bottom: 4px; font-size: 14px; color: #49618c; }

/* 页脚 */
.footer-custom { background: #0f1e3d; color: #b4c3de; padding: 60px 0 20px; }
.footer-custom a { color: #b4c3de; transition: color 0.2s; }
.footer-custom a:hover { color: white; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 16px; display: block; }
.footer-links h6 { color: white; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; font-size: 14px; text-align: center; }

/* 友情链接 */
.friend-links { background: white; padding: 40px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.friend-links h6 { font-weight: 700; color: var(--text); margin-bottom: 16px; }
.friend-links a { color: #49618c; font-size: 14px; margin: 0 12px 8px 0; display: inline-block; }

/* 专题卡片 */
.topic-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.3s; height: 100%; }
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.topic-tag { background: var(--accent); color: white; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; display: inline-block; margin-bottom: 12px; }
.topic-card h5 { font-weight: 700; margin-bottom: 8px; }
.topic-card p { color: #49618c; font-size: 14px; margin-bottom: 12px; }

/* 响应式 */
@media (max-width: 768px) {
    .typewriter-title { font-size: 2rem; }
    .hero-section { padding: 60px 0 40px; }
    .hero-stats { gap: 24px; }
    .modal-content-custom { padding: 24px; }
    .section-title { font-size: 1.6rem; }
}

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