/**
 * 自动提取的CSS样式
 * 生成时间: 2025/11/3 11:01:00
 * 来源: index.html
 */

/* ===== Logo基础样式（桌面端） ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 80px;
    width: auto;
    margin-right: 8px;
}

.logo > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.logo > div span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo > div span:first-child {
    color: var(--primary);
}

.logo > div span:last-child {
    color: var(--secondary);
}

/* 移动端优化样式 */
@media (max-width: 768px) {
    /* 优化触摸体验 */
    button, .btn, .cta-button, a {
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    
    /* 优化文本可读性 */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* 优化输入框 */
    input, textarea, select {
        font-size: 16px !important;
        padding: 12px !important;
        border-radius: 8px !important;
        border: 2px solid #ddd !important;
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: #4a90e2 !important;
        outline: none !important;
        box-shadow: 0 0 8px rgba(74, 144, 226, 0.3) !important;
    }
    
    /* 优化导航 */
    .navbar, .nav-container {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* 优化按钮组布局 */
    .hero-buttons, div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .hero-buttons .btn, .hero-buttons .cta-button {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
    }
    
    /* 优化卡片布局 */
    .competition-card, .student-card, .course-card, .event-card {
        margin-bottom: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    /* 优化模态框 */
    .modal, .course-modal, .event-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* 优化表单 */
    .booking-form, .contact-form {
        padding: 20px !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }
    
    /* 优化AI聊天窗口 */
    .ai-chat-window, .chat-window {
        width: 95% !important;
        height: 450px !important;
        max-height: 80vh !important;
        border-radius: 10px !important;
        bottom: 80px !important;
        right: 2.5% !important;
        left: auto !important;
        position: fixed !important;
        z-index: 1000 !important;
    }
    
    .ai-chat-button, .chat-button {
        bottom: 20px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    /* 优化聊天窗口内部元素 */
    .chat-header {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    
    .chat-body {
        padding: 15px 20px !important;
        max-height: 280px !important;
        overflow-y: auto !important;
    }
    
    .chat-footer {
        padding: 15px 20px !important;
    }
    
    .chat-message {
        margin-bottom: 12px !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
    
    .quick-questions .quick-btn {
        margin: 5px 0 !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 36px !important;
    }
    
    /* 优化网格布局 */
    .competitions-grid, .students-grid, .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    
    /* 优化页脚Logo */
    .footer-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .footer-logo img {
        height: 40px !important;
        width: auto !important;
    }
    
    .footer-logo > div {
        gap: 2px !important;
    }
    
    .footer-logo span {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* 优化标题字体大小 */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    /* 优化间距 */
    .section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
    
    /* 隐藏不必要元素 */
    .firefly, .hero-bg-animation {
        display: none !important;
    }
    
    /* 优化地图容器 */
    .map-container {
        height: 200px !important;
        margin: 20px 0 !important;
    }
    
    /* 快速访问菜单 */
    .quick-access {
        position: fixed;
        bottom: 80px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 999;
    }
    
    .quick-access .quick-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #4a90e2;
        color: white;
        border: none;
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
        transition: all 0.3s ease;
    }
    
    .quick-access .quick-btn:active {
        transform: scale(0.95);
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px 0 !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .ai-chat-window, .chat-window {
        max-height: 80vh !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    body {
        font-size: 14px !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .cta-button {
        padding: 12px 16px !important;
        font-size: 1rem !important;
    }
    
    .modal, .course-modal, .event-modal {
        width: 98% !important;
        margin: 5px auto !important;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    button:hover, .btn:hover, .cta-button:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    button:active, .btn:active, .cta-button:active {
        transform: scale(0.98) !important;
        opacity: 0.8 !important;
    }
}
