/* ============================================================
   娜娜莉柯林斯的小窝 — 站点样式
   设计语言：樱花粉 + 薰衣草紫 的二次元轻快风，圆角毛玻璃 + 飘落花瓣
   ============================================================ */
:root {
  --paper: #fff7fb;
  --paper-2: #ffeff7;
  --card: #ffffff;
  --ink: #3b2b3f;
  --ink-2: #5b4a5f;
  --muted: #8b7a90;
  --faint: #b3a4b8;
  --line: #f6dbe8;
  --line-strong: #efc2d8;
  --accent: #f5679e;
  --accent-ink: #cf3d76;
  --accent-soft: #ffe3ef;
  --accent-2: #9b8cff;
  --sky: #7dd3fc;
  --ok: #2f9e68;
  --warn: #dd8a2c;
  --bad: #ef5a6f;
  --shadow-sm: 0 1px 2px rgba(214, 122, 166, .12);
  --shadow-md: 0 16px 34px -20px rgba(214, 92, 148, .45);
  --radius: 18px;
  --radius-lg: 28px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Yuanti SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html[data-theme="dark"] {
  --paper: #1b1420;
  --paper-2: #241a2b;
  --card: #261c2e;
  --ink: #f7eefb;
  --ink-2: #e2d3ea;
  --muted: #b9a7c1;
  --faint: #8d7c96;
  --line: #3a2b44;
  --line-strong: #4d3a5b;
  --accent: #ff86b3;
  --accent-ink: #ffb0cd;
  --accent-soft: #3d2033;
  --accent-2: #b4a6ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 20px 44px -26px rgba(0, 0, 0, .85);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(880px 420px at 84% -12%, rgba(184, 68, 58, .07), transparent 68%),
    radial-gradient(720px 380px at -10% 8%, rgba(184, 68, 58, .05), transparent 62%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; line-height: 1.28; }
p { margin: 0; }
.ico { flex: 0 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 头部 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 26px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.brand-text { font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 12px; border-radius: 9px; font-size: 14.5px; color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.on { color: var(--ink); font-weight: 600; }
.nav-link.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  transition: all .18s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--paper-2); border-color: var(--line); }

.notice-bar {
  margin: 14px 0 0; padding: 10px 16px; border-radius: 10px; font-size: 13.5px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.main { padding-top: 40px; padding-bottom: 72px; }

/* ---------- 通用元件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 11px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 14.5px;
  cursor: pointer; transition: transform .15s ease, opacity .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line);
}
.chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent-ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(21px, 2.6vw, 26px); }
.section-head .sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--accent-ink); white-space: nowrap; }
.more-link:hover { gap: 10px; }

/* ---------- 首页 hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 46px; align-items: center; padding: 12px 0 52px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 16px 0 14px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 15.5px; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

.portrait { position: relative; }
.portrait-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2); box-shadow: var(--shadow-md); aspect-ratio: 4 / 4.6;
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card .veil { position: absolute; inset: auto 0 0 0; padding: 26px 22px 20px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 8, .82)); }
.portrait-card .veil strong { font-family: var(--serif); font-size: 20px; display: block; }
.portrait-card .veil span { font-size: 12.5px; opacity: .82; }
.portrait-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-pill { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- 文章卡片 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.post-card .date { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.post-card h3 { font-size: 19px; line-height: 1.35; }
.post-card p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-card .cover { margin: -22px -22px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }

/* 时间轴列表（日常） */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl-item:last-child { border-bottom: 0; }
.tl-date { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tl-body h3 { font-size: 17px; margin-bottom: 4px; }
.tl-body p { font-size: 13.5px; color: var(--muted); }
.tl-item:hover h3 { color: var(--accent-ink); }
.tl-more { color: var(--faint); }

/* ---------- 作品 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.work-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.work-card .w-top { display: flex; align-items: center; gap: 10px; }
.work-card .w-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.work-card h3 { font-size: 16.5px; }
.work-card p { font-size: 13px; color: var(--muted); }
.work-card .w-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--faint); }

/* ---------- 留言 ---------- */
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px;
  padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.avatar-dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; color: #fff; background: var(--accent); }
.msg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.msg-head b { font-size: 14.5px; }
.msg-head time { font-size: 12px; color: var(--faint); }
.msg-body { font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.msg-reply { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; color: var(--accent-ink); }
.msg-reply b { margin-right: 6px; }

.form-card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.input, .textarea, select.input {
  width: 100%; padding: 10px 13px; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 10px; outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.65; }
.flash { padding: 11px 15px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.flash.ok { background: #eaf4ec; color: #23623a; border: 1px solid #cbe3d1; }
.flash.bad { background: #fbecea; color: #8f322a; border: 1px solid #f0cdc7; }

/* ---------- 文章页 ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-head { margin-bottom: 30px; }
.article-head h1 { font-size: clamp(27px, 3.6vw, 38px); margin: 12px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.prose { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 23px; margin-top: 40px; color: var(--ink); }
.prose h3 { font-size: 19px; margin-top: 30px; color: var(--ink); }
.prose a { color: var(--accent-ink); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose blockquote { margin: 22px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose pre { padding: 18px; border-radius: 12px; overflow-x: auto; background: #1e1b18; color: #f2ede6; font-family: var(--mono); font-size: 13px; line-height: 1.65; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: transparent; padding: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.resource-box { margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.resource-box h3 { font-size: 16px; margin-bottom: 12px; }
.resource-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.resource-facts div span { display: block; font-size: 12px; color: var(--faint); }
.resource-facts div b { font-size: 14.5px; font-weight: 600; }

/* ---------- 分区页 / 归档 ---------- */
.sec-hero { padding: 26px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.sec-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 10px; }
.sec-hero p { color: var(--muted); max-width: 62ch; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--line); color: var(--muted); }
.pager .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager a:hover { border-color: var(--line-strong); color: var(--ink); }

.empty { padding: 60px 20px; text-align: center; color: var(--faint); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); padding: 36px 0 30px; }
.foot-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; align-items: start; }
.foot-brand strong { font-family: var(--serif); font-size: 16px; }
.foot-brand p { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 34ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--faint); text-align: right; }
.foot-admin { color: var(--faint); }
.foot-admin:hover { color: var(--accent-ink); }

/* ---------- 音乐小挂件 ---------- */
.music-chip {
  position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: 30;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
}
.music-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; }
.music-chip.playing .music-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.music-bars i { width: 2px; height: 4px; background: var(--accent); border-radius: 2px; opacity: .5; }
.music-chip.playing .music-bars i { animation: bar 1s ease-in-out infinite; opacity: 1; }
.music-bars i:nth-child(2) { animation-delay: .2s; }
.music-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.music-label { font-size: 11.5px; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 40px; }
  .portrait { max-width: 420px; }
  .post-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-meta { text-align: left; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .head-inner { min-height: 58px; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: 15.5px; }
  .brand-text { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .site-nav {
    order: 3; width: 100%; margin: 0; gap: 2px; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 6px 10px; font-size: 13.5px; }
  .head-tools { margin-left: auto; }
  .main { padding-top: 26px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-stats { gap: 22px; }
  .post-grid, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding: 16px 2px; }
  .tl-date { order: -1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { gap: 12px; }
  .msg { padding: 15px; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .avatar-dot { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
  .music-chip { right: 12px; bottom: calc(12px + var(--safe-b)); padding: 6px 10px 6px 6px; }
  .music-label { display: none; }
  .form-card, .resource-box { padding: 18px; }
  .article { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 关于页双栏 */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* ============================================================
   二次元主题层：樱花粉 + 薰衣草紫，圆角毛玻璃，飘落花瓣
   ============================================================ */
body {
  background:
    radial-gradient(1200px 620px at 8% -10%, #ffe6f1 0%, rgba(255, 230, 241, 0) 62%),
    radial-gradient(900px 520px at 96% 4%, #eee9ff 0%, rgba(238, 233, 255, 0) 60%),
    radial-gradient(760px 460px at 50% 108%, #e8f7ff 0%, rgba(232, 247, 255, 0) 58%),
    var(--paper);
  background-attachment: fixed;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1100px 600px at 6% -8%, #3a1f36 0%, rgba(58, 31, 54, 0) 60%),
    radial-gradient(880px 500px at 96% 6%, #241f45 0%, rgba(36, 31, 69, 0) 58%),
    var(--paper);
  background-attachment: fixed;
}
::selection { background: #ffd0e4; color: #6b1f3f; }
html[data-theme="dark"] ::selection { background: #6b2b4a; color: #ffe4ef; }
* { scrollbar-width: thin; scrollbar-color: #f3c6dc transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #f3c6dc; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #4d3a5b; background-clip: content-box; }

/* ---- 顶部栏：毛玻璃胶囊 ---- */
.site-head {
  background: rgba(255, 255, 255, .76);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(246, 219, 232, .9);
}
html[data-theme="dark"] .site-head { background: rgba(27, 20, 32, .8); border-bottom-color: #3a2b44; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 11px;
  background: linear-gradient(135deg, #ff9dc2, #a892ff);
  color: #fff !important;
  box-shadow: 0 6px 14px -6px rgba(245, 103, 158, .8);
}
.brand-text { font-weight: 700; letter-spacing: .01em; }
.site-nav {
  background: #fff3f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
html[data-theme="dark"] .site-nav { background: #2b1f34; }
.nav-link {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-link:hover { background: #ffe4f0; color: var(--accent-ink); transform: translateY(-1px); }
html[data-theme="dark"] .nav-link:hover { background: #3d2033; }
.nav-link.on {
  background: linear-gradient(135deg, #ff8ab4, #a48dff);
  color: #fff;
  box-shadow: 0 8px 16px -10px rgba(245, 103, 158, .9);
}
.icon-btn {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--accent-ink); transform: translateY(-1px); }
html[data-theme="dark"] .icon-btn { background: #2b1f34; }

/* ---- 按钮 ---- */
.btn {
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ff8ab4, #a48dff);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(245, 103, 158, .95);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(245, 103, 158, .95); filter: saturate(108%); }
.btn:active { transform: translateY(0); }
.btn-ghost, .btn.btn-ghost {
  background: #fff; color: var(--accent-ink); border-color: var(--line-strong);
  box-shadow: none;
}
html[data-theme="dark"] .btn-ghost { background: #2b1f34; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-accent { background: linear-gradient(135deg, #ff7ba9, #f5679e); }

/* ---- 首页 hero ---- */
.hero { position: relative; }
.hero h1 { font-family: var(--sans); font-weight: 800; letter-spacing: -.015em; }
.hero h1 em {
  background: linear-gradient(180deg, transparent 62%, #ffd6e6 62%);
  color: inherit; padding: 0 2px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px dashed var(--line-strong);
  color: var(--accent-ink);
  border-radius: 999px; padding: 5px 13px;
  font-size: 12px; letter-spacing: .04em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #ff8ab4, #a48dff); }
.hero-stats b { color: var(--accent-ink); font-family: var(--sans); font-weight: 800; }
.portrait-card {
  border-radius: var(--radius-lg);
  border: 2px solid #fff;
  box-shadow: 0 26px 50px -30px rgba(214, 92, 148, .7), 0 0 0 1px var(--line);
  overflow: hidden;
  position: relative;
}
.portrait-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 138, 180, .12));
  pointer-events: none;
}
.tag-pill {
  background: rgba(255, 255, 255, .9);
  color: var(--accent-ink);
  border: 1px solid #ffd7e7;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---- 卡片 ---- */
.card, .post-card, .work-card, .msg, .side-card, .article, .form-card {
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 24px -22px rgba(214, 92, 148, .6);
}
.post-card, .work-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover, .work-card:hover {
  transform: translateY(-4px) rotate(-.35deg);
  border-color: #ffc4dc;
  box-shadow: 0 22px 40px -26px rgba(214, 92, 148, .85);
}
.post-card .cover img { transition: transform .4s ease; }
.post-card:hover .cover img { transform: scale(1.04); }
.work-card .w-ico {
  background: linear-gradient(135deg, #ffe0ee, #e7e1ff);
  color: var(--accent-ink);
  border-radius: 12px;
}
.tl-item { transition: transform .18s ease; }
.tl-item:hover { transform: translateX(4px); }
.tl-item::before { background: linear-gradient(135deg, #ff8ab4, #a48dff) !important; box-shadow: 0 0 0 4px #ffe9f3; }
html[data-theme="dark"] .tl-item::before { box-shadow: 0 0 0 4px #3a2030; }

/* ---- 分区标题 / 标签 ---- */
.section-head h2 { font-family: var(--sans); font-weight: 800; }
.section-head h2::before {
  content: ""; display: inline-block; width: 8px; height: 18px; margin-right: 10px;
  border-radius: 6px; vertical-align: -3px;
  background: linear-gradient(180deg, #ff9dc2, #a892ff);
}
.chip {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid #ffd7e7;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
}
.more-link { color: var(--accent-ink); font-weight: 600; }
.more-link:hover { text-decoration: none; background: var(--accent-soft); border-radius: 999px; }

/* ---- 公告条 ---- */
.notice-bar {
  border: none;
  border-radius: 16px;
  background: linear-gradient(100deg, #ffe4ef, #ece7ff 55%, #e6f7ff);
  color: #7a3557;
  font-size: 13.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
html[data-theme="dark"] .notice-bar { background: linear-gradient(100deg, #3a2030, #2b2450 60%, #16333f); color: #ffd9e8; }

/* ---- 表单 ---- */
input, textarea, select, button { font-family: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], textarea, select {
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  font-size: 16px;
}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]), html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #2b1f34; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: #ffabcb;
  box-shadow: 0 0 0 4px rgba(255, 138, 180, .18);
}

/* ---- 正文 ---- */
.article h1, .prose h2, .prose h3 { font-family: var(--sans); font-weight: 800; }
.prose blockquote {
  border-left: 3px solid #ffabcf;
  background: var(--accent-soft);
  border-radius: 0 14px 14px 0;
  padding: 12px 18px;
  color: var(--ink-2);
}
.prose code { background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 1px 6px; }
html[data-theme="dark"] .prose code { background: #3d2033; color: #ffb0cd; }
.prose pre { border-radius: 14px; }
.resource-box {
  border-radius: 18px;
  border: 1.5px dashed #ffabd0;
  background: linear-gradient(140deg, #fff7fb, #f4f0ff);
}
html[data-theme="dark"] .resource-box { background: linear-gradient(140deg, #2b1f34, #241f45); border-color: #5a3a52; }

/* ---- 页脚 ---- */
.site-foot {
  margin-top: 56px;
  background: linear-gradient(180deg, rgba(255, 240, 247, 0), #ffeaf4);
  border-top: 1px solid var(--line);
}
html[data-theme="dark"] .site-foot { background: linear-gradient(180deg, rgba(38, 28, 46, 0), #241a2b); }
.site-foot a { color: var(--accent-ink); }

/* ---- 花瓣 ---- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -6vh;
  width: 12px; height: 12px;
  background: radial-gradient(circle at 32% 32%, #ffd3e5, #ff9ec5);
  border-radius: 12px 2px 12px 2px;
  opacity: .75;
  animation: petal-fall linear infinite;
  will-change: transform;
}
.petal.alt { background: radial-gradient(circle at 32% 32%, #e0d8ff, #b3a2ff); width: 10px; height: 10px; }
@keyframes petal-fall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  50%  { transform: translate3d(38px, 46vh, 0) rotate(180deg); }
  100% { transform: translate3d(-16px, 106vh, 0) rotate(360deg); }
}
@media (max-width: 720px) { .petal { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

/* ---- 手机端 ---- */
@media (max-width: 720px) {
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero { padding-bottom: 34px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 38px); }
  .brand-mark { width: 27px; height: 27px; }
}

/* 下载按钮行 */
.dl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-meta { font-size: 12.5px; color: var(--muted); }
