/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    height: 50px;
}

/* 导航菜单样式更新 */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-block;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: #e74c3c;
}

/* 下拉菜单样式更新 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    color: #333;
    font-weight: normal;
    display: block;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #e74c3c;
    padding-left: 2rem;
}

/* 添加下拉箭头 */
.has-dropdown > a::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5rem;
}

/* Banner样式 */
.banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主要内容区样式 */
main {
    padding: 2rem 5%;
}

.hot-events h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card h3 {
    padding: 1rem;
    color: #2c3e50;
}

.event-card p {
    padding: 0 1rem;
    color: #7f8c8d;
}

.event-card button {
    display: block;
    width: 80%;
    margin: 1rem auto;
    padding: 0.8rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.event-card button:hover {
    background: #c0392b;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background: #2c3e50;
    color: #fff;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0.5rem 0;
        padding-left: 1rem;
        min-width: auto;
        display: block;
    }
    
    .dropdown-menu li {
        text-align: left;
    }
    
    .dropdown-menu li a {
        padding: 0.5rem 1rem;
    }
} 