/* 基于原 1.html 提取的基础视觉样式。 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #333;
    background-color: #f5f7fa;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

header {
    color: #fff;
    background-color: #1f2937;
}

.navbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.site-logo-image {
    display: block;
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #d1d5db;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 15px;
    font-size: 38px;
}

.hero p {
    color: #e0e7ff;
    font-size: 17px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 25px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.section-title {
    margin-bottom: 20px;
    font-size: 24px;
}

.article-card {
    margin-bottom: 20px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.article-card h1,
.article-card h2 {
    margin-bottom: 8px;
    font-size: 22px;
    overflow-wrap: anywhere;
}

.article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: -25px -25px 20px;
    width: calc(100% + 50px);
    border-radius: 10px 10px 0 0;
    object-fit: cover;
}

.detail-cover {
    max-height: 520px;
}

.post-detail h1 {
    font-size: 30px;
}

.article-card h2 a:hover,
.article-meta a:hover,
.tag-list a:hover {
    color: #2563eb;
}

.article-meta {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.article-summary,
.post-summary {
    color: #555;
    overflow-wrap: anywhere;
}

.post-summary {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
}

.post-content {
    margin: 20px 0;
    color: #333;
    overflow-wrap: anywhere;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #1d4ed8;
    font-weight: bold;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.tag-list a {
    padding: 2px 8px;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 99px;
}

.sidebar-box {
    margin-bottom: 20px;
    padding: 22px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-box h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
    font-size: 19px;
}

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

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
}

.category-list a:hover {
    color: #2563eb;
}

.about-text,
.archive-note {
    color: #666;
    font-size: 15px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 28px 0;
}

.pagination a {
    padding: 6px 12px;
    color: #fff;
    background: #2563eb;
    border-radius: 6px;
}

.pagination span {
    color: #555;
    font-size: 14px;
}

.empty-state {
    padding: 28px;
    color: #666;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.archive-note {
    margin-top: -10px;
    margin-bottom: 20px;
}

.archive-group {
    margin-bottom: 20px;
    padding: 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.archive-group h2 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 20px;
}

.archive-group ul {
    list-style: none;
}

.archive-group li {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.archive-group li:last-child {
    border-bottom: none;
}

.archive-group time {
    min-width: 42px;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.archive-group a:hover {
    color: #2563eb;
}

.error-page {
    max-width: 700px;
    padding-top: 70px;
    padding-bottom: 70px;
}

footer {
    padding: 25px 15px;
    color: #aaa;
    text-align: center;
    background-color: #1f2937;
}

footer a:hover {
    color: #fff;
}

.icp-record {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.icp-record a {
    color: inherit;
    text-decoration: none;
}

.icp-record a:hover,
.icp-record a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 18px;
    }

    .hero {
        padding: 45px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .article-card,
    .sidebar-box,
    .archive-group {
        padding: 20px;
    }

    .article-cover {
        width: calc(100% + 40px);
        margin: -20px -20px 18px;
    }

    .post-detail h1 {
        font-size: 26px;
    }
}
