:root {
    --bg-color: #f0f0e9;
    --paper-color: #fbfbf6;
    --ink-color: #2b2b2b;
    --light-ink: #666666;
    --accent-color: #9e3d3d;
    --border-color: #dcdcd6;
    --frame-bg: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Serif SC", "SimSun", "Songti SC", serif;
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23dcdcd6' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--ink-color);
    line-height: 1.8;
    padding: 40px 20px;
}

.font-shufa{
    font-family: "Long Cang", cursive;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--paper-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0d8;
    padding: 60px;
    position: relative;
    outline: 1px solid var(--border-color);
    outline-offset: -10px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
}

main {
    border-right: 1px dashed var(--border-color);
    padding-right: 60px;
}

article {
    margin-bottom: 70px;
}

h2.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

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

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

.post-meta {
    font-size: 0.9rem;
    color: var(--light-ink);
    margin-bottom: 25px;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.post-content {
    text-align: justify;
    margin-bottom: 20px;
}

figure {
    margin: 0 0 25px 0;
    display: block;
}

.img-frame {
    background-color: var(--frame-bg);
    padding: 8px;
    border: 1px solid #ccc;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
}

.img-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: contrast(0.95) sepia(0.15) saturate(0.8);
    transition: filter 0.4s ease;
}

.img-frame:hover {
    box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.img-frame:hover img {
    filter: none;
}

figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    font-family: "KaiTi", "楷体", serif;
}

.align-center {
    text-align: center;
}

.align-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 40%;
}

.align-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 45%;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.read-more {
    display: inline-block;
    border: 1px solid var(--ink-color);
    padding: 6px 24px;
    text-decoration: none;
    color: var(--ink-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.read-more:hover {
    background-color: var(--ink-color);
    color: var(--paper-color);
}

.pagination {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed var(--border-color);
    padding-top: 25px;
    margin-top: 30px;
}

.pagination a {
    text-decoration: none;
    color: var(--ink-color);
    border-bottom: 1px solid transparent;
}

.pagination a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.pagination .disabled {
    color: #aaa;
}

aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 10px;
    margin-bottom: 40px;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    height: 300px;
}

.seal-box {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.seal {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1.2rem;
    line-height: 1.2;
    text-align: center;
    border: 2px solid #8a2a2a;
}

nav ul {
    list-style: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

nav ul li {
    margin-left: 30px;
    padding: 10px 0;
    border-left: 1px solid transparent;
    transition: border-color 0.3s;
}

nav ul li:hover {
    border-left: 1px solid var(--accent-color);
}

nav ul li a {
    text-decoration: none;
    color: var(--light-ink);
    font-size: 1.1rem;
    letter-spacing: 3px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.is-active {
    color: var(--accent-color);
}

.poetry {
    writing-mode: vertical-rl;
    margin-top: auto;
    color: var(--light-ink);
    font-size: 1rem;
    letter-spacing: 5px;
    line-height: 2;
    align-self: flex-end;
    padding-right: 20px;
}

footer {
    margin-top: 80px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    grid-column: 1 / -1;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--light-ink);
    margin-bottom: 30px;
    font-family: "KaiTi", "楷体", serif;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--light-ink);
    border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ink-color);
    letter-spacing: 2px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--light-ink);
    font-style: italic;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body > p:first-of-type::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin-right: 10px;
    margin-top: 5px;
    color: var(--accent-color);
    font-family: "KaiTi", "楷体", serif;
    font-weight: bold;
}

blockquote {
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--accent-color);
    margin: 30px 0;
    padding: 20px 30px;
    font-family: "KaiTi", "楷体", serif;
    color: var(--light-ink);
    font-style: italic;
}

.the-end {
    text-align: center;
    margin: 60px 0;
    color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.the-end::before,
.the-end::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--border-color);
}

.end-seal {
    border: 1px solid var(--light-ink);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 2px;
    font-family: "KaiTi", "楷体", serif;
    color: var(--light-ink);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.nav-link {
    max-width: 45%;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    text-decoration: none;
    color: var(--ink-color);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-title:hover {
    color: var(--accent-color);
}

.nav-next {
    text-align: right;
}

.profile-hero {
    display: flex;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 50px;
    gap: 40px;
}

.profile-img {
    flex: 0 0 45%;
}

.profile-intro-vertical {
    flex: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.1rem;
    line-height: 2.2;
    letter-spacing: 2px;
    color: var(--ink-color);
    padding-top: 10px;
    height: 400px;
    text-align: justify;
}

.profile-intro-vertical h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-left: 20px;
    color: var(--accent-color);
}

.profile-intro-vertical p {
    margin-left: 15px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.section-title small {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
    font-family: "KaiTi", "楷体", serif;
}

.about-content {
    margin-bottom: 50px;
    text-align: justify;
    color: var(--light-ink);
}

.about-content p {
    margin-bottom: 20px;
}

.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.hobby-seal {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: default;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    line-height: 1;
}

.hobby-seal:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: rotate(5deg);
}

.contact-card {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    position: relative;
}

.contact-card::before {
    content: "鸿雁传书";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--paper-color);
    padding: 0 15px;
    font-family: "KaiTi", "楷体", serif;
    color: var(--accent-color);
}

.contact-item {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--ink-color);
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }

    main {
        border-right: none;
        padding-right: 0;
        order: 2;
    }

    aside {
        order: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px dashed var(--border-color);
        padding-bottom: 30px;
    }

    .brand {
        writing-mode: horizontal-tb;
        height: auto;
        border-left: none;
        border-bottom: 3px solid var(--accent-color);
        padding-left: 0;
        padding-bottom: 10px;
        margin-bottom: 0;
        font-size: 2rem;
    }

    nav ul {
        writing-mode: horizontal-tb;
        display: flex;
    }

    nav ul li {
        margin-left: 15px;
        border-left: none;
    }

    .seal-box,
    .poetry {
        display: none;
    }

    .align-left,
    .align-right {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
        text-align: center;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        max-width: 100%;
        text-align: center;
    }

    .profile-hero {
        flex-direction: column;
        height: auto;
        padding-bottom: 30px;
    }

    .profile-img {
        flex: 0 0 100%;
    }

    .profile-intro-vertical {
        writing-mode: horizontal-tb;
        height: auto;
        margin-top: 20px;
        text-align: left;
        padding-top: 0;
    }

    .profile-intro-vertical h1 {
        margin-left: 0;
        margin-bottom: 15px;
        font-size: 1.8rem;
    }

    .profile-intro-vertical p {
        margin-left: 0;
        margin-bottom: 15px;
    }
}
