/* ===================================
   手機版UI優化
   =================================== */

/* 手機版Hero優化 */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 32px !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-title strong {
        display: inline-block;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        line-height: 1.5;
        padding: 0 15px;
        text-align: left;
    }
    
    /* 信任標誌 - 2x2 網格 */
    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .trust-badge {
        font-size: 14px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .trust-badge i {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    /* Hero按鈕 */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        font-size: 16px;
        padding: 15px 20px;
    }
    
    /* 評價區域 */
    .hero-rating {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        font-size: 14px;
        padding: 0 20px;
    }
    
    /* SEO關鍵詞 - 單列 */
    .seo-keywords {
        padding: 40px 0;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .keyword-item h3 {
        font-size: 18px;
    }
    
    .keyword-item p {
        font-size: 14px;
    }
    
    /* 特色區域 */
    .features {
        padding: 50px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-desc {
        font-size: 14px;
    }
    
    /* 統計數據 - 2x2 網格 */
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* 課程卡片 */
    .courses {
        padding: 50px 0;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .course-header {
        padding: 25px 20px;
    }
    
    .course-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .course-title {
        font-size: 20px;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-features {
        font-size: 14px;
    }
    
    /* 導師團隊 */
    .instructors {
        padding: 50px 0;
    }
    
    .instructors-preview {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .instructor-card {
        padding: 30px 20px;
    }
    
    .instructor-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .instructor-name {
        font-size: 20px;
    }
    
    .instructor-desc {
        font-size: 14px;
        padding: 0;
    }
    
    .instructor-stats {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .instructor-stat-number {
        font-size: 18px;
    }
    
    .instructor-stat-label {
        font-size: 11px;
    }
    
    /* FAQ區域 */
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .faq-list {
        padding: 0 15px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .faq-answer {
        font-size: 14px;
        padding: 15px 20px;
    }
    
    /* CTA區域 */
    .cta {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 28px !important;
        padding: 0 20px;
    }
    
    .cta-subtitle {
        font-size: 16px !important;
        padding: 0 20px;
        line-height: 1.5;
    }
    
    .cta-features {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 0 20px;
        flex-wrap: wrap;
    }
    
    .cta-feature {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .cta-feature i {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        font-size: 16px;
        padding: 15px 20px;
    }
    
    /* 導航欄優化 */
    .navbar {
        padding: 15px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-cta {
        display: block;
        text-align: center;
        margin-top: 20px;
        padding: 15px 30px;
        font-size: 16px;
    }
    
    /* 標題間距優化 */
    .section-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 28px !important;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 16px !important;
    }
    
    /* 按鈕優化 */
    .view-all-instructors {
        padding: 0 20px;
    }
    
    .view-all-instructors .btn {
        width: 100%;
        font-size: 16px;
        padding: 15px 30px;
    }
}

/* 小屏幕手機 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .trust-badge {
        font-size: 12px;
    }
    
    .trust-badge i {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
}

/* 修復手機版導航欄層級 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* 確保內容不被導航欄遮擋 */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: white;
    }
}
