/* 尊享专车服务页面 移动端样式 */

@media (max-width: 991.98px) {
    /* 横幅区域 */
    .banner-section {
        height: 60vh;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .rounded-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* 服务特点部分 */
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    /* 车型展示部分 */
    .car-img-container {
        height: 180px;
    }
    
    .car-details {
        padding: 20px;
    }
    
    .car-name {
        font-size: 1.3rem;
    }
    
    /* 价格部分 */
    .price-table {
        margin-bottom: 30px;
    }
    
    .price-header {
        padding: 20px 15px;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .price-body {
        padding: 25px 20px;
    }
    
    /* CTA部分 */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    /* 横幅区域 */
    .banner-section {
        position: relative;
        height: 48vh; /* 必须要有高度 */
        min-height: 400px;
        background-position: top !important;
        background: 
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url("/static/img/toyota_alphard_white-4.28828a0f7699.png") no-repeat center;
        background-size: contain;
        background-attachment: scroll;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
        /* margin-bottom: 25px; */
    }

    .banner-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
        color: #fff;
        position: absolute !important;
        bottom: 0 !important;
        margin-bottom: 15px !important;
    }
    
    /* 服务特点部分 */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title:after {
        width: 50px;
        margin: 15px auto 0;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    /* 车型展示部分 */
    .car-card {
        margin-bottom: 25px;
    }
    
    .car-img-container {
        height: 200px;
    }
    
    .car-name {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .car-specs {
        margin-bottom: 15px;
    }
    
    .car-spec {
        font-size: 0.8rem;
        padding: 5px 10px;
        margin: 0 5px 5px 0;
    }
    
    /* 价格部分 */
    .price-name {
        font-size: 1.2rem;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .price-period {
        font-size: 0.8rem;
    }
    
    .price-feature {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    /* 客户评价部分 */
    .testimonial-card {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .testimonial-quote {
        font-size: 0.95rem;
        padding-left: 25px;
        margin-bottom: 20px;
    }
    
    .testimonial-quote:before {
        font-size: 40px;
        top: -10px;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    /* CTA部分 */
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    /* 横幅区域 */

    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 0.95rem;
        /* margin-bottom: 20px; */
    }
    
    .rounded-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* 服务特点部分 */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    /* 车型展示部分 */
    .car-details {
        padding: 15px;
    }
    
    .car-name {
        font-size: 1.1rem;
    }
    
    .btn-outline-primary,
    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* 价格部分 */
    .price-header {
        padding: 15px;
    }
    
    .price-name {
        font-size: 1.1rem;
    }
    
    .price-value {
        font-size: 1.6rem;
    }
    
    .price-body {
        padding: 20px 15px;
    }
    
    /* 客户评价部分 */
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .testimonial-quote {
        font-size: 0.9rem;
        padding-left: 20px;
    }
    
    .testimonial-stars {
        font-size: 0.8rem;
    }
    
    /* CTA部分 */
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* 移动端特定优化 */
@media (max-width: 767.98px) {
    /* 固定底部导航 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        font-size: 0.8rem;
        width: 25%;
        text-align: center;
    }
    
    .mobile-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 5px;
        color: #555;
        display: block;
    }
    
    .mobile-nav-item span {
        display: block;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .mobile-nav-item.active {
        color: var(--primary);
    }
    
    .mobile-nav-item.active i {
        color: var(--primary);
    }
    
    /* 主内容区域添加底部边距，防止被底部导航遮挡 */
    .car-service-page {
        padding-bottom: 70px;
    }
    
    /* 优化滚动体验 */
    .car-type-section .row,
    .price-section .row,
    .testimonial-section .row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
        margin-bottom: -15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .car-type-section .row::-webkit-scrollbar,
    .price-section .row::-webkit-scrollbar,
    .testimonial-section .row::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .car-type-section .col-md-4,
    .price-section .col-md-4,
    .testimonial-section .col-md-4 {
        flex: 0 0 85%;
        max-width: 85%;
        padding-right: 15px;
    }
    
    /* 滚动指示器 */
    .scroll-indicator {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    
    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        margin: 0 4px;
    }
    
    .scroll-dot.active {
        background: var(--primary);
    }
    
    /* 优化图标与文字的位置关系 */
    .car-spec {
        display: inline-flex;
        align-items: center;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    .car-spec i {
        margin-right: 5px;
        font-size: 0.9rem;
        min-width: 14px;
        text-align: center;
    }
    
    .price-feature {
        display: flex;
        align-items: flex-start;
    }
    
    .price-feature i {
        margin-right: 8px;
        min-width: 16px;
        text-align: center;
        margin-top: 3px;
    }
    
    /* Coming Soon 移动端样式 */
    .coming-soon-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .coming-soon-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* 移动端模态框优化 */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 16px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
        border-radius: 16px 16px 0 0;
        flex-shrink: 0;
        background: var(--gradient-primary);
        color: #fff;
    }
    
    .modal-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
    }
    
    .modal-header .btn-close {
        width: 36px;
        height: 36px;
        padding: 0;
        margin: 0;
        font-size: 1.3rem;
        opacity: 0.9;
        filter: invert(1) brightness(2);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    
    .modal-header .btn-close:hover,
    .modal-header .btn-close:focus {
        opacity: 1;
        transform: scale(1.1);
    }
    
    .modal-body {
        padding: 1.25rem 1rem;
        overflow-y: auto;
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
        background-color: #fff;
    }
    
    .modal-body .table {
        font-size: 0.9rem;
        margin-bottom: 0;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    .modal-body .table td {
        padding: 0.875rem 0.625rem;
        word-break: break-word;
        vertical-align: top;
        border: 1px solid #e9ecef;
    }
    
    .modal-body .table td:first-child {
        border-left: none;
    }
    
    .modal-body .table td:last-child {
        border-right: none;
    }
    
    .modal-body .table td.fw-bold {
        width: 35%;
        min-width: 95px;
        font-size: 0.875rem;
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
    }
    
    /* 行李指南行特殊处理 */
    .modal-body .table td[rowspan] {
        vertical-align: top;
        padding-top: 0.875rem;
        background-color: #f8f9fa;
        font-weight: 600;
    }
    
    /* 行李指南内容行 - 使用更兼容的选择器 */
    .modal-body .table tbody tr td[rowspan] ~ td {
        padding-left: 0.875rem;
        color: #212529;
    }
    
    .modal-footer {
        padding: 1rem;
        border-top: 1px solid #dee2e6;
        flex-shrink: 0;
        display: flex;
        gap: 0.75rem;
        background-color: #f8f9fa;
        border-radius: 0 0 16px 16px;
    }
    
    .modal-footer .btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
        min-height: 44px; /* 提高触摸目标大小 */
    }
    
    .modal-footer .btn-secondary {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #fff;
    }
    
    .modal-footer .btn-secondary:hover,
    .modal-footer .btn-secondary:active {
        background-color: #5a6268;
        border-color: #545b62;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .modal-footer .btn-primary {
        background-color: var(--primary);
        border-color: var(--primary);
    }
    
    .modal-footer .btn-primary:hover,
    .modal-footer .btn-primary:active {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(248,127,58,0.3);
    }
    
    /* 改善表格在小屏幕上的显示 */
    .modal-body .table tbody tr {
        border-bottom: none;
    }
    
    .modal-body .table tbody tr:first-child td {
        border-top: none;
    }
    
    .modal-body .table tbody tr:last-child td {
        border-bottom: none;
    }
    
    /* 按钮图标优化 */
    .modal-footer .btn i {
        font-size: 1rem;
        vertical-align: middle;
        margin-right: 0.375rem;
    }
}

/* 更小屏幕优化 */
@media (max-width: 575.98px) {
    /* 模态框优化 */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-header .btn-close {
        width: 28px;
        height: 28px;
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem 0.875rem;
    }
    
    .modal-body .table {
        font-size: 0.85rem;
    }
    
    .modal-body .table td {
        padding: 0.625rem 0.4rem;
        line-height: 1.5;
    }
    
    .modal-body .table td.fw-bold {
        width: 38%;
        min-width: 85px;
        font-size: 0.8rem;
    }
    
    .modal-footer {
        padding: 0.875rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
        min-height: 48px; /* 更小的屏幕上保持更大的触摸目标 */
    }
    
    .modal-footer .btn i {
        font-size: 0.95rem;
    }
    
    /* 改善长文本显示 */
    .modal-body .table td {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* 行李指南文本更紧凑 */
    .modal-body .table td[rowspan] {
        font-size: 0.8rem;
        padding-top: 0.625rem;
    }
} 