/* 极简水墨风主题 */
:root {
    --ink-black: #333333;
    --paper-white: #F9F5EB;
    --light-ink: #7D7D7D;
    --accent-red: #C82506;
    --shadow-ink: rgba(0, 0, 0, 0.16);
    --brush-stroke: 1px 1px 3px var(--shadow-ink);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif SC', 'SimSun', serif;
}

body {
    background-color: var(--paper-white);
    color: var(--ink-black);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* 引入思源宋体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;700&display=swap');

/* 水墨晕染效果 */
.ink-wash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0,0,0,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* 头部样式 - 书法风格 */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--light-ink);
    margin-bottom: 3rem;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 2rem;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    writing-mode: vertical-rl;
    letter-spacing: 0.5rem;
    transform: rotate(180deg);
    margin-left: -0.5rem;
    color: var(--ink-black);
    text-shadow: var(--brush-stroke);
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--light-ink);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.3rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ink-black);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--ink-black);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 - 留白艺术 */
.main-content {
    margin: 0 auto 4rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--ink-black);
}

/* 文章网格 - 不对称布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-grid .main-article {
    grid-column: span 2;
}

.article-card {
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.card-image-container {
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.card-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.1));
}

.card-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    filter: grayscale(30%) contrast(110%);
}

.article-card:hover .card-image {
    transform: scale(1.03);
}

.card-body {
    padding: 0 0.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--light-ink);
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed var(--light-ink);
    padding-top: 0.8rem;
}

/* 分类印章效果 */
.category-seal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-red);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    transform: rotate(15deg);
    z-index: 2;
    box-shadow: var(--brush-stroke);
}

/* 文章详情页 - 手卷风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--light-ink);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    margin: 2rem 0;
    border: 1px solid var(--light-ink);
    box-shadow: var(--brush-stroke);
}

.article-content {
    line-height: 2;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

/* 分页导航 - 毛笔风格 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--light-ink);
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    transition: 0.5s;
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 印章集合 */
.friend-links {
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.friend-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.friend-links-container a {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--light-ink);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--ink-black);
    color: var(--paper-white);
}

/* 页脚样式 - 题跋风格 */
footer {
    background-color: var(--ink-black);
    color: var(--paper-white);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.copyright {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-grid .main-article {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
    }
    
    .logo {
        writing-mode: horizontal-tb;
        transform: none;
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: flex-start;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}