/* 旅行社在线旅游产品查询报名系统主样式文件 */

/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 头部样式 */
.header-top {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
}

.header-main {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 导航样式 */
.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* 轮播图样式 */
.carousel-item {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background-color: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 8px;
}

/* 产品卡片样式 */
.product-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 15px;
}

.product-card .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .price {
    color: var(--danger-color);
    font-size: 18px;
    font-weight: bold;
}

.product-card .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 10px;
}

/* 筛选区域样式 */
.filter-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-section h5 {
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* 产品详情样式 */
.product-detail {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-gallery {
    margin-bottom: 20px;
}

.product-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-gallery .thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--primary-color);
}

/* 标签页样式 */
.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--primary-color);
}

.product-tabs .nav-link {
    color: var(--dark-color);
    border: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
}

.product-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* 价格日历样式 */
.price-calendar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.price-calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.price-calendar .calendar-day {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-calendar .calendar-day:hover {
    background-color: var(--primary-color);
    color: white;
}

.price-calendar .calendar-day.available {
    background-color: var(--success-color);
    color: white;
}

.price-calendar .calendar-day.unavailable {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* 评价样式 */
.review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-item .rating {
    color: var(--warning-color);
}

.review-item .review-content {
    margin-bottom: 10px;
}

.review-item .review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.review-item .review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* 用户中心样式 */
.user-center {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-center .sidebar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.user-center .sidebar .nav-link {
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.user-center .sidebar .nav-link:hover,
.user-center .sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.user-center .stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.user-center .stats-card .stats-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 订单样式 */
.order-table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
}

.order-table td {
    padding: 15px;
    vertical-align: middle;
}

.order-table .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.order-table .status-pending {
    background-color: var(--warning-color);
    color: white;
}

.order-table .status-paid {
    background-color: var(--success-color);
    color: white;
}

.order-table .status-cancelled {
    background-color: var(--danger-color);
    color: white;
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: white;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #ccc;
}

.footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item {
        height: 250px;
    }
    
    .product-card .card-title {
        height: auto;
        -webkit-line-clamp: 3;
    }
    
    .product-gallery .main-image {
        height: 250px;
    }
    
    .user-center .sidebar {
        margin-bottom: 20px;
    }
    
    .order-table {
        font-size: 14px;
    }
    
    .order-table th,
    .order-table td {
        padding: 10px 5px;
    }
}

/* 576px以下产品分类布局调整 - 超强化版本 */
@media (max-width: 576px) {
    /* 覆盖Bootstrap所有可能的样式 */
    .category-section .row > .col-md-3,
    .category-section .row > .col-sm-6,
    .category-section .row > div[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 0 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 确保服务特色区域也保持两列布局 */
    .features-section .row > .col-md-3,
    .features-section .row > .col-sm-6,
    .features-section .row > div[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 0 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 确保row容器正确布局 */
    .category-section .row,
    .features-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -8px !important;
    }
}

/* 移动端底部导航栏 - 最终解决方案 */
@media (max-width: 768px) {
    /* 确保导航栏固定在屏幕底部 - 最高优先级 */
    html body nav.bottom-nav,
    body nav.bottom-nav,
    nav.bottom-nav,
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
        background: white !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        width: 100% !important;
        height: 60px !important;
        max-height: 60px !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        display: flex !important;
        border: none !important;
        border-radius: 0 !important;
        top: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* 确保body为导航栏留出空间 */
    html body,
    body {
        padding-bottom: 60px !important;
        margin-bottom: 0 !important;
        min-height: 100vh !important;
        position: relative !important;
    }
    
    /* 确保主要内容区域不被遮挡 */
    html body .main-content,
    body .main-content,
    .main-content {
        margin-bottom: 0 !important;
        padding-bottom: 20px !important;
    }
    
    /* 确保页脚不被遮挡 */
    html body footer,
    body footer,
    footer {
        margin-bottom: 60px !important;
    }
    
    /* 重置所有可能的干扰样式 */
    html body nav.bottom-nav *,
    body nav.bottom-nav *,
    nav.bottom-nav *,
    .bottom-nav * {
        box-sizing: border-box !important;
    }
    
    html body nav.bottom-nav .d-flex,
    body nav.bottom-nav .d-flex,
    nav.bottom-nav .d-flex,
    .bottom-nav .d-flex {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    html body nav.bottom-nav .nav-item,
    body nav.bottom-nav .nav-item,
    nav.bottom-nav .nav-item,
    .bottom-nav .nav-item {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    
    html body nav.bottom-nav .nav-link,
    body nav.bottom-nav .nav-link,
    nav.bottom-nav .nav-link,
    .bottom-nav .nav-link {
        color: #666 !important;
        font-size: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        height: 50px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 5px !important;
        border: none !important;
        background: transparent !important;
        text-decoration: none !important;
        justify-content: center !important;
    }
    
    html body nav.bottom-nav .nav-link.active,
    body nav.bottom-nav .nav-link.active,
    nav.bottom-nav .nav-link.active,
    .bottom-nav .nav-link.active {
        color: var(--primary-color) !important;
        background: transparent !important;
    }
    
    html body nav.bottom-nav .nav-link i,
    body nav.bottom-nav .nav-link i,
    nav.bottom-nav .nav-link i,
    .bottom-nav .nav-link i {
        font-size: 20px !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具类 */
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }

.border-primary { border-color: var(--primary-color); }
.border-success { border-color: var(--success-color); }
.border-danger { border-color: var(--danger-color); }
.border-warning { border-color: var(--warning-color); }
.border-info { border-color: var(--info-color); }

/* 行程安排样式优化 */
.itinerary-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.itinerary-day {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.day-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.day-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.day-location {
    font-size: 0.95rem;
    margin-top: 5px;
}

.accommodation-info {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.itinerary-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.itinerary-feature {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e3f2fd;
}

.itinerary-details {
    line-height: 1.6;
}

.itinerary-item {
    display: flex;
    align-items: flex-start;
}

.itinerary-item i {
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .itinerary-day {
        padding: 15px;
    }
    
    .day-title {
        font-size: 1.1rem;
    }
    
    .itinerary-features {
        gap: 5px;
    }
    
    .itinerary-feature {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}
.cost-excludes-container .card {
    transition: transform 0.2s ease-in-out;
}

.cost-excludes-container .card:hover {
    transform: translateY(-2px);
}

.cost-excludes-container .card-header h5 {
    font-size: 1.1rem;
}

.cost-excludes-container .card-body h6 {
    font-size: 0.9rem;
    font-weight: 600;
}