@font-face {
            font-family: 'FZXZ';
            src: url('./font.woff') format('woff');
            font-weight: normal;
            font-style: normal;
            font-display: swap;  /* 提升加载体验 */
        }

:root {
    /* Rice Paper & Cinnabar Ink Palette */
    --bg-color: #f7f6f1;
    /* Lighter, cleaner rice paper */
    --text-color: #1a1a1a;
    /* Deepest Ink */
    --link-color: #a93226;
    /* Cinnabar (Seal Red) */
    --dim-color: #8c8c8c;
    /* Faded Ink */
    --spacing: 1.5rem;
}

/* Night Mode - Lacquerware Style */
body.night-mode {
    --bg-color: #1a1a1a;
    /* Black Lacquer */
    --text-color: #e6e6e6;
    /* Silver/White */
    --link-color: #cd6155;
    /* Soft Zhu */
    --dim-color: #888;
}

/* Theme Toggle Control */
.theme-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    /* Placed at Top-Left (Physical) */
    z-index: 1000;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    /* Stacked vertically to match site flow */
    gap: 0.5rem;
    writing-mode: horizontal-tb;
    /* Internal text is horizontal? No, let's keep it simple chars */
    border: 2px solid var(--text-color);
    padding: 0.8rem 0.5rem;
    background-color: var(--bg-color);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.theme-toggle span {
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.theme-toggle span.active {
    opacity: 1;
    color: var(--link-color);
    text-shadow: 0 0 5px var(--link-color);
    /* Glow effect */
}

::selection {
    background: var(--link-color);
    color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "FZXZ", "Palatino Linotype", "Book Antiqua", serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Body is just a frame now */

    /* Center the container */
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    /* BAMBOO SLIP MODE (Vertical Writing) */
    writing-mode: vertical-rl;
    text-orientation: upright;

    font-size: 24px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;

    /* The Scroll Dimensions */
    height: 85vh;
    max-width: 90vw;
    padding: 2rem;

    overflow-x: auto;
    /* Scroll horizontally within the container */
    overflow-y: hidden;

    border: 3px solid var(--text-color);
    /* A heavy frame */
    background-color: var(--bg-color);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.1);

    /* Flow content from right to left */
    display: flex;
    /* vertical-rl flex container */
    flex-direction: column;
    /* In vertical-rl this means Right-to-Left Stack */
}

/* Reader Mode overrides */
body.reader-mode {
    display: block;
    overflow: auto;
    height: auto;
}

body.reader-mode .container {
    writing-mode: horizontal-tb;
    max-width: 95vw;
    height: auto;
    overflow: visible;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 2rem auto;
    display: block;
}

header {
    margin-left: 2rem;
    margin-top: 0;
    border-left: 3px solid var(--text-color);
    padding-left: 1.5rem;
    /* In container flex, it will be the first item on the right */
    flex-shrink: 0;
    margin-bottom: 2rem;
    /* Spacing below header in logical sense (leftward in visual) */
}

h1 {
    font-weight: normal;
    font-size: 3.5em;
    margin: 0;
    letter-spacing: 0.1em;
}

.intro {
    font-size: 1.2em;
    margin-top: 0;
    margin-right: 1.5rem;
    font-style: normal;
    color: var(--dim-color);
    line-height: 1.6;
}

/* Navigation and list improvements for vertical flow */
ul.archive-list {
    list-style-type: none;
    padding: 0;
    margin: 0;

    /* In Vertical-RL mode:
       flex-direction: column = Horizontal Row (Right-to-Left)
    */
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 100%;
    align-content: flex-start;
}

ul.archive-list li {
    padding: 1rem 0.5rem;
    border-left: 1px dashed var(--dim-color);
    border-bottom: none;

    height: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    transition: all 0.3s ease;
}

ul.archive-list li:hover {
    background-color: rgba(169, 50, 38, 0.05);
    border-left-color: var(--link-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-left: 1px solid transparent;
    padding-left: 5px;
    transition: all 0.2s ease;
    display: inline-block;
}

a:hover {
    border-left-color: var(--link-color);
}

.meta {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.6em;
    color: var(--dim-color);
    margin-top: 1rem;
    writing-mode: vertical-rl;
}

footer {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.8em;
    color: var(--dim-color);
    writing-mode: horizontal-tb;
}

.artifact-container {
    width: 100%;
    height: 80vh;
    border: 1px solid var(--text-color);
    background-color: white;
    writing-mode: horizontal-tb;
}