/* 首页样式 */
.main-content {
    position: relative;
    min-height: 400px;
    background: url('../images/sky-bg.svg') no-repeat center top;
    background-size: cover;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* 防止横向溢出 */
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: -1;
}

/* 通用容器样式 */
.banner-news-container,
.notice-container,
.service-nav-container,
.info-container,
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.banner-news-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.notice-container {
    margin-bottom: 40px;
}

/* 服务导航区域 */
.service-nav-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.service-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 25px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

.service-nav-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border-radius: 12px;
    background: #f0f7ff;
    color: #2563eb;
    transition: all 0.3s ease;
}

.service-nav-item:hover .service-icon {
    background: #2563eb;
    color: #fff;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-text h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #1e3a8a;
}

.service-text p {
    margin: 0;
    font-size: 18px;
    color: #64748b;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .banner-news-container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0;
        margin: 20px auto;
    }

    .notice-container,
    .service-nav-container {
        width: 100%;
        padding: 0;
        margin: 0 auto 20px;
        box-sizing: border-box;
    }
    
    .info-container {
        width: 100%;
        padding: 0;
        margin: 0 auto 20px;
        flex-direction: column;
        gap: 0;
    }
    
    .info-container .news-module {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        min-width: auto;
    }
    
    .banner,
    .featured-news {
        width: 100%;
        height: auto;
        margin-bottom: 0;
    }
    
    .featured-news,
    .notice-news,
    .industry-news {
        height: auto;
        max-height: 400px;
    }
    
    /* 服务导航响应式 */
    .service-nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-nav-item {
        padding: 15px;
        width: calc(100% - 30px);
        margin: 0 15px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .service-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-text h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .service-text p {
        font-size: 13px;
    }

    /* 统一所有模块的宽度和边距 */
    .news-module {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .news-image,
    .quick-links,
    .resources {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    /* 文字大小调整 */
    .module-header h3 {
        font-size: 22px;
    }

    .news-list li {
        padding: 10px 0;
    }

    .news-date {
        font-size: 16px;
        padding: 2px 6px;
    }

    .news-list a {
        font-size: 18px;
    }

    .link-item,
    .resource-item {
        padding: 12px;
        margin-bottom: 10px;
        font-size: 15px;
    }

    /* 图片区域 */
    .news-image {
        height: 150px;
    }

    .news-image h3 {
        font-size: 14px;
        padding: 15px;
    }

    /* 轮播控制 */
    .banner-dots {
        bottom: 15px;
        padding: 6px 10px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
    
    /* 内容布局 */
    .content {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* 统一所有模块的宽度和边距 */
    .left-section,
    .center-section,
    .right-section {
        width: calc(100% - 30px);
        margin: 0 auto;
        padding: 0;
    }

    .center-section {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .news-modules {
        gap: 15px;
        margin: 0;
        padding: 0;
    }
}

/* 通知和行业新闻容器 */
.notice-news,
.industry-news {
    width: 50%;
    height: 360px;
    margin: 0;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notice-news .news-list,
.industry-news .news-list {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding: 15px;
}

.notice-news .module-header,
.industry-news .module-header {
    padding: 15px 20px;
    margin-bottom: 0;
}

.banner {
    width: 50%;
    height: 400px;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* 新闻快讯特色样式 */
.featured-news {
    width: 50%;
    height: 400px;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.featured-news .news-list {
    height: calc(100% - 70px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.featured-news .news-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.featured-news .news-list::-webkit-scrollbar-thumb {
    background: transparent;
}

.featured-news .news-list::-webkit-scrollbar-track {
    background: transparent;
}

.featured-news .news-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.featured-news .news-list li:last-child {
    border-bottom: none;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
    border-radius: 8px;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f5f5f5;
}

/* 轮播图文字层样式 */
.slide-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 40px;
    background: transparent;
    color: white;
    max-height: 150px;
    overflow: hidden;
}

.slide-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: none;
}

.slide-text p {
    font-size: 18px;
    color: #fff;
    text-shadow: none;
}

.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
}

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

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 轮播按钮样式优化 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(46, 116, 195, 0.7);
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(46, 116, 195, 0.9);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* 优化轮播按钮图标 */
.slider-btn::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    position: relative;
}

.prev-btn::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.next-btn::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* 内容区域 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    box-sizing: border-box;
}

/* 快速链接 */
.quick-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.quick-links h3 {
    font-size: 20px;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
}

.quick-links h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #2563eb;
}

.link-item {
    display: block;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 45px;
}

.link-item:hover {
    background: #f0f9ff;
    color: #0284c7;
    transform: translateX(5px);
}

.link-item:last-child {
    margin-bottom: 0;
}

/* 新闻模块区域 */
.news-modules {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-module {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.module-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.module-header:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25px;
    width: 50px;
    height: 2px;
    background: #1e50a2;
    transition: width 0.3s ease;
}

.news-module:hover .module-header:after {
    width: 80px;
}

.module-header h3 {
    margin: 0;
    position: relative;
    font-size: 22px;
    font-weight: bold;
    color: #1e3a8a;
    padding: 10px 0;
}

.module-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #1e50a2;
    border-radius: 2px;
}

.more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #666;
    text-decoration: none;
}

/* 新闻动态模块特殊样式 */
.featured-news .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.featured-news .module-header:after {
    display: none;
}

/* 解决新闻动态左边框与文字重合问题 */
.featured-news .module-header h3 {
    padding-left: 12px;
    position: relative;
}

.featured-news .module-header h3:before {
    left: 0;
    width: 4px;
    height: 18px;
}

.featured-news .more-link {
    color: #666;
    font-size: 14px;
}

.featured-news .more-link:hover {
    transform: none;
    color: #666;
}

.news-list {
    padding: 15px 25px !important;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.news-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.news-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

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

.news-list li:hover {
    padding-left: 5px;
}

.news-date {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 8px;
    font-size: 16px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-list li:hover .news-date {
    background: #e6f0ff;
    color: #1e50a2;
}

.news-list a {
    display: block;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
}

.news-list a:hover {
    color: #3b82f6;
}

/* 左侧区域 */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 新闻图片 */
.news-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-image:hover {
    transform: translateY(-3px);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover img {
    transform: scale(1.05);
}

.news-image h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

/* 中间区域 */
.center-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 右侧区域 */
.right-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 查询框和资源 */
.query-box, .resources {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.query-item, .resource-item {
    display: block;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.query-item:hover, .resource-item:hover {
    background: #f0f9ff;
    color: #0284c7;
    transform: translateX(5px);
}

.query-item:last-child, .resource-item:last-child {
    margin-bottom: 0;
}

/* 添加图标样式 */
.icon-notice, .icon-cert, .icon-news, .icon-file {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-notice {
    background-image: url('../images/icon-notice.png');
}

.icon-cert {
    background-image: url('../images/icon-cert.png');
}

.icon-news {
    background-image: url('../images/icon-news.png');
}

.icon-file {
    background-image: url('../images/icon-file.png');
}

/* 首页特有样式 */

/* 时间线样式 */
.timeline {
    margin: 2rem 0;
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 50%;
    width: 2px;
    height: calc(100% + 1.5rem);
    background-color: #e2e8f0;
    transform: translateY(-50%);
}

.timeline-item:last-child::before {
    display: none;
}

.year {
    width: 80px;
    font-weight: 600;
    color: #1a73e8;
    flex-shrink: 0;
}

.event {
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    background-color: #f8fafc;
    border-radius: 4px;
    color: #4a5568;
    position: relative;
}

.event::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1a73e8;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #1a73e8;
}

/* 核心价值观列表 */
.value-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-list li {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.value-list strong {
    display: block;
    color: #1a73e8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.notice-container .news-module {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.notice-container .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 10px;
}

.notice-container .module-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    position: relative;
}

.notice-container .module-header h3:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1e50a2;
}

.notice-container .news-list {
    margin: 0;
    padding: 0 20px;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.notice-container .news-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.notice-container .news-list::-webkit-scrollbar-thumb {
    background: transparent;
}

.notice-container .news-list::-webkit-scrollbar-track {
    background: transparent;
}

.notice-container .news-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e6e6e6;
}

.notice-container .news-list li:last-child {
    border-bottom: none;
}

.notice-container .news-date {
    color: #666;
    margin-right: 15px;
    font-size: 14px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.notice-container .news-list a {
    display: block;
    color: #1e293b;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.notice-container .news-list a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

/* 信息发布区域样式 */
.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.info-container .news-module {
    flex: 1;
    min-width: 300px;
}

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

.info-container .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.info-container .module-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4299e1 0%, #667eea 100%);
    transition: width 0.3s ease;
}

.info-container .news-module:hover .module-header::after {
    width: 100px;
}

.info-container .module-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.info-container .more-link {
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-container .more-link:hover {
    color: #2563eb;
}

.info-container .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.info-container .news-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.info-container .news-list::-webkit-scrollbar-thumb {
    background: transparent;
}

.info-container .news-list::-webkit-scrollbar-track {
    background: transparent;
}

.info-container .news-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-container .news-list li:last-child {
    border-bottom: none;
}

.info-container .news-list li:hover {
    padding-left: 10px;
}

.info-container .news-date {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 8px;
    font-size: 14px;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 4px;
}

.info-container .news-list a {
    display: block;
    color: #1e293b;
    text-decoration: none;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.info-container .news-list a:hover {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .info-container .news-module {
        width: 100%;
    }

    .info-container .module-header h3 {
        font-size: 16px;
    }

    .info-container .news-list li {
        padding: 8px 0;
    }

    .info-container .news-date {
        font-size: 12px;
        margin-right: 10px;
    }

    .info-container .news-list a {
        font-size: 13px;
    }
}

/* 政策法规区域样式 */
.law-regulation-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.law-regulation-container .news-module {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.law-regulation-container .news-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.law-regulation-container .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.law-regulation-container .module-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4299e1 0%, #667eea 100%);
    transition: width 0.3s ease;
}

.law-regulation-container .news-module:hover .module-header::after {
    width: 100px;
}

.law-regulation-container .module-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    padding-left: 15px;
    position: relative;
}

.law-regulation-container .module-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #2563eb;
    border-radius: 2px;
}

.law-regulation-container .more-link {
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
}

.law-regulation-container .more-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
}

.law-regulation-container .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 15px;
}

.law-regulation-container .news-list li {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.law-regulation-container .news-list li:hover {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.law-regulation-container .news-date {
    display: inline-block;
    margin-right: 15px;
    padding: 4px 12px;
    font-size: 14px;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 6px;
    min-width: 90px;
    text-align: center;
    font-weight: 500;
}

.law-regulation-container .news-list li:hover .news-date {
    background-color: #dbeafe;
    color: #3b82f6;
}

.law-regulation-container .news-list a {
    display: block;
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
    transition: color 0.3s ease;
}

.law-regulation-container .news-list a:hover {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .law-regulation-container {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .law-regulation-container .news-module {
        border-radius: 0;
        padding: 15px;
        margin: 0;
        box-shadow: none;
        background: #fff;
    }
    
    .law-regulation-container .module-header {
        padding: 15px;
        margin-bottom: 0;
        background: #f9f9f9;
    }
    
    .law-regulation-container .module-header h3 {
        font-size: 16px;
        font-weight: 600;
    }
    
    .law-regulation-container .news-list {
        display: block;
        padding: 0 15px;
    }
    
    .law-regulation-container .news-list li {
        display: flex;
        align-items: flex-start;
        padding: 12px 0;
        border: none;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
        background: transparent;
        flex-wrap: nowrap;
    }
    
    .law-regulation-container .news-list li:last-child {
        border-bottom: none;
    }
    
    .law-regulation-container .news-list li:hover {
        background: transparent;
        border-color: #f5f5f5;
        box-shadow: none;
        transform: none;
    }
    
    .law-regulation-container .news-date {
        min-width: 80px;
        font-size: 13px;
        margin-right: 10px;
        padding: 2px 5px;
        background: #f1f5f9;
        color: #666;
    }
    
    .law-regulation-container .news-list a {
        font-size: 14px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 空数据提示样式 */
.empty-message {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
    border-bottom: none !important;
}

.empty-message .no-data {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
}

.empty-message:hover {
    padding-left: 0 !important;
    background: none !important;
}

/* 健康领域列表样式 */
.health-domains {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-domains li {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    background-color: #f5f7fa;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #333;
}

.health-domain-item {
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
}

.health-domain-item::after {
    content: '→';
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.health-domains li:hover {
    background-color: #e6f0fa;
    color: #2563eb;
    transform: translateX(5px);
}

.health-domain-item:hover::after {
    opacity: 1;
    right: 10px;
}

.health-domains li.active {
    background-color: #2563eb;
    color: white;
    font-weight: 500;
}

/* 领域信息列表样式 */
.domain-info-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.domain-info-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background-color: #f8fafc;
    border-radius: 4px;
    font-size: 14px;
    color: #334155;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.error {
    text-align: center;
    padding: 20px;
    color: #ef4444;
    background-color: #fee2e2;
    border-radius: 6px;
}

/* 信息模块样式 */
.info-module {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-module h4 {
    margin: 0 0 15px;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* 友情链接区域样式 */
.friend-links-container .module-header h3 {
    padding-left: 0;
    position: relative;
    text-align: center;
}

.friend-links-container .module-header h3:before {
    display: none;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 15px 0;
    list-style: none;
    justify-content: center;
}

.friend-links li {
    margin-right: 15px;
}

/* 轮播相关容器确保不溢出 */
.banner-slider,
.showcase-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* 图片展示模块轮播按钮样式统一 */
.showcase-prev-btn.slider-btn,
.showcase-next-btn.slider-btn {
    width: 44px;
    height: 44px;
    opacity: 0;
    background: rgba(46, 116, 195, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.showcase-slider:hover .showcase-prev-btn.slider-btn,
.showcase-slider:hover .showcase-next-btn.slider-btn {
    opacity: 1;
}

.showcase-prev-btn.slider-btn:hover,
.showcase-next-btn.slider-btn:hover {
    background: rgba(46, 116, 195, 0.9);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.showcase-prev-btn.slider-btn::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.showcase-next-btn.slider-btn::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* ===============================================
   首页专用产品表格样式 - 完整清洁版本
   =============================================== */

/* 表格容器样式 */
#certification-panel .product-table-container {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 8px;
}

#certification-panel .product-table-container::-webkit-scrollbar {
    width: 6px;
}

#certification-panel .product-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#certification-panel .product-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #64748b, #94a3b8);
    border-radius: 10px;
}

#certification-panel .product-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #475569, #64748b);
}

/* 表格基础样式 */
#certification-panel .product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border: none;
}

#certification-panel .product-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 10px 10px 0 0;
}

/* 表头样式 */
#certification-panel .product-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

#certification-panel .product-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
}

#certification-panel .product-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    background: transparent;
    border: none;
}

#certification-panel .product-table th:first-child {
    border-radius: 10px 0 0 0;
    padding-left: 20px;
}

#certification-panel .product-table th:last-child {
    border-radius: 0 10px 0 0;
    padding-right: 20px;
}

#certification-panel .product-table th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #cbd5e0, transparent);
}

#certification-panel .product-table th:last-child::after {
    display: none;
}

/* 表格单元格样式 */
#certification-panel .product-table td {
    padding: 16px 12px;
    border: none;
    font-size: 13px;
    vertical-align: middle;
    position: relative;
    background: #ffffff;
    transition: all 0.3s ease;
}

#certification-panel .product-table td:first-child {
    padding-left: 20px;
}

#certification-panel .product-table td:last-child {
    padding-right: 20px;
}

/* 表格行样式 */
#certification-panel .product-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#certification-panel .product-table tbody tr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    opacity: 0.6;
}

#certification-panel .product-table tbody tr:last-child::after {
    display: none;
}

#certification-panel .product-table tbody tr:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

#certification-panel .product-table tbody tr:hover td {
    background: transparent;
}

/* 采信认定面板布局样式 */
#certification-panel .panel-left {
    width: 60%;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
}

#certification-panel .panel-right {
    width: 40%;
    padding: 25px;
}

#certification-panel .module-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#certification-panel:hover .module-header::after {
    width: 120px;
}

#certification-panel .module-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#certification-panel .more-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.1);
    font-weight: 500;
}

#certification-panel .more-link:hover {
    color: #3b82f6;
    text-decoration: none;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(2px);
}

/* ===============================================
   移动端响应式样式 - 仅覆盖必要的属性
   =============================================== */
@media (max-width: 768px) {
    #certification-panel .panel-left,
    #certification-panel .panel-right {
        width: 100%;
        padding: 20px;
    }
    
    #certification-panel .product-table-container {
        overflow-x: auto;
        max-height: 350px;
        padding: 6px;
    }
    
    #certification-panel .product-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    #certification-panel .product-table th,
    #certification-panel .product-table td {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    #certification-panel .product-table th:first-child,
    #certification-panel .product-table td:first-child {
        padding-left: 15px;
    }
    
    #certification-panel .product-table th:last-child,
    #certification-panel .product-table td:last-child {
        padding-right: 15px;
    }
}
