/* ============================================================
 * 个人博客 · 全局样式
 * 配色：暖纸底 + 朱砂点缀（浅色）/ 墨黑底（深色）
 * ============================================================ */

:root {
  --bg: #faf8f3;
  --bg-soft: #f3efe6;
  --elev: #ffffff;
  --text: #26262a;
  --text-soft: #555f6b;
  --text-faint: #8d97a2;
  --line: #e7e1d4;
  --accent: #b4452c;
  --accent-deep: #8f3320;
  --accent-soft: rgba(180, 69, 44, 0.09);
  --gold: #a67c2e;
  --shadow: 0 2px 16px rgba(60, 50, 30, 0.07);
  --shadow-hover: 0 10px 30px rgba(60, 50, 30, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 840px;
  --nav-h: 64px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #15161a;
  --bg-soft: #1b1d22;
  --elev: #1e2026;
  --text: #e7e4dc;
  --text-soft: #a9b0ba;
  --text-faint: #6f7782;
  --line: #2d3038;
  --accent: #e07a5f;
  --accent-deep: #ec9a82;
  --accent-soft: rgba(224, 122, 95, 0.13);
  --gold: #d2a95e;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- 导航栏 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--text); }
.logo-seal {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 99px;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 420px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}
.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  position: relative;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
}
.hero .subtitle {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero .tagline {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-soft);
  font-size: 16.5px;
  position: relative;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; position: relative; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--elev); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------------- 区块通用 ---------------- */
.section { padding: 30px 0 60px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  width: 5px; height: 22px;
  border-radius: 3px;
  background: var(--accent);
}
.more-link { font-size: 14.5px; color: var(--text-faint); white-space: nowrap; }
.more-link:hover { color: var(--accent); }

/* ---------------- 博客卡片 ---------------- */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-card {
  display: block;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.post-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  color: inherit;
}
.post-card:hover::before { opacity: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.post-card:hover h3 { color: var(--accent); }
.post-excerpt {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.tag {
  display: inline-block;
  padding: 2px 11px;
  font-size: 12.5px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1.7;
  white-space: nowrap;
}
.tag.filter-btn {
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--text-soft);
  cursor: pointer;
  padding: 5px 15px;
  font-family: var(--sans);
  transition: all 0.2s;
}
.tag.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.tag.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 30px 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -25.5px; top: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
}
.tl-date { font-size: 13.5px; color: var(--text-faint); font-family: var(--mono); margin-bottom: 3px; }
.tl-title { font-family: var(--serif); font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
.tl-text { color: var(--text-soft); font-size: 15px; }
.tl-text ul { margin: 8px 0 0 18px; }
.tl-text li { margin-bottom: 5px; }
.type-badge {
  display: inline-block;
  font-size: 12px;
  padding: 1px 9px;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: 2px;
  font-weight: 500;
}
.type-实习 { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.type-研究, .type-科研 { background: rgba(22, 101, 52, 0.12); color: #15803d; }
.type-项目 { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.type-竞赛 { background: rgba(180, 107, 26, 0.14); color: #b45309; }
[data-theme="dark"] .type-实习 { color: #7aa2f7; }
[data-theme="dark"] .type-研究, [data-theme="dark"] .type-科研 { color: #6ee7a0; }
[data-theme="dark"] .type-项目 { color: #b79cf5; }
[data-theme="dark"] .type-竞赛 { color: #e6b65c; }

/* ---------------- 博客列表页工具条 ---------------- */
.page-head { padding: 60px 0 36px; text-align: center; }
.page-head h1 { font-family: var(--serif); font-size: 34px; letter-spacing: 2px; margin-bottom: 10px; }
.page-head p { color: var(--text-soft); }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.tag-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 18px;
  min-width: 230px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--sans);
  width: 100%;
}
.search-box input::placeholder { color: var(--text-faint); }
.empty-tip { text-align: center; color: var(--text-faint); padding: 60px 0; display: none; }

/* ---------------- 文章详情 ---------------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 200;
}
.article { padding: 56px 0 70px; }
.article-header { text-align: center; margin-bottom: 42px; }
.article-header h1 {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.5;
  letter-spacing: 1px;
  margin: 16px 0 14px;
}
.article-body { font-size: 16.5px; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 23px;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  margin: 30px 0 12px;
  color: var(--accent-deep);
}
.article-body p { margin-bottom: 18px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--accent-deep); font-weight: 600; }
[data-theme="dark"] .article-body strong { color: var(--accent); }
.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.article-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 22px;
}
.article-body pre code { background: none; border: none; padding: 0; font-size: 14px; line-height: 1.7; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 15.5px;
}
.article-footer {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------------- 关于页 ---------------- */
.prose-block {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 24px;
}
.prose-block h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prose-block h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.prose-block p { color: var(--text-soft); margin-bottom: 10px; }
.skill-row { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; }
.skill-row .skill-group {
  flex-shrink: 0;
  width: 76px;
  color: var(--text-faint);
  font-size: 14px;
  padding-top: 3px;
}
.skill-items { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 兴趣爱好卡片 ---------------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hobby-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.hobby-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.hobby-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--accent-soft);
  border-radius: 12px;
}
.hobby-name {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}
.hobby-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text);
  transition: all 0.25s;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.contact-card .c-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-card .c-label { font-size: 13px; color: var(--text-faint); }
.contact-card .c-value { font-size: 15px; word-break: break-all; }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 40px;
}
.footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer .footer-links a { color: var(--text-soft); }
.footer .footer-links a:hover { color: var(--accent); }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-links a.active::after { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding: 60px 0 44px; }
  .hero h1 { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .page-head h1 { font-size: 27px; }
  .article-header h1 { font-size: 24px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .post-card { padding: 22px 20px; }
  .prose-block { padding: 22px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .skill-row { flex-direction: column; gap: 6px; }
  .hobby-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * 新增模块样式（树苗 / 动态 / 画饼 / 相册 / 留言 / 评论 / 弹窗 / Toast）
 * ============================================================ */

/* ---------- 表单通用 ---------- */
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

/* ---------- 树苗 ---------- */
.tree {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 24px;
}
.tree-sm { display: inline-flex; gap: 14px; padding: 10px 18px; margin: 0; background: var(--accent-soft); border: none; }
.tree-visual { text-align: center; flex-shrink: 0; }
.tree-emoji { font-size: 52px; line-height: 1; animation: sway 3s ease-in-out infinite; }
.tree-sm .tree-emoji { font-size: 30px; }
.tree-pot { color: var(--gold); font-size: 20px; margin-top: 4px; letter-spacing: -2px; }
.tree-sm .tree-pot { font-size: 14px; margin-top: 0; }
.tree-info { flex: 1; }
.tree-label { font-size: 14.5px; color: var(--text-soft); margin-bottom: 8px; }
.tree-bar { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.tree-bar-fill { height: 100%; background: linear-gradient(90deg, #52b788, var(--gold)); border-radius: 99px; transition: width 0.5s ease; }
.water-btn { font-size: 14px; padding: 8px 18px; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes grow { 0% { transform: scale(0.8); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.tree-emoji.just-grew { animation: grow 0.5s ease; }

/* ---------- 首页树苗旁的名字 ---------- */
.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ---------- 动态流 ---------- */
.moment-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.moment-card:hover { box-shadow: var(--shadow); }
.moment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.moment-time { font-size: 13px; color: var(--text-faint); }
.moment-text { color: var(--text); font-size: 15.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.moment-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.moment-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; cursor: pointer; }

/* 动态发布器 */
.composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.composer-row { display: flex; gap: 10px; flex-wrap: wrap; }
.composer-row .select { flex: 0 0 130px; }
.composer-row .input { flex: 1; }
.preview-row { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-item { position: relative; width: 90px; height: 90px; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.preview-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: 14px; line-height: 1; }

/* ---------- 画饼 ---------- */
.wish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.wish-card:hover { box-shadow: var(--shadow); }
.wish-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.wish-check { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.wish-text { font-size: 16px; color: var(--text); word-break: break-word; }
.wish-due { font-size: 13px; color: var(--text-faint); margin-top: 3px; }
.wish-card.wish-done .wish-text { text-decoration: line-through; color: var(--text-faint); }
.wish-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cheer-btn {
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s;
  font-family: var(--sans);
}
.cheer-btn:hover { transform: scale(1.08); }

/* ---------- 相册 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.album-card {
  display: block;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
  color: var(--text);
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--text); }
.album-cover { aspect-ratio: 1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-empty { font-size: 48px; opacity: 0.4; }
.album-meta { padding: 14px 16px; }
.album-name { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.album-count { font-size: 13px; color: var(--text-faint); }
.del-on-card { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.55); color: #fff !important; }
.del-on-card:hover { background: var(--accent); }

/* 照片网格 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s;
}
.photo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.photo-caption { padding: 8px 12px; font-size: 13.5px; color: var(--text-soft); }
.photo-actions { display: flex; gap: 8px; padding: 8px 12px 12px; }
.photo-cmt-btn { font-size: 13px; padding: 5px 12px; }

/* ---------- 评论 / 留言 ---------- */
.comment-section { margin-top: 42px; }
.comment-title { font-family: var(--serif); font-size: 20px; margin-bottom: 16px; }
.comment-form { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.comment-form .input { flex: 1; min-width: 120px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item, .msg-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child, .msg-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
  flex-shrink: 0;
}
.comment-body, .msg-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-name { font-weight: 600; font-size: 14.5px; }
.comment-time { font-size: 12.5px; color: var(--text-faint); }
.comment-text, .msg-text { color: var(--text); font-size: 15px; line-height: 1.7; word-break: break-word; }

.msg-list { display: flex; flex-direction: column; gap: 4px; }

/* ---------- 留言回复 ---------- */
.reply-btn {
  background: none; border: none; color: var(--text-faint);
  font-size: 13px; cursor: pointer; padding: 4px 0 0;
  font-family: var(--sans); transition: color 0.2s;
}
.reply-btn:hover { color: var(--accent); }
.reply-form {
  margin-top: 10px; padding: 14px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.reply-form .textarea { margin-bottom: 8px; }
.reply-list {
  margin-top: 8px; padding-left: 16px;
  border-left: 2px solid var(--line);
}
.msg-reply { padding: 10px 0 !important; }
.msg-reply .comment-avatar { width: 30px; height: 30px; font-size: 13px; }
.msg-reply .comment-name { font-size: 14px; }
.msg-reply .msg-text { font-size: 14.5px; }
.reply-list .msg-item { border-bottom: none; padding: 10px 0; }
.reply-list .msg-item:last-child { padding-bottom: 0; }

/* ---------- 删除链接 ---------- */
.del-link {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--sans);
  transition: all 0.2s;
}
.del-link:hover { color: #fff; background: var(--accent); }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-mask.show { opacity: 1; }
.modal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s;
}
.modal-mask.show .modal { transform: none; }
.modal-title {
  padding: 20px 24px 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-body .input, .modal-body .textarea, .modal-body .select { width: 100%; }
.modal-footer { padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); }
.owner-panel { display: flex; flex-direction: column; gap: 12px; }
.owner-panel .hint { font-size: 13px; color: var(--text-faint); margin: 0; }
.owner-panel code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.owner-panel hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--accent); color: #fff; }

/* ---------- 站长角标 ---------- */
.owner-badge {
  position: fixed;
  bottom: 20px; right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px 6px 8px;
  box-shadow: var(--shadow);
  z-index: 300;
  font-size: 13px;
}
.lock-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.lock-btn:hover { background: var(--accent-soft); }
.mode-tag { color: var(--text-faint); font-size: 12.5px; }
.mode-tag.owner-on { color: var(--accent); font-weight: 600; }

/* ---------- 新增：响应式补充 ---------- */
@media (max-width: 720px) {
  .tree { flex-direction: column; text-align: center; }
  .tree-info { width: 100%; }
  .hero-name-row { flex-direction: column; gap: 8px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .wish-card { flex-direction: column; align-items: stretch; }
  .wish-actions { justify-content: space-between; }
  .comment-form { flex-direction: column; }
  .owner-badge { bottom: 14px; right: 14px; padding: 5px 12px 5px 6px; }
}

/* ============================================================
 * 动态页子分区 tab / 专栏徽章
 * ============================================================ */
.feed-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  overflow-x: auto;
}
.feed-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  font-size: 16px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text-faint);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.feed-tab:hover { color: var(--text-soft); }
.feed-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.feed-panel { display: none; }
.feed-panel.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 专栏徽章 */
.column-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  color: #fff;
  line-height: 1.6;
  white-space: nowrap;
}
.column-badge.col-0 { background: #2f7d5b; }   /* 科研 绿 */
.column-badge.col-1 { background: var(--accent); } /* 市场 朱砂 */
.column-badge.col-2 { background: #7b52b0; }   /* 音乐 紫 */
.column-badge.col-3 { background: #9a6a1f; }   /* 影视文学 赭 */
.column-badge.col-4 { background: #2f5f8f; }   /* 历史地理 青蓝 */
.column-badge.col-5 { background: #c64b8c; }   /* 搞点二次元 樱粉 */
.post-meta-tags { margin-left: 4px; }

/* 仅自己可见 徽章 */
.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  white-space: nowrap;
}

/* 编辑器复选框 */
.editor-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  margin-top: 10px;
  user-select: none;
}
.editor-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ============================================================
 * 更新热力图
 * ============================================================ */
.heatmap {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.heatmap-head { font-size: 14px; color: var(--text-soft); margin-bottom: 14px; }
.heatmap-head strong { color: var(--accent); font-size: 16px; }
.heatmap-scroll { overflow-x: auto; padding-bottom: 4px; }
.hm-axis {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  gap: 3px;
  float: left;
  margin-right: 6px;
  font-size: 10px;
  color: var(--text-faint);
}
.hm-axis span { line-height: 13px; }
.hm-body { overflow: hidden; min-width: 560px; }
.hm-months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13px;
  gap: 3px;
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.hm-month { overflow: visible; white-space: nowrap; }
.hm-grid {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  grid-auto-flow: column;
  grid-auto-columns: 13px;
  gap: 3px;
}
.hm-cell {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: var(--bg-soft);
  display: block;
}
.hm-cell.hm-l0 { background: var(--bg-soft); }
.hm-cell.hm-l1 { background: rgba(82, 183, 136, 0.32); }
.hm-cell.hm-l2 { background: rgba(82, 183, 136, 0.55); }
.hm-cell.hm-l3 { background: rgba(82, 183, 136, 0.78); }
.hm-cell.hm-l4 { background: #2f9e63; }
.hm-cell.hm-future { visibility: hidden; }
.heatmap-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
}
.heatmap-foot .hm-cell { width: 11px; height: 11px; }

/* ============================================================
 * 关于页编辑器
 * ============================================================ */
.editor-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 12px 0 6px;
}
.editor-label:first-child { margin-top: 0; }
.editor-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ab-sub-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.btn-sm { padding: 6px 14px; font-size: 13.5px; }

