/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.logo-icon {
    margin-right: 8px;
    font-size: 24px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
    color: white;
    border-bottom-color: #ff9800;
}

.user-actions .login-btn {
    background: #ff9800;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.user-actions .login-btn:hover {
    background: #f57c00;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
}

.banner-slide {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-slide.active {
    display: flex;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #f57c00;
    transform: translateY(-2px);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* 分类入口 */
.categories {
    background: white;
    padding: 30px 0;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    background: #f5f5f5;
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-item span {
    display: block;
    font-size: 14px;
    color: #666;
}

/* 热门线路 */
.hot-tours,
.recommend-tours {
    background: white;
    padding: 30px 0;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.more-link {
    color: #1976d2;
    font-size: 14px;
}

.more-link:hover {
    color: #0d47a1;
}

/* 线路卡片网格 */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tour-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-info {
    padding: 15px;
}

.tour-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.tour-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.tour-price {
    color: #ff5722;
    font-size: 12px;
}

.tour-price .price {
    font-size: 20px;
    font-weight: bold;
}

.tour-price .original {
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.book-btn {
    background: #ff9800;
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s;
}

.book-btn:hover {
    background: #f57c00;
}

/* 标签导航 */
.tab-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.tab-item {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-item:hover,
.tab-item.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}

/* 线路列表 */
.tour-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 底部 */
.footer {
    background: #263238;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tour-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tour-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }
    
    .nav {
        display: none;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tour-list {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px;
    }
}

/* 列表页样式 */
.page-header {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.filter-bar {
    background: white;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    color: #666;
    font-size: 14px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-option {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-option:hover,
.filter-option.active {
    background: #1976d2;
    color: white;
}

/* 详情页样式 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.detail-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 30px;
    color: #666;
    font-size: 14px;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.detail-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

.detail-sidebar {
    position: sticky;
    top: 80px;
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.booking-price {
    margin-bottom: 20px;
}

.booking-price .label {
    color: #666;
    font-size: 14px;
}

.booking-price .price {
    color: #ff5722;
    font-size: 32px;
    font-weight: bold;
}

.booking-price .original {
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.booking-form .form-group {
    margin-bottom: 15px;
}

.booking-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: #1976d2;
}

.booking-submit {
    width: 100%;
    background: #ff9800;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.booking-submit:hover {
    background: #f57c00;
}

/* 登录页样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #1976d2;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-links a {
    color: #1976d2;
}

/* 订单页样式 */
.order-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.order-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.order-no {
    color: #999;
}

.order-status {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.order-status.pending {
    background: #fff3e0;
    color: #ff9800;
}

.order-status.confirmed {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status.completed {
    background: #e8f5e9;
    color: #4caf50;
}

.order-status.cancelled {
    background: #f5f5f5;
    color: #999;
}

.order-body {
    display: flex;
    gap: 15px;
}

.order-image {
    width: 100px;
    height: 75px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 15px;
    margin-bottom: 8px;
}

.order-meta {
    font-size: 13px;
    color: #666;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.order-total {
    font-size: 14px;
}

.order-total .price {
    color: #ff5722;
    font-size: 18px;
    font-weight: bold;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-actions button {
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: white;
    border: 1px solid #ddd;
    color: #666;
}

.btn-cancel:hover {
    border-color: #999;
}

.btn-pay {
    background: #ff9800;
    border: none;
    color: white;
}

.btn-pay:hover {
    background: #f57c00;
}
