/*
 * @package Time Archive
 * @author Gemini & User
 * @version 1.5
 * @link https://www.osusei.org
 */

/* 核心变量定义 */
:root {
    --bg-color: #fcfcfc;
    --text-main: #2c2c2c;
    --text-muted: #888;
    --accent-color: #000;
    --line-color: #eeeeee;
}

/* 全局基础排版 */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15.5px; 
    line-height: 1.8;
    max-width: 720px;
    margin: 80px auto;
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 链接交互 */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-muted);
}

/* 页眉与导航 */
header { 
    margin-bottom: 60px; 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
}

.site-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    letter-spacing: 1px; 
    color: var(--accent-color); 
}

nav a { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-left: 20px; 
}

/* --- 生命周期容器：单行数据流优化 --- */
.life-clock-container { 
    margin-bottom: 60px; 
    padding: 30px 0; 
    border-top: 1px solid var(--line-color); 
    border-bottom: 1px solid var(--line-color); 
}

/* 标签样式统一 */
.clock-label { 
    font-family: "Courier New", Courier, monospace;
    font-size: 0.65rem; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px; 
}

/* 数据行：强制不换行的单行流 */
.clock-data-row {
    font-family: "Courier New", Courier, monospace;
    text-transform: uppercase;
    font-size: 0.8rem; /* PC端理想字号 */
    color: var(--text-muted);
    letter-spacing: 0.5px;
    
    display: flex;
    align-items: center;
    white-space: nowrap; /* 核心：禁止换行 */
    width: 100%;
    overflow: hidden;    /* 核心：防止溢出 */
}

#life-progress {
    color: #444; 
    font-weight: 500;
}

/* 分隔符样式优化 */
.data-separator {
    margin: 0 12px;
    color: var(--text-muted); /* 提高对比度 */
    font-weight: 500;          /* 增加厚度 */
}

/* --- 移动端完美适配方案 --- */
@media (max-width: 600px) {
    body {
        margin: 40px auto;
    }
    
    .clock-data-row {
        /* 使用流式字号：始终占据屏幕宽度的固定比例，确保在任何手机都不换行 */
        font-size: 2.85vw; 
        letter-spacing: 0px;
    }

    .data-separator {
        margin: 0 8px; /* 移动端缩减间距 */
    }
}

/* 文章列表：卡片式档案结构优化 */
.post-list { 
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
}

.post-item {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line-color); 
    padding: 32px; 
    transition: all 0.3s ease;
}

.post-item:hover {
    border-color: #dcdcdc;
}

.post-archive-no {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: #f0f0f0; 
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.post-item:hover .post-archive-no {
    color: #e0e0e0;
}

.post-time { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    margin-bottom: 16px; 
    display: block; 
    letter-spacing: 1px;
    font-family: "Courier New", Courier, monospace;
}

.post-content { 
    font-size: 1rem; 
    text-align: justify; 
    line-height: 1.8;
}

.post-content p { 
    margin-bottom: 0;
    color: #3a3a3a;
}

.post-content p:not(:last-child) {
    margin-bottom: 1.2rem;
}

/* 档案化列表样式 */
.post-content ul {
    padding-left: 1.2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.post-content li {
    margin-bottom: 10px;
    position: relative;
    font-size: 0.95rem;
}

.post-content li::before {
    content: "·";
    position: absolute;
    left: -1rem;
    color: var(--text-muted);
}

.post-content li strong {
    font-weight: 500;
    color: var(--accent-color);
}

/* 档案统计模块 */
.stats-module {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
}

.stat-label, .stat-value {
    font-size: 0.85rem;
    white-space: nowrap;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    font-weight: 500;
    color: var(--text-main);
}

/* 页脚：居中且有序 */
footer { 
    margin-top: 100px; 
    padding: 30px 0; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    border-top: 1px solid var(--line-color); 
    text-align: center; 
    line-height: 2; 
}

footer p {
    margin: 0;
}

footer a {
    color: var(--text-main);
    font-weight: 500;
}

/* 针对关于页/留言页等独立页面的优化：不使用边框，保持纯净 */
.typecho-page .post-item {
    border: none;
    background: transparent;
    padding: 0;
}

/* 关于页面的标题分层 */
.post-content h2, .post-content h3 {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.post-content h2 { font-size: 1.15rem; }
.post-content h3 { font-size: 1.05rem; }

/* 评论与留言区样式 */
.comments-area { margin-top: 80px; border-top: 1px solid var(--line-color); padding-top: 40px; }
.comment-title { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-bottom: 30px; }
.comment-body { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px dashed #f0f0f0; }
.comment-author { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.comment-time { font-size: 0.75rem; color: var(--text-muted); margin-left: 10px; }
.comment-content { font-size: 0.95rem; margin-top: 10px; color: #444; }

/* 评论表单样式 */
.comment-inputs { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-inputs input, .respond textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line-color);
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}
.respond textarea { height: 120px; resize: none; margin-bottom: 15px; }
.submit-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 8px 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.3s;
}
.submit-btn:hover { opacity: 0.7; }

/* --- 分页导航：精密精简化重构 --- */
.page-navigator {
    list-style: none;
    padding: 0;
    margin: 60px 0 30px; /* 大幅缩小上方留白，解决“空旷”感 */
    display: flex;
    justify-content: center;
    gap: 8px; /* 缩减间距，确保多页码时的容纳能力 */
}

.page-navigator li {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem; /* 进一步缩小字号 */
}

.page-navigator li a, 
.page-navigator li span {
    display: block;
    /* 核心：缩减内边距。上下 5px，左右 12px，使其扁平化 */
    padding: 5px 12px; 
    background: transparent;
    color: var(--text-muted); 
    border: 1px solid var(--line-color); 
    transition: all 0.2s ease;
    min-width: 36px; /* 设定较小的基准宽度，保证多页码时的排布美感 */
    text-align: center;
}

/* 鼠标悬停交互 */
.page-navigator li a:hover {
    color: var(--text-main);
    border-color: #ccc;
}

/* 当前页样式：实线黑框，文字加深 */
.page-navigator li.current a, 
.page-navigator li.current span {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    font-weight: 500;
}

/* 针对箭头符号的垂直对齐修正 */
.page-navigator li a[prev], 
.page-navigator li a[next] {
    line-height: 1;
}