/* 极简白风格 - 无图片版本 */
:root {
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-color: #212529;
    --primary: #2b2d42;
    --secondary: #8d99ae;
    --highlight: #ef233c;
    --line-height: 1.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: var(--line-height);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--highlight);
}

.container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 极简头部 */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

nav ul li a {
    padding: 0.3rem 0;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区 */
.main-content {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--primary);
    font-weight: 600;
}

/* 无图文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.article-item {
    padding: 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 0.3rem;
    transition: all 0.3s ease;
}

.article-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.03);
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.article-excerpt {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* 分类标签 */
.category-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background-color: var(--light-gray);
    color: var(--primary);
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

/* 文章详情页 */
.article-detail {
    margin-bottom: 3rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-detail-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 0.95rem;
}

.article-content {
    line-height: var(--line-height);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--medium-gray);
    margin: 2rem 0;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.pagination a {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--medium-gray);
    border-radius: 0.3rem;
}

.pagination a:hover {
    border-color: var(--highlight);
    color: var(--highlight);
}

/* 友情链接 */
.friend-links {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.friend-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.friend-links-container a {
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 0.3rem;
    font-size: 0.9rem;
}

.friend-links-container a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 页脚 */
footer {
    background-color: var(--light-gray);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-detail-title {
        font-size: 1.5rem;
    }
}