/* ===== 复古个人主页样式 ===== */
body {
    background: #E7E7F7 url('/images/bg1.gif');
    font-family: "SimSun", "宋体", serif;
    font-size: 12px;
    color: #000;
    margin: 0;
    padding: 15px 0;
}
.page {
    width: 916px;
    margin: 0 auto;
    background: #E7E7F7 url('/images/bg1.gif');
    border: 1px solid #000;
    padding: 10px 12px;
}
a { color: #0000EE; text-decoration: underline; }

/* ---- 顶部信息表 ---- */
table.head { width: 100%; border-collapse: collapse; }
table.head td { border: 1px solid #000; padding: 6px; vertical-align: middle; }
td.head-photo { width: 250px; text-align: center; }
td.head-quote { text-align: center; padding-right: 20px; }
td.head-quote h2 {
    font-family: "KaiTi", "楷体", serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 2;
    margin: 0;
    text-align: center;
}
td.head-quote .motto-text { display: block; text-align: center; }
td.head-quote .motto-author { display: block; text-align: right; }
td.head-login { width: 230px; line-height: 1.6; text-align: center; vertical-align: stretch; }
td.head-login input { font-size: 12px; }
/* 登录栏：内层 flex 列，内容顶部居中，Search 用 margin-top:auto 推到栏底 */
.hl-inner { display: flex; flex-direction: column; align-items: center; height: 100%; min-height: 235px; }
.hl-inner > span { width: 100%; }
.head-search { margin-top: auto; padding-top: 16px; width: 100%; }
td.head-studio {
    height: 40px;
    text-align: center;
    font-family: "LiSu", "SimLi", "隶书", serif;
}
td.head-studio .studio-cn { font-size: 24px; letter-spacing: 4px; }
td.head-studio .studio-en { font-size: 11px; letter-spacing: 1px; }

/* ---- 导航条 ---- */
.menu-bar {
    margin-top: 10px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 7px 0;
    text-align: center;
}
.menu-bar a {
    margin: 0 13px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    padding: 2px 4px;
}
.menu-bar a:hover { background: #C8C8FF; }
.menu-bar a.active { color: red; }

/* ---- 欢迎语（复古双线框） ---- */
.welcome {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 6px;
    margin: 26px 0;
    padding: 12px 20px;
    border: 1px solid #000;
    outline: 1px solid #000;
    outline-offset: 4px;
    background: #E7E7F7 url('/images/bg1.gif');
}

/* ---- 主体 ---- */
table.main { width: 100%; border-collapse: collapse; }
table.main > tbody > tr > td { vertical-align: top; }
td.meta { width: 185px; padding: 0 18px 10px 5px; border-right: 1px solid #000; }
td.body { padding-left: 22px; }

/* 左栏：引言 */
.meta-quote { margin-bottom: 15px; line-height: 1.8; }
.meta-quote p { margin: 0; }
.meta-quote .q-left { text-align: left; }
.meta-quote .q-right { text-align: right; }

/* 左栏：日期 */
.meta-date { text-align: center; margin: 10px 0 18px; }
.md-week { font-size: 12px; }
.md-day { font-size: 34px; font-weight: bold; line-height: 1.2; margin: 2px 0; }
.md-ym { font-size: 12px; }

/* 左栏：分隔标题（═══ 信 息 ═══） */
.meta-title { display: flex; align-items: center; margin: 14px 0 10px; }
.meta-title span { padding: 0 10px; font-weight: bold; font-size: 14px; letter-spacing: 4px; }
.meta-title::before, .meta-title::after {
    content: "";
    flex: 1;
    height: 3px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.meta-info { line-height: 2.2; text-align: center; }
.meta-stats { line-height: 1.9; text-align: center; }

/* ---- 区块标题（淡紫底） ---- */
.section-header {
    background: #C8C8FF;
    border: 1px solid #000;
    padding: 2px 8px;
    font-weight: bold;
    margin-bottom: 6px;
}

/* ---- 两列内容 ---- */
table.body-cols { width: 100%; border-collapse: collapse; }
td.col-news { width: 335px; border-right: 1px solid #000; padding-right: 28px; vertical-align: top; }
td.col-updates { padding-left: 28px; vertical-align: top; }
.news-item { padding: 10px 0 14px 15px; line-height: 1.8; }
.notice2 { color: #CC0000; font-weight: bold; }
.sub-links { text-align: center; padding: 8px 0 10px; }

/* ---- 列表行 ---- */
table.list { width: 100%; border-collapse: collapse; }
table.list td { padding: 4px 0 0 0; vertical-align: bottom; }
td.list-cat { width: 82px; padding-left: 15px; white-space: nowrap; }
td.list-title { overflow: hidden; }
.scrollTitle { white-space: nowrap; overflow: hidden; }

/* ---- 页脚 ---- */
.footer {
    margin-top: 18px;
    border-top: 3px double #000;
    text-align: center;
    padding: 10px 0 4px;
}

/* ---- 按钮式链接（顶部注册/登录） ---- */
a.btn {
    display: inline-block;
    padding: 1px 12px;
    border: 2px outset #B8B8D8;
    background: #E7E7F7 url('/images/bg1.gif');
    color: #000;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}
a.btn:hover { border-style: inset; }
a.btn:active { border-style: inset; background: #CCCCFF; }

/* ---- GitHub 登录按钮（绿色，对齐 GitHub 官方 / 评论区风格） ---- */
a.btn-github {
    background: #2da44e !important;
    border: 2px outset #2c974b !important;
    color: #ffffff !important;
    margin-top: 4px;
}
a.btn-github:hover { background: #2c974b !important; border-style: outset; }
a.btn-github:active { background: #298e46 !important; border-style: inset !important; }
.gh-mark { vertical-align: -2px; margin-right: 4px; fill: currentColor; }

/* 评论区下方的 GitHub 登录入口：居中 */
.comment-github {
    text-align: center;
    margin: 14px 0 6px;
}

/* ---- 自建评论区 ---- */
#comment-app { margin-top: 22px; }
.comment-title { font-weight: bold; font-size: 15px; margin-bottom: 10px; }
.comment-empty { color: #888; text-indent: 0; }
.comment-item {
    border: 1px solid #999;
    background: #fff;
    padding: 8px 12px;
    margin-bottom: 10px;
}
.comment-head { font-size: 12px; margin-bottom: 4px; }
.comment-time { color: #888; margin-left: 8px; }
.comment-body { line-height: 1.7; font-size: 14px; }
.comment-editor textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    font-family: inherit;
    font-size: 14px;
}
.comment-editor-bar { margin-top: 6px; text-align: right; }

/* 登录页"或"分隔线 */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0 4px;
    color: #888;
    font-size: 12px;
}
.oauth-divider::before,
.oauth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #999;
}

/* ---- 注册 / 登录页表单 ---- */
.form-box {
    width: 420px;
    margin: 0 auto 30px;
    border: 1px solid #000;
    padding: 18px 22px;
    background: #E7E7F7 url('/images/bg1.gif');
}
table.form-table { border-collapse: collapse; width: auto; margin: 0 auto; }
table.form-table td { padding: 7px 0; vertical-align: middle; }
td.form-label { width: 78px; text-align: right; padding-right: 10px; font-weight: bold; }
.form-box input[type="text"],
.form-box input[type="password"],
.form-box input[type="email"] { padding: 2px 4px; }
.form-box input[type="submit"],
.form-box input[type="reset"] {
    padding: 1px 12px;
    border: 2px outset #B8B8D8;
    background: #E7E7F7;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}
.form-box input[type="submit"]:active,
.form-box input[type="reset"]:active { border-style: inset; background: #CCCCFF; }
.form-note { margin: 14px 0 0; color: #800000; text-align: center; }
.opt-note { font-size: 12px; color: #777; }

/* ---- 文章页（single） ---- */
.crumbs { padding: 12px 2px 0; color: #444; }
.article-head { text-align: center; margin: 16px 0 6px; }
.article-title {
    font-family: "KaiTi", "楷体", serif;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 8px;
}
.article-meta { color: #555; margin: 0 0 14px; }
.article-body {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 18px 26px;
    background: #E7E7F7 url('/images/bg1.gif');
    line-height: 2;
    font-size: 14px;
}
/* 段间距：正文行高已是 2 倍，段后只需再留半行（0.5em ≈ 7px）。
   原来是 12px，段间空白接近一整行，读起来显得过于分散；想更紧凑可改 0.25em。 */
.article-body p { text-indent: 2em; margin: 0 0 0.5em; }
.article-body h2 {
    font-size: 18px;
    border-left: 4px solid #6666CC;
    padding-left: 8px;
    margin: 20px 0 10px;
}
.article-body blockquote {
    margin: 14px 20px;
    padding: 8px 14px;
    border: 1px dashed #888;
    color: #333;
}
.article-body pre, .article-body code {
    font-family: "Courier New", monospace;
    background: #fff;
    border: 1px solid #999;
    padding: 1px 4px;
    font-size: 13px;
}
.article-body pre { padding: 10px; overflow-x: auto; }
.article-body img { max-width: 100%; border: 1px solid #000; }
.article-body ul, .article-body ol { list-style: disc; padding-left: 2.5em; }
.article-tags { margin: 14px 2px; }
.article-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #000;
    padding-top: 10px;
    margin-top: 6px;
}
.article-hits { text-align: center; color: #555; margin-top: 12px; }

/* ---- 列表页（全部日志 / 分类 / 标签） ---- */
.article-list { margin-top: 4px; }
.article-list td.list-title a { font-size: 14px; }
.center-note { text-align: center; color: #666; padding: 16px 0 !important; }
.back-home { text-align: center; margin: 18px 0 6px; }

/* ---- 版权说明页 ---- */
.cb-author {
    text-align: center;
    font-family: "KaiTi", "楷体", serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 4px 0 10px;
}
.cb-nav {
    text-align: center;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 6px 0;
    margin-bottom: 16px;
}
.cb-nav a { margin: 0 6px; }

/* ---- 栏目页简介 ---- */
.section-intro {
    border: 1px solid #000;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #E7E7F7 url('/images/bg1.gif');
    line-height: 1.9;
}
.section-intro p { margin: 0; text-indent: 2em; }

/* ---- 忆昔岁月栏目文章 ---- */
.memo-en {
    text-align: center;
    font-size: 14px;
    margin: 10px 0 18px;
}
.memo-poem {
    text-align: center;
    font-family: "KaiTi", "楷体", serif;
    font-size: 17px;
    line-height: 2.1;
    margin: 16px 0;
}
.memo-src {
    text-align: right;
    font-family: "KaiTi", "楷体", serif;
    margin: 0 30px 14px 0;
}
.memo-rule { border-top: 1px dashed #000; margin: 12px 0; }
.memo-nav { text-align: center; margin: 10px 0 16px; }
.memo-nav a { margin: 0 4px; }
.memo-sec {
    background: #CCFF99;
    border: 1px solid #000;
    padding: 3px 10px;
    font-weight: bold;
    margin: 18px 0 10px;
}
.memo-jump { text-align: center; margin: 12px 0 4px; }

/* ---- 软件集锦：五列并排（竖线分隔） ---- */
.cat-cols {
    display: flex;
    align-items: stretch;
    margin: 14px 0 6px;
}
.cat-col {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    border-right: 1px solid #000;
}
.cat-col:first-child { padding-left: 2px; }
.cat-col:last-child { border-right: none; padding-right: 2px; }
.cat-col .memo-sec a {
    color: #000;
    text-decoration: none;
    display: block;
}
.cat-col .memo-sec a:hover { text-decoration: underline; }
ul.cat-list { list-style: none; padding: 0 2px; margin: 0; }
ul.cat-list li {
    padding: 4px 0 4px 10px;
    border-bottom: 1px dotted #999;
    line-height: 1.6;
}
ul.cat-list li .cat-date { display: block; color: #555; font-size: 11px; }
ul.cat-list li.center-note { border-bottom: none; }




/* ===================== 悬浮卡片样式（2026-10-14 新增） ===================== */
/* 用法：在文章里写
   <div class="card">
     <div class="card-head"><span class="card-date">2026年10月14日</span> <span class="card-tag"># 标签</span></div>
     正文（HTML 标签或空行后写 Markdown 都行）
   </div>
*/

/* 一条内容一张悬浮卡片：圆角 + 阴影 + 淡紫底，像浮在页面上 */
.article-body .card {
  background: #E9E4FA;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 20px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .10);
}
.article-body .card > :first-child { margin-top: 0; }
.article-body .card > :last-child { margin-bottom: 0; }

/* 卡片顶部那一行：日期 + #标签 */
.article-body .card-head {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px;
  text-indent: 0;
}
.article-body .card-date { color: #7B2D8E; }
.article-body .card-tag  { color: #8A2BE2; }

/* 卡片里的正文：取消全站默认的 2em 首行缩进 */
.article-body .card p,
.article-body .card li { text-indent: 0; }

/* 卡片里的图片：去掉 1px 黑框，改成圆角（截图那种） */
.article-body .card img {
  display: block;
  max-width: 100%;
  margin: 10px auto;
  border: 0;
  border-radius: 10px;
}
.article-body .card figure { margin: 10px 0; text-indent: 0; }
.article-body .card figcaption {
  text-align: center;
  font-size: 13px;
  color: #555;
  text-indent: 0;
}

/* 可选：整篇文章做成"一张大悬浮卡"——给 article-body 加 class="float-card" 即可 */
.article-body.float-card {
  background: #FFFFFF;
  border: 1px solid #000;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}


/* ---- 卡片配色微调（2026-10-14，对齐参考图效果） ---- */
.article-body .card {
  background: #DED6F7;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .12);
}
.article-body .card-date { color: #A63A5A; }
.article-body .card-tag  { color: #7B2D8E; }


/* ---- 段落居中：写 <p class="center">文字</p> 即可 ---- */
.article-body .center { text-align: center; }


/* ---- 前言：颜色同文章大标题(.article-title)，字号比正文(.article-body 14px)大一号 ---- */
.article-body .center {
  text-align: center;
  color: #000;        /* = .article-title 的颜色（它未设色，继承 body 的 #000） */
  font-size: 16px;    /* 正文 14px，大一号 */
}

/* ---- 卡片标题行（日期 + #标签）字号同样比正文大一号 ---- */
.article-body .card-head {
  font-size: 16px;
}


/* ---- 前言与卡片标题行统一改为红棕（2026-10-14） ---- */
.article-body .center { color: #A63A5A; }        /* 前言 */
.article-body .card-head { color: #A63A5A; }     /* 标题行整体（含"一、"） */
.article-body .card-tag { color: #A63A5A; }      /* 标题行里的 #标签 / 人名 */


/* ---- 前言与标题行字体一致：同为加粗、16px、红棕、宋体（2026-10-14） ---- */
.article-body .center {
  font-weight: bold;       /* 与 .card-head 的 font-weight: bold 保持一致 */
  font-family: inherit;    /* 同样继承 body 的 "SimSun","宋体",serif */
  font-size: 16px;
  color: #A63A5A;
  text-align: center;
}


/* ---- 卡片里的小图：给 img 加 class="small" 即可缩窄并居中 ---- */
.article-body .card img.small {
  width: 260px;        /* 想更小/更大就改这个数 */
  max-width: 100%;
  height: auto;
}


/* ---- 卡片底部"回到顶部"链接（由 /js/back-to-top.js 自动注入） ---- */
.article-body .card .back-to-top {
  display: block;
  margin: 14px 0 0;
  text-align: right;
  font-size: 13px;
  color: #7B2D8E;
  text-decoration: none;
}
.article-body .card .back-to-top:hover { text-decoration: underline; }


/* ===================== 作品集封面横幅（2026-10-31 新增） ===================== */
/* 图片本身已含草地 + 手绘花环白圆盘（含顶部藤蔓花纹），
   整体缩小到 72% 宽、水平居中；文字按实测像素坐标叠加（圆盘中心约 49.4% / 51.7%） */
.works-cover {
    position: relative;
    container-type: inline-size;
    width: 72%;
    margin: 26px auto;
    aspect-ratio: 2 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #dff0d8 url('/images/works-cover-bg.jpg') center / cover no-repeat;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* 圆盘内主标题（上移，给下方多行副标题留空间） */
.works-cover-title {
    position: absolute;
    left: 49.4%;
    top: 42%;
    transform: translate(-50%, -50%);
    font-size: 4.6cqw;
    font-weight: bold;
    letter-spacing: 0.4cqw;
    color: #3a3a3a;
    white-space: nowrap;
    line-height: 1.3;
}

/* 圆盘内副标题（front matter 的 subtitle，每句自动另起一行） */
.works-cover-sub {
    position: absolute;
    left: 49.4%;
    top: 50%;
    transform: translateX(-50%);
    font-size: 1.75cqw;
    letter-spacing: 0.25cqw;
    color: #9a9a9a;
    white-space: pre-line;
    line-height: 1.55;
    text-align: center;
}

/* 登录门禁提示框：提示框在整页底部（表格之外），先 auto 居中于页面，
   再右移 115px 对齐右侧内容栏中心（左信息栏连同内边距约占 231px，
   内容栏中心比页面中心偏右约 115px），与上方封面横幅同一条垂直中线 */
#gate-tip {
    width: fit-content;
    max-width: 92%;
    margin: 0 auto 30px;
    transform: translateX(115px);
}
#gate-tip .welcome { margin: 0 0 12px; }
#gate-tip p { margin: 0; text-align: center; }

