/* ============================================================
   CF Blog 样式（博客前台 + 后台）
   ============================================================ */

:root {
  --bg: #faf7f2;
  --bg-2: #f3ede3;
  --card: #fffdfa;
  --card-solid: #fffdfa;
  --ink: #1e1b16;
  --ink-2: #514a40;
  --ink-3: #8a8074;
  --line: #e7dfd3;
  --accent: #1f6357;
  --accent-soft: rgba(31, 99, 87, 0.1);
  --accent-line: rgba(31, 99, 87, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(30, 27, 22, 0.05);
  --shadow: 0 1px 2px rgba(30, 27, 22, 0.05), 0 18px 36px -22px rgba(30, 27, 22, 0.4);
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* hidden 属性必须优先于组件自身的 display 规则 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.has-player { padding-bottom: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(31, 99, 87, 0.07), transparent 70%),
    radial-gradient(700px 420px at 8% 4%, rgba(190, 140, 70, 0.07), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.wrap {
  width: min(1080px, 100% - 44px);
  margin: 0 auto;
}

/* ---------------- 通用控件 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 253, 250, 0.7);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px var(--accent);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-block { width: 100%; justify-content: center; height: 44px; font-size: 15px; }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  flex: none;
}

.empty {
  padding: 64px 0;
  text-align: center;
  color: var(--ink-3);
}
.empty p { margin: 0 0 4px; font-size: 17px; color: var(--ink-2); }
.empty span { font-size: 14px; }
.empty.small { padding: 34px 0; }

.loading { color: var(--ink-3); font-size: 14px; padding: 28px 0; }

.dot { margin: 0 7px; color: var(--line); }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 247, 242, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 9px;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.18s;
}
.nav-link:hover { color: var(--accent); }

/* ---------------- 首页 ---------------- */

main { display: block; }

.hero {
  padding: 74px 0 44px;
  max-width: 760px;
}
.hero-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.5px;
}
.hero-desc {
  margin: 0;
  font-size: 16px;
  color: var(--ink-3);
  max-width: 560px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
  padding-bottom: 70px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s, border-color 0.22s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
}

.card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover .card-cover img { transform: scale(1.045); }

.card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-meta {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sum {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.66;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ---------------- 文章页 ---------------- */

.article-wrap {
  width: min(720px, 100% - 44px);
  margin: 0 auto;
  padding: 40px 0 80px;
}
.back-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color 0.18s;
}
.back-link:hover { color: var(--accent); }

.article { max-width: none; margin: 0; }
.article-head { padding: 26px 0 0; }
.article-meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.article-title {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(27px, 4.4vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.3px;
}
.article-cover {
  margin: 26px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-cover img { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.article-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------------- Markdown 排版 ---------------- */

.article-body {
  font-size: 16.5px;
  line-height: 1.92;
  color: var(--ink);
  word-break: break-word;
  padding-top: 18px;
}
.article-body p { margin: 0 0 1.1em; }
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  margin: 1.9em 0 0.7em;
  letter-spacing: 0.2px;
  position: relative;
}
.article-body h1 { font-size: 27px; }
.article-body h2 { font-size: 23px; }
.article-body h3 { font-size: 19.5px; }
.article-body h4 { font-size: 17.5px; }
.article-body h5,
.article-body h6 { font-size: 16px; color: var(--ink-2); margin: 1.6em 0 0.6em; }
.article-body h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 12px;
  opacity: 0.75;
}
.article-body strong { font-weight: 600; }
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  transition: opacity 0.18s;
}
.article-body a:hover { opacity: 0.7; }
.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1.5px 6px;
  border-radius: 5px;
}
.md-pre {
  position: relative;
  margin: 1.35em 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #211f1b;
  color: #eee7db;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  border: 1px solid #2e2a24;
}
.md-pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.article-body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent-line);
  color: var(--ink-2);
  font-size: 15.5px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul,
.article-body ol { margin: 0.8em 0 1.2em; padding-left: 1.5em; }
.article-body ul { list-style: none; padding-left: 1.15em; }
.article-body ul > li { position: relative; padding-left: 1.05em; margin: 0.4em 0; }
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-line);
}
.article-body ol > li { margin: 0.4em 0; padding-left: 0.2em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.article-body img { border-radius: 10px; margin: 0.6em 0; border: 1px solid var(--line); }
.md-table-wrap { overflow-x: auto; margin: 1.3em 0; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.article-body th,
.article-body td { border: 1px solid var(--line); padding: 9px 12px; }
.article-body th { background: var(--bg-2); font-weight: 600; }

.preview-empty { color: var(--ink-3); font-size: 14px; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-3); }
.footer-inner a:hover { color: var(--accent); }

/* ---------------- 音乐控件 ---------------- */

.player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1020px, 100% - 28px);
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px -24px rgba(30, 27, 22, 0.55);
  z-index: 40;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.player:hover { box-shadow: 0 22px 50px -24px rgba(30, 27, 22, 0.6); }

.player-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.player-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.player-btn:hover { background: var(--bg-2); color: var(--ink); }
.player-btn:active { transform: scale(0.94); }
.player-btn.primary {
  background: var(--accent);
  color: #fff;
  width: 38px;
  height: 38px;
  box-shadow: 0 6px 14px -8px var(--accent);
}
.player-btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.player-btn.on { color: var(--accent); background: var(--accent-soft); }

.player-meta { min-width: 0; flex: 0 1 210px; }
.player-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 120px; }
.player-time {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-vol { display: flex; align-items: center; gap: 8px; color: var(--ink-3); flex: none; }
.player-vol input { width: 74px; }

input[type="range"].seek,
#volume {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.seek { flex: 1; min-width: 0; }
input[type="range"].seek::-webkit-slider-runnable-track,
#volume::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
input[type="range"].seek::-webkit-slider-thumb,
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--accent-line);
}
input[type="range"].seek::-moz-range-track,
#volume::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
input[type="range"].seek::-moz-range-thumb,
#volume::-moz-range-thumb {
  width: 12px; height: 12px; border: 2px solid var(--card);
  border-radius: 50%; background: var(--accent);
}

.player-list {
  border-top: 1px solid var(--line);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background: rgba(250, 247, 242, 0.6);
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.playlist-item:hover { background: var(--bg-2); }
.playlist-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pl-no { width: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.pl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-artist { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player-error {
  background: #fdf1ec;
  border-top: 1px solid #f2ddd4;
  color: #a04a2a;
  font-size: 12px;
  padding: 7px 14px;
}

/* ---------------- 提示条 ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 999px;
  background: #211f1b;
  color: #f7f2e9;
  font-size: 13.5px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8e3524; }

/* ============================================================
   后台管理
   ============================================================ */

.admin-body { background: var(--bg); }

/* 登录 */

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px 28px;
  box-shadow: var(--shadow);
  animation: rise 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.login-brand .brand-logo { width: 28px; height: 28px; }
.login-brand .brand-mark { width: 28px; height: 28px; font-size: 15px; }

.login-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}
.login-sub { margin: 0 0 24px; font-size: 13px; color: var(--ink-3); }

.login-card .field { margin-bottom: 16px; }
.login-tip {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #a0402a;
  background: #fdf1ec;
  border: 1px solid #f2ddd4;
  border-radius: 8px;
  padding: 8px 12px;
}
.login-card .back-link { display: inline-block; margin-top: 18px; }

/* 表单基础 */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.field > span em { color: #b3541e; font-style: normal; }
.field input,
.field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder { color: #b6ac9e; }
.field textarea {
  height: auto;
  min-height: 118px;
  padding: 10px 12px;
  line-height: 1.65;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s;
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }

/* 后台框架 */

.console {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 16px;
  background: #17211d;
  color: #e8e2d6;
}
.sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.sidebar-brand .brand-mark { background: #2a7a68; }
.sidebar-name {
  font-family: var(--serif);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: block;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #b9c4bc;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  width: 100%;
}
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-link.active { background: #2a7a68; color: #fff; font-weight: 500; }
.side-link.ghost { color: #8b9a90; font-size: 12.5px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }

.content { padding: 26px 30px 60px; min-width: 0; }

.panel { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.panel-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.head-actions { display: flex; gap: 8px; flex: none; }

/* 文章列表 */

.post-table { display: flex; flex-direction: column; gap: 8px; }

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.post-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.post-row-main { min-width: 0; cursor: pointer; flex: 1; }
.post-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-row-sub { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.post-row-actions { display: flex; gap: 6px; flex: none; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  flex: none;
}
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.draft { background: #f6ecdc; color: #9a6a24; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
}
.mini-btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.mini-btn.danger { color: #a04a2a; }
.mini-btn.danger:hover { background: #fdf1ec; border-color: #f2ddd4; color: #8e3524; }

/* 编辑器 */

.editor-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.span-2 { grid-column: span 2; }

.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 56vh;
}
.editor-pane {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}
.pane-head {
  padding: 9px 14px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.editor-input {
  flex: 1;
  width: 100%;
  min-height: 380px;
  border: 0;
  outline: none;
  resize: vertical;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  background: transparent;
  color: var(--ink);
}
.preview-pane .pane-body { flex: 1; overflow: auto; padding: 4px 22px 18px; }

/* 站点设置 */

.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="color"] {
  width: 42px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.color-row input[type="text"] { flex: 1; }

.site-preview { margin-top: 30px; }
.preview-label {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.preview-card {
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.preview-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.preview-brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.preview-card p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* 音乐 */

.music-switches { align-items: center; grid-template-columns: auto auto 1fr; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] {
  flex: 1;
  height: 18px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.range-row input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent-line);
}
.range-row input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
.range-row input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border: 2px solid #fff;
  border-radius: 50%; background: var(--accent);
}
.range-row span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 42px; }

.track-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 26px; }
.track-list { display: flex; flex-direction: column; gap: 8px; }

.track-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 2fr 1.1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.track-row input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}
.track-row input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.track-actions { display: flex; gap: 4px; }

.hint { font-size: 12.5px; color: var(--ink-3); margin: 0 0 8px; }
.hint code { background: var(--accent-soft); color: var(--accent); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.batch-import { margin-top: 26px; }
.batch-import textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  background: #fff;
}
.batch-import textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .console { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-link { width: auto; padding: 7px 11px; font-size: 12.5px; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; border: 0; padding: 0; }
  .content { padding: 20px 16px 50px; }
  .editor-split { grid-template-columns: 1fr; }
  .editor-meta, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .music-switches { grid-template-columns: 1fr; }
  .track-row { grid-template-columns: 1fr 1fr; }
  .track-row .t-url, .track-row .t-cover { grid-column: span 2; }
  .track-actions { grid-column: span 2; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .brand-name { font-size: 16px; }
  .hero { padding: 46px 0 30px; }
  .post-grid { gap: 18px; padding-bottom: 90px; }
  .card-body { padding: 18px 18px 20px; }
  .card-title { font-size: 19px; }
  .player { bottom: 10px; width: calc(100% - 16px); border-radius: 14px; }
  .player-inner { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .player-track { order: 5; flex-basis: 100%; }
  .player-vol { display: none; }
  .player-meta { flex: 1 1 auto; }
  .player-list { max-height: 200px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-note { text-align: left; flex: none; width: 100%; }
  .footer-copy { margin-left: 0; }
  .post-row { flex-direction: column; align-items: flex-start; }
  .post-row-actions { width: 100%; justify-content: flex-end; }
  .article-body { font-size: 16px; }
  .login-card { padding: 28px 22px 24px; }
}

/* ============================================================
   列表工具栏（标签筛选 + 搜索）
   ============================================================ */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 260px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: 0.18s ease;
}

.tag-chip:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tag-chip i {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-3);
  transition: 0.18s ease;
}

.search-box:focus-within {
  border-color: var(--accent-line);
  background: #fff;
  color: var(--accent);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  width: 170px;
}

.search-box input::placeholder { color: var(--ink-3); }

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 96px;
}

/* ============================================================
   后台：绑定状态 / 媒体库
   ============================================================ */
.bind-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  color: var(--ink-2);
}

.bind-title {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.bind-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid transparent;
}

.bind-chip.ok {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

.bind-chip.miss {
  background: #fdf1e7;
  color: #a35a22;
  border-color: #efd6bf;
}

.bind-hint { color: var(--ink-3); font-size: 12.5px; }

.r2-tip {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px dashed #efd6bf;
  border-radius: 12px;
  background: #fdf7f1;
  color: #7a5a3a;
  font-size: 13.5px;
  line-height: 1.7;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: 0.18s ease;
  text-align: center;
}

.upload-zone:hover,
.upload-zone.drag {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.uz-icon { font-size: 24px; color: var(--accent); line-height: 1; }
.uz-text { font-size: 14px; color: var(--ink); }
.uz-sub { font-size: 12.5px; color: var(--ink-3); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.media-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.mc-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f6f2ea;
  overflow: hidden;
}

.mc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-icon { font-size: 20px; color: var(--ink-3); letter-spacing: 0.08em; }

.mc-meta { padding: 10px 12px 6px; }
.mc-name {
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.mc-actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}

.mc-actions .mini-btn { flex: 1; text-align: center; }

.media-empty {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

/* ============================================================
   2026-11 改造：顶部导航重排 / 音乐控件小方块 / 暗色主题 /
   时间轴·动态·标签·外链·关于 / 文章直链嵌入 / 字号调节
   ============================================================ */

/* ---------- 暗色主题 ---------- */
html[data-theme="dark"] {
  --bg: #14130f;
  --bg-2: #1b1a15;
  --card: #211f19;
  --card-solid: #211f19;
  --ink: #efeae0;
  --ink-2: #c6bfb2;
  --ink-3: #8f8779;
  --line: #322e26;
  --accent: #63c7b1;
  --accent-soft: rgba(99, 199, 177, 0.12);
  --accent-line: rgba(99, 199, 177, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 36px -22px rgba(0, 0, 0, 0.8);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(99, 199, 177, 0.1), transparent 70%),
    radial-gradient(700px 420px at 8% 4%, rgba(190, 140, 70, 0.08), transparent 70%);
}
html[data-theme="dark"] .site-header { background: rgba(20, 19, 15, 0.84); }
html[data-theme="dark"] .player-card { background: rgba(33, 31, 25, 0.96); }
html[data-theme="dark"] .brand-mark { background: var(--accent); color: #10201c; }
html[data-theme="dark"] .post-card:hover { border-color: var(--accent-line); }
html[data-theme="dark"] .btn-primary { background: var(--accent); color: #10201c; }
html[data-theme="dark"] img { opacity: 0.96; }

/* ---------- 顶部：品牌 + 6 项导航 + 搜索/主题/登录 ---------- */
.header-inner { gap: 18px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-3);
  transition: border-color 0.18s, width 0.18s;
}
.header-search:focus-within { border-color: var(--accent-line); color: var(--accent); }
.header-search input {
  width: 108px;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  transition: width 0.2s;
}
.header-search input:focus { width: 150px; }
.header-search input::placeholder { color: var(--ink-3); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn .i-sun,
.icon-btn .i-moon { display: inline-grid; place-items: center; line-height: 0; }
.login-btn { height: 34px; padding: 0 13px; border-color: var(--line); }

/* ---------- 页脚：只留左侧，内容靠右 ---------- */
.footer-inner { justify-content: space-between; gap: 12px 14px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; flex: none; }
.footer-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--accent); }
.footer-link .fl-icon { font-size: 13px; line-height: 1; }
.footer-links-right { justify-content: flex-end; }
.footer-note {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}
.footer-copy { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  flex: none;
}
.footer-inner #footerText { text-align: right; }
.site-footer { padding: 18px 0 20px; }

/* ---------- 列表计数 ---------- */
.list-count { margin: 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 音乐按钮 + 小方块控件 ---------- */
.player-fab {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(31, 99, 87, 0.7), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s, box-shadow 0.2s;
}
.player-fab:hover { transform: translateY(-2px) scale(1.03); }
.player-fab:active { transform: scale(0.96); }
.player-fab.open { box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 26px -10px rgba(31, 99, 87, 0.7); }
.player-fab svg { pointer-events: none; }
html[data-theme="dark"] .player-fab { color: #10201c; }
.fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.player-fab.playing .fab-ring { animation: fabPulse 2.1s ease-out infinite; }
@keyframes fabPulse {
  0% { opacity: 0.55; transform: scale(0.82); }
  70% { opacity: 0; transform: scale(1.22); }
  100% { opacity: 0; transform: scale(1.22); }
}

.player-card {
  position: fixed;
  left: 20px;
  bottom: calc(var(--footer-h, 96px) + 12px);
  width: 286px;
  max-width: calc(100vw - 40px);
  padding: 14px 14px 12px;
  background: rgba(255, 253, 250, 0.97);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 45;
  animation: cardUp 0.2s ease-out;
}
@keyframes cardUp {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pc-head { display: flex; align-items: flex-start; gap: 8px; }
.pc-meta { min-width: 0; flex: 1; }
.pc-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-artist {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.pc-close:hover { background: var(--bg-2); color: var(--ink); }

.pc-seek { margin-top: 10px; }
.pc-seek .seek { width: 100%; }
.pc-time {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pc-sep { opacity: 0.6; }

.pc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 10px;
}
.pc-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.pc-btn:hover { background: var(--bg-2); color: var(--ink); }
.pc-btn:active { transform: scale(0.94); }
.pc-btn.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.pc-btn.primary {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(31, 99, 87, 0.85);
}
.pc-btn.primary:hover { background: var(--accent); color: #fff; opacity: 0.92; }
html[data-theme="dark"] .pc-btn.primary { color: #10201c; }

.pc-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
}
.pc-volume input { flex: 1; }

.pc-list {
  margin-top: 8px;
  max-height: 168px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.pl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.pl-item:hover { background: var(--bg-2); }
.pl-item.active { color: var(--accent); background: var(--accent-soft); }
.pl-no { width: 16px; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.pl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-artist { color: var(--ink-3); font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-error {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(190, 60, 50, 0.1);
  color: #b03c32;
  font-size: 11.5px;
  line-height: 1.5;
}
html[data-theme="dark"] .pc-error { background: rgba(255, 120, 110, 0.12); color: #ff9b91; }

/* 底部给按钮留出空间 */
body.has-player { padding-bottom: 0; }

/* ---------- 时间轴 / 动态 / 标签 / 外链 / 关于 ---------- */
.page-wrap { padding: 64px 0 72px; flex: 1 0 auto; }
.page-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
}
.page-sub { margin: 0 0 34px; color: var(--ink-3); font-size: 14px; }
.page-body { max-width: 860px; }

.timeline { display: flex; flex-direction: column; gap: 30px; }
.tl-group { position: relative; padding-left: 22px; border-left: 1px solid var(--line); }
.tl-group::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-month {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tl-items { display: flex; flex-direction: column; gap: 2px; }
.tl-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.16s;
}
.tl-item:hover { background: var(--bg-2); }
.tl-date { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; width: 46px; }
.tl-title { font-size: 15.5px; font-family: var(--serif); flex: 1; min-width: 0; }
.tl-meta { color: var(--ink-3); font-size: 12px; flex: none; }

.moments { display: flex; flex-direction: column; gap: 14px; }
.moment {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.moment-date { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.moment-body { margin-top: 8px; font-size: 15.5px; }
.moment-body p { margin: 0 0 0.7em; }
.moment-body p:last-child { margin-bottom: 0; }
.moment-body ul { margin: 0.4em 0 0.6em; padding-left: 1.2em; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: baseline; }
.tag-big {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  color: var(--ink-2);
  transition: color 0.16s, transform 0.16s;
}
.tag-big:hover { color: var(--accent); transform: translateY(-1px); }
.tag-big i { font-style: normal; font-size: 11px; color: var(--ink-3); font-family: var(--sans); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, transform 0.18s;
}
.link-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.link-name { font-family: var(--serif); font-size: 16px; }
.link-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.link-url { font-size: 11.5px; color: var(--ink-3); word-break: break-all; }

.about-body { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.md, .about-body, .article-body { font-family: var(--sans); }

/* ---------- 文章页：字号调节 ---------- */
.article-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.tools-label { font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; }
.font-step {
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.font-step:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent); }
.font-step:disabled { opacity: 0.4; cursor: not-allowed; }
.font-value { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Markdown 直链：自动嵌入播放/图片/链接卡 ---------- */
.md-embed-img { display: block; max-width: 100%; margin: 1.2em 0; border-radius: 12px; border: 1px solid var(--line); }
.md-media { display: block; width: 100%; margin: 1.2em 0; border-radius: 12px; background: #000; }
.md-media-audio { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.md-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.2em 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.18s, transform 0.18s;
}
.md-link-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.md-link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.md-link-main { min-width: 0; }
.md-link-title { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-link-host { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .header-inner { height: auto; padding: 10px 0 8px; flex-wrap: wrap; row-gap: 8px; }
  .header-nav { order: 3; width: 100%; margin-left: 0; gap: 4px; }
  .header-right { order: 2; margin-left: auto; }
  .header-search input { width: 76px; }
  .header-search input:focus { width: 110px; }
  .hero { padding: 44px 0 30px; }
  .page-wrap { padding: 44px 0 60px; }
  .player-card { width: min(286px, calc(100vw - 40px)); }
}
@media (max-width: 560px) {
  .login-btn span { display: none; }
  .login-btn { padding: 0 10px; }
  .header-search input { width: 64px; }
  .pc-controls { gap: 2px; }
  .pc-btn { width: 32px; height: 32px; }
  .pc-btn.primary { width: 40px; height: 40px; }
  .tl-meta { display: none; }
}

/* ---------- 后台：类型切换 / 草稿箱 ---------- */
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.seg:hover { border-color: var(--accent-line); }
.seg.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.pane-hint { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.mini-btn.ok { color: var(--accent); border-color: var(--accent-line); }
.badge.ok, .badge.draft { border: 1px solid var(--line); }

/* ---------- 暗色主题：把写死浅色的组件拉回主题色 ---------- */
html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .btn-primary { color: #10201c; }
html[data-theme="dark"] .tag-chip { background: rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] .tag-chip.active { color: #10201c; }
html[data-theme="dark"] .tag { color: var(--accent); }
html[data-theme="dark"] .badge.draft { background: #3a2f1e; color: #e6bd7e; }
html[data-theme="dark"] .mini-btn { background: var(--card); }
html[data-theme="dark"] .mini-btn.danger { color: #e08a6c; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea { background: var(--card); color: var(--ink); }
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder { color: var(--ink-3); }
html[data-theme="dark"] .login-card { background: var(--card); }
html[data-theme="dark"] .sidebar { background: var(--bg-2); }
html[data-theme="dark"] .toast { background: #2a2620; color: var(--ink); }
html[data-theme="dark"] .tag { background: rgba(93, 194, 172, 0.16); color: #8fdcc9; }
html[data-theme="dark"] .panel { background: var(--card); }
html[data-theme="dark"] .bind-status { background: var(--card); }
html[data-theme="dark"] .bind-chip.miss { background: #3a2b1d; color: #e7b17d; border-color: #55402c; }
html[data-theme="dark"] .r2-tip { background: var(--card); color: var(--ink-2); }
html[data-theme="dark"] .md blockquote { background: rgba(255, 255, 255, 0.04); }
.md blockquote {
  margin: 1.2em 0;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--accent-line);
  color: var(--ink-2);
}
.md blockquote p { margin: 0; }
.md h2, .md h3 { font-family: var(--serif); }

/* ---------------- 编辑器文字样式工具条 ---------------- */
.style-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--ink-3);
}
.style-label { font-weight: 600; color: var(--ink-2); }
.style-select {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-family: inherit;
}
.style-color {
  width: 34px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.style-tip { color: var(--ink-3); }
html[data-theme="dark"] .style-select,
html[data-theme="dark"] .style-color { background: #2a2822; color: var(--ink); }

/* 正文图片：直链、Markdown 图片都限制在内容宽度内 */
.md-img { display: block; max-width: 100%; height: auto; }

body.admin-body { display: block; }

/* ---------------- Word 风格：字符 / 段落工具条 ---------------- */
.style-bar { flex-direction: column; align-items: stretch; gap: 6px; }
.style-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.style-row + .style-row { padding-top: 6px; border-top: 1px dashed var(--line); }
.style-row .style-label { min-width: 34px; }
.style-btn {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}
.style-btn:hover { border-color: var(--accent); color: var(--accent); }
.style-btn:active { transform: translateY(1px); }
html[data-theme="dark"] .style-btn { background: #2a2822; color: var(--ink); }

/* 页脚右半边链接：靠说明文字右侧 */
.footer-links-right { margin-left: auto; }

/* ---------------- 备份 / 恢复 ---------------- */
.backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.backup-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
}
.backup-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.backup-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.backup-card p strong { color: var(--ink); }
.backup-warn { color: #9a5a2a; background: rgba(196, 121, 58, 0.08); border-left: 3px solid #d08a4c; padding: 8px 10px; border-radius: 6px; }
html[data-theme="dark"] .backup-warn { color: #e6b283; }
.backup-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.btn-danger { background: #b6423a; color: #fff; border: 1px solid transparent; }
.btn-danger:hover { filter: brightness(1.06); transform: translateY(-1px); }
html[data-theme="dark"] .btn-danger { background: #a33a33; }
.restore-preview {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 13px;
  color: var(--ink-2);
}
.restore-title { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.restore-meta { color: var(--ink-3); margin-bottom: 8px; }
.restore-counts { display: flex; gap: 8px; flex-wrap: wrap; }
.restore-counts span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
@media (max-width: 900px) { .backup-grid { grid-template-columns: 1fr; } }

#restoreFile {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 13px;
}
#restoreFile::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--card);
  color: var(--accent);
  font-size: 12.5px;
  cursor: pointer;
}

/* ---------------- 公告按钮 / 弹层 ---------------- */
.notice-btn { position: relative; height: 34px; padding: 0 11px; gap: 6px; }
.notice-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c2543f;
}
.notice-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(20, 18, 14, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.notice-mask.show { opacity: 1; }
.notice-box {
  width: min(560px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.notice-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.notice-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.notice-close:hover { color: var(--accent); border-color: var(--accent-line); }
.notice-body { padding: 18px 24px 24px; overflow-y: auto; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.notice-empty { color: var(--ink-3); }

/* ---------------- 文章分类 ---------------- */
.card-cat {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.article-cat { color: var(--accent); border-bottom: 1px solid var(--accent-line); }

/* ---------------- 照片墙 ---------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.photo-item { margin: 0; }
.photo-item a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 4 / 3;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.photo-item a:hover img { transform: scale(1.04); }
.photo-item figcaption { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------------- 播放器封面 ---------------- */
.pc-cover {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.pl-thumb {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-2);
}
.pl-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pl-no-mini { font-size: 10px; }

/* ---------------- 后台照片墙 ---------------- */
.photo-admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.photo-admin-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
}
.photo-thumb {
  width: 76px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-empty { font-size: 11.5px; color: var(--ink-3); }
.photo-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo-fields input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}
.photo-fields input:focus { outline: none; border-color: var(--accent-line); }
@media (max-width: 700px) {
  .photo-admin-row { grid-template-columns: 64px minmax(0, 1fr); }
  .photo-admin-row .photo-del { grid-column: 2; justify-self: start; }
}

/* 后台曲目封面预览 */
.track-row { grid-template-columns: 1.1fr 0.8fr 2fr 1.1fr 40px auto; }
.t-cover-thumb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
}
.t-cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-cover-thumb span { font-size: 10px; color: var(--ink-3); }

/* ================= 外观设置：壁纸 / 樱花 / 布局 / 面板 ================= */
.wall-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
body.wall-banner .wall-layer {
  inset: 0 0 auto 0;
  height: min(52vh, 440px);
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
  transform: scale(1.02);
  transform-origin: top center;
}
body.wall-full .wall-layer { transform: scale(1.02); }
body.wall-transparent .wall-layer { transform: scale(1.06); }
body.has-wall .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }

/* 卡片透明度跟随滑块 */
body.wall-transparent .site-footer { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* 文章布局 */
body.layout-list .post-grid {
  grid-template-columns: 1fr;
  max-width: 840px;
  margin: 0 auto;
}
body.layout-grid .post-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* 樱花 */
body.sakura-on { overflow-x: hidden; }
.sakura-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.sakura-layer i {
  position: absolute;
  top: -18px;
  width: 11px;
  height: 8px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(135deg, #ffd7e6, #ffb7d0 65%, #f59bbd);
  opacity: 0.85;
  animation-name: sakura-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes sakura-fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate3d(var(--drift, 40px), 105vh, 0) rotate(540deg); opacity: 0.2; }
}

/* 面板 */
.look-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 18, 14, 0.34);
  backdrop-filter: blur(2px);
}
.look-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  width: 322px;
  max-width: 92vw;
  height: 100%;
  overflow-y: auto;
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px rgba(20, 18, 14, 0.6);
  padding: 0 18px 26px;
}
body.look-open { overflow: hidden; }
.look-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.look-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.look-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.look-sec { margin-bottom: 20px; }
.look-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.look-title b { color: var(--accent); font-weight: 600; font-size: 13px; }
.look-modes, .look-layouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.look-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.look-opt .lo-ico { font-size: 13px; opacity: 0.7; }
.look-opt:hover { border-color: var(--accent-line); }
.look-opt.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.look-slider { display: block; margin-bottom: 14px; }
.look-slider > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.look-slider b { color: var(--ink); font-weight: 600; }
.look-range, .look-slider input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.look-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.look-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
}
.hue-range {
  height: 12px;
  background: linear-gradient(90deg, #ff4d4d, #ffd54d, #4dff88, #4dd2ff, #6a4dff, #ff4dd2, #ff4d4d);
}
.hue-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.look-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.look-reset {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
}
.look-reset:hover { border-color: var(--accent-line); color: var(--accent); }

/* 后台外观设置块 */
.look-admin {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.look-admin .preview-label { margin-top: 0; }
.look-admin .form-grid { margin-top: 12px; }
.look-admin .field input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: var(--line);
  padding: 0;
}
.look-admin .field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent-line);
}
.look-admin .hue-range {
  height: 12px;
  background: linear-gradient(90deg, #ff4d4d, #ffd54d, #4dff88, #4dd2ff, #6a4dff, #ff4dd2, #ff4d4d);
}
.look-admin-toggles { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.look-admin-toggles .look-layouts { flex: 1; min-width: 180px; }
.look-admin .look-opt { height: 34px; background: var(--card); }

/* 后台：外观按钮选中态与色相轨道（提高优先级覆盖上面的默认样式） */
.look-admin .look-opt.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.look-admin .field input.hue-range {
  background: linear-gradient(90deg, #ff4d4d, #ffd54d, #4dff88, #4dd2ff, #6a4dff, #ff4dd2, #ff4d4d);
}

/* 壁纸上的文字可读性：轻蒙层 */
body.has-wall .wall-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 26%, transparent);
}
body.wall-transparent .wall-layer::after {
  background: color-mix(in srgb, var(--bg) 14%, transparent);
}

/* 卡片上的分类 / 标签小药丸不要被拉伸成整行 */
.card-cat,
.post-card .tag,
.post-card .card-tags,
.card-meta .tag {
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
}
.post-card .tag { display: inline-flex; }
