/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    padding: 5px 0;
}

nav a:hover {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* 主内容区 */
main {
    padding-bottom: 40px;
}

section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h1 {
    font-size: 32px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

h3 {
    font-size: 20px;
    color: #3498db;
}

p {
    margin-bottom: 15px;
    color: #555;
}

/* 英雄区域 */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero h1 {
    border: none;
    padding: 0;
}

.hero p {
    font-size: 18px;
    color: #2c3e50;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* 资源区域 */
.resources {
    background: #f8f9fa;
}

.resource-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.resource-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 工具与学习链接 */
.combined-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #2980b9;
}

.combined-link:hover {
    background: #2980b9;
}

/* 链接区域 */
.link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.link-btn {
    display: inline-block;
    background: white;
    color: #3498db;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #3498db;
}

.link-btn:hover {
    background: #3498db;
    color: white;
}

.note {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0 15px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav a {
        margin: 0 10px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .link-container {
        justify-content: center;
    }
}
