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

body {
    font-family: "Microsoft YaHei", "SimSun", "Verdana", sans-serif;
    /*background-image: url('../images/background.png');*/
    background-attachment: fixed;

    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% auto;
    background-color: #F0F0F0;

    color: #333;
    min-height: 100vh;
}

/* 顶部导航栏 */
.content-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background-color: #012ADC;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-title p {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* 功能图标区域 */
.nav-icons {
    padding: 15px 20px;
    padding-top: 90px;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-icon-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.nav-icon-item:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2px;
    overflow: hidden;
}

.icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-label {
    font-size: 16px;
    /* font-weight: bold; */
    margin-bottom: 2px;
}

.icon-subtitle {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* 轮播图区域 */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    padding: 0 10px;
    margin: 5px 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

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

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 6px;
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    color: #333333;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 10px;
}

.section {
    /*background: #fff;*/
    padding: 15px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}
.section.section-blog-1 {
    background: #fff;
    padding: 5px 10px;
    border-radius: 8px 8px 0 0;
    margin:0 auto;
}
.section.section-blog-2 {
    background: #fff;
    padding: 5px 10px;
    border-radius: 0 0 8px 8px;
    margin:0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 10px;
    justify-content: space-between;
    /* border-bottom: 2px solid #e0e0e0; */
}

.title-bar {
    width: 4px;
    height: 24px;
    background: #2196F3;
    margin-right: 10px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    flex: 1;
}


.more-link {
    color: #2196F3;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    white-space: nowrap;
    margin-left: 10px;
}

.more-link:hover {
    color: #1976D2;
}

/* 新闻列表 */
.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

.news-item:hover {
    background: #f9f9f9;
    padding-left: 10px;
}

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

.news-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-left: 20px;
}

/* 资源荟按钮 */
.resource-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

.resource-btn {
    flex: 1;
    min-width: 0;
    padding: 40px 20px 20px 20px;
    background: #fff;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.resource-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.resource-label {
    font-size: 16px;
    /* font-weight: bold; */
    color: #fff;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 12px 24px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    /* border-radius: 25px; */
    /* width: auto; */
    width: 100%;
    margin-top: auto;
    white-space: nowrap;
    box-sizing: border-box;
}

/* 产品溯源 */
.product-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

.product-item {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 120px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-btn {
    width: 100%;
    padding: 15px 20px;
    background: #8BC34A;
    color: #fff;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    /* border-bottom-left-radius: 25px; */
    /* border-bottom-right-radius: 25px; */
    margin-top: auto;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 汾西好货 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.product-card:hover {
    background: #f0f0f0;
}

.product-card-image {
    width: 150px;
    height: 150px;
    background: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-card-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.product-card-price {
    font-size: 20px;
    color: #ff5722;
    font-weight: bold;
    margin-bottom: 15px;
}

.view-detail-btn {
    align-self: flex-start;
    padding: 8px 20px;
    background: #4CAF50;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* 服务惠网格 */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    /*margin: 0 -10px;*/
    background: #f9f9f9;
    padding-top:20px;
    border-radius: 8px;

}

.service-item {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 38px;
    height: 38px;
    /*border-radius: 50%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-label {
    font-size: 14px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-icons {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
    }

    .resource-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
    }

    .resource-btn {
        min-width: 0;
        padding: 20px 0 0 0;
    }

    .resource-icon img {
        width: 80px;
        height: 80px;
    }

    .resource-label {
        font-size: 18px;
        padding: 5px 20px;
    }

    .product-grid {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
    }

    .product-image {
        padding: 0;
        /* border:1px solid #FF0000; */
    }

    .product-image img {
        width: 100%;
        height: 100%;
    }

    .product-btn {
        font-size: 18px;
        padding: 5px 10px;
    }

    .service-grid {
        margin: 0 -7.5px;
    }

    .service-item {
        width: 25%;
        padding: 0 7.5px;
    }
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 10px;
    text-align: center;
}

.footer-links h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.link-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    margin: 8px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 响应式设计 - 页脚 */
@media (max-width: 768px) {
    .footer {
        padding: 10px 15px;
    }

    .footer-links h3 {
        font-size: 16px;
    }

    .links-list {
        gap: 10px;
    }

    .link-item {
        font-size: 12px;
        padding: 4px 12px;
    }

    .footer-copyright p {
        font-size: 11px;
    }
}

