/*
 * 首页移动端适配 CSS (home-m风格)
 * 作者: WHMCSHome
 * 创建时间: 2025-09-01
 * 设计原则: 蓝色渐变、卡片化、触摸友好、现代简洁
 * 使用wmb-前缀的class类进行样式定制
 */

/* ================================
   移动设备主要适配 (768px及以下)
   ================================ */
@media (max-width: 768px) {
    
    /* ================================
       Banner区域 - 优化的渐变蒙层设计
       ================================ */
    .wmb-banner {
        position: relative !important;
        min-height: 500px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
        padding: 80px 20px !important;
        background: #0052CC !important;
    }
    
    /* 背景图片层 */
    .wmb-banner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('/templates/kohost-professional/img/banner.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.3;
        z-index: 0;
    }
    
    /* 渐变蒙层 - 主流设计风格 */
    .wmb-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, 
            rgba(1, 105, 253, 0.85) 0%,
            rgba(1, 105, 253, 0.9) 40%,
            rgba(0, 82, 204, 0.95) 100%);
        z-index: 1;
    }
    
    /* 添加微妙的网格纹理 */
    .wmb-banner .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -50%;
        width: 200%;
        height: 100%;
        background-image: 
            linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%),
            linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%);
        background-size: 30px 30px;
        animation: slidePattern 60s linear infinite;
        z-index: 2;
        pointer-events: none;
    }
    
    @keyframes slidePattern {
        0% { transform: translateX(0); }
        100% { transform: translateX(30px); }
    }
    
    /* 确保内容在最上层 */
    .wmb-banner .container {
        position: relative;
        z-index: 3;
    }
    
    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    /* Banner标题 - 现代化样式 */
    .wmb-banner-title {
        position: relative !important;
        animation: fadeInUp 0.8s ease !important;
        margin-bottom: 20px !important;
    }
    
    .wmb-banner-title .first {
        font-size: 18px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 400 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        margin-bottom: 15px !important;
        animation: fadeInUp 0.6s ease !important;
    }
    
    .wmb-banner-title .second {
        font-size: 36px !important;
        color: #FFFFFF !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
        animation: fadeInUp 0.8s ease 0.1s backwards !important;
    }
    
    /* Banner箭头 */
    .wmb-banner-arrow {
        width: 30px !important;
        height: auto !important;
        margin: 20px 0 !important;
        animation: bounce 2s infinite !important;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-10px); }
        60% { transform: translateY(-5px); }
    }
    
    /* Banner副标题 */
    .wmb-banner-subtitle {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: #FFFFFF !important;
        max-width: 90% !important;
        margin: 0 auto 30px !important;
        animation: fadeInUp 0.8s ease !important;
    }
    
    /* Banner按钮组 */
    .wmb-banner-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 300px !important;
        animation: fadeInUp 1s ease !important;
    }
    
    .wmb-banner-btn-left,
    .wmb-banner-btn-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 15px 20px !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        min-height: 70px !important;
    }
    
    .wmb-banner-btn-left {
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .wmb-banner-btn-right {
        background: #FFFFFF !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }
    
    .wmb-banner-btn-left:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-2px) !important;
    }
    
    .wmb-banner-btn-right:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
    }
    
    .bannerBtnSubText {
        font-size: 12px !important;
        opacity: 0.9 !important;
        margin-bottom: 3px !important;
    }
    
    .bannerBtnText {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    
    .wmb-banner-btn-left .bannerBtnSubText,
    .wmb-banner-btn-left .bannerBtnText {
        color: #FFFFFF !important;
    }
    
    .wmb-banner-btn-right .bannerBtnSubText,
    .wmb-banner-btn-right .bannerBtnText {
        color: #0169FD !important;
    }
    
    /* ================================
       推荐插件模块 - 卡片化设计
       ================================ */
    .wmb-modules-container {
        padding: 40px 15px !important;
    }
    
    .wmb-modules-container .wmb-section-title {
        font-size: 24px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700 !important;
    }
    
    .wmb-modules-container .wmb-section-subtitle {
        font-size: 14px !important;
        text-align: center !important;
    }
    
    /* 模块卡片容器 */
    .wmb-modules-grid {
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    /* 模块卡片 */
    .wmb-module-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
        padding: 25px !important;
        background: #FFFFFF !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
        border: 1px solid transparent !important;
        position: relative !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
        animation: fadeInUp 0.5s ease backwards !important;
    }
    
    /* 添加渐变边框装饰 */
    .wmb-module-card:nth-child(1) { animation-delay: 0.1s; }
    .wmb-module-card:nth-child(2) { animation-delay: 0.2s; }
    .wmb-module-card:nth-child(3) { animation-delay: 0.3s; }
    
    .wmb-module-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%);
    }
    
    .wmb-module-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 25px rgba(1, 105, 253, 0.15) !important;
        border-color: rgba(1, 105, 253, 0.3) !important;
    }
    
    /* 模块标题 */
    .wmb-module-card .tw-text-26px,
    .wmb-module-card .tw-text-20px {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #333333 !important;
        margin-bottom: 10px !important;
    }
    
    /* 模块描述 */
    .wmb-module-card [class*="tw-text-16px"],
    .wmb-module-card [class*="tw-text-14px"] {
        font-size: 14px !important;
        color: #666666 !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }
    
    /* 模块按钮 */
    .wmb-module-card .btn-primary,
    .wmb-module-card .btn-line {
        display: inline-block !important;
        padding: 10px 24px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%) !important;
        color: #FFFFFF !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(1, 105, 253, 0.3) !important;
        width: auto !important;
        height: auto !important;
        line-height: normal !important;
    }
    
    .wmb-module-card .btn-primary:hover,
    .wmb-module-card .btn-line:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(1, 105, 253, 0.4) !important;
    }
    
    /* 模块图标 */
    .moduleIcon,
    .moduleIconSmall {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        opacity: 0.8 !important;
    }
    
    /* ================================
       服务介绍区域
       ================================ */
    .wmb-service-container {
        padding: 40px 15px !important;
    }
    
    .wmb-service-container .tw-text-title {
        font-size: 24px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700 !important;
    }
    
    .wmb-service-container .tw-text-18px {
        font-size: 14px !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    
    .wmb-service-container img[src*="home-section2-img"] {
        width: 100% !important;
        height: auto !important;
        margin-top: 20px !important;
    }
    
    .wmb-service-container .btn-primary {
        margin-top: 30px !important;
        padding: 15px 30px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%) !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-decoration: none !important;
        color: #FFFFFF !important;
        box-shadow: 0 4px 15px rgba(1, 105, 253, 0.3) !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* ================================
       团队介绍区域 - 网格布局
       ================================ */
    .wmb-team-container {
        padding: 40px 15px !important;
    }
    
    .wmb-team-container .tw-text-title {
        font-size: 24px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700 !important;
    }
    
    /* 团队成员容器 */
    .wmb-team-grid {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        margin-top: 30px !important;
        justify-content: center !important;
    }
    
    /* 团队成员卡片 */
    .wmb-team-member {
        width: calc(50% - 8px) !important;
        height: auto !important;
        min-height: 200px !important;
        padding: 20px 15px !important;
        background: #FFFFFF !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
    }
    
    .wmb-team-member:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 18px rgba(1, 105, 253, 0.15) !important;
    }
    
    /* 团队成员头像 */
    .wmb-team-member [class*="tw-w-"][class*="79px"] {
        width: 60px !important;
        height: 60px !important;
        padding: 3px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%) !important;
        border-radius: 50% !important;
        margin-bottom: 10px !important;
    }
    
    .wmb-team-member [class*="tw-w-"][class*="79px"] img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        background: #FFFFFF !important;
    }
    
    /* 团队成员信息 */
    .wmb-team-member .tw-text-20px {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333333 !important;
        margin-bottom: 5px !important;
    }
    
    .wmb-team-member .tw-text-16px {
        font-size: 13px !important;
        color: #0169FD !important;
        margin-bottom: 8px !important;
    }
    
    .wmb-team-member .tw-text-14px {
        font-size: 12px !important;
        color: #666666 !important;
        line-height: 1.4 !important;
    }
    
    /* ================================
       技术支持区域
       ================================ */
    .wmb-help-section {
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%) !important;
    }
    
    .wmb-help-container {
        padding: 50px 15px !important;
    }
    
    .wmb-help-container [class*="tw-text-"][class*="42px"] {
        font-size: 26px !important;
        color: #FFFFFF !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
    
    .wmb-help-container .tw-text-20px {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
    
    /* 帮助按钮 */
    .wmb-help-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 30px !important;
        width: 100% !important;
    }
    
    .wmb-help-container .btn-card {
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-decoration: none !important;
        color: #FFFFFF !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
    }
    
    .wmb-help-container .btn-card:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        transform: translateY(-3px) !important;
    }
    
    .wmb-help-container .btn-card img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .wmb-help-container .iconPlusWhite {
        display: none !important;
    }
    
    .wmb-help-container .btn-card:hover .iconPlus {
        display: none !important;
    }
    
    .wmb-help-container .btn-card:hover .iconPlusWhite {
        display: block !important;
    }
    
    /* ================================
       定制服务区域
       ================================ */
    .wmb-custom-container {
        background: #FFFFFF !important;
        border-radius: 16px !important;
        padding: 30px 20px !important;
        margin: 0 15px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    }
    
    .wmb-custom-container > div {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 25px !important;
    }
    
    .wmb-custom-container [class*="tw-text-"][class*="42px"] {
        font-size: 24px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700 !important;
        text-align: center !important;
    }
    
    .wmb-custom-container img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }
    
    /* ================================
       动画效果
       ================================ */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ================================
       通用响应式调整
       ================================ */
    .wmb-modules-section,
    .wmb-service-section,
    .wmb-team-section,
    .wmb-help-section,
    .wmb-custom-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* 隐藏不必要的装饰元素 */
    img[src*="arrow-left"],
    img[src*="arrow-right"] {
        display: none !important;
    }
}

/* ================================
   小屏手机设备优化 (480px及以下)
   ================================ */
@media (max-width: 480px) {
    /* Banner区域 */
    .wmb-banner {
        padding: 40px 15px !important;
        min-height: 350px !important;
    }
    
    .wmb-banner-title .first {
        font-size: 18px !important;
    }
    
    .wmb-banner-title .second {
        font-size: 24px !important;
    }
    
    .wmb-banner-subtitle {
        font-size: 13px !important;
        padding: 12px 15px !important;
    }
    
    /* 团队成员单列展示 */
    .wmb-team-member {
        width: 100% !important;
    }
    
    /* 更紧凑的间距 */
    .wmb-modules-section,
    .wmb-service-section,
    .wmb-team-section,
    .wmb-help-section,
    .wmb-custom-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    /* 标题字号调整 */
    .wmb-modules-container .wmb-section-title,
    .wmb-service-container .tw-text-title,
    .wmb-team-container .tw-text-title {
        font-size: 20px !important;
    }
    
    .wmb-help-container [class*="tw-text-"][class*="42px"] {
        font-size: 22px !important;
    }
}