/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 中国风配色 */
:root {
    --primary-color: #8B0000;    /* 暗红色 */
    --secondary-color: #DAA520;  /* 金色 */
    --accent-color: #006400;     /* 深绿色 */
    --text-color: #333;
    --light-bg: #f9f9f9;
}

/* 布局样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航栏样式 */
nav {
    background-color: var(--secondary-color);
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--accent-color);
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* 中国风装饰元素 */
.chinese-border {
    border: 2px solid var(--secondary-color);
    padding: 20px;
    position: relative;
}

.chinese-border::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
} 

/* 特色栏目样式 */
.features {
    margin-top: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.feature-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
} 

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.img-caption {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
} 

/* 内容网格样式 */
.content-grid {
    margin-top: 40px;
}

.content-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.content-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.content-item:hover {
    transform: translateY(-5px);
}

.content-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.content-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .content-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
} 

/* 旅行贴士样式 */
.travel-tips {
    margin-top: 40px;
    padding: 30px;
}

.travel-tips h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.travel-tips ul {
    list-style: none;
    padding: 0;
}

.travel-tips li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.travel-tips li::before {
    content: "•";
    color: var(--secondary-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
} 

/* 导航栏活动项样式 */
nav a.active {
    background-color: var(--accent-color);
    color: white;
}

/* 滚动动画 */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .image-viewer img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .scroll-to-top {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
} 

/* 视频容器样式 */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} 