/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.main-nav {
    background: linear-gradient(to right, #8B0000, #B22222);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FFD700;
}

/* 轮播图样式 */
.slider-container {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 500px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

/* 主要内容区样式 */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.featured-destinations {
    margin: 3rem 0;
}

.featured-destinations h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-card h3 {
    padding: 1rem;
    color: #8B0000;
}

.destination-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* 留言板样式 */
.message-board {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.message-board h2 {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

button[type="submit"] {
    background: #8B0000;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #B22222;
}

#message-list {
    margin-top: 2rem;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

/* 二级页面样式 */
.scenic-spots {
    padding-top: 6rem;
}

.page-title {
    text-align: center;
    color: #8B0000;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.scenic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.scenic-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.scenic-card:hover {
    transform: translateY(-10px);
}

.scenic-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.scenic-info {
    padding: 1.5rem;
}

.scenic-info h2 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.scenic-features {
    display: flex;
    gap: 1rem;
}

.scenic-features span {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.scenic-intro {
    background: #f9f9f9;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.scenic-intro h2 {
    color: #8B0000;
    text-align: center;
    margin-bottom: 2rem;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

.intro-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }
} 