/**
 * 正步人生 - 岁月孤本
 * * @package Zhengbu
 * @author 李不言
 * @version 1.0.0
 * @link http://www.81zy.cn
 */

/* =========================================
   1. 核心与全局环境 (Base & Environment)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #E8E4DE;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiM5QzlBOTAiIGZpbGwtb3BhY2l0eT0iMC4xNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIWMjB6TTAgMjBoMjB2MjBIMFYyMHoyMCAwaDIwdjIwSDIwVjB6Ii8+PC9nPjwvZz48L3N2Zz4=');
    color: #2C2C2C;
    /* 全局替换为网页标准黑体組合，优先思源，兼容微软雅黑和苹方 */
    font-family: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    padding: 40px 0;
}

.document-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background-color: #F7F3EE;
    border: 1px solid #D1CDC7;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    position: relative;
    padding: 2px;
}

.inner-border {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 84px);
}

/* =========================================
   2. 公共组件：页头与页脚 (Header & Footer)
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 80px;
    border-bottom: 1px solid #E0DCD5;
    padding-bottom: 20px;
}

.logo {
    font-size: 24px;
    letter-spacing: 4px;
    font-weight: 500;
    color: #3A3632;
}

nav a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    margin-left: 30px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: #1A1A1A;
    font-weight: 600;
}

footer {
    margin-top: auto;
    border-top: 1px dotted #D1CDC7;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 11px;
    color: #B0AAA0;
    letter-spacing: 1px;
}

footer a {
    color: #B0AAA0;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover { color: #962A2D; }

/* =========================================
   3. 公共组件：卷宗标头与排版 (Hero & Layout)
   ========================================= */
.hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.hero h1 {
    font-size: 46px;
    font-weight: 400;
    letter-spacing: 14px;
    color: #3A3632;
    margin-bottom: 20px;
}

.stamp {
    position: absolute;
    top: -30px;
    right: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #962A2D;
    color: #962A2D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 2px;
    transform: rotate(15deg);
    opacity: 0.85;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(150, 42, 45, 0.2);
    user-select: none;
}

.archive-meta {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 11px;
    color: #A09A90;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-divider {
    width: 100%;
    height: 1px;
    background-color: #E0DCD5;
    margin: 0 0 70px 0;
}

.dashed-divider {
    width: 100%;
    border-top: 1px dashed #D1CDC7;
    margin: 0 0 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.vertical-label {
    writing-mode: vertical-rl;
    text-align: right;
    font-size: 14px;
    letter-spacing: 8px;
    color: #962A2D;
    font-weight: 600;
    border-right: 1px solid #E0DCD5;
    padding-right: 20px;
}

.vertical-label .en-sub {
    font-size: 9px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    letter-spacing: 4px;
    font-weight: 400;
    opacity: 0.7;
}

/* =========================================
   4. 独立页专属：卷宗首页 (Index Specific)
   ========================================= */
.timer-zone {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.timer-val {
    font-size: 28px;
    color: #3A3632;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    margin-right: 5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.timer-unit { font-size: 16px; color: #888; margin-right: 10px; }

.broadcast {
    background-color: #FBF9F6;
    border: 1px solid #EAE6E1;
    padding: 30px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    position: relative;
}

.broadcast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: #D1CDC7;
}

/* 卷宗前言题眼：框外独立悬停 */
.preface-lead {
    font-size: 16px;
    color: #1A1A1A;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* 卷宗前言区块：采用与公告同构的档案框形态 */
.preface-body {
    background-color: #FBF9F6;
    border: 1px solid #EAE6E1;
    padding: 30px;
    font-size: 15px; 
    color: #555;
    line-height: 1.8; 
    text-align: justify;
    position: relative;
}

/* 前言框的左侧装订线 */
.preface-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: #D1CDC7;
}

/* 内部段落间距控制 */
.preface-body p { 
    margin-bottom: 1.5em; 
}

/* 取消最后一段的底部边距，保持框内上下间距绝对匀称 */
.preface-body p:last-child { 
    margin-bottom: 0; 
}

.signature {
    text-align: right;
    margin-top: 60px;
    color: #777;
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1.8;
}

/* =========================================
   5. 独立页专属：站点纪事 (About Specific)
   ========================================= */
.chronicle-body {
    font-size: 15px;
    color: #333;
    text-align: justify;
    max-width: 680px;
    line-height: 1.8;
}

.chronicle-body p { margin-bottom: 2.2em; }

.chronicle-year {
    font-family: "Georgia", serif;
    font-size: 20px;
    color: #1A1A1A;
    display: block;
    margin-bottom: 15px;
    border-bottom: 2px solid #D1CDC7;
    padding-bottom: 10px;
    width: fit-content;
    letter-spacing: 2px;
}

/* --- 纪事专属：极简时间线 --- */
.chronicle-timeline {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 40px;
    padding-left: 0;
}

.chronicle-timeline li {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
    position: relative;
}

.timeline-date {
    font-family: "Georgia", serif;
    font-size: 14px;
    color: #962A2D; 
    width: 110px;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.timeline-event {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    max-width: 570px;
}

/* =========================================
   6. 独立页专属：留言名册 (Registry Specific)
   ========================================= */
.registry-form {
    margin-bottom: 100px;
    padding: 50px;
    background-color: #FBF9F6;
    border: 1px solid #EAE6E1;
    position: relative;
}

.registry-form::before {
    content: '登记';
    position: absolute;
    top: -16px;
    left: 40px;
    background-color: #FDFCFA;
    border: 1px solid #EAE6E1;
    padding: 4px 18px;
    font-size: 12px;
    color: #888;
    letter-spacing: 4px;
}

.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.registry-form input[type="text"], .registry-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #D1CDC7;
    padding: 10px 5px;
    font-family: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
    font-size: 16px;
    color: #1A1A1A;
    transition: border-color 0.3s;
}

.registry-form input[type="text"]:focus, .registry-form textarea:focus {
    outline: none;
    border-bottom: 1px solid #1A1A1A;
}

.registry-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.submit-btn {
    background: transparent;
    border: 1px solid #D1CDC7;
    padding: 12px 40px;
    font-family: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
    font-size: 14px;
    letter-spacing: 8px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-btn:hover { border-color: #1A1A1A; color: #1A1A1A; }

.registry-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

.entry-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    position: relative;
}

.entry-aside {
    text-align: right;
    border-right: 1px solid #E0DCD5;
    padding-right: 20px;
}

.entry-date {
    font-family: "Georgia", serif;
    font-size: 14px;
    color: #888;
    display: block;
    letter-spacing: 1px;
}

/* 沉降并绝对定位编号到右下角 */
.entry-id {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #CCC;
    letter-spacing: 2px;
    position: absolute;
    bottom: 35px;
    right: 40px;
}

.entry-main { padding-bottom: 10px; }

.entry-identity {
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.entry-unit { font-size: 13px; color: #999; font-weight: 400; letter-spacing: 1px; }

/* 恢复 15px 字号，并添加底部内边距防撞 */
.entry-text {
    font-size: 15px;
    color: #444;
    text-align: justify;
    max-width: 680px;
    line-height: 1.8;
    padding-bottom: 25px;
}

.entry-text p { margin-bottom: 1em; }

.page-navigator {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    font-family: "Georgia", serif;
    font-size: 14px;
}

.page-navigator a { color: #888; text-decoration: none; }
.page-navigator a:hover, .page-navigator .current a { color: #1A1A1A; font-weight: bold; }

/* 核心卡片框设计 */
.entry-card {
    background-color: #FDFCFA; 
    border: 1px solid #EAE6E1;
    padding: 35px 40px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
}

/* 卡片顶部信息栏 */
.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed #E0DCD5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.entry-author-info {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.entry-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    letter-spacing: 2px;
}

/* 站长批注专属视觉结构 */
.admin-annotation {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #EAE6E1;
    font-size: 14px; /* 字号进一步下沉，退居次级视觉位阶 */
    color: #888;
    line-height: 1.8;
    /* 修正 1：确保批注区本身没有非必要的左侧内边距 */
    padding-left: 0;
    /* 修正 2：确保文本对齐逻辑继承卡片正文（左对齐或两端对齐） */
    text-align: justify;
}

.annotation-content {
    margin-bottom: 15px;
    /* 取消这里重复设置对齐，让其在父级统一控制 */
}

.annotation-content:last-child {
    margin-bottom: 0;
}

.annotation-label {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 11px;
    color: #962A2D;
    border: 1px solid rgba(150, 42, 45, 0.2);
    padding: 2px 6px;
    margin-right: 12px;
    letter-spacing: 2px;
    display: inline-block;
    /* 修正 3核心：将对齐方式改为 middle。
       text-bottom 会导致标签被“压得过低”从而产生物理视差， middle 能确保它居中附着在文字左侧 */
    vertical-align: middle;
    /* 确保标签框不会导致整行行高突变 */
    line-height: 1;
}

/* =========================================
   7. 移动端全局重构 (Unified Mobile Adjustment)
   ========================================= */
@media (max-width: 800px) {
    /* 环境收束 */
    body { padding: 15px 10px; }
    .inner-border { padding: 35px 20px; }

    /* --- 页头重构：强制纵向居中，增加间距 --- */
    header { 
        flex-direction: column; 
        align-items: center; 
        margin-bottom: 50px; 
        padding-bottom: 10px;
        gap: 20px;
    }
    .logo { 
        white-space: nowrap; 
        margin-bottom: 10px; 
    }
    nav { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        width: 100%;
        gap: 15px;
    }
    nav a { 
        margin: 0; 
        font-size: 13px; 
    }

    /* 标题与印章解绑 */
    .hero { margin-bottom: 40px; }
    .hero h1 { 
        font-size: 24px; 
        letter-spacing: 6px; 
        padding-left: 6px; 
        line-height: 1.6;
        margin-bottom: 20px;
        position: relative;
        z-index: 2; 
    }
    .stamp { 
        width: 55px; 
        height: 55px; 
        font-size: 15px; 
        top: -35px; 
        right: 0; 
        border-width: 1.5px;
        opacity: 0.6; 
        z-index: 1;
    }
    .archive-meta { 
        line-height: 1.8; 
        padding: 0 10px;
    }

    /* 网格降维与英文离散修复 */
    .content-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .vertical-label { 
        writing-mode: horizontal-tb; 
        text-align: left; 
        border-right: none; 
        border-bottom: 1px solid #E0DCD5; 
        padding-bottom: 10px; 
        width: 100%; 
        letter-spacing: 3px; 
    }
    .vertical-label .en-sub {
        font-size: 9px;
        letter-spacing: 2px;
    }

    /* 首页专属调整 */
    .timer-zone { 
        flex-wrap: wrap; 
        gap: 0 10px; 
    }
    .timer-zone > span:first-child {
        width: 100%; 
        display: block;
        margin-bottom: 5px; 
    }
    .timer-val { font-size: 22px; } 
    .broadcast { padding: 20px; }

    /* 站点纪事专属调整 */
    .chronicle-year { font-size: 20px; }

    /* 时间线移动端适配 */
    .chronicle-timeline li {
        flex-direction: column;
        gap: 5px;
    }
    .timeline-date {
        width: 100%;
        border-bottom: 1px dotted #D1CDC7;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    /* --- 留言表单专属调整：垂直堆叠，增加呼吸感 --- */
    .registry-form {
        padding: 30px 20px; 
        margin-bottom: 60px; 
    }
    .registry-form::before {
        left: 20px; 
    }
    .form-row { 
        flex-direction: column; 
        gap: 20px; 
    }
    .registry-form input[type="text"], .registry-form textarea {
        border-bottom: 1px solid #D1CDC7; 
        padding: 12px 5px; 
        font-family: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
    }
    
    /* 补充移动端卡片适配 */
    .entry-card { padding: 25px 20px; }
    .entry-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 12px; 
    }
    .entry-author-info {
        flex-direction: column; 
        align-items: flex-start;
        gap: 5px;
    }
    .entry-meta { 
        width: 100%; 
        display: flex; 
        justify-content: space-between; 
        flex-direction: row-reverse; 
    }

    /* 补充移动端卡片编号坐标校准 */
    .entry-id {
        bottom: 25px; 
        right: 20px; 
    }

    /* 页脚信息堆叠 */
    footer { 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
        text-align: center; 
    }
}