/* ============================================
   95电影网 - 全站样式表
   纯本地CSS，无外部依赖
   ============================================ */

/* CSS变量定义 */
:root {
    --primary-color: #ff6b35;
    --primary-hover: #e55a2b;
    --secondary-color: #1a1a2e;
    --bg-color: #f5f5f5;
    --bg-dark: #1a1a2e;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --card-bg: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   顶部导航
   ============================================ */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.platform-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tags .tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.tag.tencent {
    background: linear-gradient(135deg, #00a8e6, #0077b6);
}

.tag.youku {
    background: linear-gradient(135deg, #00d4aa, #00a8e8);
}

.tag.kumiao {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* 主导航 */
.main-nav {
    background: var(--secondary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 14px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li.active a {
    background: var(--primary-color);
}

/* ============================================
   轮播Banner
   ============================================ */
.banner-section {
    padding: 20px 0;
}

.banner-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-slide {
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-img {
    height: 400px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.banner-content {
    max-width: 500px;
    color: #fff;
}

.banner-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.banner-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.banner-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   内容区块
   ============================================ */
.section {
    padding: 30px 0;
}

.section-alt {
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.more-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.more-link:hover {
    color: var(--primary-color);
}

/* ============================================
   影片网格
   ============================================ */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.movie-card.large {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
}

.card-img {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card.large > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.movie-card.large .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
}

.movie-card.large .card-info {
    position: relative;
    z-index: 2;
    padding: 20px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.85) 100%);
}

.movie-card.large .card-info h3 {
    color: #fff;
    white-space: normal;
    font-size: 17px;
    margin-bottom: 6px;
}

.movie-card.large .card-info .card-meta,
.movie-card.large .card-info .card-desc {
    color: rgba(255,255,255,0.9);
}

.img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.movie-card:hover .img-placeholder {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 500;
}

.card-info {
    padding: 12px;
}

.card-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.card-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   列表页
   ============================================ */
.list-section {
    padding-top: 20px;
}

.list-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    padding-top: 6px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-item {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-item:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-item.active {
    background: var(--primary-color);
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-item {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.page-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-item.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.page-item.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .sep {
    color: var(--text-muted);
    font-size: 12px;
}

.breadcrumb .current {
    color: var(--text-muted);
}

/* ============================================
   详情页
   ============================================ */
.detail-section {
    padding-top: 20px;
}

.detail-main {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-poster {
    flex-shrink: 0;
    width: 280px;
}

.poster-img {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.poster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-actions {
    display: flex;
    gap: 10px;
}

.btn-play {
    flex: 1;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-play:hover {
    background: var(--primary-hover);
}

.btn-favorite {
    flex: 1;
    padding: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-favorite:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-favorite.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: var(--text-light);
}

.meta-sep {
    color: var(--text-muted);
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.rating-score {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    color: #ffc107;
    font-size: 18px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-item {
    padding: 4px 12px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.detail-director,
.detail-actors {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.detail-director strong,
.detail-actors strong {
    color: var(--text-color);
}

.detail-desc {
    margin-top: 20px;
}

.detail-desc h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.detail-desc p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 播放源 */
.play-sources {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.source-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.source-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.source-item:hover {
    border-color: var(--primary-color);
}

.source-item.active {
    border-color: var(--primary-color);
    background: rgba(255,107,53,0.1);
}

.source-name {
    font-size: 14px;
    font-weight: 500;
}

.source-quality {
    padding: 2px 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
}

/* 相关推荐 */
.related-section {
    margin-top: 30px;
}

/* ============================================
   播放页
   ============================================ */
.play-section {
    padding: 20px 0;
    background: var(--secondary-color);
}

.play-header {
    margin-bottom: 16px;
}

.play-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.play-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.player-container {
    display: flex;
    gap: 20px;
}

.player-wrapper {
    flex: 1;
}

.player-video {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.play-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,107,53,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.video-tip {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: var(--transition);
}

.player-video:hover .player-controls {
    opacity: 1;
}

.control-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.ctrl-btn:hover {
    background: rgba(255,255,255,0.3);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.1s;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time-display {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

.play-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.episode-list,
.source-switch {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.episode-list h3,
.source-switch h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.episode-item {
    padding: 8px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    transition: var(--transition);
}

.episode-item:hover,
.episode-item.active {
    background: var(--primary-color);
}

.play-info-section {
    background: var(--card-bg);
    padding: 24px 0;
}

.play-detail-main h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.play-detail-main p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.play-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.play-detail-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   底部分类
   ============================================ */
.footer-categories {
    background: var(--secondary-color);
    padding: 40px 0;
}

.category-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.category-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-column ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* ============================================
   友情链接
   ============================================ */
.friend-links {
    background: #fff;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.friend-links h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.links-list a {
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}

.links-list a:hover {
    color: var(--primary-color);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: #0f0f1a;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .movie-card.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .player-container {
        flex-direction: column;
    }
    
    .play-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-wrap: wrap;
    }
    
    .platform-tags {
        display: none;
    }
    
    .search-box {
        max-width: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .nav-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-list li a {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .banner-img {
        height: 280px;
        padding: 0 30px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .movie-card.large {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .movie-card.large .card-img {
        padding-top: 50%;
    }
    
    .detail-main {
        flex-direction: column;
    }
    
    .detail-poster {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .category-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-label {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-card.large {
        grid-column: span 2;
    }
    
    .category-columns {
        grid-template-columns: 1fr;
    }
    
    .banner-img {
        height: 220px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeIn 0.5s ease forwards;
}

.movie-card:nth-child(1) { animation-delay: 0.05s; }
.movie-card:nth-child(2) { animation-delay: 0.1s; }
.movie-card:nth-child(3) { animation-delay: 0.15s; }
.movie-card:nth-child(4) { animation-delay: 0.2s; }
.movie-card:nth-child(5) { animation-delay: 0.25s; }
.movie-card:nth-child(6) { animation-delay: 0.3s; }

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 平板/窄窗口下导航横向滚动，避免栏目名被压缩成竖排 */
@media (max-width: 1199px) {
  .nav-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .nav-list::-webkit-scrollbar {
    display: none;
  }
  .nav-list li a {
    white-space: nowrap;
  }
}
