﻿/* ==============================
   FPGA Banner Slider Namespace
   ============================== */

#fpgaBannerRoot {
    font-family: Arial, Helvetica, sans-serif;
    display: none;
    width: 100%;
}

/* Banner 容器 */
.fpga-banner-container {
    position: relative;
    margin: 0 auto;
    width: 92%;
    height: 434px;
    overflow: hidden;
    background: #000;
}

/* Slide */
.fpga-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
}

.fpga-banner-active {
    opacity: 1;
    z-index: 1;
}

/* 遮罩 */
.fpga-banner-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.2));
}

/* 文案 */
.fpga-banner-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 520px;
    color: #fff;
}

    .fpga-banner-content h2 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .fpga-banner-content p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

.fpga-banner-btn {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
}

/* 箭头 */
.fpga-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.fpga-arrow-left {
    left: 20px;
}

.fpga-arrow-right {
    right: 20px;
}

/* Tabs */
.fpga-banner-tabs {
    display: flex;
    background: #f5f7fa;
    border-top: 1px solid #ddd;
    margin: 0 auto;
    width: 92%;
}

.fpga-banner-tab {
    flex: 1;
    text-align: center;
    padding: 16px 10px;
    cursor: pointer;
    font-size: 15px;
}

.fpga-tab-active {
    background: #e0f5ff;
    font-weight: bold;
}

/* 底部圆点指示器 */
.fpga-banner-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background: #f5f7fa;
}

.fpga-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #ddd;
}

    .fpga-dot.active {
        background-color: #00aaff;
    }

/* ======================
   Mobile Responsive
   ====================== */
@media (max-width: 768px) {

    .fpga-banner-container {
        height: 60vh;
        min-height: 320px;
    }

    .fpga-banner-content {
        left: 6%;
        right: 6%;
        top: auto;
        bottom: 15%;
        transform: none;
    }

        .fpga-banner-content h2 {
            font-size: 22px;
        }

        .fpga-banner-content p {
            font-size: 14px;
        }

    .fpga-banner-arrow {
        font-size: 32px;
    }

    .fpga-banner-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .fpga-banner-tab {
        flex: none;
        display: inline-block;
        padding: 14px 20px;
    }

    /* 底部圆点指示器 */
    .fpga-banner-dots {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}
