/* 移动端首页样式优化 */
@media (max-width: 768px) {
    /* 基本布局优化 */
    body {
        overflow-x: hidden;
    }

    .main-content {
        padding: 0;
        overflow-x: hidden;
    }

    /* 顶部LOGO和菜单调整 */
    .logo {
        max-width: 60%;
        height: auto;
    }

    .toggle-btn {
        padding: 8px;
    }

    /* 展示区域优化 - 顶部主轮播图 */
    .showcase-container {
        margin: 0 auto 15px;
        padding: 0;
        position: relative;
        box-sizing: border-box;
        width: 100%;
    }

    .showcase-slider {
        position: relative;
        border-radius: 0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        height: auto;
        min-height: 180px;
    }

    .showcase-slide {
        border-radius: 0;
        overflow: hidden;
        position: relative;
        height: auto;
        min-height: 180px;
    }

    .showcase-slide img {
        height: auto;
        min-height: 180px;
        object-fit: cover;
        object-position: center;
        width: 100%;
        display: block;
    }

    .showcase-slide .slide-text {
        padding: 15px;
        background: transparent;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .showcase-slide .slide-text h2 {
        font-size: 17px;
        margin-bottom: 4px;
        color: #fff;
        text-shadow: none;
    }

    .showcase-slide .slide-text p {
        font-size: 14px;
        -webkit-line-clamp: 2;
        max-height: 42px;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: none;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    /* 轮播控制器样式 */
    .showcase-prev-btn,
    .showcase-next-btn,
    .prev-btn,
    .next-btn {
        width: 36px;
        height: 36px;
        opacity: 0.7;
        background: rgba(0, 0, 0, 0.4);
        color: #fff;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        font-size: 18px;
        line-height: 1;
        font-weight: bold;
    }

    .showcase-prev-btn,
    .prev-btn {
        left: 10px;
    }

    .showcase-next-btn,
    .next-btn {
        right: 10px;
    }

    /* 轮播点容器样式 */
    .dots-container {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 5px 12px;
        background: rgba(46, 116, 195, 0.3);
        border-radius: 20px;
        width: fit-content;
        margin: -20px auto 0;
        position: relative;
        z-index: 20;
    }

    /* 轮播点样式 */
    .dot {
        width: 8px;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .dot.active {
        width: 20px;
        background-color: #fff;
        border-radius: 10px;
    }

    /* banner和新闻容器 */
    .banner-news-container {
        flex-direction: column;
        gap: 0;
        margin: 0 auto;
        width: 100%;
        padding: 0;
    }

    /* banner轮播区域 */
    .banner {
        width: 100%;
        border-radius: 0;
        overflow: hidden;
        background: transparent;
        display: block;
        box-sizing: border-box;
        height: auto;
        z-index: 1;
        margin-bottom: 15px;
    }

    .banner-slider {
        height: auto;
        min-height: 200px;
        touch-action: pan-y;
        -webkit-user-select: none;
        user-select: none;
        border-radius: 0;
        overflow: hidden;
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background-color: rgba(255, 255, 255, 0.5);
    }

    .slide {
        position: absolute;
        width: 100%;
        height: auto;
        min-height: 200px;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

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

    .slide img {
        height: auto;
        min-height: 200px;
        object-fit: cover;
        object-position: center;
        width: 100%;
        display: block;
        background-color: #f5f5f5;
    }

    .slide-text {
        padding: 15px;
        background: transparent;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3;
    }

    .slide-text p {
        font-size: 15px;
        color: #fff;
        text-shadow: none;
        margin: 0;
        font-weight: 500;
    }

    /* 轮播按钮优化 */
    .prev-btn,
    .next-btn {
        z-index: 4;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0.8;
    }

    /* 轮播指示器容器 */
    .banner-dots-container {
        display: flex;
        justify-content: center;
        margin-top: -30px;
        margin-bottom: 15px;
        z-index: 5;
        position: relative;
        background: rgba(46, 116, 195, 0.3);
        border-radius: 20px;
        width: fit-content;
        padding: 5px 12px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 新闻动态模块优化 */
    .news-module {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        background-color: #fff;
        height: auto;
        margin-bottom: 15px;
    }

    .featured-news {
        margin-top: 0;
    }

    .module-header {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f9f9f9;
    }

    .module-header h3 {
        font-size: 16px;
        margin: 0;
        color: #333;
        position: relative;
        padding-left: 12px;
        font-weight: 600;
    }

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

    .more-link {
        font-size: 13px;
        color: #3c78d8;
        text-decoration: none;
        padding: 3px 10px;
        background: rgba(60, 120, 216, 0.1);
        border-radius: 20px;
    }

    .news-list {
        padding: 0 15px;
        max-height: none;
        overflow-y: visible;
        height: auto;
    }

    .news-list li {
        padding: 12px 0;
        display: flex;
        align-items: flex-start;
        border-bottom: 1px solid #f5f5f5;
        flex-wrap: nowrap;
    }

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

    .news-date {
        min-width: 80px;
        font-size: 13px;
        color: #666;
        display: inline-block;
        flex-shrink: 0;
        text-align: left;
        margin-right: 10px;
        line-height: 1.5;
        font-weight: normal;
        white-space: nowrap;
    }

    .news-list a {
        font-size: 14px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        color: #333;
        text-decoration: none;
    }

    /* 轮播区域特别样式 */
    .banner.news-module {
        background: transparent;
        box-shadow: none;
    }

    /* 修复重叠问题 */
    .banner, .news-module, .showcase-container {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 修复顶部导航栏溢出问题 */
    .header-top, .main-nav {
        max-width: 100%;
        padding: 0 10px;
    }

    /* 页脚优化 */
    .footer {
        padding: 20px 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 15px;
    }

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

    .footer-section p, .footer-section li, .footer-section a {
        font-size: 14px;
    }

    .copyright {
        font-size: 12px;
    }

    /* 信息发布区域优化 */
    .info-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0 auto;
        width: 100%;
        padding: 0;
    }

    .info-container .news-module {
        width: 100%;
        margin: 0 0 15px 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .info-container .module-header {
        padding: 15px;
        background-color: #f9f9f9;
    }
    
    .info-container .module-header h3 {
        font-size: 16px;
        font-weight: 600;
    }
    
    .info-container .module-header h3::before {
        height: 16px;
        width: 4px;
        background: #3c78d8;
    }
    
    .info-container .news-list {
        padding: 0 15px;
    }
    
    .info-container .news-list li {
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .info-container .news-list li:last-child {
        border-bottom: none;
    }
    
    .info-container .news-date {
        min-width: 80px;
        font-size: 13px;
        color: #666;
        display: inline-block;
        flex-shrink: 0;
        text-align: left;
        margin-right: 10px;
        line-height: 1.5;
        font-weight: normal;
        white-space: nowrap;
    }
    
    .info-container .news-list a {
        font-size: 14px;
        flex: 1;
        line-height: 1.5;
    }

    /* 服务导航区域优化 */
    .service-nav-container {
        flex-direction: column;
        gap: 0;
        margin: 0 auto 15px;
        width: 100%;
        padding: 0;
    }

    .service-nav-item {
        width: 100%;
        margin: 0 0 1px 0;
        padding: 15px;
        border-radius: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border: none;
        background: #f9f9f9;
    }

    /* 点击效果优化 */
    .service-nav-item:active,
    .cert-type:active,
    .standard-module:active,
    .special-column:active {
        transform: scale(0.98);
        transition: transform 0.1s;
        background-color: #f0f0f0;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        background: rgba(60, 120, 216, 0.1);
    }

    .service-text h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .service-text p {
        font-size: 13px;
    }

    /* 服务内容面板优化 */
    .service-content-panels {
        margin: 0 auto 15px;
        border-radius: 0;
        width: 100%;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .service-panel {
        padding: 15px;
        flex-direction: column;
    }

    .panel-left {
        min-width: auto;
        margin-bottom: 15px;
    }

    .panel-left p {
        font-size: 14px;
        line-height: 1.6;
        text-align: justify;
    }

    .health-domains li {
        padding: 10px 15px;
        font-size: 14px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        background: #f9f9f9;
        margin-bottom: 1px;
        border-radius: 4px;
    }

    /* 标准模块优化 */
    .standard-modules {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .standard-module {
        padding: 15px;
        min-height: 80px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border-radius: 4px;
        background: #f9f9f9;
    }

    .standard-module h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .standard-module p {
        font-size: 13px;
    }

    /* 认证类型优化 */
    .certification-types {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cert-type {
        padding: 15px;
        min-height: 80px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border-radius: 4px;
        background: #f9f9f9;
    }

    .cert-type h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .cert-type p {
        font-size: 13px;
    }

    /* 专题专栏优化 */
    .special-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .special-column {
        padding: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border-radius: 4px;
        background: #f9f9f9;
        min-height: 80px;
    }

    .special-column h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .special-column p {
        font-size: 13px;
    }

    /* 友情链接区域优化 */
    .friend-links-container {
        margin: 0 auto 15px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .friend-links-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .friend-link-item {
        height: 60px;
        padding: 10px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        background: #f9f9f9;
        border-radius: 4px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .friend-link-image {
        max-height: 50px;
    }
    
    /* 提高点击区域 */
    .news-list a, 
    .more-link,
    .service-nav-item,
    .cert-type,
    .standard-module,
    .special-column {
        position: relative;
    }
    
    .news-list a::after, 
    .more-link::after,
    .service-nav-item::after,
    .cert-type::after,
    .standard-module::after,
    .special-column::after {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        z-index: 1;
    }

    /* 在非常窄的屏幕上允许日期和标题垂直排列 */
    @media (max-width: 360px) {
        .news-list li {
            flex-direction: column;
        }
        
        .news-date {
            margin-bottom: 5px;
            margin-right: 0;
        }
    }

    /* 小屏优化补充 */
    @media (max-width: 320px) {
        .info-container .news-list li {
            flex-direction: column;
        }
        
        .info-container .news-date {
            margin-bottom: 5px;
            margin-right: 0;
        }
        
        .info-container .news-list a {
            padding-left: 0;
        }
    }

    /* 信息发布和政策法规标题栏优化 */
    .info-container .module-header,
    #lawList .module-header,
    #newsList .module-header {
        padding: 15px;
        border-bottom: none;
        background: #f9f9f9;
        position: relative;
    }
    
    .info-container .module-header h3,
    #lawList .module-header h3,
    #newsList .module-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        display: flex;
        align-items: center;
    }
    
    .info-container .module-header h3::before,
    #lawList .module-header h3::before,
    #newsList .module-header h3::before {
        height: 16px;
        width: 4px;
        background: #3c78d8;
        border-radius: 2px;
    }
    
    .info-container .more-link,
    #lawList .more-link,
    #newsList .more-link {
        font-size: 13px;
        color: #3c78d8;
        padding: 3px 10px;
        border-radius: 20px;
        text-decoration: none;
        background-color: rgba(60, 120, 216, 0.1);
    }
    
    /* 信息发布和政策法规内容区域优化 */
    .info-container .news-list,
    #lawList .news-list,
    #newsList .news-list {
        padding: 0 15px;
        background-color: #fff;
    }
    
    .info-container .news-list li,
    #lawList .news-list li,
    #newsList .news-list li {
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
        display: flex;
        align-items: flex-start;
    }
    
    .info-container .news-list li:last-child,
    #lawList .news-list li:last-child,
    #newsList .news-list li:last-child {
        border-bottom: none;
    }
    
    .info-container .news-date,
    #lawList .news-date,
    #newsList .news-date {
        min-width: 80px;
        font-size: 13px;
        color: #666;
        display: inline-block;
        flex-shrink: 0;
        text-align: left;
        margin-right: 10px;
        line-height: 1.5;
        font-weight: normal;
        white-space: nowrap;
    }
    
    .info-container .news-list a,
    #lawList .news-list a,
    #newsList .news-list a {
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 信息发布和政策法规容器优化 */
    .info-container .news-module,
    #lawList.news-module,
    #newsList.news-module {
        border-radius: 0;
        overflow: hidden;
        margin-bottom: 15px;
        box-shadow: none;
        background-color: #fff;
    }
    
    /* 统一新闻动态在banner-news-container中的样式 */
    .banner-news-container #newsList {
        width: 100%;
        margin: 0;
    }
}

/* 小屏幕手机额外优化 */
@media (max-width: 480px) {
    .banner-slider,
    .showcase-slider {
        height: auto;
        min-height: 160px;
    }
    
    .slide img {
        height: auto;
        min-height: 160px;
    }
    
    .showcase-slide {
        height: auto;
        min-height: 160px;
    }
    
    .showcase-slide img {
        height: auto;
        min-height: 160px;
    }
    
    .news-date {
        min-width: 75px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .news-list a {
        font-size: 13px;
    }
    
    .standard-modules,
    .certification-types {
        grid-template-columns: 1fr;
    }
    
    .standard-module,
    .cert-type {
        min-height: 70px;
    }
    
    .service-icon {
        width: 36px;
        height: 36px;
    }
    
    .service-icon svg {
        width: 18px;
        height: 18px;
    }
} 