/* 首页 —— 原全局 index.scss + Home.vue scoped 合并生效值（1:1 对应生产渲染） */

/* ---- 轮播（原 index.scss .banner） ---- */
.banner { width: 100%; padding: 20px 0; position: relative; background: #0B1734 url("/static/common/imgs/banner04.jpg") center/cover no-repeat; }
.banner-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden;
}
.banner-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(2px) brightness(0.62) saturate(1.1); transform: scale(1.15);
}
.swiper-container {
    width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1;
}
.banner .swiper {
    height: calc(100vw * 766 / 2566); max-height: 478px;
    border-radius: 12px; overflow: hidden; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.banner .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
/* 图片加载失败/缺失时的兜底底色，避免出现白块 */
.banner .swiper-slide { background: var(--navy-800); }
.no-link { width: 100%; height: 100%; cursor: default; }
.banner .swiper-button-next, .banner .swiper-button-prev { color: #fff; }
.banner .swiper-pagination .swiper-pagination-bullet { background: #fff; }
.banner .swiper-pagination .swiper-pagination-bullet-active {
    width: 24px; height: 2px; border-radius: 0; background: var(--gold-500);
}

/* ---- 首页内容（原 index.scss .home-content/.section） ---- */
.home-content { padding: 60px 20px; }
.home-content .section { max-width: none; margin: 0 0 80px; padding: 0; }
.home-content .section.news-section { padding: 60px 20px; }
.section-title { text-align: center; font-size: 28px; color: #333; margin-bottom: 10px; }
.section-line { width: 48px; height: 2px; background: var(--gold-500); margin: 0 auto 10px; }
.section-subtitle { text-align: center; font-size: 14px; color: #666; letter-spacing: 0.24em; margin-bottom: 40px; }

/* ---- 关于集团（原 Home.vue .about-content） ---- */
.about-content {
    max-width: 95vw; margin: 0 auto; padding: 60px;
    background: #f5f7fa; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.about-header { text-align: center; margin-bottom: 50px; }
.about-header .section-title { font-size: 28px; margin-bottom: 15px; }
.about-header .section-line { width: 80px; height: 4px; margin: 0 auto 15px; }
.about-header .section-subtitle { font-size: 16px; color: #999; letter-spacing: 0.24em; margin-bottom: 0; }
.about-body { display: flex; gap: 80px; align-items: center; }
.about-body .left { flex: 1; }
.about-body .left p { margin-bottom: 20px; line-height: 2; font-size: 20px; }
.about-body .left .suojin { text-indent: 2em; }
.about-body .right { flex: 0 0 600px; }
.about-body .right img { width: 100%; border-radius: 12px; }
.more-link { color: var(--navy-600); font-weight: bold; margin-top: 20px; display: inline-block; }

/* ---- 公告/新闻（原 .news-section） ---- */
.news-section { background: #f5f5f5; padding: 60px 20px; }
.news-section .section-header {
    max-width: 1400px; margin: 0 auto 40px;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.news-section .section-header-left { text-align: left; }
.news-container { max-width: 1400px; margin: 0 auto; }
.news-tabs { display: flex; gap: 24px; }
.news-tabs .tab {
    padding: 10px 4px; cursor: pointer; background: transparent; border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s; font-size: 15px;
}
.news-tabs .tab.active { color: var(--navy-600); border-color: var(--gold-500); font-weight: 600; }
.news-tabs .tab:hover:not(.active) { color: var(--navy-600); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-md); cursor: pointer; transition: all 0.3s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card .card-image { width: 100%; height: 200px; overflow: hidden; }
.news-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .card-image img { transform: scale(1.03); }
.news-card .card-content { padding: 24px; }
.news-card .card-content h5 {
    font-size: 18px; color: #333; font-weight: 600; line-height: 1.5; margin-bottom: 12px;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.news-card .card-date { font-size: 14px; color: #999; }
.empty-state {
    grid-column: 1 / -1; padding: 60px; text-align: center; color: #999;
    background: #fff; border-radius: 12px;
}
.more-btn-wrap { text-align: center; margin-top: 30px; }
.more-btn {
    display: inline-block; padding: 12px 40px; background: var(--navy-600); color: #fff;
    border-radius: 6px; text-decoration: none; font-size: 15px; transition: all 0.3s;
}
.more-btn:hover { background: var(--navy-500); transform: translateY(-2px); }

/* ---- 招贤纳士（原 .recruitment-section） ---- */
.recruitment-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 40px; align-items: center;
}
.recruitment-content img { flex: 0 0 400px; border-radius: 8px; }
.recruitment-content .recruitment-text { flex: 1; }
.recruitment-content .recruitment-text p { margin-bottom: 15px; line-height: 1.8; }
.recruitment-content .recruitment-text span { color: var(--gold-600); }

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .about-content { padding: 30px; }
    .about-header { margin-bottom: 30px; }
    .about-header .section-title { font-size: 26px; }
    .about-body { flex-direction: column; gap: 30px; }
    .about-body .left p { font-size: 16px; }
    .news-section { padding: 40px 20px; }
    .news-section .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-card .card-image { height: 180px; }
    .recruitment-content { flex-direction: column; }
    .recruitment-content img { flex: none; width: 100%; }
}
