/* 主轮播图 */
.hero-section {
    margin-top: 80px;
    position: relative;
    height: 60vh;  /* 调整为60vh */
    min-height: 350px;
    overflow: hidden;
    width: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

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

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

.indicator.active {
    background: #C03D2D;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 轮播控制按钮 */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        height: 35vh;  /* 调整为35vh */
        min-height: 240px;
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 30vh;  /* 调整为30vh */
        min-height: 200px;
    }
}
@media (max-width: 768px) {
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
    
    .hero-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

.hero-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    max-width: 600px;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(1px);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

/* 新闻资讯 */
.news-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.more-link{
    font-size: 16px;
    font-weight: bold;
}
.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-date {
    color: #999;
    font-size: 14px;
}

/* 新增：使用news-list的news-meta样式 */
.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #999;
}

.news-source {
    font-weight: 500;
    color: #666;
}

.news-time {
    color: #999;
    white-space: nowrap;
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.views {
    color: #999;
}

/* 商务合作 */
.cooperation-section {
    padding: 40px 0;
    background: #C03D2D;
    color: white;
}

.cooperation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cooperation-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cooperation-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cooperation-slogon {
    margin-top: 40px;
}

.cooperation-image img {
    width: 100%;
    border-radius: 10px;
}

/* 服务体系 */
.services-section {
    padding: 40px 0 0;
}

.section-content-cover img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 企业公告 */
.announcements-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.announcements-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.announcements-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d4574a;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch; /* 确保所有项目高度一致 */
}
/* 确保链接不影响布局 */
.announcements-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcements-grid a:hover {
    text-decoration: none;
}
/* 确保announcement-item填满容器 */
.announcement-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%; /* 填满网格单元格 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.announcement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #d4574a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.announcement-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.announcement-item p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 - 首页 */
@media (max-width: 768px) {
    .hero-content {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .cooperation-text h2 {
        font-size: 28px;
    }
    
    .cooperation-text p {
        font-size: 16px;
    }
    
    .cooperation-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .announcements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .announcement-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-section {
        padding: 30px 0;
    }
    
    .cooperation-section {
        padding: 30px 0;
    }
    
    .services-section {
        padding: 30px 0 0;
    }
    
    .announcements-section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .cooperation-text h2 {
        font-size: 24px;
    }
    
    .cooperation-text p {
        font-size: 16px;
    }
}

/* 首页新闻项图片占位样式 */
.news-item .news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

/* 首页新闻项占位样式 */
.news-item .news-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.news-item .news-image.placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" opacity="0.3"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') center/60px no-repeat;
}

.news-item .news-image.placeholder .placeholder-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
}

.news-item .news-image.placeholder .news-link:hover {
    transform: none;
}

.news-item .news-image.placeholder .placeholder-text {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.news-item .news-image.placeholder:hover .placeholder-text {
    opacity: 0.8;
}

.news-item .news-image.placeholder .placeholder-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    opacity: 0.8;
    margin-top: 40px;
}

/* 首页新闻项多样化占位样式 */
.news-item:nth-child(odd) .news-image.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-item:nth-child(even) .news-image.placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 不同图标样式 */
.news-item:nth-child(odd) .news-image.placeholder::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" opacity="0.3"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') center/60px no-repeat;
}

.news-item:nth-child(even) .news-image.placeholder::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" opacity="0.3"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') center/60px no-repeat;
}

/* 悬停效果 */
.news-item:hover .news-image.placeholder {
    transform: none;
}

.news-item:hover .news-image.placeholder::before {
    opacity: 0.5;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 新闻链接样式优化 */
.news-item .news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item .news-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-item .news-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-item .news-content h3 a:hover {
    color: #C03D2D;
    text-decoration: none;
}

.news-item .news-content h3 a:visited {
    color: #333;
    text-decoration: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-item .news-image.placeholder::before {
        background-size: 50px;
    }
    
    .news-item .news-image.placeholder .placeholder-text {
        font-size: 13px;
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    .news-item .news-image.placeholder::before {
        background-size: 45px;
    }
    
    .news-item .news-image.placeholder .placeholder-text {
        font-size: 12px;
        margin-top: 30px;
    }
}
/* 响应式图片处理 */
.hero-slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 小屏幕专用样式 */
@media (max-width: 480px) {
    .hero-section {
        height: 30vh;
        min-height: 200px;
    }
    
    /* 小屏幕图片优化 */
    .hero-slide picture img {
        object-fit: cover;
        object-position: center top; /* 小图片通常重点在上部 */
    }
    
    /* 控制按钮在小屏幕上的调整 */
    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .hero-prev {
        left: 8px;
    }
    
    .hero-next {
        right: 8px;
    }
    
    /* 指示器在小屏幕上的调整 */
    .hero-indicators {
        bottom: 12px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}
