/* ===== TOP CAROUSEL 容器 ===== */
.top-carousel-container{
    position: relative;
    width: 100%;
}
.row-full {
    position: relative;
}
/* ===== TOP CAROUSEL 容器 ===== */
#top-carousel {
    height: auto; /* 视口高度的 75% */
    position: relative;
    overflow: hidden;
}
#top-carousel .slick-list {
    height: auto !important;
}
#top-carousel .slick-track {
    height: auto !important;
    display: flex;
}
/* 防止加载时闪烁 */
.main-slider:not(.slick-initialized) .slider-item:not(:first-child) {
    display: none;
}

/* --- 核心修改：项目容器 --- */
#top-carousel .slider-item {
    position: relative;
    height: auto;
    width: 100%;
}
.slider-item {
    cursor: default; /* 默认光标 */
}

.slider-item:has(.full-clickable-link) {
    cursor: pointer; /* 有链接时显示手型 */
}
.full-clickable-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    text-decoration: none;
}

#top-carousel picture,
#top-carousel img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* --- 文字覆盖样式优化 --- */
.top-carousel {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    padding: 0 30px;
    text-align: left;
    pointer-events: none;
    z-index: 10;
}

.top-carousel .ttl {
    color: #fff;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin: 0;
}

.top-carousel .subttl {
    color: #fff;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* --- Dots 定位优化 --- */
.dots-wrapper {
    position: absolute;
    bottom: 30px;
    width: 50%;
    display: flex;
    right: 0;
    padding: 0 30px;
    z-index: 999;
    justify-content: flex-end;
}

.dots-wrapper ul {
    display: flex;
    justify-content: end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dots-wrapper li {
    margin: 0 8px;
    cursor: pointer;
}

.dots-wrapper li button {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(90, 90, 90, 0.2);
    border: solid 0px transparent;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.dots-wrapper li.slick-active button {
    background: #5A5A5A;
    transform: scale(1.2);
}

/* 隐藏箭头 */
.slick-arrow {
    display: none !important;
}

@media (max-width: 768px) {

    .dots-wrapper,
    .slick-dots {
        display: none !important;
    }

    .top-carousel {
        bottom: 10px;
        padding: 0 20px;

    }

    .top-carousel .ttl {
        font-size: .9rem;
    }

    .top-carousel .subttl {
        display: none;
    }
}