/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 核心样式定义 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f9fafb;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部样式 */
header {
    margin: 48px 0 32px;
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #2A5D84;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.meta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
    gap: 8px;
}

.tag-link {
    color: #2A5D84;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tag-link:hover {
    color: #1a3d5a;
    text-decoration: underline;
}

/* 文章内容样式 */
article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 32px;
}

p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* 图片样式 */
.image-container {
    margin: 32px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    background: #f3f4f6;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* 引用样式 */
blockquote {
    border-left: 4px solid #2A5D84;
    padding-left: 16px;
    font-style: italic;
    color: #6b7280;
    margin: 32px 0;
}

/* 分享按钮样式 */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.facebook {
    background-color: #1877f2;
}

.facebook:hover {
    background-color: #166fe5;
}

.twitter {
    background-color: #1da1f2;
}

.twitter:hover {
    background-color: #0d95e8;
}

.link {
    background-color: #374151;
}

.link:hover {
    background-color: #1f2937;
}

/* 最新文章板块样式 */
.latest-articles {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 48px;
}

.latest-articles h2 {
    color: #2A5D84;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.articles-list {
    list-style: none;
}

.articles-list li {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.articles-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-link {
    color: #2A5D84;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.article-link:hover {
    color: #1a3d5a;
    padding-left: 5px;
}

.article-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 4px 0 8px;
}

.article-excerpt {
    color: #4b5563;
    font-size: 1rem;
}

/* 页面导航链接 */
.page-nav {
    text-align: center;
    margin: 32px 0;
}

.page-nav-link {
    color: #2A5D84;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #2A5D84;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-nav-link:hover {
    background-color: #2A5D84;
    color: white;
}

/* 页脚样式 */
.site-footer {
    background-color: #2A5D84;
    color: white;
    padding: 32px 0;
    margin-top: 48px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 16px;
    color: white;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 图标替代样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-calendar::before {
    content: "📅";
}

.icon-tag::before {
    content: "🏷️";
}

.icon-facebook::before {
    content: "f";
    font-weight: bold;
}

.icon-twitter::before {
    content: "t";
    font-weight: bold;
}

.icon-link::before {
    content: "🔗";
}

/* 响应式调整 */
@media (max-width: 640px) {
    article, .latest-articles {
        padding: 16px;
    }
    
    p, .article-link, .article-excerpt {
        font-size: 1rem;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .latest-articles h2 {
        font-size: 1.3rem;
    }
    
    .footer-links {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
}