/* ===================================
   驰骋驾校 - 响应式样式
   适配不同屏幕尺寸
   =================================== */

/* 大屏幕设备 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕设备 (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: var(--shadow-soft);
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .stat-card {
        margin-bottom: 2rem;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* 教练卡片调整 */
    .coach-photo {
        width: 120px;
        height: 120px;
    }
    
    /* 时间线调整 */
    .timeline::before {
        left: 30px;
    }
}

/* 手机设备 (576px - 767px) */
@media (max-width: 767px) {
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* 卡片间距调整 */
    .card-custom {
        margin-bottom: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .advantage-title {
        font-size: 1.1rem;
    }
    
    /* 教练卡片 */
    .coach-photo {
        width: 100px;
        height: 100px;
    }
    
    .coach-name {
        font-size: 1.2rem;
    }
    
    /* 评价卡片 */
    .review-card {
        padding: 1.5rem;
    }
    
    .review-avatar {
        width: 50px;
        height: 50px;
    }
    
    /* 表单调整 */
    .form-control-custom {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* 相册网格 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* 页脚 */
    footer {
        padding: 3rem 0 !important;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer ul li {
        font-size: 0.9rem;
    }
}

/* 小手机设备 (576px以下) */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .coach-photo {
        width: 80px;
        height: 80px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    /* 按钮全宽 */
    .btn-submit,
    .btn-hero {
        width: 100%;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .navbar {
        position: relative;
    }
    
    main.mt-5 {
        margin-top: 0 !important;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .coach-photo,
    .review-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .card-custom:hover {
        transform: none;
    }
    
    .btn-primary-custom:hover,
    .btn-submit:hover,
    .btn-hero:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    footer,
    .btn-submit,
    .btn-hero {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .card-custom {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
