/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-slide {
    position: absolute; /* 改为绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 指示器样式 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 30px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    z-index: 20;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.banner-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 首页特别样式 */


/* 设置首张幻灯片显示，确保banner有高度 */
.banner-slide:first-child {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* 新闻区域样式 */
.news {
    padding: 60px 0;
}

/* 新闻网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) minmax(300px, 1fr);
    gap: 30px;
}

/* 图文新闻样式 */
.news-feature {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #F6F6F6;
    transition: all 0.3s;
    font-family: "Microsoft YaHei", sans-serif;
    cursor: default;
}

.news-feature:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2比例 */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.news-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-feature:hover .news-img img {
    transform: scale(1.05);
}

.news-info {
    position: relative;
    bottom: auto;
    padding: 20px;
    background: none;
    color: #000;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #000;
    cursor: pointer;
}

.news-info time {
    font-size: 14px;
    color: #999;
}

/* 新闻列表样式 */
.news-list {
    background: #F6F6F6;
    padding: 20px;
    border-radius: 8px;
    font-family: "Microsoft YaHei", sans-serif;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: default;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    transition: color 0.3s;
    cursor: pointer;
}

.news-item:hover h3 {
    color: var(--secondary-color);
}

.news-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.news-item time {
    color: #999;
}

/* 响应式设计 */

/*@media screen and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-list {
        grid-column: span 2;
    }
}*/

@media screen and (max-width: 1055px) {
    .news {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-list {
        grid-column: span 1;
    }
    
    .section {
        padding: 40px 0;
    }

    /* 特色新闻 */
    .news-feature {
        margin-bottom: 20px;
    }

    .news-feature .news-img {
        height: 200px;
    }

    .news-feature .news-info {
        padding: 15px;
    }

    .news-feature h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* 新闻列表 */
    .news-list .news-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .news-list .news-item h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .news-list .news-item p {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.6;
    }
    
    .banner-slider {
        height: 100%;
    }
    
    .banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 1.5s ease, visibility 1.5s ease;
        display: block;
    }
    
    .banner-slide.active {
        opacity: 1;
        visibility: visible;
    }
    
    .banner-img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* 移动端指示器样式 */
    .banner-indicators {
        bottom: 20px;
        padding: 0 10px;
        height: 24px;
    }
    
    .banner-indicator {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

@media screen and (max-width: 600px) {
    .section {
        padding: 30px 0;
    }
}

/* 新闻弹窗样式 */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.news-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 10px;
    padding-right: 40px;
}

.modal-time {
    color: #999;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.modal-image {
    margin-bottom: 20px;
}

.modal-image img {
    height: auto;
    border-radius: 4px;
}

.modal-text {
    line-height: 1.8;
    color: #333;
}

.modal-text p {
    text-indent: 2em;
    font-size: 16px;
    margin: 10px 0;
}

.modal-text p img {
    margin-left: -2em;
}

/* 移动端弹窗样式调整 */
@media screen and (max-width: 1055px) {
    .modal-content {
        width: 95%;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        padding: 15px;
    }
}

/* 经营范围样式 */
.business-scope {
    padding: 80px 0;
    background: #f8f8f8;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.scope-item {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.scope-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.scope-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    transition: transform 0.3s;
}

.scope-icon i {
    font-size: 40px;
    color: #fff;
}

.scope-item:hover .scope-icon {
    transform: scale(1.1);
}

.scope-item h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.scope-item p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* 响应式调整 */
@media screen and (max-width: 1055px) {
    .scope-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scope-item {
        padding: 30px 20px;
    }

    .scope-icon {
        width: 80px;
        height: 80px;
    }

    .scope-icon i {
        font-size: 32px;
    }

    .scope-item h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* 2K屏幕适配 */
@media screen and (min-width: 2000px) {
    .scope-item {
        padding: 50px;
    }
    
    .scope-icon {
        width: 120px;
        height: 120px;
    }
    
    .scope-icon i {
        font-size: 48px;
    }
    
    .scope-item h3 {
        font-size: 28px;
    }
    
    .scope-item p {
        font-size: 18px;
    }
    
    .modal-content {
        max-width: 1500px;
    }
    
    .modal-title {
        font-size: 28px;
    }
    
    .modal-text {
        font-size: 18px;
    }
    
    .modal-text p {
        font-size: 18px;
    }
}

/* 4K屏幕适配 */
@media screen and (min-width: 3000px) {
    .scope-item {
        padding: 60px;
    }
    
    .scope-icon {
        width: 140px;
        height: 140px;
    }
    
    .scope-icon i {
        font-size: 56px;
    }
    
    .scope-item h3 {
        font-size: 32px;
    }
    
    .scope-item p {
        font-size: 20px;
    }
    
    .modal-content {
        max-width: 1800px;
    }
    
    .modal-title {
        font-size: 32px;
    }
    
    .modal-text {
        font-size: 20px;
    }
    
    .modal-text p {
        font-size: 20px;
    }
}

/* 经营范围链接样式 */
.scope-grid a.scope-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.scope-grid a.scope-item:hover {
    text-decoration: none;
    color: inherit;
} 