/* 公共样式 - 导航栏、轮播图、页脚 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F1E8D4;
}

/* 页面头部样式 */
.header {
    background: #902E21;
    color: white;
    padding: 0;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

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

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 轮播图区域 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 16.666%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* 轮播图控制按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(144, 46, 33, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
    opacity: 0;
}

.hero:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(144, 46, 33, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 页面底部 */
.footer {
    background: #902E21;
    color: white;
    padding: 50px 0 20px 0;
}


.footer-section {
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #FFD700;
}

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

.destination-card {
    text-align: center;
    transition: transform 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
}

.destination-card h4 {
    font-size: 14px;
    color: white;
}

/* 版权信息区域 */
.copyright-section {
    background: #902E21;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.copyright-section p {
    margin: 0;
    font-size: 14px;
}

/* 通用区域样式 */
.content-section {
    background: #F1E8D4;
    padding: 60px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #902E21;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}