/* 手機橫幅專用樣式 */
/* LoveiMag 愛分享官方網站 */

/* 手機橫幅容器 */
.mobile-banner-section {
    position: relative;
    height: 100vh;
    min-height: 667px;
    overflow: hidden;
    background: #000;
}

.mobile-banner-slide {
    position: relative;
    height: 100vh;
    min-height: 667px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 手機橫幅內容 */
.mobile-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
    max-width: 90%;
}

.mobile-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.mobile-banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.mobile-banner-button {
    display: inline-block;
    background: var(--primary-color, #007bff);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    min-width: 120px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-banner-button:hover {
    background: var(--primary-dark, #0056b3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* 手機橫幅遮罩 */
/* 手機橫幅濾鏡樣式改由 dynamic-css.php 動態生成 */
/* 此處僅保留基本定位，透明度由後台設定控制 */
.mobile-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* background 由動態 CSS 控制 */
}

/* 手機橫幅輪播控制 */
.mobile-banner-swiper {
    height: 100vh;
    min-height: 667px;
}

.mobile-banner-swiper .swiper-pagination {
    bottom: 2rem;
    z-index: 3;
}

.mobile-banner-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
}

.mobile-banner-swiper .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* 手機橫幅導航按鈕 */
.mobile-banner-swiper .swiper-button-next,
.mobile-banner-swiper .swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-banner-swiper .swiper-button-next:hover,
.mobile-banner-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.mobile-banner-swiper .swiper-button-next:after,
.mobile-banner-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .mobile-banner-section {
        height: 100vh;
        min-height: 667px;
    }
    
    .mobile-banner-slide {
        height: 100vh;
        min-height: 667px;
    }
    
    .mobile-banner-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .mobile-banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-banner-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 100px;
        min-height: 44px;
    }
    
    .mobile-banner-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-banner-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .mobile-banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .mobile-banner-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-width: 90px;
        min-height: 40px;
    }
    
    .mobile-banner-content {
        padding: 1rem 0.8rem;
    }
    
    .mobile-banner-swiper .swiper-button-next,
    .mobile-banner-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .mobile-banner-swiper .swiper-button-next:after,
    .mobile-banner-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* 橫向模式適配 */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-banner-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .mobile-banner-slide {
        height: 100vh;
        min-height: 400px;
    }
    
    .mobile-banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .mobile-banner-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 80px;
        min-height: 36px;
    }
    
    .mobile-banner-content {
        padding: 1rem 0.5rem;
    }
}

/* 高解析度螢幕適配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-banner-title {
        text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    }
    
    .mobile-banner-subtitle {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }
}

/* 深色模式適配 */
/* 濾鏡樣式由 dynamic-css.php 統一控制，此處不需要額外設定 */
@media (prefers-color-scheme: dark) {
    /* 深色模式下的其他樣式調整可以在此添加 */
}

/* 動畫效果 */
.mobile-banner-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-banner-button {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 觸控優化 */
.mobile-banner-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-banner-swiper .swiper-button-next,
.mobile-banner-swiper .swiper-button-prev {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 無障礙支援 */
@media (prefers-reduced-motion: reduce) {
    .mobile-banner-content,
    .mobile-banner-button {
        animation: none;
    }
    
    .mobile-banner-button:hover {
        transform: none;
    }
    
    .mobile-banner-swiper .swiper-button-next:hover,
    .mobile-banner-swiper .swiper-button-prev:hover {
        transform: none;
    }
}
