:root {
    --coffee: #6B4E3D;
    --iceland: #A8C4D0;
    --bg: #F8F4F0;
    --text: #3C2F2F;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.85;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-image: url('/images/iceland-fog.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(248, 244, 240, 0.93);
    z-index: -1;
}

/* ==================== Header ==================== */
header {
    text-align: center;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid #e5d9d0;
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
}

.logo {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--coffee);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tagline {
    color: #777;
    margin: 0.5rem 0 1.8rem;
    font-size: 1.05rem;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.05rem;
    flex-wrap: wrap;
}

.menu a {
    color: #5c4738;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--coffee);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coffee);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* ==================== 文章卡片 ==================== */
.post,
.post-single {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 24px rgba(107, 78, 61, 0.08);
    transition: all 0.3s ease;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(107, 78, 61, 0.12);
}

.post-single {
    margin-top: 2.5rem;
    padding: 3rem 2.8rem;
}

.post-title {
    margin: 0 0 1.2rem;
    font-size: 1.75rem;
    color: var(--coffee);
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #8a5f3f;
    border-bottom: 2px solid var(--coffee);
}

.post-meta {
    color: #888;
    font-size: 0.92rem;
    margin-bottom: 1.6rem;
}

.post-excerpt,
.post-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #444;
}

.post-excerpt a,
.post-content a {
    color: var(--coffee);
    text-decoration: none;
    border-bottom: 1px solid #d4b8a8;
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.post-excerpt a:hover,
.post-content a:hover {
    color: #8a5f3f;
    border-bottom-color: var(--coffee);
    background: rgba(107, 78, 61, 0.06);
    border-radius: 3px;
}

.read-more {
    display: inline-block;
    color: var(--coffee);
    font-weight: 500;
    border-bottom: 1px solid #d4b8a8;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #8a5f3f;
    border-bottom-color: var(--coffee);
    background: rgba(107, 78, 61, 0.06);
    border-radius: 4px;
    padding: 0 8px;
}

/* ==================== 移动端优化 ==================== */
@media (max-width: 640px) {
    body {
        padding: 1.2rem 1rem;
    }

    header {
        padding: 2.2rem 0 2rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    .menu {
        gap: 1.4rem;
        font-size: 1rem;
    }

    .post,
    .post-single {
        padding: 2rem 1.6rem;
        margin-bottom: 2rem;
    }

    .post-title {
        font-size: 1.55rem;
    }

    .archive-wrapper,
    .post-single {
        padding: 2rem 1.8rem;
    }
}

/* ==================== 归档 & 标签页面 ==================== */
.archive-title,
.tag-title {
    text-align: center;
    font-size: 2.35rem;
    color: var(--coffee);
    margin: 3.5rem 0 3rem;
    font-weight: 300;
}

.archive-wrapper,
.archive-list {
    background: white;
    border-radius: 16px;
    padding: 2.8rem 3rem;
    box-shadow: 0 8px 30px rgba(107, 78, 61, 0.1);
    max-width: 720px;
    margin: 0 auto 4rem;
}

.year-title {
    color: var(--coffee);
    font-size: 1.6rem;
    margin: 2.2rem 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e5d9d0;
}

.month-list {
    list-style: none;
    padding: 0;
}

.month-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0e9e0;
}

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

.month-link {
    color: #3C2F2F;
    text-decoration: none;
    font-size: 1.12rem;
    transition: all 0.3s;
}

.month-link:hover {
    color: var(--coffee);
    padding-left: 12px;
}

.count {
    color: #888;
    font-size: 0.95rem;
    background: #f8f4f0;
    padding: 2px 10px;
    border-radius: 9999px;
    margin-left: 12px;
}

/* Tag 样式 */
.post-content .tags,
.tags {
    margin: 3rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5d9d0;
    text-align: center;
}

.post-content .tag,
.tags a {
    display: inline-block;
    background: #f8f0e8;
    color: #6B4E3D;
    padding: 7px 18px;
    margin: 6px 8px;
    border-radius: 9999px;
    font-size: 0.93rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8d9c8;
}

.post-content .tag:hover,
.tags a:hover {
    background: var(--coffee);
    color: white;
    transform: translateY(-2px);
}

/* 关于页面 */
.about-page {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.9;
}

.about-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 28px rgba(107, 78, 61, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0 2rem;
    color: #777;
    font-size: 0.95rem;
    border-top: 1px solid #e5d9d0;
    margin-top: 4rem;
}