/* 视频盒子基础样式 */
.section-video-box {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #000;
    /* 保持 16:9 比例，你可以根据视频比例修改 */
    aspect-ratio: 16 / 9; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 视频铺满容器 */
}

/* 按钮样式微调 */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .section-header h2::after {
        left: 0; /* 移动端取消居中 */
        transform: none;
    }
    .section-desc {
        max-width: 100%;
    }
}

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A2540 0%, #1E4B8A 50%, #0D3B6B 100%);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 10;
    padding: 80px 0;
}

.hero-content {
    padding-right: 30px;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    color: var(--accent-color);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-video-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-video-box video {
    width: 100%;
    display: block;
}

.value-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--base-bg);
}

.value-card {
    background: var(--surface-bg);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F7FF 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

#products {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--surface-bg);
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-desc {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    color: var(--text-light);
    line-height: 1.7;
    max-width: 1200px;
}

@media (min-width: 2700px) {
    .section-desc {
        font-size: clamp(1.4rem, 1.6vw, 1.55rem);
    }
    .card-info h3 {
        font-size: 1.45rem !important; 
    }
}

.section-desc-center {
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--surface-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-img-box {
    width: 100%;
    height: clamp(200px, 28vw, 480px);
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-box img {
    transform: scale(1.05);
}

.card-info {
    padding: 12px;
    background: var(--surface-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-info h4 {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.card-link-icon {
    width: 18px;
    height: 18px;
    color: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(0);
}

.product-card:hover .card-link-text,
.product-card:hover .card-link-icon {
    color: var(--secondary-color);
}

.product-card:hover .card-link-icon {
    transform: translateX(5px);
}

.swiper-wrapper{
    margin-bottom: 50px;
}

.app-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--base-bg);
}
/* 确保 Slide 宽度 */
.application-master-swiper .swiper-slide {
    width: 100%;
}

.app-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
    .app-grid {
        display: grid;
        /* 依然是4列 */
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr 1fr; 
        gap: 24px;
    }

    .app-grid .app-card:nth-child(5n+1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .app-card {
        height: 100%;
        display: block;
        position: relative;
    }
}

.app-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
}

.app-card:hover {
    transform: scale(1.02);
}

.app-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.app-card:hover .app-card-img {
    transform: scale(1.02);
}

.app-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.7) 0%, rgba(10, 37, 64, 0.9) 100%);
}

.app-card-overlay:hover {
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.2) 0%, rgba(10, 37, 64, 0.3) 100%);
}

.app-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #FFFFFF;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 600;
    margin: 0;
}

@media (min-width: 768px) {
    .app-grid .app-card:first-child .app-card-title,
    .app-grid .app-card:nth-child(3) .app-card-title {
        font-size: clamp(1.3rem, 2vw, 1.8rem);
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 32px;
    }

    .stat-item {
        text-align: center;
    }

    .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    #application .section-header {
        text-align: center;
    }
}

.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

@media (min-width: 768px) {
    .mb-8 { margin-bottom: 3rem; }
    .mb-12 { margin-bottom: 4rem; }
}