/* WXY-Blog 主样式（全本地，无外部依赖） */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2330;
  --text-muted: #6b7486;
  --primary: #2f6fed;
  --primary-hover: #2557c4;
  --danger: #d9434b;
  --warn: #c07f16;
  --border: #e4e7ee;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
  --code-bg: #0f1720;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
.container { max-width: 1420px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; position: relative; z-index: 100;
}
/* 中间主体区域独立滚动 */
.page-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.page-body::-webkit-scrollbar { width: 8px; }
.page-body::-webkit-scrollbar-thumb { background: #d3d9e4; border-radius: 999px; }
.page-body::-webkit-scrollbar-thumb:hover { background: #b9c2d0; }
.page-body::-webkit-scrollbar-track { background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #2f6fed, #6a3df5);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.site-title { font-size: 17px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav > a { color: var(--text-muted); font-size: 14.5px; padding: 6px 2px; }
.nav > a.active, .nav > a:hover { color: var(--primary); }
.btn-admin {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600;
  color: var(--primary); background: #eef3ff;
  border: 1px solid #c8d8fa; border-radius: 999px;
  padding: 5px 14px; transition: background .12s ease, color .12s ease;
}
.btn-admin:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 右上角用户菜单 */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px 4px 4px; background: var(--surface);
  transition: box-shadow .12s ease;
}
.user-chip:hover { box-shadow: var(--shadow); border-color: #c8d5f5; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2f6fed, #6a3df5);
  color: #fff; font-size: 13px; font-weight: 700;
}
.nav-avatar-fallback::first-letter { text-transform: uppercase; }
.nav-username { font-size: 14px; color: var(--text); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--text-muted); font-size: 11px; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(16,24,40,.14);
  min-width: 190px; padding: 8px; z-index: 200;
}
.ud-head {
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px;
}
.user-dropdown > a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14px;
}
.user-dropdown > a:hover { background: #f0f4ff; color: var(--primary); }
.ud-logout { color: var(--danger) !important; }
.ud-sep { border-top: 1px solid var(--border); margin: 6px 4px; }
.ud-label {
  padding: 2px 12px 4px; font-size: 11.5px; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
}
.ud-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 17px;
}
.role-badge {
  font-size: 10.5px; border-radius: 999px; padding: 1px 7px; font-weight: 600;
  line-height: 15px; flex-shrink: 0;
}
.role-admin { background: #fdecec; color: #d9434b; }
.role-auditor { background: #fff6e5; color: #b0700f; }

/* 顶部导航分类下拉 */
.nav-cat { position: relative; }
/* 桥接触发器与下拉面板之间的空隙，避免鼠标移动时 hover 丢失导致二级分类无法点击 */
.nav-cat::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 100%; height: 14px;
}
.user-menu::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 100%; height: 12px;
}
.nav-cat-trigger {
  color: var(--text-muted); font-size: 14.5px; padding: 6px 2px;
  display: inline-flex; align-items: center; gap: 3px; cursor: pointer;
}
.nav-cat:hover .nav-cat-trigger { color: var(--primary); }
.nav-cat-dropdown {
  position: absolute; left: 0; top: calc(100% + 10px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(16,24,40,.14);
  min-width: 230px; max-height: 70vh; overflow-y: auto;
  padding: 8px; z-index: 200;
  display: none;
}
.nav-cat:hover .nav-cat-dropdown, .nav-cat:focus-within .nav-cat-dropdown { display: block; }
.nav-cat:last-of-type .nav-cat-dropdown { left: auto; right: 0; }
.nav-cat-dropdown::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px; color: var(--text); font-size: 14px;
}
.nc-item:hover { background: #f0f4ff; color: var(--primary); }
.nc-parent { font-weight: 600; }
.nc-child { padding-left: 30px; font-size: 13.5px; color: var(--text-muted); }
.nc-child::before { content: "└"; margin-right: 2px; color: #c0c8d8; }
.nc-count {
  margin-left: auto; background: #eef0f4; border-radius: 999px;
  font-size: 11.5px; padding: 0 8px; color: var(--text-muted);
}
.nc-item:hover .nc-count { background: #e2ebff; color: var(--primary); }

/* 分类卡片 */
.category-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px; margin: 18px 0 6px;
}
.cat-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; color: var(--text);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.1);
  border-color: #bcd0fa; color: var(--text);
}
.cat-head { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.cat-head:hover { color: var(--primary); }
.cat-children { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-child {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--text-muted);
  background: #f2f4f8; border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.cat-child:hover { background: #e8efff; color: var(--primary); border-color: #c8d8fa; }
.cat-child i { font-style: normal; font-size: 11px; color: #9aa4b8; }
.cat-desc { display: block; }
.category-sub { list-style: none; margin: 2px 0 0; padding: 0 0 0 14px; }
.category-sub a { font-size: 13.5px; color: var(--text-muted); }
.category-sub a:hover, .category-sub a.active { color: var(--primary); }
.category-sub .count { font-size: 11.5px; margin-left: 4px; }

/* 首页标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-muted);
  background: #f2f4f8; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 12px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.tag-pill i { font-style: normal; font-size: 11px; color: #9aa4b8; }
.tag-pill:hover { background: #e8efff; color: var(--primary); border-color: #c8d8fa; }
.tag-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-pill.active i { color: rgba(255,255,255,.8); }

/* 搜索关键字高亮 */
mark { background: #fff3bf; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ============ 动画效果（前台） ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.main-content { animation: fadeIn .35s ease both; }
.article-card { animation: fadeUp .45s ease both; }
.article-card:nth-child(2) { animation-delay: .05s; }
.article-card:nth-child(3) { animation-delay: .1s; }
.article-card:nth-child(4) { animation-delay: .15s; }
.article-card:nth-child(5) { animation-delay: .2s; }
.article-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,24,40,.1); border-color: #c8d8fa; }
.article-title a { transition: color .15s ease; }
.article-title a:hover { color: var(--primary); }

.nav-cat-dropdown, .user-dropdown { animation: dropIn .18s ease both; transform-origin: top; }
.quote-float { animation: slideInRight .5s ease both; }
.tag-pill { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.tag-pill:hover { transform: translateY(-1px); }
.pager-link { transition: background .15s ease, color .15s ease; }
.btn, .btn-admin { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease; }
.btn:active, .btn-admin:active { transform: scale(.97); }
.btn-login {
  white-space: nowrap !important; flex-shrink: 0; letter-spacing: 2px;
  padding: 5px 16px !important; font-size: 13.5px !important; line-height: 1.6 !important;
  background: #67c23a !important; border-color: #67c23a !important; color: #fff !important;
}
.btn-login:hover { background: #529b2e !important; border-color: #529b2e !important; color: #fff !important; }
.user-chip { transition: box-shadow .15s ease, border-color .15s ease; }
.nav-avatar { transition: transform .15s ease; }
.user-menu[open] .nav-avatar { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.cat-icon {
  font-size: 24px; width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef3ff, #f4efff);
  flex-shrink: 0;
}
.cat-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-info strong { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.cat-count {
  background: #eef3ff; color: var(--primary); border-radius: 999px;
  font-size: 11.5px; padding: 0 8px; font-weight: 600;
}

/* 文章卡片（带封面） */
.article-card.has-cover { display: flex; gap: 16px; padding: 14px; }
.article-cover { flex-shrink: 0; }
.article-cover img {
  width: 180px; height: 120px; object-fit: cover; border-radius: 8px;
  display: block;
}
@media (max-width: 640px) {
  .article-card.has-cover { flex-direction: column; }
  .article-cover img { width: 100%; height: 160px; }
}

/* 文章页封面横幅 */
.article-banner {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: 12px; margin-bottom: 18px;
}

/* 欢迎语 */
.welcome-banner { margin-top: 18px; }
.quote-card {
  background: linear-gradient(120deg, #eef3ff, #f5efff);
  border: 1px solid #dfe6ff;
  padding: 16px 22px; border-radius: var(--radius);
  font-size: 15.5px; color: #3a4460;
  box-shadow: var(--shadow);
}
.quote-mark { color: var(--primary); font-weight: 700; }
.quote-author { color: var(--text-muted); font-size: 13.5px; margin-left: 8px; }

/* 布局 */
.main-content { padding: 24px 20px 48px; min-height: 62vh; }
.home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.home-grid.full { grid-template-columns: 1fr; }
.home-grid.has-news { grid-template-columns: 230px minmax(0, 1fr) 300px; }
@media (max-width: 900px) { .home-grid, .home-grid.full, .home-grid.has-news { grid-template-columns: 1fr; } }

/* 左侧最新技术竖向卡片（无数据时不渲染） */
.tech-news { position: sticky; top: 12px; }
.tn-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 12px 12px 8px;
  animation: fadeUp .45s ease both;
}
.tn-head { font-weight: 700; font-size: 13.5px; padding: 2px 4px 8px; border-bottom: 1px solid var(--border); }
.tn-head .muted { font-weight: 400; font-size: 11px; }
.tn-list { list-style: none; margin: 0; padding: 0; }
.tn-list li { border-bottom: 1px dashed var(--border); }
.tn-list li:last-child { border-bottom: none; }
.tn-list a {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 7px 2px; color: var(--text); font-size: 12.8px; line-height: 1.5;
  transition: color .15s ease, background .15s ease;
}
.tn-list a:hover { color: var(--primary); background: #f6f9ff; }
.tn-src {
  flex-shrink: 0; font-size: 10.5px; font-weight: 600; line-height: 17px;
  background: #fdecec; color: #d9434b; border-radius: 4px; padding: 0 5px; margin-top: 1px;
}
.tn-src.tn-gitee { background: #e8f7ee; color: #1f9d61; }
.tn-title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 1200px) { .home-grid.has-news { grid-template-columns: minmax(0, 1fr) 300px; } .tech-news { display: none; } }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 20px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  width: 220px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); font-size: 14px;
}

/* 文章卡片 */
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; margin-bottom: 14px; transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,24,40,.1); }
.article-card.slim { padding: 12px 16px; }
.article-title { margin: 0 0 6px; font-size: 18px; }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--primary); }
.article-summary { color: var(--text-muted); margin: 0 0 10px; font-size: 14.5px; }
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.article-meta .author { color: var(--text); font-weight: 500; }
.category-tag {
  background: #eef3ff; color: var(--primary); border-radius: 999px;
  padding: 1px 10px; font-size: 12.5px;
}
.status-badge { border-radius: 999px; padding: 1px 10px; font-size: 12.5px; background: #eef0f4; color: var(--text-muted); }
.status-published { background: #e6f7ec; color: #178a4c; }
.status-draft { background: #fff4e0; color: #b26a00; }
.status-pending { background: #fff4e0; color: #b26a00; }
.status-rejected { background: #fde8e8; color: #c0392b; }
.status-hidden { background: #f4e7ff; color: #7a3fd4; }
.review-hint {
  background: #fff9ee; border: 1px solid #f5e3bd; color: #8a5a00;
  border-radius: 8px; padding: 10px 14px; font-size: 13.5px;
}
.status-cm-approved { background: #e6f7ec; color: #178a4c; }
.status-cm-pending { background: #fff4e0; color: #b26a00; }
.status-cm-rejected { background: #fde8e8; color: #c0392b; }

/* 侧栏 */
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 18px;
}
.widget h4 { margin: 0 0 10px; font-size: 15px; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a { color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.category-list a.active { color: var(--primary); font-weight: 600; }
.category-list .count { background: #eef0f4; border-radius: 999px; font-size: 12px; padding: 0 8px; color: var(--text-muted); }
.daily-quote { margin: 0; font-size: 14px; color: #3a4460; }
.daily-quote footer { margin-top: 6px; color: var(--text-muted); font-size: 12.5px; }
.daily-quote.big { font-size: 16px; }

/* 空态 */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0 6px; }
.pager-link { padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.pager-info { color: var(--text-muted); font-size: 13.5px; }

/* 文章详情 */
.article-detail {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 34px;
}
.article-header h1 { margin: 0 0 10px; font-size: 26px; }
.article-content { font-size: 16px; overflow-wrap: break-word; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.article-content pre {
  background: var(--code-bg); color: #e6edf3; padding: 16px 18px;
  border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55;
}
.article-content code { font-family: Consolas, "JetBrains Mono", "Cascadia Code", monospace; }
.article-content p code, .article-content li code {
  background: #eef0f4; padding: 1px 6px; border-radius: 5px; font-size: 87%; color: #b3541e;
}
.article-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 8px 12px; }
.article-content th { background: #f4f6fa; }
.article-content blockquote {
  margin: 14px 0; padding: 10px 18px; border-left: 4px solid var(--primary);
  background: #f4f7ff; border-radius: 0 8px 8px 0; color: #3a4460;
}
.article-actions { margin: 26px 0 8px; display: flex; gap: 10px; }
.btn-like { cursor: pointer; }
.btn-like.liked { background: #fde8e8; color: #c0392b; border-color: #f5c2c2; }
.tag-chip { display: inline-block; background: #eef0f4; border-radius: 999px; padding: 2px 12px; font-size: 13px; margin-right: 8px; color: var(--text-muted); }

/* 评论 */
.comments { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 22px; }
.comment-form textarea { width: 100%; margin-bottom: 10px; }
.comment { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-top: 12px; background: #fbfcfe; }
.comment-head { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.comment-body { margin-top: 6px; font-size: 14.5px; }

/* 按钮 & 表单 */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); cursor: pointer;
  font-size: 14px; transition: all .12s ease;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
input, select, textarea {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b9cdfb; border-color: var(--primary); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--text-muted); }
label.checkbox { flex-direction: row; align-items: center; gap: 8px; }

/* 个人中心 */
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.profile-top { display: flex; gap: 18px; align-items: flex-start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#2f6fed,#6a3df5); color: #fff; font-weight: 700; }
.title-chip { background: #fff4e0; color: #b26a00; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 600; }
.points-chip { background: #eef3ff; color: var(--primary); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 600; margin-left: 8px; }
.title-ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ladder-step { border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; font-size: 12.5px; color: var(--text-muted); }
.ladder-step.reached { background: #e6f7ec; color: #178a4c; border-color: #bfe8cd; }
.points-list { list-style: none; margin: 0; padding: 0; }
.points-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.points-list li:last-child { border: none; }
.points-list .plus { color: #178a4c; font-weight: 700; min-width: 36px; }
.points-list .minus { color: var(--danger); font-weight: 700; min-width: 36px; }
.points-list .reason { flex: 1; }

/* 页脚 */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 14px 0; flex-shrink: 0; }
.footer-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-stats { display: flex; gap: 10px; color: var(--text-muted); font-size: 13.5px; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer-stats strong { color: var(--text); }
.footer-meta { margin-top: 6px; color: var(--text-muted); font-size: 12.5px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--primary); }
.sep { color: var(--border); }

/* 右下角每日一言浮窗 */
.quote-float {
  position: fixed; right: 18px; bottom: 74px; z-index: 300;
  width: 280px; max-width: calc(100vw - 36px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 10px 34px rgba(16,24,40,.18);
  padding: 12px 14px 12px 16px;
  transition: opacity .35s ease, transform .35s ease;
}
.quote-float.qf-fading { opacity: 0; transform: translateY(6px); }
.qf-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 15px; line-height: 1; padding: 2px 4px;
}
.qf-close:hover { color: var(--danger); }
.qf-label {
  font-size: 11.5px; color: var(--primary); font-weight: 700;
  letter-spacing: 2px; margin-bottom: 4px;
}
.qf-body { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.qf-mark { color: #b9c6e8; font-weight: 700; }
.qf-author { margin-top: 4px; font-size: 12px; color: var(--text-muted); text-align: right; }

/* 工具页 */
.narrow { max-width: 460px; margin: 60px auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin-bottom: 20px; }
.card form label { margin-bottom: 12px; }
.card form input, .card form select { width: 100%; }
.center { text-align: center; }
.error-code { font-size: 72px; margin: 10px 0; color: var(--primary); }
.inline { display: inline; }
.wide-input { width: 100%; }
.warn-card { border-left: 4px solid var(--warn); }

/* 个人资料页 */
.profile-form h4 { margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed var(--border); }
.pf-avatar-row { display: flex; gap: 18px; align-items: center; margin-bottom: 6px; }
.profile-form textarea { width: 100%; }
