/* 博客头部样式 */
.blog-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
}

.blog-hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 文章列表 */
.post-list {
    padding: 60px 0 80px;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 30px 35px;
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.post-date i {
    margin-right: 5px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #eef2ff;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary);
}

.post-summary {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(4px);
}

.empty-tip {
    text-align: center;
    color: var(--gray);
    padding: 60px 0;
}

/* 文章详情页 */
.post-page {
    padding: 120px 0 80px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-header .post-meta {
    justify-content: center;
}

/* Markdown 正文排版 */
.post-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 45px 50px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.5em 0 0.8em;
    color: var(--dark);
    line-height: 1.4;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

.post-content h1 {
    font-size: 1.9rem;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--light);
}

.post-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--light);
}

.post-content h3 {
    font-size: 1.25rem;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content a {
    color: var(--primary);
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.2em 1.5em;
}

.post-content li {
    margin-bottom: 0.4em;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    padding: 12px 20px;
    margin: 0 0 1.2em;
    color: var(--gray);
    border-radius: 0 5px 5px 0;
}

.post-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Courier New', monospace;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0 0 1.2em;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2em;
}

.post-content th,
.post-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
}

.post-content th {
    background: #f8fafc;
    font-weight: 600;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
}

.post-back {
    text-align: center;
    margin-top: 40px;
}

.post-back a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.post-back a:hover {
    text-decoration: underline;
}

/* 关于我 */
.about-page {
    padding: 120px 0 80px;
}

.about-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-avatar {
    margin-bottom: 20px;
}

.about-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.about-desc {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-card a {
    color: var(--primary);
}

.about-list {
    list-style: none;
    margin-bottom: 15px;
    display: inline-block;
    text-align: left;
}

.about-list li {
    color: var(--gray);
    margin-bottom: 8px;
}

.about-list li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
}

/* 404 页面 */
.not-found {
    padding: 160px 0 120px;
    text-align: center;
}

.not-found h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.not-found p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.2rem;
}
