/* ============================================================
 * 溪源小站 · 全局样式
 * 配色：奶油底 #FCF9DE + 薄荷绿主色 #90D7BC + 浅薄荷辅助 #BFE4DB
 * ============================================================ */

:root {
  --bg: #fcf9de;
  --bg-soft: #f3eec8;
  --elev: rgba(255, 252, 238, 0.86);
  --elev-solid: #fffdf0;
  --text: #33503f;
  --text-soft: #5c7563;
  --text-faint: #94a894;
  --line: #cfe3cf;
  --accent: #90d7bc;
  --accent-deep: #5fb898;
  --accent-ink: #2e8b6e;
  --accent-soft: rgba(144, 215, 188, 0.20);
  --gold: #e09a7c;
  --shadow: 0 4px 20px rgba(96, 140, 110, 0.12);
  --shadow-hover: 0 12px 32px rgba(96, 140, 110, 0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --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: #12241d;
  --bg-soft: #1a3027;
  --elev: rgba(26, 48, 39, 0.82);
  --elev-solid: #1c352b;
  --text: #e4f0e8;
  --text-soft: #a9c7b5;
  --text-faint: #6e8a78;
  --line: #2c4638;
  --accent: #90d7bc;
  --accent-deep: #b8e8d4;
  --accent-ink: #a8e8d0;
  --accent-soft: rgba(144, 215, 188, 0.16);
  --gold: #e8c49a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- 页面背景（奶油 + 薄荷调） ---------- */
/* 各页面独立主题色，用于页头色条/图标，增强辨识度 */
body.page-home     { --section: #5fb898; --section-ink: #2e8b6e; }
body.page-moments  { --section: #4fb3a6; --section-ink: #2f8075; }
body.page-albums   { --section: #e0915f; --section-ink: #b06a3c; }
body.page-messages { --section: #e08aa8; --section-ink: #bd5f81; }
body.page-about    { --section: #7e93d6; --section-ink: #5a6db0; }
body.page-post     { --section: #7e93d6; --section-ink: #5a6db0; }
body.page-album    { --section: #e0915f; --section-ink: #b06a3c; }

body.page-home {
  background: linear-gradient(rgba(252, 249, 222, 0.6), rgba(252, 249, 222, 0.72)),
              url("../assets/bg-home.jpg") center/cover fixed no-repeat;
}
body.page-moments {
  background: linear-gradient(rgba(252, 249, 222, 0.6), rgba(252, 249, 222, 0.72)),
              url("../assets/bg-moments.jpg") center/cover fixed no-repeat;
}
body.page-about {
  background: linear-gradient(rgba(252, 249, 222, 0.6), rgba(252, 249, 222, 0.72)),
              url("../assets/bg-about.jpg") center/cover fixed no-repeat;
}
body.page-albums, body.page-messages, body.page-post {
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg) 60%);
  background-attachment: fixed;
}

[data-theme="dark"] body.page-home     { --section: #90d7bc; --section-ink: #b8e8d4; }
[data-theme="dark"] body.page-moments  { --section: #7fd8ca; --section-ink: #b4ece2; }
[data-theme="dark"] body.page-albums   { --section: #eab084; --section-ink: #f2cba8; }
[data-theme="dark"] body.page-messages { --section: #ecacc2; --section-ink: #f4cad8; }
[data-theme="dark"] body.page-about    { --section: #a3b3e6; --section-ink: #c3cdf0; }
[data-theme="dark"] body.page-post     { --section: #a3b3e6; --section-ink: #c3cdf0; }
[data-theme="dark"] body.page-album    { --section: #eab084; --section-ink: #f2cba8; }

[data-theme="dark"] body.page-home {
  background: linear-gradient(rgba(18, 36, 29, 0.72), rgba(18, 36, 29, 0.84)),
              url("../assets/bg-home.jpg") center/cover fixed no-repeat;
}
[data-theme="dark"] body.page-moments {
  background: linear-gradient(rgba(18, 36, 29, 0.72), rgba(18, 36, 29, 0.84)),
              url("../assets/bg-moments.jpg") center/cover fixed no-repeat;
}
[data-theme="dark"] body.page-about {
  background: linear-gradient(rgba(18, 36, 29, 0.72), rgba(18, 36, 29, 0.84)),
              url("../assets/bg-about.jpg") center/cover fixed no-repeat;
}

/* 深色模式：浅薄荷实心底用深色字，保证可读 */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .tag.filter-btn.active,
[data-theme="dark"] .toast-error { background: var(--accent); color: #12241d; }
[data-theme="dark"] .logo-seal { background: var(--accent); color: #12241d; }
[data-theme="dark"] .preview-del { background: var(--accent); color: #12241d; }
[data-theme="dark"] .column-badge.col-1 { background: var(--accent) !important; color: #12241d; }

* { 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-ink); 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-deep);
  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(--section, var(--accent-ink)); font-weight: 600; background: var(--accent-soft); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--section, 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;
}
/* 自设线稿装饰：手帐拼贴感，白底图用 multiply 融入奶油底 */
.hero .wrap { position: relative; z-index: 1; }
.hero-sketch {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-sketch.sketch-left {
  left: max(0px, calc(50% - 600px));
  top: 26px;
  width: 180px;
  transform: rotate(-7deg);
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.hero-sketch.sketch-right {
  right: max(0px, calc(50% - 620px));
  bottom: 6px;
  width: 225px;
  transform: rotate(6deg);
  opacity: 0.8;
  mix-blend-mode: multiply;
  border-radius: 12px;
}
[data-theme="dark"] .hero-sketch.sketch-left {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.28;
}
[data-theme="dark"] .hero-sketch.sketch-right {
  mix-blend-mode: normal;
  opacity: 0.22;
}
@media (max-width: 900px) {
  .hero-sketch.sketch-left { width: 110px; top: 14px; }
  .hero-sketch.sketch-right { width: 130px; }
}
@media (max-width: 640px) {
  .hero-sketch { display: none; }
}
.avatar {
  width: 104px; height: 104px;
  margin: 0 auto 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 24px rgba(144, 215, 188, 0.4);
  border: 3px solid var(--elev-solid);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
}
.hero .subtitle {
  color: var(--text-soft);
  font-size: 16px;
  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;
}

/* ---------- 首页导航卡片 ---------- */
.nav-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 36px;
}
.guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  border-radius: var(--radius-sm);
  background: var(--elev);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.guide-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-icon { font-size: 24px; }
.guide-label { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--text); }
.guide-desc { font-size: 12px; color: var(--text-faint); text-align: center; }
.guide-item:nth-child(1) { border-top: 3px solid #3a9d7a; }
.guide-item:nth-child(2) { border-top: 3px solid #d4872f; }
.guide-item:nth-child(3) { border-top: 3px solid #c45e7c; }
.guide-item:nth-child(4) { border-top: 3px solid #7b8bd0; }
.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-ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; filter: brightness(1.1); 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(--section, 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;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.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-ink);
  font-weight: 500;
  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-ink); }
.tag.filter-btn.active { background: var(--accent-ink); border-color: var(--accent-ink); 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(176, 111, 208, 0.14); color: #9a55bd; }
.type-感想 { background: rgba(46, 139, 110, 0.14); color: #2f8a66; }
.type-日常 { background: rgba(79, 147, 201, 0.14); color: #3f7cae; }
[data-theme="dark"] .type-拼贴 { color: #d0a3ec; }
[data-theme="dark"] .type-感想 { color: #8fe0c0; }
[data-theme="dark"] .type-日常 { color: #9cccec; }

/* ---------------- 博客列表页工具条 ---------------- */
.page-head { padding: 60px 0 36px; text-align: center; position: relative; }
.page-head::before {
  content: "";
  display: block;
  width: 44px; height: 4px;
  border-radius: 2px;
  background: var(--section, var(--accent));
  margin: 0 auto 20px;
}
.page-head h1 { font-family: var(--serif); font-size: 34px; letter-spacing: 2px; margin-bottom: 10px; }
.page-head h1 .page-icon { margin-right: 10px; font-size: 28px; }
.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; }
.page-post .article { padding-top: 10px; }
.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-soft);
  font-weight: 500;
  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;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.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; }
  .nav-guide { grid-template-columns: repeat(2, 1fr); }
  .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;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.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; }
.moment-clickable { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.moment-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.moment-foot { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--text-faint); }
.moment-foot span { cursor: default; }

/* ---------- 点赞 ---------- */
.like-row { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text-soft);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.like-btn:hover { color: var(--accent); border-color: var(--accent); transform: scale(1.04); }
.like-btn.liked { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-deep); }
.like-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- 评论回复嵌套 ---------- */
.reply-list { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); }
.reply-list .comment-item { padding: 8px 0; }
.reply-list .comment-avatar { width: 28px; height: 28px; font-size: 13px; }
.reply-list .comment-text { font-size: 14px; }
.reply-item { margin-bottom: 4px; }

/* 动态发布器 */
.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;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.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-deep); color: #fff; border: none; cursor: pointer; font-size: 14px; line-height: 1; }

/* ---------- 随笔配图 ---------- */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.post-gallery-img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- 画饼 ---------- */
.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;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.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-ink);
  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);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.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; align-items: center; }
.photo-cmt-btn { font-size: 13px; padding: 5px 12px; }
.photo-like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}
.photo-like-btn:hover { border-color: #e08aa8; color: #d65f7f; transform: scale(1.04); }
.photo-like-btn.liked { background: rgba(224, 138, 168, 0.14); border-color: #e08aa8; color: #d65f7f; }
.photo-like-btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- 评论 / 留言 ---------- */
.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-ink); 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-ink); 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-ink); border-bottom-color: var(--accent); }
.feed-tab[data-tab="moments"].active { color: #2f8075; border-bottom-color: #4fb3a6; }
.feed-tab[data-tab="posts"].active { color: #5a6db0; border-bottom-color: #7e93d6; }
.feed-tab[data-tab="wishes"].active { color: #b06a3c; border-bottom-color: #e0915f; }
[data-theme="dark"] .feed-tab[data-tab="moments"].active { color: #b4ece2; border-bottom-color: #7fd8ca; }
[data-theme="dark"] .feed-tab[data-tab="posts"].active { color: #c3cdf0; border-bottom-color: #a3b3e6; }
[data-theme="dark"] .feed-tab[data-tab="wishes"].active { color: #f2cba8; border-bottom-color: #eab084; }
.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: #b06fd0; }   /* 二次元 紫 */
.column-badge.col-1 { background: #c08a3e; }   /* 书目 金棕 */
.column-badge.col-2 { background: #4f93c9; }   /* 电影 蓝 */
.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-ink);
  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-ink); 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(144, 215, 188, 0.32); }
.hm-cell.hm-l2 { background: rgba(120, 200, 168, 0.52); }
.hm-cell.hm-l3 { background: rgba(95, 184, 152, 0.74); }
.hm-cell.hm-l4 { background: #2e8b6e; }
.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; }

