/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
}

/* 顶部导航栏样式 */
.top-nav {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.nav-icon {
    height: 30px;
    width: auto;
}

.nav-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 10px;
}

/* 幻灯片样式 */
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

/* 全宽图片样式 */
.full-width-image {
    display: block;       /* 确保图片是块级元素 */
    width: 100%;         /* 占满父容器宽度 */
    min-width: 100%;     /* 防止 Flex/Grid 布局压缩 */
    height: 500px;       /* 固定高度 */
    object-fit: cover;   /* 保持比例并覆盖区域 */
    margin: 30px 0;      /* 上下边距 */
    box-sizing: border-box; /* 防止 padding/border 影响宽度 */
}

/* 简介部分 */
.intro {
    background-color: #f9f9f9;
    text-align: justify;
    text-indent: 2em;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.intro-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.intro-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.intro-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    position: relative;
}

.intro-main-img {
    width: 100%;
    height: 350px;
    margin-left: -30px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-thumbnails {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.intro-thumbnail {
    width: 23%;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.3s;
}

.intro-thumbnail:hover {
    transform: scale(1.05);
}

/* 美景模块 */
.scenery {
    background-color: white;
}

.scenery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.scenery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.scenery-item:hover {
    transform: translateY(-5px);
}

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

.scenery-info {
    padding: 15px;
}

.scenery-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 底部导航栏 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 后台按钮 */
.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .slider {
        height: 400px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text, .intro-image {
        min-width: 100%;
    }
    
    .full-width-image {
        height: 200px;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .nav-text {
        font-size: 1rem;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}