/* 英雄区域 */
.hero {
    height: 100vh;
    background: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 0 1rem;
    margin-top: 60px;
}


/*新闻中心样式开始*/
 /* 新闻中心样式 */
 .news-center {
    padding: 5rem 1rem;
    background: #f8f9fa;
}

.container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
/*左侧图片轮播新闻样式*/
.news-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 357px;
    overflow: hidden;
}

.slider-item {
    display: none;
    position: relative;    
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    transform: translateX(100%);
}

.slider-item.active {
    display: block;
    transform: translateX(0);
}

.slider-item.prev {
    transform: translateX(-100%);
}

.slider-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;    
}

.slider-title {
    flex: 1;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(234, 50, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(234, 50, 0, 0.9);
}

.slider-counter {
    font-weight: bold;
}

/*右侧新闻列表样式*/
.news-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.news-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    position: relative;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
}

.tab-btn.active {
    color: #EA3200;
    border-bottom: 2px solid #EA3200;
}

.more-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #EA3200;
    text-decoration: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    min-width: 60px;   
    margin-bottom: 0.5rem;
}

.news-title-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    /* 新增flex布局 */
    gap: 10px;
    /* 日期和标题间距 */
}

.news-title-list li:last-child {
    border-bottom: none;
}

.news-title-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.news-title-list a:hover {
    color: #EA3200;
}

/* 标签页悬停效果 */
.news-tabs:hover .tab-btn.active {
    color: #666;
    border-bottom-color: #eee;
}

.news-tabs:hover .tab-btn:hover {
    color: #EA3200;
    border-bottom-color: #EA3200;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }   
}
/*新闻模块样式结束*/



/* 科印业务模块 */
.features {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-decoration: none;
    color: #333;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}