/* ============================================================
   首页样式 - 独立CSS文件
   文件位置: assets/css/home.css
   ============================================================ */

/* ============================================================
   轮播图
   ============================================================ */
.banner-slider {
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
    background: var(--gradient);
}

.banner-slider .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider .slide.active {
    opacity: 1;
}

.banner-slider .slide-content {
    position: relative;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 950px;
    z-index: 10;
    padding: 20px;
    transform: translateY(-40px);
}

.banner-slider .slide-content h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.banner-slider .slide-content h1 .highlight {
    background: linear-gradient(135deg, #D4A843, #F5D68A);
    padding: 4px 16px;
    border-radius: 8px;
    display: inline-block;
}

.banner-slider .slide-content p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 16px;
    line-height: 1.6;
}

.banner-slider .slide-content .service-tags {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.banner-slider .slide-content .service-tags span {
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.25);
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.banner-slider .slide-content .sub-info {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 18px;
}

.banner-slider .slide-content .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-slider .slide-content .btn {
    padding: 12px 32px;
    font-size: 14px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.banner-slider .slide-content .btn-primary {
    background: linear-gradient(135deg, #D4A843, #F5D68A);
    color: #1A2332;
    box-shadow: 0 4px 25px rgba(212, 168, 67, 0.4);
}

.banner-slider .slide-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 168, 67, 0.5);
}

.banner-slider .slide-content .btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.banner-slider .slide-content .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

.banner-stats-float {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px);
    padding: 18px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-stats-float .stat-item {
    text-align: center;
    color: #fff;
}

.banner-stats-float .stat-item .stat-number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #D4A843;
}

.banner-stats-float .stat-item .stat-label {
    font-size: 12px;
    opacity: 0.7;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 20;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.slider-dots .dot.active {
    background: #D4A843;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A843, #F5D68A);
    z-index: 25;
    transition: width 0.1s linear;
    width: 0%;
}

.banner-stats-mobile {
    display: none;
}

/* ============================================================
   首页数据中心 - 第一条三图全宽，其他3列
   ============================================================ */
.home-environment {
    padding: 60px 0;
    background: #F5F8FC;
}

/* ===== 第一条：三张图片展示（全宽） ===== */
.home-environment .first-env-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.home-environment .first-env-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 58, 106, 0.12);
    border-color: #1A3A6A;
}

.home-environment .first-env-card .env-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 280px;
    overflow: hidden;
    background: #F5F8FC;
    padding: 6px;
}

.home-environment .first-env-card .env-images .env-img {
    overflow: hidden;
    background: #E8F0F8;
    border-radius: 8px;
}

.home-environment .first-env-card .env-images .env-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-environment .first-env-card:hover .env-images .env-img img {
    transform: scale(1.03);
}

.home-environment .first-env-card .env-images .env-img .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(26, 58, 106, 0.15);
    background: #F5F8FC;
    border-radius: 8px;
}

.home-environment .first-env-card .env-image-desc {
    padding: 8px 24px;
    font-size: 14px;
    color: #5A6B7C;
    text-align: center;
    background: #FAFBFC;
    border-bottom: 1px solid #f0f4f8;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-environment .first-env-card .env-image-desc span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.home-environment .first-env-card .env-header {
    padding: 16px 24px 8px;
}

.home-environment .first-env-card .env-header h3 {
    font-size: 20px;
    color: #1A3A6A;
    margin: 0;
    font-weight: 700;
}

.home-environment .first-env-card .env-body {
    padding: 0 24px 24px;
}

.home-environment .first-env-card .env-body .summary {
    color: #5A6B7C;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.home-environment .first-env-card .env-body .content {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.8;
    display: none;
}

.home-environment .first-env-card .env-body .content.show {
    display: block;
}

.home-environment .first-env-card .env-body .toggle-btn {
    background: none;
    border: none;
    color: #1A3A6A;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-size: 14px;
    transition: all 0.3s;
}

.home-environment .first-env-card .env-body .toggle-btn:hover {
    color: #4A90D9;
}

/* ===== 其他：3个一排展示（强制3列） ===== */
.home-environment .other-env-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
}

.home-environment .other-env-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
}

.home-environment .other-env-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 58, 106, 0.1);
    border-color: #1A3A6A;
}

.home-environment .other-env-card .env-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E8F0F8;
}

.home-environment .other-env-card .env-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-environment .other-env-card:hover .env-image img {
    transform: scale(1.05);
}

.home-environment .other-env-card .env-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(26, 58, 106, 0.15);
    background: #F5F8FC;
}

.home-environment .other-env-card .env-body {
    padding: 12px 14px 16px;
}

.home-environment .other-env-card .env-body h4 {
    font-size: 14px;
    color: #1A3A6A;
    margin: 0 0 3px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-environment .other-env-card .env-body p {
    font-size: 12px;
    color: #5A6B7C;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-environment .env-more {
    text-align: center;
    margin-top: 30px;
}

/* ============================================================
   选择我们的优势 - 大图展示
   ============================================================ */
.home-advantage {
    padding: 60px 0;
    background: #fff;
}

.home-advantage .advantage-banner {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8edf4;
    transition: all 0.3s;
    position: relative;
}

.home-advantage .advantage-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.home-advantage .advantage-banner:hover img {
    transform: scale(1.02);
}

.home-advantage .advantage-banner .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    color: #fff;
}

.home-advantage .advantage-banner .banner-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-advantage .advantage-banner .banner-overlay p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

/* ============================================================
   首页资讯 - 带封面图片
   ============================================================ */
.home-news {
    padding: 60px 0;
    background: #F5F8FC;
}

.home-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-news .news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #f0f4f8;
}

.home-news .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 58, 106, 0.12);
}

.home-news .news-card .news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #E8F0F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(26, 58, 106, 0.15);
}

.home-news .news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-news .news-card:hover .news-image img {
    transform: scale(1.05);
}

.home-news .news-card .news-body {
    padding: 16px 18px 20px;
}

.home-news .news-card .news-body .news-category {
    display: inline-block;
    background: #E8F0F8;
    color: #1A3A6A;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.home-news .news-card .news-body h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.home-news .news-card .news-body h3 a {
    color: #1A2332;
    text-decoration: none;
    transition: all 0.3s;
}

.home-news .news-card .news-body h3 a:hover {
    color: #1A3A6A;
}

.home-news .news-card .news-body p {
    color: #5A6B7C;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.home-news .news-card .news-body .news-meta {
    display: flex;
    justify-content: space-between;
    color: #5A6B7C;
    font-size: 13px;
    border-top: 1px solid #f0f4f8;
    padding-top: 12px;
}

.home-news .news-more {
    text-align: center;
    margin-top: 30px;
}

/* ============================================================
   响应式适配
   ============================================================ */

/* 平板端 */
@media (max-width: 1024px) {
    .banner-slider {
        height: 420px;
    }
    .banner-slider .slide-content h1 {
        font-size: 36px;
    }
    .banner-stats-float {
        bottom: 50px;
        padding: 14px 30px;
        gap: 30px;
    }
    .banner-stats-float .stat-item .stat-number {
        font-size: 22px;
    }
    .home-environment .first-env-card .env-images {
        height: 220px;
    }
    .home-environment .other-env-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px;
    }
    .home-news .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .banner-slider {
        height: 360px;
    }
    .banner-slider .slide-content h1 {
        font-size: 26px;
    }
    .banner-slider .slide-content p {
        font-size: 13px;
    }
    .banner-slider .slide-content .service-tags span {
        font-size: 11px;
        padding: 3px 14px;
    }
    .banner-stats-float {
        display: none;
    }
    .banner-stats-mobile {
        display: flex !important;
        justify-content: center;
        gap: 20px;
        padding: 14px 0;
        background: rgba(0, 0, 0, 0.2);
    }
    .banner-stats-mobile .stat-item {
        text-align: center;
        color: #fff;
    }
    .banner-stats-mobile .stat-item .stat-number {
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: #D4A843;
    }
    .banner-stats-mobile .stat-item .stat-label {
        font-size: 11px;
        opacity: 0.7;
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .slider-arrow.prev {
        left: 10px;
    }
    .slider-arrow.next {
        right: 10px;
    }
    .slider-dots {
        bottom: 12px;
        gap: 10px;
    }
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    .home-environment {
        padding: 40px 0;
    }
    .home-environment .first-env-card .env-images {
        height: 180px;
        gap: 4px;
        padding: 4px;
    }
    .home-environment .first-env-card .env-image-desc {
        font-size: 13px;
        padding: 6px 16px;
        min-height: 34px;
    }
    .home-environment .first-env-card .env-header {
        padding: 12px 16px 6px;
    }
    .home-environment .first-env-card .env-header h3 {
        font-size: 17px;
    }
    .home-environment .first-env-card .env-body {
        padding: 0 16px 16px;
    }
    .home-environment .first-env-card .env-body .summary {
        font-size: 14px;
    }
    .home-environment .other-env-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }
    .home-environment .other-env-card .env-body h4 {
        font-size: 13px;
    }
    .home-environment .other-env-card .env-body p {
        font-size: 11px;
    }
    .home-advantage {
        padding: 40px 0;
    }
    .home-advantage .advantage-banner .banner-overlay {
        padding: 16px 20px 20px;
    }
    .home-advantage .advantage-banner .banner-overlay h3 {
        font-size: 18px;
    }
    .home-advantage .advantage-banner .banner-overlay p {
        font-size: 12px;
    }
    .home-news {
        padding: 40px 0;
    }
    .home-news .news-grid {
        grid-template-columns: 1fr;
    }
    .home-news .news-card .news-image {
        height: 150px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .banner-slider {
        height: 320px;
    }
    .banner-slider .slide-content h1 {
        font-size: 22px;
    }
    .banner-slider .slide-content p {
        font-size: 12px;
    }
    .banner-slider .slide-content .service-tags span {
        font-size: 10px;
        padding: 2px 10px;
    }
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .home-environment .first-env-card .env-images {
        height: 130px;
        gap: 3px;
        padding: 3px;
    }
    .home-environment .first-env-card .env-image-desc {
        font-size: 12px;
        padding: 4px 12px;
        min-height: 28px;
    }
    .home-environment .first-env-card .env-header h3 {
        font-size: 15px;
    }
    .home-environment .first-env-card .env-body .summary {
        font-size: 13px;
    }
    .home-environment .other-env-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .home-environment .other-env-card .env-body {
        padding: 10px 12px 14px;
    }
    .home-environment .other-env-card .env-body h4 {
        font-size: 14px;
    }
    .home-environment .other-env-card .env-body p {
        font-size: 12px;
    }
    .home-news .news-card .news-image {
        height: 120px;
    }
}

/* 超大屏 */
@media (min-width: 1920px) {
    .banner-slider {
        height: 680px;
    }
    .banner-slider .slide-content h1 {
        font-size: 54px;
    }
    .home-advantage .advantage-banner {
        max-width: 1400px;
    }
    .home-environment .first-env-card .env-images {
        height: 340px;
    }
    .home-environment .other-env-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px;
    }
    .home-news .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-news .news-card .news-image {
        height: 220px;
    }
}