/* ============================================================
   CETU 官网 — 硬件部页面样式 (hardware)
   作用范围：硬件部页面的轮播图（手写实现，不依赖 daisyUI）
   对应模板：cetu_main/templates/cetu_main/hardware.html
   ============================================================ */

.hw-carousel {
    position: relative;
    margin-top: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--warm-light);
}

.hw-carousel__track {
    display: flex;
    transition: transform 0.5s var(--ease-out);
}

.hw-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.hw-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hw-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: var(--dark-800);
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s ease;
    z-index: 2;
}

.hw-carousel__btn:hover {
    background: #fff;
}

.hw-carousel__btn--prev {
    left: 1rem;
}

.hw-carousel__btn--next {
    right: 1rem;
}

.hw-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hw-carousel__dot {
    width: 0.625rem;
    height: 0.625rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--dark-800);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hw-carousel__dot.is-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .hw-carousel__btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
}
