@charset "utf-8";

/* ============================================================
   国风题材 · Chinese Style Theme
   色系: 朱砂(#9B2335) · 宣纸(#F2E8D5) · 墨黑(#1C1410) · 金色(#C9A84C)
   ============================================================ */

:root {
  --primary:    #9B2335;
  --primary-dk: #6B0F1A;
  --primary-lt: #C5394A;
  --gold:       #C9A84C;
  --gold-lt:    #E8D5A3;
  --ink:        #1C1410;
  --ink-lt:     #4A3728;
  --paper:      #F2E8D5;
  --paper-lt:   #FAF6EC;
  --border:     #D4B896;
  --text:       #3D2B1F;
  --text-mute:  #8A7060;
  --teal:       #2E7D6E;
  --card-bg:    #FFFDF5;
  --shadow:     rgba(60, 20, 10, 0.08);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; transition: color .2s, background .2s, border .2s; }
body { color: var(--text); background: var(--paper); font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-lt); }
li { list-style: none; }
svg { vertical-align: middle; }
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { color: var(--border); }
input {
  color: var(--ink-lt); outline: none; height: 30px; line-height: 30px;
  padding: 0 10px; border: 1px solid var(--border); vertical-align: middle;
  border-radius: 2px; background: var(--paper-lt); font-size: 14px;
}
input[readonly] { cursor: not-allowed; }
textarea {
  color: var(--ink-lt); width: 100%; resize: none; outline: none;
  padding: 10px; border: 1px solid var(--border); line-height: 22px;
  font-size: 14px; background: var(--paper-lt);
}

/* ---- Common Components ---- */
.headline {
  font-family: "KaiTi", "楷体", "STKaiti", serif;
  color: var(--ink); font-size: 20px; padding-bottom: 14px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); display: flex;
  justify-content: space-between; align-items: center;
}
.btn {
  font-size: 13px; color: var(--paper-lt); background: var(--primary);
  padding: 0 20px; border: none; height: 30px; line-height: 30px;
  display: inline-block; cursor: pointer; vertical-align: middle;
  border-radius: 2px; white-space: nowrap; text-decoration: none !important;
  letter-spacing: 1px;
}
.btn:hover { color: #fff; background: var(--primary-dk); }
.btn-blue { background: var(--teal); }
.btn-blue:hover { background: #245f54; }
.empty { text-align: center; padding: 50px; color: var(--text-mute); font-style: italic; }
.title {
  font-size: 16px; margin: 28px 0 14px; display: flex; align-items: center;
  color: var(--ink); font-family: "KaiTi", "楷体", serif;
}
.title::before {
  content: ""; width: 3px; height: 14px;
  background: linear-gradient(to bottom, var(--primary), var(--gold));
  display: inline-block; margin-right: 8px; border-radius: 1px;
}

/* ---- Box ---- */
.box {
  margin-bottom: 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 3px;
  box-shadow: 0 2px 8px var(--shadow); flex: 1;
}
.box-name {
  width: 100%; display: flex; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-weight: bold; letter-spacing: 2px;
  font-family: "KaiTi", "楷体", "STKaiti", serif;
  color: var(--ink); font-size: 15px;
}
.box-name::before {
  content: ""; width: 3px; height: 15px;
  background: linear-gradient(to bottom, var(--primary), var(--gold));
  display: inline-block; margin-right: 10px; border-radius: 1px;
}
.box-name em { color: var(--primary); font-style: normal; font-weight: bold; }
.box-main { padding: 12px; }
.tip {
  background: #fdf5e6; padding: 8px 12px; margin-bottom: 10px;
  border-radius: 2px; border-left: 3px solid var(--gold);
}
.tip span { color: var(--primary-dk); font-weight: bold; margin: 0 4px; }

/* ---- Header ---- */
.header {
  background: var(--ink); border-bottom: 2px solid var(--gold);
  position: fixed; width: 100%; top: 0; left: 0; z-index: 99;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; height: 52px;
}
.header-title {
  display: flex; align-items: center; gap: 10px;
  font-family: "KaiTi", "楷体", "STKaiti", serif;
  font-size: 20px; letter-spacing: 4px;
}
.header-title a { color: var(--paper-lt); }
.header-title a:hover { color: var(--gold); }
.header-deco { color: var(--gold); font-size: 12px; }
.header-menu { display: flex; align-items: center; flex-wrap: wrap; }
.header-menu a { color: #d9cfc5; font-size: 14px; padding: 0 6px; letter-spacing: 1px; }
.header-menu a:hover { color: var(--gold); }
.header-menu span._line {
  width: 1px; height: 14px; background: #5a4838;
  display: inline-block; margin: 0 6px; vertical-align: middle;
}
.header-menu span._drop { color: #5a4838; margin: 0 2px; font-size: 13px; }

/* ---- Main Layout ---- */
.main {
  max-width: 1200px; margin: 0 auto; padding: 68px 20px 20px;
  min-height: calc(100vh - 120px);
}
.content { display: flex; gap: 16px; align-items: flex-start; }

/* ---- Banner ---- */
.banner {
  margin-bottom: 16px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dk) 0%, #3D1010 50%, var(--ink) 100%);
  border: 1px solid var(--gold); position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 90px;
}
.banner::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(201, 168, 76, 0.3); border-radius: 2px; pointer-events: none;
}
.banner-text { text-align: center; padding: 20px 40px; }
.banner-mood {
  color: var(--gold-lt); font-family: "KaiTi", "楷体", "STKaiti", serif;
  font-size: 17px; letter-spacing: 4px; line-height: 1.8;
}

/* ---- Article List ---- */
.list-box { flex: 1; position: relative; }
.list-title {
  display: flex; align-items: center; padding: 12px 16px;
  font-weight: bold; letter-spacing: 2px; border-bottom: 1px solid var(--border);
}
.list-title span { font-size: 13px; color: var(--text-mute); white-space: nowrap; min-width: 80px; text-align: center; }
.list-title span:first-child { flex: 1; text-align: left; color: var(--ink); font-size: 14px; font-family: "KaiTi", "楷体", serif; }
.list { padding: 4px 0; }
.list li {
  display: flex; align-items: center; padding: 10px 16px;
  border-bottom: 1px dashed #e8ddd0; transition: all .2s;
}
.list li:last-child { border-bottom: none; }
.list li:hover { background: #fdf8f0; border-left: 2px solid var(--primary); padding-left: 14px; }
.list a {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-size: 14px;
}
.list a:hover { color: var(--primary); }
.list span {
  color: var(--text-mute); font-size: 13px; white-space: nowrap;
  min-width: 80px; text-align: center; flex: 0 0 80px;
}
.list span:first-child { flex: 1; text-align: left; }
.top a { color: var(--primary) !important; font-weight: bold; }
.top a::before { content: "置顶 "; font-size: 11px; background: var(--primary); color: #fff; padding: 0 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.private a { color: var(--teal) !important; }
.xc { padding-bottom: 50px; }
.botm-menu {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; border-top: 1px solid var(--border); padding: 14px 16px;
  position: absolute; bottom: 0; width: 100%; font-size: 13px; color: var(--text-mute);
}
.list-headline { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.list-headline form { margin-left: auto; }
.list-headline form .btn { margin: 0; }

/* ---- Sidebar ---- */
.sidebar { flex: 0 0 240px; display: flex; flex-direction: column; }
.user { padding: 16px; text-align: center; }
.user .avatar { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); margin-bottom: 8px; }
.user-name { font-family: "KaiTi", "楷体", serif; font-size: 16px; color: var(--ink); letter-spacing: 2px; margin-bottom: 10px; }
.user-info { display: flex; justify-content: space-around; margin: 12px 0 14px; }
.user-info > div { text-align: center; }
.user-info span { font-size: 12px; color: var(--text-mute); display: block; }
.user-info strong { font-size: 16px; color: var(--primary); display: block; margin-top: 2px; }
.search { display: flex; }
.search input[name=name] { flex: 1; border-right: none; border-radius: 2px 0 0 2px; }
.search .btn { border-radius: 0 2px 2px 0; padding: 0 12px; letter-spacing: 2px; }
.sidebar-tag { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-category { padding: 8px 0; }
.sidebar-category li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; border-bottom: 1px dashed #e8ddd0;
}
.sidebar-category li:last-child { border-bottom: none; }
.sidebar-category a { color: var(--text); font-size: 14px; }
.sidebar-category a:hover { color: var(--primary); padding-left: 4px; }
.sidebar-category span { color: var(--text-mute); font-size: 12px; }

/* ---- Tag Colors ---- */
.link-index-list a {
  display: inline-block; padding: 3px 10px; border-radius: 2px;
  font-size: 13px; border: 1px solid;
}
.link-index-list a:hover { box-shadow: 1px 2px 6px var(--shadow); transform: translateY(-1px); }
.color1  { color: #8B1A1A !important; background: #fff5f5; border-color: #8B1A1A !important; }
.color2  { color: #9B4400 !important; background: #fff8f0; border-color: #9B4400 !important; }
.color3  { color: #7A5800 !important; background: #fffbf0; border-color: #7A5800 !important; }
.color4  { color: #2E5E4E !important; background: #f0faf7; border-color: #2E5E4E !important; }
.color5  { color: #1A5276 !important; background: #f0f8ff; border-color: #1A5276 !important; }
.color6  { color: #4A235A !important; background: #fdf5ff; border-color: #4A235A !important; }
.color7  { color: #7B241C !important; background: #fdf2f2; border-color: #7B241C !important; }
.color8  { color: #1C4E35 !important; background: #f0faf5; border-color: #1C4E35 !important; }
.color9  { color: #6E2F1A !important; background: #fef5f0; border-color: #6E2F1A !important; }
.color10 { color: #283593 !important; background: #f0f3ff; border-color: #283593 !important; }
.color11 { color: #00695C !important; background: #f0fafa; border-color: #00695C !important; }
.color12 { color: #558B2F !important; background: #f5fef0; border-color: #558B2F !important; }
.color13 { color: #827717 !important; background: #fdfef0; border-color: #827717 !important; }
.color14 { color: #E65100 !important; background: #fff8f0; border-color: #E65100 !important; }
.color15 { color: #4E342E !important; background: #fdf5f2; border-color: #4E342E !important; }
.color16 { color: #37474F !important; background: #f5f8fa; border-color: #37474F !important; }
.color17 { color: #9B2335 !important; background: #fff5f7; border-color: #9B2335 !important; }
.color18 { color: #2E7D6E !important; background: #f0fdf9; border-color: #2E7D6E !important; }
.color19 { color: #6A1B9A !important; background: #fdf5ff; border-color: #6A1B9A !important; }
.color20 { color: #BF360C !important; background: #fff3ef; border-color: #BF360C !important; }
.color21 { color: #4527A0 !important; background: #f5f0ff; border-color: #4527A0 !important; }
.color22 { color: #00695C !important; background: #edfaf7; border-color: #00695C !important; }
.color23 { color: #33691E !important; background: #f3fde8; border-color: #33691E !important; }
.color24 { color: #E65100 !important; background: #fff6ee; border-color: #E65100 !important; }
.color25 { color: #BF360C !important; background: #fff2ee; border-color: #BF360C !important; }
.color26 { color: #880E4F !important; background: #fdf0f7; border-color: #880E4F !important; }
.color27 { color: #6200EA !important; background: #f5eeff; border-color: #6200EA !important; }
.color28 { color: #1B5E20 !important; background: #f0fdf3; border-color: #1B5E20 !important; }
.color29 { color: #006064 !important; background: #edfafc; border-color: #006064 !important; }
.color30 { color: #0D47A1 !important; background: #edf4ff; border-color: #0D47A1 !important; }

/* ---- Pagination ---- */
.paging { font-size: 14px; padding: 10px 16px; }
.paging > :first-child { position: absolute; left: 16px; bottom: 14px; }
.paging > :last-child  { position: absolute; right: 16px; bottom: 14px; }
.paging a { margin: 0 2px; text-decoration: none; color: var(--text-mute); padding: 2px 6px; }
.paging a:hover { color: var(--primary); }
.paging a.paging-active { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: bold; }
.paging-disabled { cursor: not-allowed; color: #ccc !important; }
.paging-ell { padding: 2px 4px; color: var(--text-mute); }
.paging-link { display: none; }

/* ---- Article Detail ---- */
.page-layout { display: flex; gap: 16px; align-items: flex-start; }
.article { padding: 32px 40px; flex: 1; position: relative; }
.article-header { text-align: center; margin-bottom: 32px; }
.article-title {
  font-family: "KaiTi", "楷体", "STKaiti", serif;
  font-size: 28px; color: var(--ink); letter-spacing: 4px;
  line-height: 1.6; margin-bottom: 14px;
}
.article-info { color: var(--text-mute); font-size: 13px; margin-bottom: 16px; }
.article-info span { margin: 0 10px; }
.article-info a { color: var(--text-mute); }
.article-info a:hover { color: var(--primary); }
.article-divider {
  color: var(--gold); font-size: 20px; letter-spacing: 8px;
  margin: 10px 0; opacity: .8;
}
.article-content { margin-bottom: 40px; line-height: 1.9; }
.article-menu {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  border-top: 1px dashed var(--border); padding-top: 16px; gap: 10px;
}
.article-menu-item { font-size: 13px; color: var(--text-mute); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-menu-item a { color: var(--primary); }
.article-menu-item a:hover { color: var(--primary-lt); }

/* ---- TOC (目录) ---- */
.mulu {
  width: 200px; flex: 0 0 200px; position: sticky; top: 68px;
  max-height: calc(100vh - 90px); overflow-y: auto; font-size: 13px;
}
.sidebar-taglu { display: flex; flex-direction: column; padding: 8px 0; }
.sidebar-taglu li { padding: 0; margin: 0; }
.sidebar-taglu a {
  display: block; padding: 5px 14px; color: var(--text-mute);
  text-decoration: none; border-left: 2px solid transparent;
  line-height: 1.5;
}
.sidebar-taglu a:hover { color: var(--primary); border-left-color: var(--primary); background: #fdf8f2; }

/* ---- Login ---- */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 180px);
}
.login {
  width: 440px; padding: 40px; text-align: center;
}
.login-title {
  font-family: "KaiTi", "楷体", serif; font-size: 22px;
  color: var(--ink); letter-spacing: 6px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.login-deco { color: var(--gold); font-size: 14px; }
.login-sub { color: var(--text-mute); font-size: 13px; margin-bottom: 20px; }
.login input[name=password] { width: 100%; margin-bottom: 10px; display: block; }
.login .btn { width: 100%; margin-top: 4px; height: 34px; line-height: 34px; letter-spacing: 6px; }
.vcode-row { display: flex; margin-bottom: 10px; }
.vcode-row input { flex: 1; border-right: none; }
.vcode-img { height: 30px; cursor: pointer; border: 1px solid var(--border); border-radius: 0 2px 2px 0; }

/* ---- Prompt ---- */
.prompt {
  text-align: center; padding: 60px 40px; margin: 40px auto; max-width: 600px;
}
.prompt-icon { font-size: 30px; color: var(--gold); margin-bottom: 16px; }
.prompt-title {
  font-family: "KaiTi", "楷体", serif; font-size: 20px;
  color: var(--primary); letter-spacing: 4px; margin-bottom: 16px;
}
.prompt-msg { color: var(--text); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.prompt-footer { color: var(--text-mute); font-size: 14px; }
.prompt-footer a { color: var(--primary); margin: 0 8px; }
.prompt-footer a:hover { color: var(--primary-lt); }

/* ---- Comments ---- */
.comment { padding: 32px 40px; }
.comment-info { display: flex; border: 1px solid var(--border); }
.comment-info-item { flex: 1; display: flex; align-items: center; border-right: 1px solid var(--border); }
.comment-info-item:last-child { border-right: none; }
.comment-info-item label { width: 80px; text-align: center; color: var(--text-mute); font-size: 13px; border-right: 1px solid var(--border); }
.comment-info-item input { border: none; background: transparent; width: 100%; }
.comment-form textarea { height: 120px; border: none; border-top: 1px solid var(--border); }
.comment-form { border: 1px solid var(--border); border-top: none; }
.comment-submit { display: flex; align-items: center; border: 1px solid var(--border); margin-top: -1px; }
.comment-submit .btn { border-radius: 0; background: var(--primary); margin: 0; }
.comment-list li { color: var(--text); padding: 14px 0; border-bottom: 1px dashed #e8ddd0; margin: 0; }
.comment-list li:last-child { border-bottom: none; }
.comment-list .comment-list { margin-left: 24px; }
.comment-user { color: var(--teal); display: inline-block; font-weight: bold; }
.comment-admin > .comment-title .comment-user { color: var(--primary); }
.comment-time { color: var(--text-mute); margin-left: 8px; font-size: 12px; }
.comment-title a { color: var(--primary); margin-left: 8px; font-size: 13px; }
.comment p { margin-bottom: 4px; }
.comment-reply { margin: 0 4px; cursor: pointer; color: var(--primary); font-size: 13px; }
.comment-replys { margin-left: 12px; }
.comment-replys span { margin-left: 6px; color: var(--teal); font-size: 12px; border: 1px solid var(--teal); border-radius: 2px; padding: 0 4px; cursor: pointer; }

/* ---- Alert ---- */
.alert { position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 100%; display: flex; align-items: center; }
.alert-box { width: 320px; background: var(--card-bg); margin: auto; box-shadow: 0 4px 20px var(--shadow); border-radius: 3px; border-top: 3px solid var(--primary); }
.alert-bg { width: 100%; height: 100%; background: #000; opacity: .2; top: 0; left: 0; position: fixed; }
.alert-content { font-size: 15px; position: relative; padding: 24px; }
.alert-footer { width: 100%; border-top: 1px solid var(--border); padding: 10px 16px; text-align: right; }
.alert-footer > div { padding: 0 10px; height: 28px; line-height: 28px; cursor: pointer; display: inline-block; }
.alert-cancel { color: var(--text-mute); }
.alert-cancel:hover { color: var(--primary); }
.alert-confirm { background: var(--primary); color: #fff; border-radius: 2px; }
.alert-confirm:hover { background: var(--primary-dk); }

/* ---- Back to Top ---- */
#back-top {
  position: fixed; right: 24px; bottom: 32px; z-index: 99;
  width: 40px; height: 40px; line-height: 40px; text-align: center;
  background: var(--primary); color: var(--gold-lt); border-radius: 2px;
  font-size: 16px; cursor: pointer; opacity: 0; transition: opacity .3s;
  box-shadow: 0 2px 8px var(--shadow);
}
#back-top.show { opacity: 1; }
#back-top:hover { background: var(--primary-dk); }

/* ---- Footer ---- */
.footer {
  background: var(--ink); border-top: 2px solid var(--gold);
  margin-top: 40px; padding: 20px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px;
}
.footer-inner { flex-direction: column; align-items: center; gap: 10px; }
.footer-deco { color: var(--gold); font-size: 14px; letter-spacing: 8px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px; }
.footer-links a { color: #8a7060; font-size: 13px; padding: 0 4px; }
.footer-links a:hover { color: var(--gold); }
.footer-info { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px; }
.footer-info span { color: #8a7060; font-size: 13px; }
.footer-info a { color: var(--gold); }
.footer-info a:hover { color: var(--gold-lt); }
.footer-perf { display: flex; gap: 2px; }
.footer-perf span { color: #4a3528; font-size: 12px; }
.footer-dot { color: #3a2a1e; padding: 0 2px; }

/* ---- Animations ---- */
.ani-in  { animation: .5s fadeIn; }
.ani-out { animation: .5s fadeOut; }
.ani-up-in   { animation: .5s slideUp; }
.ani-down-in { animation: .5s slideDown; }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut  { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(10px);  } to { opacity: 1; transform: none; } }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .mulu { display: none; }
}
@media (max-width: 768px) {
  body { background: var(--paper-lt); }
  .main { padding: 62px 12px 12px; }
  .content { flex-direction: column-reverse; }
  .sidebar { flex: 0 0 100%; }
  .sidebar .box:not(.user-box) { display: none; }
  .box { box-shadow: none; }
  .header-inner { padding: 0 14px; }
  .header-title { font-size: 17px; letter-spacing: 2px; }
  .article { padding: 20px; }
  .article-title { font-size: 22px; letter-spacing: 2px; }
  .comment { padding: 16px; }
  .login { width: 100%; }
  .banner-mood { font-size: 14px; letter-spacing: 2px; }
  .list li { padding: 9px 12px; }
  .list span.col-hide { display: none; }
  .list-title span.col-hide { display: none; }
  .footer-info { flex-direction: column; align-items: center; gap: 4px; }
  .footer-dot { display: none; }
  #back-top { display: none; }
  .card-cover { display: none; }
  .vertical-mode { writing-mode: horizontal-tb !important; max-height: none !important; }
  .vertical-box  { width: 100% !important; }
}

/* ============================================================
   新功能样式
   ============================================================ */

/* ---- Banner 水墨 Canvas ---- */
.banner { position: relative; min-height: 120px; overflow: hidden; }
#ink-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.banner-text { position: relative; z-index: 1; }

/* ---- 文章卡片列表 ---- */
.card-list { padding: 0; }
.card-item {
  display: flex !important; align-items: flex-start;
  padding: 14px 16px !important; gap: 14px;
  border-bottom: 1px dashed #e8ddd0 !important;
  flex-wrap: nowrap;
}
.card-item:last-child { border-bottom: none !important; }
.card-item:hover { background: #fdf8f0; border-left: 2px solid var(--primary) !important; padding-left: 14px !important; }
.card-cover {
  flex: 0 0 100px; width: 100px; height: 70px;
  overflow: hidden; border-radius: 2px;
  border: 1px solid var(--border); display: block;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card-title {
  font-size: 15px; color: var(--text); font-family: "KaiTi","楷体",serif;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block;
}
.card-title:hover { color: var(--primary); }
.top .card-title { color: var(--primary); font-weight: bold; }
.top .card-title::before {
  content: "置顶"; font-size: 11px; background: var(--primary); color: #fff;
  padding: 0 4px; border-radius: 2px; margin-right: 6px;
  vertical-align: middle; font-family: sans-serif;
}
.private .card-title { color: var(--teal); }
.card-intro {
  font-size: 13px; color: var(--text-mute); line-height: 1.6;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.card-meta span { font-size: 12px; color: var(--text-mute); }
.card-meta a { color: var(--text-mute); }
.card-meta a:hover { color: var(--primary); }

/* ---- 每日诗词 ---- */
.poem-box { }
.poem-wrap { padding: 16px 18px; text-align: center; }
.poem-text {
  font-family: "KaiTi","楷体","STKaiti",serif;
  font-size: 15px; color: var(--ink); line-height: 2;
  letter-spacing: 2px; margin-bottom: 10px;
  border-left: 3px solid var(--gold); padding-left: 12px;
  text-align: left;
}
.poem-from {
  font-size: 12px; color: var(--text-mute);
  text-align: right; letter-spacing: 1px;
}

/* ---- 文章归档 ---- */
.archive-list { padding: 8px 0; }
.archive-year { border-bottom: 1px dashed #e8ddd0; }
.archive-year:last-child { border-bottom: none; }
.archive-year-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px; cursor: pointer; user-select: none;
  font-family: "KaiTi","楷体",serif; font-size: 14px;
  color: var(--ink); font-weight: bold;
  transition: background .15s;
}
.archive-year-title:hover { background: #fdf8f0; color: var(--primary); }
.archive-toggle { color: var(--primary); font-size: 13px; transition: transform .3s; }
.archive-months {
  overflow: hidden; max-height: 0;
  transition: max-height .35s ease;
  margin: 0; padding: 0;
}
.archive-months.open { /* max-height set by JS */ }
.archive-months li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 16px 6px 28px;
  border-bottom: 1px dashed #ede4d8;
  font-size: 13px; color: var(--text-mute);
}
.archive-months li:last-child { border-bottom: none; }
.archive-count {
  font-size: 12px; color: var(--gold);
  border: 1px solid var(--gold-lt); border-radius: 10px;
  padding: 0 7px; background: #fffbf2;
}

/* ---- 竖排阅读模式 ---- */
.btn-vertical {
  display: inline-block; cursor: pointer;
  font-size: 12px; color: var(--text-mute);
  border: 1px solid var(--border); background: var(--paper-lt);
  border-radius: 2px; padding: 2px 8px; margin-left: 10px;
  letter-spacing: 1px; transition: all .2s; vertical-align: middle;
  font-family: "KaiTi","楷体",serif;
}
.btn-vertical:hover { color: var(--primary); border-color: var(--primary); }
.btn-vertical-on { color: var(--primary) !important; border-color: var(--primary) !important; background: #fff5f7 !important; }

.vertical-mode {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 80vh;
  overflow-x: auto;
  overflow-y: hidden;
  line-height: 2.2;
  font-family: "KaiTi","楷体","STKaiti",serif;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 20px 10px;
  column-gap: 2em;
}
.vertical-box {
  width: calc(100vw - 260px);
  max-width: 900px;
  overflow: hidden;
}
.vertical-mode h1,
.vertical-mode h2,
.vertical-mode h3 {
  font-size: 18px; letter-spacing: 3px;
}
.vertical-mode img { max-width: 200px; }
.vertical-mode pre,
.vertical-mode code { writing-mode: horizontal-tb; display: inline-block; margin: 0 1em; }


/* ---- 代码块复制按钮 ---- */
.article-content pre {
  position: relative;
}
.code-copy-btn {
  position: absolute; top: 8px; right: 8px;
  font-size: 12px; padding: 2px 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 2px;
  background: var(--paper-lt); color: var(--text-mute);
  opacity: 0; transition: opacity .2s, color .2s, border-color .2s;
  font-family: sans-serif; line-height: 20px;
}
.article-content pre:hover .code-copy-btn { opacity: 1; }
.code-copy-ok {
  color: var(--teal) !important;
  border-color: var(--teal) !important;
  opacity: 1 !important;
}

/* ---- 友情链接 ---- */

/* ---- 梅花回顶 ---- */
#back-top { display: none !important; }

#flower-btn {
  position: fixed; right: 24px; bottom: 32px;
  width: 50px; height: 50px;
  cursor: pointer; z-index: 99;
  transition: transform .2s;
}
#flower-btn:hover { transform: scale(1.18); }

.flower-petal {
  position: absolute;
  width: 13px; height: 22px;
  border-radius: 50% 50% 35% 35%;
  bottom: 50%; left: 50%; margin-left: -6.5px;
  transform-origin: bottom center;
  transition: transform .3s ease-out, opacity .3s;
  box-shadow: 0 1px 3px rgba(60,10,10,.15);
}
.flower-petal:nth-child(2) { background: linear-gradient(to top, #7a1020, #d04060, #f5a8bc); }
.flower-petal:nth-child(3) { background: linear-gradient(to top, #861525, #c83050, #eeaabf); }
.flower-petal:nth-child(4) { background: linear-gradient(to top, #8a1830, #cc2a42, #ecaab8); }
.flower-petal:nth-child(5) { background: linear-gradient(to top, #7e1222, #d23555, #f2a5b8); }
.flower-petal:nth-child(6) { background: linear-gradient(to top, #821a28, #c82e48, #edaabb); }

.flower-center {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe082, #c9a84c);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: transform .3s, box-shadow .3s;
}
