* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}

.nav a {
    margin-left: 28px;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #4361ee;
}

/* 主内容 */
main {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

.hero {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a1a2e;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    color: #4361ee;
}

/* 新闻列表 */
.news-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-item {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.news-item a:hover {
    color: #4361ee;
}

.news-date {
    color: #999;
    font-size: 14px;
}

/* 关于页 */
.about-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    line-height: 1.8;
}

/* 联系页 */
.contact-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
}

.contact-box p {
    margin-bottom: 12px;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav {
        margin-top: 12px;
    }
    
    .nav a {
        margin: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}
