/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素样式 */
:root {
    --primary-color: #8B0000;
    --secondary-color: #CD853F;
    --text-color: #333;
    --bg-color: #FFF8DC;
    --header-height: 80px;
}

/* 标签选择器 */
body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 后代选择器 */
header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ID选择器 */
#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 类选择器 */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 伪类选择器 */
a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 属性选择器 */
input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 子代选择器 */
nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: var(--primary-color);
}

/* 头部样式 */
header {
    height: var(--header-height);
    padding: 0 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* 导航样式 */
.main-nav {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--secondary-color);
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 内容区域样式 */
.intro {
    padding: 3rem 2rem;
    text-align: center;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.season {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.season h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.season ul {
    list-style: none;
}

.season li {
    margin: 0.5rem 0;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .season-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
    }
} 