/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    color: #fff;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: #3498db;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #777;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: #3498db;
}

/* 英雄区域样式 */
.hero {
    background-color: #3498db;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 文章卡片样式 */
.featured-articles {
    padding: 60px 0;
}

.featured-articles h2,
.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    position: relative;
}

.featured-articles h2:after,
.related-articles h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 300px)); /* 固定3列 */
    gap: 30px;
    justify-content: center; /* 使网格水平居中 */
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 180px;
    background-color: #3498db;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
    display: inline-block;
}

/* 订阅区域样式 */
.newsletter {
    background-color: #f1f8fe;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.newsletter p {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter button {
    padding: 12px 25px;
    border: none;
    background-color: #3498db;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #2980b9;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: #3498db;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* 页面头部样式 */
.page-header,
.article-header {
    background-color: #3498db;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-header h1,
.article-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* 关于页面样式 */
.about-content {
    padding: 60px 0;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.about-section h2:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.team-member h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.team-member p {
    color: #666;
    margin-bottom: 10px;
}

.values-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.values-list li {
    margin-bottom: 10px;
}

/* 文章页面样式 */
.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.article-content {
    padding: 60px 0;
}

.article-content .container {
    max-width: 800px;
}

.article-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    border-left: 3px solid #3498db;
    padding-left: 20px;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #2c3e50;
}

.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #34495e;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-content code {
    font-family: 'Courier New', Courier, monospace;
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags span {
    font-weight: bold;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background-color: #f1f8fe;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.article-tags a:hover {
    background-color: #3498db;
    color: #fff;
}

.article-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.prev-article,
.next-article {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    max-width: 48%;
}

.related-articles {
    background-color: #f1f8fe;
    padding: 60px 0;
}