/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ==================== 顶部导航栏 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #2c5aa0;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-size: 16px;
    color: #555;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2c5aa0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-app {
    padding: 8px 20px;
    background: #2c5aa0;
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

.btn-app:hover {
    background: #1e4080;
}

.btn-login {
    padding: 8px 20px;
    border: 1px solid #2c5aa0;
    color: #2c5aa0;
    border-radius: 20px;
    font-size: 14px;
}

.btn-login:hover {
    background: #2c5aa0;
    color: white;
}

/* ==================== Hero区域 ==================== */
.hero-section {
    min-height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content > p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* 搜索框 */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-tabs {
    display: flex;
    gap: 30px;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.search-tabs span {
    padding: 8px 16px;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-tabs span:hover,
.search-tabs span.active {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.search-input-wrapper i {
    color: #999;
    font-size: 18px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-input-wrapper input::placeholder {
    color: #aaa;
}

.search-btn {
    padding: 12px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ==================== 通用标题样式 ==================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.section-header .view-more {
    display: inline-block;
    margin-top: 15px;
    color: #2c5aa0;
    font-size: 15px;
}

.section-header .view-more:hover {
    color: #1e4080;
}

.section-header .view-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.section-header .view-more:hover i {
    transform: translateX(5px);
}

/* ==================== 精选路书 ==================== */
.routes-section {
    background: white;
}

.route-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.route-tabs span {
    padding: 10px 25px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.route-tabs span:hover,
.route-tabs span.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.route-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.route-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.route-card:hover .route-image img {
    transform: scale(1.1);
}

.route-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    border-radius: 15px;
}

.route-info {
    padding: 20px;
}

.route-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.route-info p {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.route-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.route-meta .price {
    margin-left: auto;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 16px;
}

/* ==================== 定制服务 ==================== */
.custom-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.custom-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-size: 14px;
}

.service-btn:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ==================== 出行攻略 ==================== */
.guides-section {
    background: white;
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
}

.guide-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.guide-card.featured {
    grid-row: span 2;
}

.guide-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.guide-card.featured img {
    height: 100%;
    min-height: 525px;
}

.guide-content {
    padding: 20px;
}

.guide-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.guide-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.guide-card.featured .guide-content h3 {
    font-size: 20px;
}

.guide-content p {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.7;
}

.guide-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== 平台优势 ==================== */
.features-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.features-section .section-header h2 {
    color: white;
}

.features-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 28px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ==================== 关于我们 ==================== */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: #999;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
}

.footer-section ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-section ul li i {
    margin-right: 8px;
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    color: #888;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-services {
        grid-template-columns: 1fr;
    }
    
    .guides-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .guide-card.featured {
        grid-column: span 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding: 15px 0;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content > p {
        font-size: 16px;
    }
    
    .search-box {
        padding: 5px;
    }
    
    .search-tabs {
        gap: 15px;
        padding: 8px 15px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .route-tabs {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .guide-card img,
    .guide-card.featured img {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动时显示动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
