/* ========== 滑块容器通用样式 ========== */
.lee-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0px 0;
}

.lee-slider-container {
    overflow: hidden;
}

.lee-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.lee-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* ========== 左右切换按钮通用样式 ========== */
/* 默认隐藏，鼠标悬浮容器时显示（移动端始终显示） */
.lee-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
}

.lee-slider:hover .lee-slider-nav {
    opacity: 1;
}

.lee-slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 默认：左右切换按钮靠边（left: 0 / right: 0） */
.lee-slider-prev {
    left: 0;
}

.lee-slider-next {
    right: 0;
}

/* Banner 专用：左右切换按钮距离边缘 10% */
.lee-banner-slider .lee-slider-prev {
    left: 10%;
}

.lee-banner-slider .lee-slider-next {
    right: 10%;
}

/* ========== 圆点指示器通用样式 ========== */
.lee-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.lee-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.lee-slider-dot.active {
    background: #333;
}

/* Banner 专用：圆点位于 banner 上方，距下边框 5px */
.lee-banner-slider .lee-slider-dots {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 10;
}

/* Banner 圆点为白色，确保在深色背景上可见 */
.lee-banner-slider .lee-slider-dot {
    background: rgba(255, 255, 255, 0.5);
}

.lee-banner-slider .lee-slider-dot.active {
    background: #fff;
}

/* ========== 通用项目网格样式 ========== */
.lee-blog-items,
.lee-video-items,
.lee-image-items {
    display: flex;
    gap: 20px;
    padding: 0;
}

/* 每个 item 固定宽度 = (100% - 总间距) / 每页数量，确保末页不足数时不会撑满 */
.lee-blog-item,
.lee-video-item,
.lee-image-item {
    flex: 0 0 calc((100% - (var(--lee-items-count, 3) - 1) * 20px) / var(--lee-items-count, 3));
    min-width: 0;
}

/* ========== 博客组件样式 ========== */
.lee-blog-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lee-blog-content {
    padding: 15px 0;
}

.lee-blog-date {
    color: #666;
    font-size: 14px;
}

/* 博客标题：单行显示，超出隐藏加省略号 */
.lee-blog-title a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lee-blog-title a:hover {
    color: #0073aa;
}

/* 博客描述：隐藏不显示 */
.lee-blog-excerpt {
    display: none;
}

/* ========== 视频组件样式 ========== */
.lee-video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lee-video-title {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lee-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.lee-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== 图片组件样式 ========== */
.lee-image-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lee-image-title {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lee-image-description {
    color: #666;
    margin-top: 10px;
}

/* ========== Banner轮播图组件样式 ========== */
.lee-banner-item {
    position: relative;
    height: 750px;
    background-size: cover;
    background-position: center;
}

.lee-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.lee-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #fff;
    padding: 100px 20px 20px 20px;
    box-sizing: border-box;
}

/* Banner 文字为白色 */
.lee-banner-title {
    font-size: 35px;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.3;
}

.lee-banner-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #fff;
    max-width: 800px;
    line-height: 1.6;
    padding: 0 20px;
}

.lee-banner-button {
    display: inline-block;
    padding: 15px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s;
}

.lee-banner-button:hover {
    background: #005177;
}

/* ========== 平板端响应式 (≤1024px) ========== */
@media (max-width: 1024px) {
    .lee-blog-items,
    .lee-video-items,
    .lee-image-items {
        flex-wrap: wrap;
    }

    .lee-blog-item,
    .lee-video-item,
    .lee-image-item {
        flex: 0 0 48%;
    }

    .lee-banner-title {
        font-size: 36px;
    }

    .lee-banner-description {
        font-size: 18px;
    }
}

/* ========== 手机端响应式 (≤768px) ========== */
/* 触屏设备无 hover，按钮始终显示 */
@media (max-width: 768px) {
    /* 手机端网格布局强制覆盖，!important 防止主题CSS冲突 */
    .lee-blog-items,
    .lee-video-items,
    .lee-image-items {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        padding: 0 !important;
    }

    .lee-blog-item,
    .lee-video-item,
    .lee-image-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* 手机端隐藏博客/视频/图片的左右箭头，只靠滑动切换 */
    .lee-blog-slider .lee-slider-nav,
    .lee-video-slider .lee-slider-nav,
    .lee-image-slider .lee-slider-nav {
        display: none !important;
    }

    .lee-banner-item {
        height: 400px;
    }

    .lee-banner-content {
        padding: 100px 16px 20px 16px;
    }

    .lee-banner-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    /* 手机端隐藏Banner描述文字，避免文字过多导致拥挤 */
    .lee-banner-description {
        display: none;
    }

    .lee-banner-button {
        padding: 10px 24px;
        font-size: 15px;
    }

    /* 移动端Banner箭头按钮保持可见（缩小） */
    .lee-banner-slider .lee-slider-nav {
        padding: 8px 12px;
        font-size: 16px;
        opacity: 1;
    }

    .lee-blog-thumbnail img,
    .lee-video-thumbnail,
    .lee-image-thumbnail {
        height: 180px;
    }

    .lee-blog-content {
        padding: 12px 12px;
    }

    .lee-video-title {
        padding: 8px 12px 0;
    }

    .lee-blog-title a,
    .lee-video-title,
    .lee-image-title {
        font-size: 16px;
    }
}

/* ========== 超小屏响应式 (≤480px) ========== */
@media (max-width: 480px) {
    .lee-blog-items,
    .lee-video-items,
    .lee-image-items {
        gap: 16px !important;
    }

    .lee-banner-item {
        height: 320px;
    }

    .lee-banner-content {
        padding: 80px 12px 16px 12px;
    }

    .lee-banner-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .lee-banner-button {
        padding: 8px 18px;
        font-size: 13px;
    }

    .lee-banner-slider .lee-slider-nav {
        padding: 6px 10px;
        font-size: 14px;
    }

    .lee-blog-thumbnail img,
    .lee-video-thumbnail,
    .lee-image-thumbnail {
        height: 160px;
    }

    .lee-blog-content {
        padding: 10px 10px;
    }

    .lee-blog-date {
        font-size: 12px;
    }

    .lee-blog-title a,
    .lee-video-title,
    .lee-image-title {
        font-size: 15px;
    }

    .lee-video-title {
        padding: 6px 10px 0;
    }
}