/* 完整样式文件 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&display=swap');

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.8;
}

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

/* 导航栏 */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 500;
    color: #34495e;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav a:hover {
    color: #3498db;
    text-decoration: none;
    background: #ecf0f1;
    border-radius: 4px;
}

@media (max-width: 768px) {
    nav a {
        padding: 8px 4px;
        font-size: 13px;
    }
}

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

h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 30px 0;
    color: #2c3e50;
    text-align: center;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #34495e;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

section {
    background: #fff;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* 卡片列表 */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.card h3 a {
    color: #2c3e50;
}

.card h3 a:hover {
    color: #3498db;
}

.card p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 8px 0;
    line-height: 1.6;
}

.card small {
    color: #95a5a6;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    .card-list { grid-template-columns: 1fr; }
}
