/* --- 全局样式 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #2E8B57; /* 主题绿, 从Logo中提取 */
    --secondary-color: #6B8E23; /* 辅助绿 */
    --accent-color: #FFD700; /* 点缀黄, 类似Logo中的黄色 */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --gray-color: #666;
    --border-color: #ddd;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* --- 导航栏 --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1);
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* --- 轮播图 --- */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: var(--white-color);
}

.slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    max-width: 800px;
    animation: fadeInDown 1s ease-out 0.5s both;
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev { left: 20px; }
.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--white-color);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 快速搜索 --- */
.search-section {
    background-color: var(--light-color);
    padding: 0;
    margin-top: -75px;
    position: relative;
    z-index: 20;
}

.search-box {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.search-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    width: 100%;
    border-radius: var(--border-radius);
}

.btn-search:hover {
    background-color: var(--secondary-color);
}

/* --- 热门线路 --- */
.routes-section {
    padding: 80px 0;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.route-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.route-image {
    position: relative;
    height: 220px;
    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;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.route-info {
    padding: 20px;
}

.route-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.route-meta {
    display: flex;
    gap: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.route-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.route-desc {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    height: 60px; /* 限制描述高度 */
    overflow: hidden;
}

.route-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.price-label { font-size: 1rem; color: var(--primary-color); }
.price-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.price-unit { font-size: 0.9rem; color: var(--gray-color); }

/* --- 服务特色 --- */
.features-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray-color);
}

/* --- 客户评价 --- */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--light-color);
    z-index: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.user-info h4 { font-size: 1.2rem; }
.rating { color: var(--accent-color); }

.testimonial-text {
    color: var(--gray-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-date {
    font-size: 0.9rem;
    color: #999;
}

/* --- 旅游资讯 --- */
.news-section {
    padding: 80px 0;
    background: var(--white-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
}

/* --- 页脚 --- */
.footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #ccc;
}

.footer-section ul a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

/* --- 返回顶部按钮 --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slide-title { font-size: 3rem; }
    .slide-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .slide-title { font-size: 2.5rem; }
    .search-form { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}


