/*
Theme Name: 自适应Banner+轮播图标自定义+移动端触屏滑动
Theme URI: https://example.com/
Description: 电脑端箭头正常，手机端隐藏箭头且触屏滑动，轮播图标可自定义
Version: 1.9
Author: 自定义
*/

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 70px !important; /* 导航高度预留 */
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* Banner自适应核心样式 */
.mi-carousel-wrapper {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}
.mi-carousel-group {
    width: 100%;
    min-height: 400px;
    height: auto !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}
.mi-carousel-group .swiper {
    width: 100%;
    height: 100% !important;
}
.swiper-slide {
    width: 100%;
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.mi-carousel-desc {
    position: absolute;
    bottom: 35px;
    left: 40px;
    padding: 12px 24px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    z-index: 10;
    pointer-events: none;
    max-width: 80%;
}

/* 轮播箭头样式（电脑端正常显示） */
.mi-carousel-prev, .mi-carousel-next {
    z-index: 10;
    border-radius: 50%;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* 轮播分页器样式 */
.mi-carousel-pagination {
    z-index: 10;
}
.swiper-pagination-bullet {
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    transform: scale(1.2);
}

/* 导航样式（防遮挡） */
.mi-header {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 9999 !important;
    width: 100%;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}
.mi-main-nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mi-nav-list {
    display: flex;
}
.mi-nav-item {
    margin: 0 18px;
}
.mi-nav-item a {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 10px;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}
.mi-nav-item a:hover {
    color: #ff6700;
}
.mi-hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 移动端导航 */
.mi-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99999 !important;
    padding: 80px 20px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
}
.mi-mobile-nav.show {
    transform: translateX(0);
}
.mi-mobile-nav-list li {
    margin: 18px 0;
}
.mi-mobile-nav-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}
.mi-mobile-nav-list a:hover {
    color: #ff6700;
}
.mi-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.mi-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99998 !important;
    display: none;
}
.mi-mask.show {
    display: block;
}

/* 首页内容样式 */
.mi-main-content {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
}
.mi-home-content {
    margin: 20px 0;
    text-align: center;
}
.mi-home-content h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 35px;
    font-weight: 600;
}
.mi-home-content-text {
    line-height: 2.1;
    color: #666;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚样式 */
.mi-footer {
    background: #f8f8f8;
    padding: 60px 0 30px;
    text-align: center;
    color: #666;
    font-size: 16px;
    border-top: 1px solid #eee;
}
.mi-footer-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}
.mi-footer-copyright {
    font-size: 16px;
    margin: 10px 0;
}
.mi-footer-desc {
    font-size: 15px;
    line-height: 1.8;
    margin: 10px 0 20px;
    color: #666;
}
.mi-footer-bottom {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

/* ========== 移动端适配（核心：隐藏箭头） ========== */
@media (max-width: 768px) {
    /* 手机端隐藏轮播箭头 */
    .mi-carousel-prev, .mi-carousel-next {
        display: none !important;
    }

    /* 移动端基础样式适配 */
    body {
        padding-top: 60px !important;
    }
    .mi-carousel-group {
        min-height: 280px !important;
    }
    .mi-carousel-desc {
        font-size: 14px;
        padding: 8px 16px;
        bottom: 20px;
        left: 20px;
        max-width: 90%;
    }
    .mi-main-nav {
        height: 60px;
    }
    .mi-nav-list {
        display: none;
    }
    .mi-hamburger {
        display: block;
    }
    .mi-home-content h1 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .mi-home-content-text {
        font-size: 16px;
        line-height: 1.9;
    }
    .mi-footer-title {
        font-size: 18px;
    }
    .mi-footer-copyright, .mi-footer-desc {
        font-size: 14px;
    }
    .mi-footer-bottom {
        font-size: 13px;
    }
}/* 兜底：自动播放关闭的轮播组，强制隐藏箭头和分页器 */
.carousel-autoplay-off .mi-carousel-prev,
.carousel-autoplay-off .mi-carousel-next,
.carousel-autoplay-off .mi-carousel-pagination {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 覆盖Swiper默认样式，确保隐藏生效 */
.carousel-autoplay-off .swiper-button-prev,
.carousel-autoplay-off .swiper-button-next {
    display: none !important;
}
.carousel-autoplay-off .swiper-pagination {
    display: none !important;
}