﻿/* index.css - 首页样式 */
/* 头条区域 - 左右布局 */
.headline-container {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 360风格轮播图样式 */
.headline-carousel {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    /*height: 400px;*/
    height: 420px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    position: relative;
    width: 25%;
    height: 100%;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.slide-image {
    width: 60%;
    height: 100%;
    overflow: hidden;
}

    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    width: 40%;
    padding: 30px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .slide-content .tag {
        display: inline-block;
        background-color: var(--accent);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .slide-content h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 5.6rem;
    }
        .slide-content h3 a {
            color: white;
            text-decoration: none;
        }

    .slide-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        opacity: 0.9;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 5.6rem;
    }

    .slide-content .date {
        font-size: 0.9rem;
        opacity: 0.7;
    }

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        background-color: var(--accent);
        transform: scale(1.2);
    }

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
}

    .nav-btn:hover {
        background-color: rgba(231, 76, 60, 0.8);
    }

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.headline-news {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.headline-tabs {
    display: flex;
    background: var(--primary);
}

.headline-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

    .headline-tab.active {
        color: white;
        background: rgba(255, 255, 255, 0.15);
    }

        .headline-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--accent);
        }

.headline-list {
    padding: 20px;
    max-height: 360px;
    overflow-y: auto;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray);
    transition: all 0.3s;
}

    .news-item:hover {
        background-color: #f9f9f9;
    }

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
        color: var(--primary-dark);
        transition: all 0.3s;
    }

    .news-item:hover h4 {
        color: var(--accent);
    }

    .news-item .date {
        color: var(--text-light);
        font-size: 13px;
        display: flex;
        align-items: center;
    }

        .news-item .date i {
            margin-right: 5px;
            color: var(--accent);
            font-size: 12px;
        }

.headline-news-more {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background-color: var(--light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

    .headline-news-more:hover {
        /*        background-color: var(--primary);*/
        /*color: white;*/
        color: var(--accent);
    }

    .headline-news-more i {
        margin-left: 5px;
        transition: transform 0.3s;
    }

    .headline-news-more:hover i {
        transform: translateX(3px);
    }

/*
.headline-carousel {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    width: 33.333%;
    height: 100%;
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

    .carousel-caption h3 {
        font-size: 24px;
        margin-bottom: 10px;
        max-width: 80%;
    }

    .carousel-caption p {
        font-size: 16px;
        opacity: 0.9;
        max-width: 80%;
    }

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-btn:hover {
        background: var(--accent);
    }

.headline-news {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.headline-tabs {
    display: flex;
    background: var(--primary);
}

.headline-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

    .headline-tab.active {
        color: white;
        background: rgba(255, 255, 255, 0.15);
    }

        .headline-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--accent);
        }

.headline-list {
    padding: 20px;
    max-height: 360px;
    overflow-y: auto;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray);
    transition: all 0.3s;
}

    .news-item:hover {
        background-color: #f9f9f9;
    }

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
        color: var(--primary-dark);
        transition: all 0.3s;
    }

    .news-item:hover h4 {
        color: var(--accent);
    }

    .news-item .date {
        color: var(--text-light);
        font-size: 13px;
        display: flex;
        align-items: center;
    }

        .news-item .date i {
            margin-right: 5px;
            color: var(--accent);
            font-size: 12px;
        }*/

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .news-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

.card-content {
    padding: 20px;
}

.news-card .category {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.news-card .date {
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
}

    .news-card .date i {
        margin-right: 5px;
        color: var(--accent);
    }

/* 页签区域 */
/*.tabs-section {
    margin: 40px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--primary);
    overflow-x: auto;
    scrollbar-width: none;
}

    .tabs-header::-webkit-scrollbar {
        display: none;
    }

.tab {
    padding: 15px 25px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

    .tab:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }

    .tab.active {
        color: white;
        background: rgba(255, 255, 255, 0.15);
    }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--accent);
        }

.tab-content {
    padding: 25px;
    display: none;
}

    .tab-content.active {
        display: block;
    }

.tab-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tab-news-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray);
}

    .tab-news-item:last-child {
        border-bottom: none;
    }

    .tab-news-item img {
        width: 100px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 15px;
    }

.tab-news-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.tab-news-content .date {
    color: var(--text-light);
    font-size: 12px;
}*/


/* 三栏模块区域 - 改造后 */
.three-column-module {
    margin: 40px 0;
    display: flex;
    gap: 25px;
}

.module-column {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary);
    color: white;
}

    .module-header h3 {
        font-size: 18px;
        font-weight: 600;
        position: relative;
        padding-left: 10px;
    }

        .module-header h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 18px;
            background: var(--accent);
            border-radius: 2px;
        }

    .module-header .more {
        color: white;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }

        .module-header .more:hover {
            color: var(--accent);
        }

.module-images {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-bottom: 1px solid var(--gray);
}

.image-item {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

    .image-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    }

    .image-item img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        display: block;
    }

    .image-item p {
        padding: 8px;
        font-size: 14px;
        color: var(--primary-dark);
        text-align: center;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.module-news {
    padding: 15px;
    flex: 1;
}

    .module-news ul {
        list-style: none;
    }

    .module-news li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px dashed #eee;
    }

        .module-news li:last-child {
            border-bottom: none;
        }

    .module-news .news-title {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 15px;
        color: var(--primary-dark);
        text-decoration: none;
        transition: all 0.3s;
        /*font-size: 14px;*/
    }

        .module-news .news-title:hover {
            color: var(--accent);
            padding-left: 5px;
        }

    .module-news .news-date {
        color: var(--text-light);
        font-size: 12px;
        white-space: nowrap;
    }


/* 新增模块样式 - 自适应列表布局 */
.adaptive-list-module {
    margin: 40px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.adaptive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary);
    color: white;
}

    .adaptive-header h3 {
        font-size: 18px;
        font-weight: 600;
        position: relative;
        padding-left: 10px;
    }

        .adaptive-header h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 18px;
            background: var(--accent);
            border-radius: 2px;
        }

    .adaptive-header .more {
        color: white;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }

        .adaptive-header .more:hover {
            color: var(--accent);
        }

.adaptive-list {
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

    .adaptive-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px dashed #eee;
        transition: all 0.3s;
    }

        .adaptive-list li:hover {
            /*background-color: #f9f9f9;*/
            transform: translateX(5px);
        }

        .adaptive-list li:last-child {
            border-bottom: none;
        }

    .adaptive-list .news-title {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 15px;
        color: var(--primary-dark);
        text-decoration: none;
        transition: all 0.3s;
        /*font-size: 14px;*/
    }

        .adaptive-list .news-title:hover {
            color: var(--accent);
            padding-left: 5px;
        }

    .adaptive-list .news-date {
        color: var(--text-light);
        /*font-size: 12px;*/
        white-space: nowrap;
    }

/* 双图模块 */
.double-image-module {
    margin: 40px 0;
}

.image-container {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.long-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

    .long-image:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .long-image img {
        width: 100%;
        /*height: 200px;*/
        object-fit: cover;
        display: block;
    }



/* 广告区域 */
.ad-banner {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    color: white;
}

    .ad-banner h2 {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .ad-banner p {
        max-width: 700px;
        margin: 0 auto 20px;
        opacity: 0.9;
        font-size: 28px;
    }

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background: #e68a00;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    }

/* 三栏分类新闻模块 */
.category-news {
    display: flex;
    gap: 25px;
    margin: 40px 0;
}

.category-column {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary);
    color: white;
}

    .category-header h3 {
        font-size: 18px;
        font-weight: 600;
        position: relative;
        padding-left: 10px;
    }

        .category-header h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 18px;
            background: var(--accent);
            border-radius: 2px;
        }

    .category-header .more {
        color: white;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }

        .category-header .more:hover {
            color: var(--accent);
        }

.news-list {
    padding: 20px;
}

    .news-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px dashed #eee;
    }

        .news-list li:last-child {
            border-bottom: none;
        }

.news-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s;
}

    .news-title:hover {
        color: var(--accent);
        padding-left: 5px;
    }

.news-date {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
}

/* 乡村茶馆模块 */
.rural-teahouses {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.teahouses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.teahouse-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

    .teahouse-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.teahouse-img {
    height: 160px;
    position: relative;
    overflow: hidden;
}

    .teahouse-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.teahouse-card:hover .teahouse-img img {
    transform: scale(1.05);
}

.teahouse-info {
    padding: 15px;
}

.teahouse-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teahouse-date {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
}

    .teahouse-date i {
        margin-right: 5px;
        color: var(--primary);
    }



/* 底部内容区 */
.bottom-content {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.video-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

    .video-section-header .more-link {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }
        .video-section-header .more-link:hover {
            color: var(--accent);
        }

    .video-section-header h2 {
        color: var(--primary-dark);
        display: flex;
        align-items: center;
/*        font-size: 18px;
        margin-bottom: 10px;
        color: var(--primary-dark);*/
    }

/*        .video-section-header h2:before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 20px;
            background: #1e3a8a;
            margin-right: 10px;
        }*/

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.video-item {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.video-thumb {
    height: 120px;
    position: relative;
}

    .video-thumb a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-title {
    padding: 8px;
    background: #f8fafc;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-section {
    flex: 0 0 32%;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

    .services-header .more-link {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }

        .services-header .more-link:hover {
            color: var(--accent);
        }

    .services-header h2 {
        color: var(--primary-dark);
        display: flex;
        align-items: center;
        /*        font-size: 18px;
        margin-bottom: 10px;
        color: var(--primary-dark);*/
    }


/*    .services-section h2 {
        border-bottom: 2px solid var(--primary-dark);
        padding-bottom: 10px;
        margin-bottom: 15px;
        color: var(--primary-dark);
        display: flex;
        align-items: center;
    }

        .services-section h2:before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 20px;
            background: var(--accent);
            margin-right: 10px;
        }*/

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 10px;
    /*    background: #f0f9ff;*/
    color: var(--primary-dark);
    border-radius: 4px;
    transition: all 0.3s;
    border-bottom: 1px dashed rgb(238, 238, 238);
}

    .service-item:hover {
/*        background: #e0f2fe;*/
        transform: translateX(5px);
    }
.service-title {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s;
}

    .service-title:hover {
        color: var(--accent);
    }


/* 响应式设计 */
@media (max-width: 1200px) {

    .category-news,
    .three-column-module {
        flex-wrap: wrap;
    }

    .category-column,
    .module-column {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 992px) {
    .headline-container {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .ad-banner h2 {
        font-size: 24px;
    }

    .carousel-caption h3 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .category-column,
    .module-column {
        flex: 0 0 100%;
    }


    /* 轮播图移动端适配 */
    .slide {
        flex-direction: column;
    }

    .slide-image, .slide-content {
        width: 100%;
    }

    .slide-content {
        height: 45%;
    }

    .slide-image {
        height: 55%;
    }

    .headline-carousel {
        height: 600px;
    }

    .bottom-content {
        flex-direction: column;
    }

    .services-section {
        flex: none;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .tab-news {
        grid-template-columns: 1fr;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 0 auto;
        text-align: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .headline-carousel {
        height: 300px;
    }

    .ad-banner {
        padding: 20px;
    }

    .module-images {
        flex-wrap: wrap;
    }

    .image-item {
        flex: 0 0 calc(33.333% - 7px);
    }
}

