/* 全局样式和变量 */
:root {
    --primary-blue: #6366f1;
    --primary-purple: #8b5cf6;
    --primary-orange: #f97316;
    --primary-green: #10b981;
    --primary-pink: #ec4899;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-blue-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --container-width: 1366px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* 搜索结果关键词高亮样式 */
mark {
    background-color: #fef3c7;
    color: #b45309;
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

/* 确保所有直接使用容器类的部分都遵循1366px宽度限制 */
header,
footer,
.hero-section {
    width: 100%;
    overflow: hidden;
}

/* 容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 头部导航 */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 40px;
    /*background: var(--gradient-blue-purple);*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 确保移动端导航在非媒体查询部分也有基础支持 */
.nav-menu {
    overflow: visible;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px; /* 减小值使横线离文字更近 */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}


@media (max-width: 767px) {
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0px; /* 减小值使横线离文字更近 */
        left: 0;
        width: 0;
        height: 2px;
        background: var(--white);
        transition: width 0.3s ease;
    }
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-icon:hover {
    background: var(--gradient-blue-purple);
    color: var(--white);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-blue-purple);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-orange {
    background: var(--gradient-orange);
    color: var(--white);
}

/* 主横幅区域 - 通栏轮播 */
.hero-section {
    position: relative;
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
}

.hero-carousel-slides {
    position: relative;
    width: 100%;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.hero-carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    align-items: center;
    min-height: 400px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h1 a{
    text-decoration: none;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-dark);
    /* 改为深色文字以提高可读性 */
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    /* 添加半透明白色背景 */
    padding: 1rem 0rem;
    border-radius: 8px;
}

.hero-image {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.hero-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);*/
    pointer-events: none;
}

.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .hero-carousel-prev,
    .hero-carousel-next {
        position: absolute;
        top: 70%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        color: var(--primary-blue);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}


.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev {
    left: 20px;
}

.hero-carousel-next {
    right: 20px;
}

.hero-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    padding: 0;
}

.hero-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-carousel-indicator.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
}

.hero-carousel-indicator:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-blue);
}

.card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #666666; /* 修改为深色，使其在白色背景上可见 */
    margin-bottom: 0.5rem;
}

.card-excerpt {
    color: var(--text-dark);
    line-height: 1.6;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-tag.blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

.category-tag.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-orange);
    font-weight: 600;
}

.category-tag.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    font-weight: 600;
}

.category-tag.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--primary-pink);
    font-weight: 600;
}

.category-tag.red {
    background: rgba(255, 0, 0, 0.1);
    color:#ec4848;
    font-weight: 600;
}

.category-tag.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
    font-weight: 600;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 行和列布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
    padding-right: 15px;
    padding-left: 15px;
}

/* 节标题 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 0.875rem;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 2rem;
}

/* 分类展示样式 */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.filter-tab {
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
}

.filter-tab:hover {
    color: var(--primary-blue);
}

.filter-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* 热搜关键词标签样式 */
.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hot-search-tag {
    padding: 0.4rem 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.hot-search-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* 15个排名标签的不同颜色 - 文字纯色，背景透明度10% */
.hot-rank-1 {
    background-color: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    border-color: rgba(255, 77, 79, 0.3);
}

.hot-rank-2 {
    background-color: rgba(255, 122, 69, 0.1);
    color: #ff7a45;
    border-color: rgba(255, 122, 69, 0.3);
}

.hot-rank-3 {
    background-color: rgba(255, 169, 64, 0.1);
    color: #ffa940;
    border-color: rgba(255, 169, 64, 0.3);
}

.hot-rank-4 {
    background-color: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    border-color: rgba(82, 196, 26, 0.3);
}

.hot-rank-5 {
    background-color: rgba(24, 144, 255, 0.1);
    color: #1890ff;
    border-color: rgba(24, 144, 255, 0.3);
}

.hot-rank-6 {
    background-color: rgba(114, 46, 209, 0.1);
    color: #722ed1;
    border-color: rgba(114, 46, 209, 0.3);
}

.hot-rank-7 {
    background-color: rgba(235, 47, 150, 0.1);
    color: #eb2f96;
    border-color: rgba(235, 47, 150, 0.3);
}

.hot-rank-8 {
    background-color: rgba(19, 194, 194, 0.1);
    color: #13c2c2;
    border-color: rgba(19, 194, 194, 0.3);
}

.hot-rank-9 {
    background-color: rgba(89, 89, 89, 0.1);
    color: #595959;
    border-color: rgba(89, 89, 89, 0.3);
}

.hot-rank-10 {
    background-color: rgba(250, 84, 28, 0.1);
    color: #fa541c;
    border-color: rgba(250, 84, 28, 0.3);
}

.hot-rank-11 {
    background-color: rgba(47, 84, 235, 0.1);
    color: #2f54eb;
    border-color: rgba(47, 84, 235, 0.3);
}

.hot-rank-12 {
    background-color: rgba(19, 194, 194, 0.1);
    color: #13c2c2;
    border-color: rgba(19, 194, 194, 0.3);
}

.hot-rank-13 {
    background-color: rgba(212, 107, 8, 0.1);
    color: #d46b08;
    border-color: rgba(212, 107, 8, 0.3);
}

.hot-rank-14 {
    background-color: rgba(114, 46, 209, 0.1);
    color: #722ed1;
    border-color: rgba(114, 46, 209, 0.3);
}

.hot-rank-15 {
    background-color: rgba(140, 140, 140, 0.1);
    color: #8c8c8c;
    border-color: rgba(140, 140, 140, 0.3);
}

/* 三栏网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 响应式设计 */
@media (max-width: 1199px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 180px;
    }

    .filter-tabs {
        padding-bottom: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 专门为用户提到的卡片结构添加间距控制 */
@media (min-width: 769px) {
    /* 精确控制卡片内网格布局与下方内容的距离 */
    .card > div[style*="display: grid; grid-template-columns: 1fr"] {
        margin-bottom: 2rem;
    }

    /* 专门控制卡片内图片与下方内容的间距 */
    .card-image[style*="height: 180px"] {
        margin-bottom: 0rem !important;
    }

    /* 确保下方三行卡片与上方图片有足够间距 */
    .grid > article {
        margin-bottom: 0rem !important;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-meta {
    padding: 0.5rem 0rem 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.category-tag.green {
    background: rgba(40, 167, 69, 0.1);
}

.category-tag.pink {
    background: rgba(232, 62, 140, 0.1);
}

.category-tag.orange {
    background: rgba(253, 126, 20, 0.1);
}

.category-tag.blue {
    background: rgba(23, 162, 184, 0.1);
}

.category-tag.red {
    background: rgba(230, 14, 14, 0.1);
}

.color01 {
    color: #666;
    padding: 0;
    margin-left: 0.2rem;
    font-size: 0.9rem;
}

.category-tag.purple {
    background: rgba(111, 66, 193, 0.1);
}

.category-tag.yellow {
    background: rgba(255, 193, 7, 0.1);
    color: #212529;
}

.card-title {
    padding: 0rem 0rem 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007bff;
}

/* 特色内容卡片 */
.featured-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.featured-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s;
}

.featured-card:hover .featured-card-image {
    transform: scale(1.02);
}

.featured-card-content {
    padding: 1.2rem;
}

.featured-card-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 2rem;
    margin-bottom: 0.8rem;
}

.featured-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
}

.featured-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

/* 次要内容列表 */
.channel-secondary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-card {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.channel-card:hover {
    background-color: #f1f3f5;
}

.channel-card-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.channel-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.channel-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-card-meta {
    font-size: 0.8rem;
    color: #666;
}

/* 频道式布局样式 */
.channel-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* 分类网格布局 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;
    margin-bottom: 40px;
}

.category-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 频道颜色方案 */
.category-movie .channel-header {
    background: linear-gradient(90deg, rgba(99,102,241,0.1) 0%, rgba(99,102,241,0) 100%);
}

.category-movie .channel-title {
    color: var(--primary-blue);
}

.category-music .channel-header {
    background: linear-gradient(90deg, rgba(139,92,246,0.1) 0%, rgba(139,92,246,0) 100%);
}

.category-music .channel-title {
    color: var(--primary-purple);
}

.category-variety .channel-header {
    background: linear-gradient(90deg, rgba(249,115,22,0.1) 0%, rgba(249,115,22,0) 100%);
}

.category-variety .channel-title {
    color: var(--primary-orange);
}

.category-star .channel-header {
    background: linear-gradient(90deg, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0) 100%);
}

.category-star .channel-title {
    color: var(--primary-green);
}

.category-drama .channel-header {
    background: linear-gradient(90deg, rgba(236,72,153,0.1) 0%, rgba(236,72,153,0) 100%);
}

.category-drama .channel-title {
    color: var(--primary-pink);
}

.category-hollywood .channel-header {
    background: linear-gradient(90deg, rgba(37,99,235,0.1) 0%, rgba(37,99,235,0) 100%);
}

.category-hollywood .channel-title {
    color: #2563eb;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-item {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 30px;
    }

    .category-item {
        padding: 1rem;
    }

    .channel-title {
        font-size: 1.1rem;
    }
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.channel-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.channel-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.channel-more:hover {
    color: var(--primary-purple);
}

.channel-more svg {
    margin-left: 0.25rem;
    width: 16px;
    height: 16px;
}

.channel-content {
    width: 100%;
}

.channel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* 上方宽图带标题样式 */
.featured-banner-card {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.featured-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
}

.featured-banner-tag {
    display: inline-block;
    background-color: #e53e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.featured-banner-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.featured-banner-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
}

/* 下方新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #333;
}

.news-item-meta {
    font-size: 14px;
    color: #666;
}

.news-item-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 整合卡片样式 */
.movie-integrated-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); */
}

/* 大图区域样式 */
.movie-featured {
    position: relative;
    width: 100%;
}

.movie-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.movie-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    color: white;
}

.movie-featured-tag {
    display: inline-block;
    background-color: #e53e3e;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
}

.movie-featured-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.movie-featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* 散列表新闻区域样式 */
.movie-news-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f0f0f0;
}

.movie-news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    box-shadow: none;
}

.movie-news-item:last-child {
    border-bottom: none;
}

.movie-news-item:hover {
    background-color: #f8f9fa;
}

.movie-news-content {
    flex: 1;
    min-width: 0;
}

.movie-news-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #333;
}

.movie-news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.movie-news-image {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 整合卡片响应式样式 */
@media (max-width: 768px) {
    .movie-featured-image {
        height: 250px;
    }

    .movie-featured-overlay {
        padding: 20px;
    }

    .movie-featured-title {
        font-size: 22px;
    }

    .movie-news-item {
        padding: 16px 20px;
        gap: 16px;
    }

    .movie-news-title {
        font-size: 16px;
    }

    .movie-news-image {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .movie-featured-image {
        height: 200px;
    }

    .movie-featured-overlay {
        padding: 15px;
    }

    .movie-featured-tag {
        padding: 4px 10px;
        font-size: 12px;
    }

    .movie-featured-title {
        font-size: 18px;
    }

    .movie-featured-meta {
        font-size: 12px;
        gap: 15px;
    }

    .movie-news-item {
        padding: 14px 15px;
        gap: 12px;
    }

    .movie-news-title {
        font-size: 15px;
    }

    .movie-news-meta {
        font-size: 0.9rem;
    }

    .movie-news-image {
        width: 100px;
        height: 72px;
    }
}
}

/* 响应式设计 */
@media (max-width: 768px) {

    /* 调整宽图高度 */
    .movie-featured-image {
        height: 220px;
    }

    /* 调整标题大小 */
    .movie-featured-title {
        font-size: 22px;
    }

    /* 调整叠加层内边距 */
    .movie-featured-overlay {
        padding: 20px;
    }

    /* 调整新闻项为垂直排列 */
    .movie-news-item {
        flex-direction: column;
        padding: 16px 20px;
        text-align: center;
        align-items: stretch;
    }

    /* 调整新闻图片大小 */
    .movie-news-image {
        width: 100%;
        height: 160px;
        order: -1;
        /* 图片在上方 */
    }

    /* 调整新闻标题大小 */
    .movie-news-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {

    /* 进一步调整宽图高度 */
    .movie-featured-image {
        height: 180px;
    }

    /* 调整标题大小 */
    .movie-featured-title {
        font-size: 20px;
    }

    /* 调整叠加层内边距 */
    .movie-featured-overlay {
        padding: 15px;
    }

    /* 调整新闻图片高度 */
    .movie-news-image {
        height: 72px;
    }

    /* 调整新闻项内边距 */
    .movie-news-item {
        padding: 14px 0px;
    }

    /* 调整新闻标题大小 */
    .movie-news-title {
        font-size: 16px;
    }
    .movie-news-title > a {
        font-size: 16px !important;
    }
}

.channel-featured {
    width: 100%;
}

.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.featured-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.featured-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-top: auto;
}

.channel-secondary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-card {
    display: flex;
    gap: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 120px;
}

.channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.channel-card-image {
    width: 120px;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.channel-card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.channel-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.channel-card-meta {
    font-size: 0.875rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .channel-grid {
        grid-template-columns: 1fr;
    }

    .channel-featured .featured-card-image {
        height: 250px;
    }

    .channel-secondary {
        flex-direction: row;
        gap: 1rem;
    }

    .channel-card {
        flex: 1;
        height: 100px;
    }

    .channel-card-image {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .channel-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .channel-title {
        font-size: 1.5rem;
    }

    .featured-card-image {
        height: 200px;
    }

    .featured-card-title {
        font-size: 1.25rem;
    }

    .channel-secondary {
        flex-direction: column;
    }

    .channel-card {
        height: 110px;
    }

    .channel-card-image {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .channel-title {
        font-size: 1.35rem;
    }

    .featured-card-image {
        height: 180px;
    }

    .featured-card-content {
        padding: 1rem;
    }

    .featured-card-title {
        font-size: 1.1rem;
    }

    .channel-card {
        height: 100px;
    }

    .channel-card-image {
        width: 100px;
    }

    .channel-card-content {
        padding: 0.75rem;
    }

    .channel-card-title {
        font-size: 0.95rem;
    }
}
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
    background: var(--gradient-blue-purple);
    color: var(--white);
    border-color: transparent;
}

/* 搜索框 */
.search-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* 文章详情 */
.article-header {
    background: var(--white);
    padding: 0rem 0rem 0rem 0rem;
    margin-bottom: 0rem;
    width: 100%;
}

/* 创建一个内容容器，确保与图片宽度一致 */
.article-content-wrapper {
    width: 100%;
    padding: 3rem;
    box-sizing: border-box;
}

/* 确保主内容区域也与图片对齐 */
.main-content {
    width: 100%;
    box-sizing: border-box;
}

/* 调整文章内容区域的图片容器 */
.article-content {
    padding: 0;
}

/* 调整文章元数据布局 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.article-title {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.article-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    padding-top: 1rem
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content p {
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

/* 侧边栏 */
.sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-item-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-item-content {
    flex: 1;
}

.sidebar-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.sidebar-item-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.sidebar-item-title a:hover {
    color: var(--primary-blue);
}

.sidebar-item-meta {
    font-size: 0.9rem;
    color: #999;
}

/* 双栏布局 */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* 页脚 */
footer {
    background: var(--white);
    padding: 1rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
}

@media (max-width: 480px) {
    footer {
        background: var(--white);
        padding: 1rem 0 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
        overflow: hidden;
    }
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1326px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    /* border-top: 1px solid var(--border-color); */
    color:#8c8c8c;
    font-size: 0.875rem;
}

/* 响应式设计 - 以1366px为主体 */

/* 超大屏幕 (1920px+) - 仍然保持1366px设计宽度 */
@media (min-width: 1920px) {
    .container {
        max-width: 1366px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* 大屏幕 (1366px及以上) - 主设计宽度 */
@media (min-width: 1366px) {
    .container {
        max-width: 1366px;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%;
    }

    /* 确保关键内容区域严格按照1366px宽度显示 */
    .hero-content,
    .grid,
    .footer-content {
        max-width: 1326px;
        margin: 0 auto;
    }
}

/* 中等屏幕 (1024px - 1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板横屏 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
}

/* 平板竖屏/移动端横屏 (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.875rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        background: var(--bg-light);
        transition: all 0.3s;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-blue);
        color: var(--white);
    }

    .nav-actions {
        position: absolute;
        top: 1rem;
        right: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: 300px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-image {
        height: 250px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        gap: 0.75rem;
    }

    .filter-tab {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .article-title {
        font-size: 1.75rem;
        line-height: 1.3;
        max-width: 100%; /* 在中等屏幕上占满宽度 */
        word-wrap: break-word;
        hyphens: auto;
    }

    .article-content {
        padding: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .search-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-input {
        width: 100%;
    }

    .card>div[style*="grid-template-columns: 300px"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .card-image {
        height: 200px;
        margin-bottom: 1rem;
        width: 100%;
    }

    .sidebar {
        margin-top: 2rem;
    }
}

/* 移动端 (最大480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .logo {
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8125rem;
        width: 100%;
        margin-top: 0.75rem;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        background: var(--bg-light);
        transition: all 0.3s;
        display: block;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-blue);
        color: var(--white);
    }

    .nav-actions {
        position: absolute;
        top: 1.3rem;
        right: 0;
        gap: 0.5rem;
    }

    .search-icon {
        width: 32px;
        height: 32px;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .hero-content {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-image {
        height: 180px;
    }

    .hero-carousel-prev,
    .hero-carousel-next {
        width: 40px;
        height: 40px;
    }

    .hero-carousel-prev {
        left: 10px;
    }

    .hero-carousel-next {
        right: 10px;
    }

    .hero-carousel-indicators {
        margin-top: 1.5rem;
        gap: 10px;
    }

    .hero-carousel-indicator {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    .hero-carousel-indicator.active {
        width: 24px;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.375rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid {
        gap: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card-image {
        height: 180px;
        margin-bottom: 0rem;
        border-radius: 6px;
    }

    .card-title {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0rem;
    }

    .card-title a {
        font-size: 1.2rem;
    }

    .card-excerpt {
        font-size: 1rem;
        line-height: 1.5;
    }

    .card-meta {
        font-size: 0.9rem;
        gap: 0.75rem;
        margin-bottom: 0rem;
        flex-wrap: wrap;
    }

    .category-tag {
        padding: 3px 10px;
        font-size: 0.8rem;
    }

    .article-header {
        padding: 0rem 0;
    }

    .article-title {
        font-size: 1.375rem;
        line-height: 1.3;
        max-width: 100%; /* 在小屏幕上占满宽度 */
        word-wrap: break-word;
        hyphens: auto;
    }

    .article-meta {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
        color: #666666; /* 设置文字颜色为深色，确保可见性 */
        padding-left: 0;
        transform: translateX(0) !important; /* 在小屏幕上重置右移效果 */
    }

    .article-content {
        padding: 1rem;
    }

    .article-content p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        letter-spacing: 0.1rem;
    }

    .article-content h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
        margin: 1.25rem 0 0.75rem;
    }

    .article-content img {
        margin: 1.5rem 0;
        border-radius: 6px;
    }

    .sidebar {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .sidebar-item {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .sidebar-item-image {
        width: 100px;
        height: 72px;
        flex-shrink: 0;
    }

    .sidebar-item-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .sidebar-item-meta {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        margin-bottom: 1rem;
    }

    .footer-section h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-section a {
        font-size: 0.875rem;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
        margin-top: 2rem;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 1rem;
        min-width: 36px;
        text-align: center;
    }

    .search-box {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 0.9375rem;
        border-radius: 6px;
    }

    .card>div[style*="grid-template-columns: 300px"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .card-image[style*="height: 180px"] {
        height: 180px !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    position: relative;
    transition: all 0.3s;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: none;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1.1rem;
        font-size: 0.875rem;
        width: 100%;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .search-icon {
        width: 36px;
        height: 36px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 返回顶部按钮 */
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 页面加载动画 */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    .filter-tab:hover {
        background: var(--white);
        color: var(--text-dark);
    }

    .filter-tab.active {
        background: var(--primary-purple);
        color: var(--white);
    }

    .nav-menu a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        min-height: 37px;
        display: flex;
        align-items: center;
    }

    .card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    }

    .search-input,
    .search-input-group input {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        font-size: 16px;
        /* 防止iOS自动缩放 */
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .card-image,
    .sidebar-item-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 移动端通用优化 */
@media (max-width: 767px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    a,
    button,
    .btn,
    .filter-tab {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
        touch-action: manipulation;
    }

    /* 修复移动端搜索按钮文字换行问题 */
    #searchBtn {
        white-space: nowrap !important;
        min-width: auto;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
    }

    #searchBtn svg {
        margin-right: 4px !important;
        width: 16px;
        height: 16px;
        display: inline-block;
        vertical-align: middle;
    }

    #searchBtn span {
        display: inline-block;
        vertical-align: middle;
    }

    /* 确保搜索按钮内容在同一行 */
    .search-input-group {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .btn {
        white-space: nowrap !important;
        overflow: visible;
    }

    /* 移动端将aside移到article底部 */
    .main-content .container .row {
        display: flex !important;
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-content .container .row .col-8,
    .main-content .container .row .col-4 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 2rem;
        box-sizing: border-box;
        margin-bottom: 0px !important;
        padding-top: 1.5rem !important;

    }

    /* 确保容器在移动端有合适的padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 修复相关推荐在移动端的布局 */
    .grid {
        gap: 1.5rem !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* 调整侧边栏样式在移动端 */
    .sidebar {
        margin-bottom: 2rem;
        padding: 1.5rem;
        /* background: var(--bg-light); */
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .sidebar-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* 优化移动端卡片样式 */
    .card {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem;
        margin-bottom: 1.1rem;
    }

    .card-image {
        height: 180px;
    }

    /* 优化文章图片在移动端的显示 */
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
        margin: 1rem 0 !important;
    }

    /* 优化文章标题在移动端的大小 */
    .article-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* 优化相关推荐标题 */
    .section-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }

    /* 修复sidebar-title样式 */
    .sidebar-title {
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--border-color);
    }
}

/* 防止水平滚动 */
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* 卡片网格布局 */
.grid-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

@media (max-width: 481px) {
    .grid-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0rem;
    }
}

/* 针对极小屏幕设备的额外优化 */
@media (max-width: 360px) {
    #searchBtn {
        padding: 8px 12px !important;
        font-size: 0.8125rem !important;
    }

    #searchBtn svg {
        width: 14px !important;
        height: 14px !important;
        margin-right: 2px !important;
    }

    .search-input-group {
        flex-wrap: nowrap;
        align-items: center;
    }

    .search-input {
        flex: 1;
    }
}