/* ======================
   子页面 Tab 切换布局
====================== */
.service-tabs {
    margin-top: 20px;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.tab-nav::-webkit-scrollbar {
    height: 0;
}

@media (max-width: 768px) {
    .tab-nav {
        mask-image: linear-gradient(to right, #000 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    }
}

.tab-btn {
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}

.tab-btn:hover {
    color: #003366;
    background-color: rgba(0, 51, 102, 0.04);
}

.tab-btn.active {
    color: #003366;
    border-bottom-color: #003366;
}

.tab-panel {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    padding: 40px 0;
    align-items: start;
}

.tab-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tab-card {
    padding: 20px 18px;
    text-align: left;
    transition: background-color 0.2s ease;
    cursor: default;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 12px;
    background: rgba(0, 51, 102, 0.03);
}

.tab-card:hover {
    background-color: rgba(0, 51, 102, 0.06);
}

.tab-card .icon i {
    font-size: 36px;
    color: #003366;
    flex-shrink: 0;
    margin-top: 2px;
}

.tab-card h4 {
    font-size: 16px;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 4px;
}

.tab-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* Tab 面板右侧信息区 */
.tab-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.tab-info > .section-subtitle {
    display: block;
    color: #888;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tab-info > .intro-text {
    font-size: 15px;
    line-height: 2;
    color: #666;
    margin-bottom: 16px;
}

/* 服务优势列表 */
.service-advantages {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.service-advantages h4 {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-advantages h4 i {
    color: #003366;
}

.advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.advantages-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #003366, #0066cc);
    border-radius: 50%;
}

/* 服务特色网格 */
.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.service-feature {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.06), rgba(0, 102, 204, 0.04));
    padding: 16px 14px;
    border-radius: 8px;
    text-align: left;
    transition: background 0.2s ease;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.service-feature:hover {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(0, 102, 204, 0.07));
}

.service-feature i {
    font-size: 20px;
    color: #003366;
    flex-shrink: 0;
    margin-top: 1px;
}

.service-feature h5 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.service-feature p {
    font-size: 12px;
    color: #666;
}

/* ======================
   子页面 banner 文字
====================== */
.banner-text-left {
    text-align: left;
    max-width: 600px;
}

.banner-text-left .banner-title-main {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 8px;
}

.banner-text-left .banner-title-sub {
    font-size: 20px;
    letter-spacing: 6px;
    opacity: 0.9;
}

/* ======================
   子页面关于部分样式
====================== */
.subpage-about .about-content {
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

/* ======================
   服务流程板块
====================== */
.service-process {
    margin-top: 40px;
}

.process-steps {
    display: flex;
    gap: 0;
    justify-content: space-between;
    position: relative;
    margin-top: 30px;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, #003366, #0066cc);
    opacity: 0.3;
}

.process-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.process-step .step-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.process-step h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.process-step p {
    font-size: 12px;
    color: #888;
}

/* ======================
   仓库实景轮播 Banner
====================== */
.warehouse-carousel-section {
    padding: 0;
    margin: 0;
    max-width: none;
}

.warehouse-carousel {
    position: relative;
    height: auto;
    min-height: 80vh;
    max-height: 95vh;
    overflow: hidden;
    background: #0a1628;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 80vh;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 20, 50, 0.75) 0%,
        rgba(0, 40, 80, 0.55) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
    animation: carouselFadeUp 0.8s ease both;
}

.carousel-slide.active .carousel-content {
    animation: carouselFadeUp 0.8s ease both;
}

@keyframes carouselFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.carousel-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 24px;
    border-radius: 100px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.carousel-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
}

.carousel-subtitle {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 36px;
}

.carousel-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.carousel-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.carousel-stat span {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.carousel-stat small {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 详情信息面板 - 左下角 */
.carousel-detail {
    position: absolute;
    bottom: 60px;
    left: 0;
    z-index: 5;
    background: rgba(0, 10, 30, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 12px 0 0;
    padding: 20px 28px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.carousel-slide.active .carousel-detail {
    opacity: 1;
    transform: translateY(0);
}

.carousel-detail p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    padding: 3px 0;
}

.carousel-detail strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* 圆点导航 */
.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

/* 左右箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px 0;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

/* 暂停/播放按钮 */
.carousel-pause {
    position: absolute;
    bottom: 32px;
    right: 24px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-pause:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-pause .fa-pause {
    display: inline;
}

.carousel-pause .fa-play {
    display: none;
}

.carousel-pause.paused .fa-pause {
    display: none;
}

.carousel-pause.paused .fa-play {
    display: inline;
}

/* ======================
   响应式调整
====================== */
@media (max-width: 992px) {
    .tab-panel-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .tab-cards {
        grid-template-columns: 1fr;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .banner-text-left .banner-title-main {
        font-size: 32px;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .warehouse-carousel {
        min-height: 60vh;
    }

    .carousel-slides {
        min-height: 60vh;
    }

    .carousel-title {
        font-size: 32px;
    }

    .carousel-subtitle {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .carousel-stats {
        gap: 28px;
    }

    .carousel-stat span {
        font-size: 22px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .carousel-prev { left: 12px; }
    .carousel-next { right: 12px; }

    .carousel-detail {
        max-width: 360px;
        padding: 14px 18px;
        bottom: 70px;
    }

    .carousel-detail p {
        font-size: 12px;
    }

    .carousel-dots {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .warehouse-carousel,
    .carousel-slides {
        min-height: 50vh;
    }

    .carousel-title {
        font-size: 26px;
    }

    .carousel-subtitle {
        font-size: 13px;
    }

    .carousel-stats {
        gap: 18px;
    }

    .carousel-stat span {
        font-size: 18px;
    }

    .carousel-stat small {
        font-size: 10px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-detail {
        max-width: 100%;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 12px 16px;
        bottom: 70px;
    }

    .carousel-detail p {
        font-size: 11px;
        line-height: 1.6;
    }

    .carousel-dots {
        bottom: 20px;
    }

    .carousel-dot {
        width: 16px;
        height: 16px;
    }

    .carousel-pause {
        bottom: 20px;
        right: 16px;
        width: 32px;
        height: 32px;
    }
}
