/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏 */
.navbar {
    background-color: #8B0000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    text-align: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border-radius: 4px;
}

.nav-links li a:hover {
    background-color: #A52A2A;
    transform: translateY(-2px);
}

/* 轮播图 */
.slider {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h1 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.feature-item h2 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background-color: #8B0000;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* 添加新的样式 */

/* 页面banner */
.page-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 文化页面样式 */
.culture-intro,
.food-intro,
.scenic-intro {
    text-align: center;
    margin: 3rem 0;
}

.culture-grid,
.food-grid,
.scenic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.culture-item,
.food-item,
.scenic-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.culture-item:hover,
.food-item:hover,
.scenic-item:hover {
    transform: translateY(-10px);
}

.culture-item img,
.food-item img,
.scenic-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.culture-content,
.food-content,
.scenic-content {
    padding: 1.5rem;
}

.culture-content h3,
.food-content h3,
.scenic-content h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }

    .culture-grid,
    .food-grid,
    .scenic-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-links li a {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* 文化页面特色样式 */
.culture-page {
    background-color: #FDF5E6;
}

.culture-banner {
    position: relative;
}

.culture-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(139,0,0,0.3), transparent);
}

.culture-title {
    font-family: "楷体", KaiTi, serif;
    text-align: center;
    font-size: 2.5rem;
    color: #8B0000;
    margin: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem;
}

.culture-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.culture-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 2rem;
}

/* 美食页面特色样式 */
.food-page {
    background-color: #FFF8DC;
}

.food-grid {
    column-count: 3;
    column-gap: 2rem;
    padding: 2rem;
}

.food-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.food-rating {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.food-rating .stars {
    color: #FFD700;
    margin-right: 1rem;
}

.food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.food-tag {
    background: #FFE4B5;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #8B4513;
}

/* 景点页面特色样式 */
.scenic-page {
    background-color: #F0FFF0;
}

.scenic-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    overflow: visible;
    white-space: normal;
}

.scenic-item {
    display: block;
    width: 100%;
    margin-right: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.scenic-season {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #228B22;
}

.scenic-panorama {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
}

.scenic-panorama img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 20s linear;
}

.scenic-panorama:hover img {
    transform: translateX(-50%);
} 

/* 景点页面样式补充 */
.scenic-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.scenic-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scenic-image-wrapper:hover img {
    transform: scale(1.1);
}

.scenic-season {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #228B22;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scenic-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.scenic-time, .scenic-price {
    background: #F0FFF0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.scenic-content {
    padding: 1.5rem;
}

.scenic-content h3 {
    color: #228B22;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.scenic-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 响应式布局补充 */
@media (max-width: 1024px) {
    .scenic-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scenic-container {
        grid-template-columns: 1fr;
    }
} 