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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #2c7744;
    transition: all 0.3s ease;
}

a:hover {
    color: #1a5e2c;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c7744;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1a5e2c;
    color: #fff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #2c7744;
    color: #fff;
    border: none;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #1a5e2c;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c7744;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2c7744;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 2rem;
    color: #2c7744;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c7744;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(rgba(44, 119, 68, 0.8), rgba(44, 119, 68, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0 50px;
    margin-top: 72px;
}

.page-header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 72px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 关于区域样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 村庄历史样式 */
.village-history {
    padding-top: 40px;
}

.history-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.history-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-item h3 {
    color: #2c7744;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 景点特色样式 */
.attractions {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.attraction-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.attraction-card h3 {
    padding: 15px 15px 5px;
    color: #2c7744;
}

.attraction-card p {
    padding: 0 15px 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.attraction-card .btn-small {
    margin: 0 15px 15px;
    align-self: flex-start;
}

/* 特色景点推荐样式 */
.featured-attraction {
    padding-top: 30px;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    color: #2c7744;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.feature-text p {
    margin-bottom: 15px;
}

.feature-text .btn {
    margin-top: 10px;
}

/* 特产产品样式 */
.products {
    padding: 80px 0;
    background-color: #fff;
}

.products-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #2c7744 #f0f0f0;
}

.products-slider::-webkit-scrollbar {
    height: 8px;
}

.products-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.products-slider::-webkit-scrollbar-thumb {
    background-color: #2c7744;
    border-radius: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-item h3 {
    padding: 15px 15px 5px;
    color: #2c7744;
}

.product-item p {
    padding: 0 15px 15px;
    flex-grow: 1;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 15px;
}

.product-price span {
    font-weight: bold;
    color: #e74c3c;
}

/* 产品滑块按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2c7744;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* 旅游指南样式 */
.tourism {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.tourism-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.tourism-map {
    flex: 1;
    position: relative;
}

.tourism-map img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 119, 68, 0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tourism-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: #2c7744;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-item h3 i {
    margin-right: 10px;
}

/* 旅行小贴士样式 */
.travel-tips {
    margin-bottom: 60px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tip-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tip-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(44, 119, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tip-icon i {
    font-size: 30px;
    color: #2c7744;
}

.tip-item h3 {
    margin-bottom: 15px;
    color: #2c7744;
}

/* 推荐行程样式 */
.tour-packages {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.packages-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.package-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.package-item h3 {
    color: #2c7744;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #2c7744;
    padding-bottom: 10px;
}

.package-item ul {
    padding-left: 20px;
}

.package-item li {
    margin-bottom: 10px;
}

.package-item ul ul {
    margin-top: 10px;
}

/* 图片画廊样式 */
.gallery {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 200px;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info .info-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
}

.contact-info .info-item i {
    font-size: 2rem;
    color: #2c7744;
    margin-top: 5px;
}

.info-content h3 {
    color: #2c7744;
    margin-bottom: 10px;
}

.contact-form {
    flex: 2;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #2c7744;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2c7744;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 位置地图样式 */
.map-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container {
    margin: 30px 0;
}

.map-container img {
    width: 100%;
    border-radius: 10px;
}

.map-info h3 {
    color: #2c7744;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.transportation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.transport-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.transport-item i {
    font-size: 1.5rem;
    color: #2c7744;
    margin-top: 5px;
}

.transport-item h4 {
    margin-bottom: 10px;
    color: #2c7744;
}

/* 表单消息样式 */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* 页脚样式 */
footer {
    background-color: #2c7744;
    color: #fff;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.center-content {
    text-align: center;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #fff;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* 动画效果 */
.pre-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {

    .about-content,
    .tourism-content,
    .contact-container,
    .feature-content {
        flex-direction: column;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - 72px);
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        width: 100%;
        text-align: left;
    }

    .footer-links h3::after,
    .footer-social h3::after {
        left: 0;
        transform: none;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-logo .center-content {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .tourism-info {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .transportation {
        grid-template-columns: 1fr;
    }
}