/* ========================================
   首页专用样式 (index.html)
   ======================================== */

/* --- 首页轮播图区域 --- */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.heroSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; 使用cover填充容器 */
    /* object-position: center top; 居中显示，上下裁剪 */
    background: #000;
}

/* 轮播图文字说明 */
.carousel-caption {
    position: absolute;
    bottom: auto;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    color: #b1e0e7;
    z-index: 10;
    width: auto;
    max-width: 600px;
}

.carousel-caption h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: 2px;
    animation: fadeInLeft 0.8s ease;
}

.carousel-caption p {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeInLeft 0.8s ease 0.2s both;
}

/* 轮播图链接按钮 */
.carousel-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    color: #e2c313;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.8s ease 0.4s both;
}

.carousel-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateX(5px);
}

.carousel-link-btn .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.carousel-link-btn:hover .arrow {
    transform: translateX(5px);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Swiper 分页器样式 */
.heroSwiper .swiper-pagination {
    bottom: 30px;
}

.heroSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ffffff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background: #ffffff;
}

/* --- 数据与平台区域 (核心能力) --- */
.data-platform-section {
    padding-bottom: 80px;
    padding-top: 40px;
    background: #ffffff;
}

.data-platform-section .container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.data-platform-header {
    text-align: center;
    margin-bottom: 60px;
}

.data-platform-header .section-title {
    font-size: 2.5rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 0;
}
/* rgb(120 237 5 / 97%) */
.data-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 600px);
    gap: 20px;
    max-width: 1310px;
    margin: 0 auto;
    justify-content: center;
}

.data-platform-card {
    width: 560px;
    max-width: 700px;
}

.data-platform-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.data-platform-card:hover .data-platform-image-wrapper {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.data-platform-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.data-platform-card:hover .data-platform-image {
    transform: scale(1.05);
}

.data-platform-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
}

.data-platform-content {
    color: #ffffff;
}

.data-platform-content h3 {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
}

.data-platform-content p {
    font-size: 1rem;
    color: rgb(76 224 178);
    /* rgb(120 237 5 / 97%); */
    line-height: 1.6;
    margin-bottom: 20px;
}

.data-platform-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.data-platform-btn:hover {
    background: #ffffff;
    color: #333333;
    transform: translateX(5px);
}

/* --- SAR产品优势区块 --- */
.sar-advantages-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.advantages-header {
    text-align: center;
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    position: relative;
    height: 650px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.advantage-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1;
}

.advantage-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.advantage-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: #ffffff;
}

.advantage-title-en {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.any-text {
    color: rgb(231 124 28);
    font-size: 1rem;
}

.advantage-icons {
    display: flex;
    gap: 5px;
    align-items: center;
    color: rgb(213 42 42);
}

.condition-text {
    color: #10357a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.advantage-title-cn {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.advantage-description {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 90%;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

/* --- 新闻详情模态框 --- */
.news-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-detail-modal.active {
    display: flex;
    opacity: 1;
}

.news-detail-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
}

.news-detail-modal .modal-content-wrapper {
    position: relative;
    z-index: 10002;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-detail-modal .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10003;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-detail-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

.news-detail-container {
    padding: 60px 40px 40px;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.news-detail-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-detail-date {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.news-detail-body {
    color: #ffffff;
}

.content-block-item {
    margin-bottom: 25px;
}

.block-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    text-align: justify;
}

.block-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
}

/* 滚动条样式 */
.news-detail-modal .modal-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.news-detail-modal .modal-content-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.news-detail-modal .modal-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.news-detail-modal .modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板端 (768px - 1500px) */
@media (max-width: 1500px) {
    .data-platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .data-platform-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-card {
        height: 500px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
}

/* 移动端 (≤768px) */
@media (max-width: 768px) {
    /* 轮播图区域 */
    .hero-carousel-section {
        height: 60vh;
    }
    
    .carousel-caption {
        bottom: 40px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .carousel-link-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    /* 数据平台区域 */
    .data-platform-section {
        padding: 60px 0;
    }
    
    .data-platform-header {
        margin-bottom: 40px;
    }
    
    .data-platform-header .section-title {
        font-size: 2rem;
    }
    
    .data-platform-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .data-platform-card {
        width: 100%;
        max-width: 100%;
    }
    
    .data-platform-image-wrapper {
        height: 400px;
    }
    
    .data-platform-overlay {
        padding: 30px 20px;
    }
    
    .data-platform-content h3 {
        font-size: 1.5rem;
    }
    
    .data-platform-content p {
        font-size: 0.9rem;
    }
    
    /* SAR优势区域 */
    .sar-advantages-section {
        padding: 60px 0;
    }
    
    .advantage-card {
        height: 450px;
    }
    
    .advantage-title-cn {
        font-size: 1.5rem;
    }
    
    .advantage-description {
        font-size: 0.9rem;
    }
    
    /* 新闻详情模态框 */
    .news-detail-modal .modal-content-wrapper {
        width: 95%;
        max-height: 90vh;
    }
    
    .news-detail-container {
        padding: 50px 20px 30px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-detail-date {
        font-size: 0.95rem;
    }
    
    .block-text,
    .news-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .news-detail-modal .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}
