/* ========================================
   首页专用样式 (index.html)
   ======================================== */

/* --- 企业宣传视频区域 --- */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 80vh; /* 60%屏幕高度，可调整为：70vh, 50vh, 或固定值如 600px */
    overflow: hidden;
    background: #000;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* --- 数据与平台区域 (核心能力) --- */
.data-platform-section {
    padding: 80px 0;
    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;
}

.data-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 700px);
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    justify-content: center;
}

.data-platform-card {
    width: 700px;
    max-width: 700px;
}

.data-platform-image-wrapper {
    position: relative;
    width: 100%;
    height: 570px;
    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: rgba(255, 255, 255, 0.9);
    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: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.advantage-icons {
    display: flex;
    gap: 5px;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.condition-text {
    color: #ffffff;
    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;
    }
}

/* 移动端 (≤768px) */
@media (max-width: 768px) {
    /* 数据平台区域 */
    .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;
    }
}
