/* ============================================================
   sections.css - 轮播、优势、产品、实景、询价表单
   ============================================================ */

/* ---------- 轮播 ---------- */
.hero-carousel {
    margin: 1.2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #e9eef3;
    min-height: 280px;
}

.carousel-slide {
    display: flex;
    align-items: center;
    padding: 3rem 3rem;
    background: linear-gradient(145deg, #eef3f7, #dce4ec);
    transition: 0.3s;
    gap: 2rem;
}

.carousel-text {
    flex: 1;
}

.carousel-text h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #1a2637;
    margin-bottom: 0.75rem;
}

.carousel-text p {
    font-size: 1.2rem;
    color: #31455b;
    font-weight: 300;
    max-width: 500px;
}

.carousel-badge {
    background: #1f2a3f;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.carousel-image-wrap {
    flex: 0 0 40%;
    min-width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: #d0dbe6;
}

.carousel-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-image-wrap:hover img {
    transform: scale(1.05);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
}

.carousel-controls button {
    pointer-events: auto;
    background: rgba(30, 42, 60, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 1.8rem;
    padding: 0 0.8rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0;
    line-height: 2.2;
}

.hero-carousel:hover .carousel-controls button {
    opacity: 0.9;
}

.carousel-controls button:hover {
    background: #1f2a3f;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #bccbd8;
    border-radius: 10px;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: #1f2a3f;
    width: 20px;
}

/* ---------- 核心优势 ---------- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin: 2.5rem 0 3rem;
}

.advantage-item {
    background: white;
    padding: 1.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef3f8;
    transition: 0.2s;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.advantage-item i {
    font-size: 2.2rem;
    color: #3d5a73;
    margin-bottom: 0.8rem;
    display: block;
}

.advantage-item h4 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.advantage-item p {
    color: #4b5f74;
    font-weight: 300;
    font-size: 0.95rem;
}

/* ---------- 产品网格 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

/* ---------- 实景 ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin: 2rem 0 2.5rem;
}

.gallery-item {
    border-radius: 12px;
    height: 200px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 42, 60, 0.75);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}