/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* 导航栏样式 */
header {
    background-color: #2c5f2d;
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    flex-wrap: nowrap;
    gap: 1rem;
    position: relative;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    position: relative;
    transform: none;
    opacity: 1;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    padding: 0;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #97bc62;
}

/* 搜索框样式 */
.search-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    width: 40px;
    transition: width 0.3s ease;
    overflow: hidden;
    z-index: 9999;
    position: relative;
    background-color: #97bc62;
    border-radius: 4px;
    cursor: pointer;
}

.search-wrapper.active {
    width: 250px;
}

.search-wrapper input {
    padding: 0.4rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: white;
    color: #333;
    pointer-events: none;
}

.search-wrapper.active input {
    opacity: 1;
    pointer-events: auto;
}

.search-wrapper button {
    padding: 0.6rem;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    z-index: 9999;
    position: relative;
}

.search-wrapper button svg {
    fill: white;
    stroke: white;
}

.search-wrapper.active button {
    border-radius: 0 4px 4px 0;
}

.search-wrapper button:hover {
    background-color: #7a9a4a;
}

.search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 首页横幅样式 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/id/106/1200/800');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* 首页搜索框样式 */
.hero-search {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-search input::placeholder {
    color: #666;
}

.hero-search button {
    padding: 1rem 2rem;
    background-color: #97bc62;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-search button:hover {
    background-color: #7a9a4a;
}

.hero-search button svg {
    fill: white;
    stroke: white;
}

.cta-btn {
    display: inline-block;
    background-color: #97bc62;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #7a9a4a;
}

/* 页面标题样式 */
.page-header {
    background-color: #2c5f2d;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.page-header h2 {
    font-size: 2.5rem;
}

/* 关于我们样式 */
.about {
    padding: 4rem 0;
    background-color: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    margin-right: 2rem;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 特色景点样式 */
.features {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3 {
    padding: 1rem;
    text-align: center;
    color: #2c5f2d;
}

.feature-card p {
    padding: 0 1rem 1rem;
    text-align: center;
}

/* 最新动态样式 */
.news-preview {
    padding: 4rem 0;
    background-color: white;
}

.news-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
}

.news-item p {
    margin-bottom: 1rem;
}

.read-more {
    color: #97bc62;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #7a9a4a;
}

/* 新闻页面样式 */
.news-section {
    padding: 4rem 0;
    background-color: white;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-article {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 5px;
    border-left: 5px solid #2c5f2d;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-article h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
}

/* 票价信息页面样式 */
.tickets-section {
    padding: 4rem 0;
    background-color: white;
}

.ticket-info {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 5px;
}

.ticket-info h3 {
    color: #2c5f2d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.ticket-table {
    margin-bottom: 2rem;
}

.ticket-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ticket-table th,
.ticket-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ticket-table th {
    background-color: #2c5f2d;
    color: white;
}

.ticket-table tr:hover {
    background-color: #f5f5f5;
}

.opening-hours {
    margin-bottom: 2rem;
}

.opening-hours p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ticket-notes ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.ticket-notes li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 游览路线页面样式 */
.routes-section {
    padding: 4rem 0;
    background-color: white;
}

.route-info h3 {
    color: #2c5f2d;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.route-card {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.route-card h4 {
    color: #2c5f2d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.route-map {
    margin-bottom: 1.5rem;
}

.route-map img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.route-description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.route-description ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.route-description li {
    margin-bottom: 0.5rem;
}

.route-tips {
    background-color: #e8f5e8;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 5px solid #97bc62;
}

.route-tips h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.5rem;
}

.route-tips ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.route-tips li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 旅游攻略页面样式 */
.guides-section {
    padding: 4rem 0;
    background-color: white;
}

.guide-content h3 {
    color: #2c5f2d;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.guide-card {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.guide-text {
    flex: 1;
    margin-right: 2rem;
    min-width: 300px;
}

.guide-text h4 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guide-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-text li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.guide-image {
    flex: 1;
    min-width: 300px;
}

.guide-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guide-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tip-card {
    background-color: #e8f5e8;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h4 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.tip-card p {
    margin-bottom: 0.5rem;
    text-align: center;
}

.nearby-attractions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background-color: #f4f4f4;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.attraction-card:hover {
    transform: translateY(-5px);
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.attraction-card h4 {
    color: #2c5f2d;
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.attraction-card p {
    padding: 0 1rem 1rem;
    text-align: center;
}

/* 页脚样式 */
footer {
    background-color: #2c5f2d;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-info {
    flex: 1;
    margin-right: 2rem;
    min-width: 300px;
}

.footer-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-links {
    flex: 1;
    min-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #97bc62;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a7c4a;
}

/* 季节特色样式 */
.seasons {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

.seasons h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.season-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.season-card:hover {
    transform: translateY(-5px);
}

.season-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.season-card h3 {
    padding: 1rem;
    text-align: center;
    color: #2c5f2d;
}

.season-card p {
    padding: 0 1rem 1rem;
    text-align: center;
}

/* 游客评价样式 */
.reviews {
    padding: 4rem 0;
    background-color: white;
}

.reviews h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.reviewer-info h4 {
    color: #2c5f2d;
    font-size: 1.1rem;
}

.review-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rating {
    color: #f39c12;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 交通指南样式 */
.transportation {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

.transportation h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.transport-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.transport-info {
    flex: 1;
    margin-right: 2rem;
    min-width: 300px;
}

.transport-info h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.transport-info ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.transport-info li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.transport-image {
    flex: 1;
    min-width: 300px;
}

.transport-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    .navbar {
        width: 90%;
    }

    .search-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c5f2d;
        padding: 1rem;
        margin-left: 0;
        display: none;
        border-top: 1px solid #4a7c4a;
    }

    .search-container.active {
        display: flex;
        justify-content: center;
    }

    .search-container input {
        width: 70%;
        max-width: 300px;
    }

    .search-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: auto;
        max-height: 92vh;
        top: 100%;
        background-color: #2c5f2d;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        opacity: 0;
        padding: 1rem 0;
    }

    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
        opacity: 1;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content,
    .guide-card {
        flex-direction: column;
    }

    .about-text,
    .guide-text {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .transport-content {
        flex-direction: column;
    }
    
    .transport-info {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .seasons-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .nav-links {
        width: 100%;
    }

    .feature-grid,
    .news-grid,
    .guide-tips,
    .nearby-attractions {
        grid-template-columns: 1fr;
    }
}

/* 地图展示 */
.map-section {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5f2d;
    font-size: 2rem;
}

#map {
    width: 100%;
    height: 500px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#route1-map,
#route2-map,
#route3-map {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.route-map {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}