/* ==========================================================
   美术作品展 · 设计系统
   纸浪折叠展馆 + 玻璃拟态 + 便当盒布局
   主色：米白 / 暖灰 / 低饱和莫兰迪
   ========================================================== */

:root {
  /* 纸面与墨色 */
  --paper: #f7f3ea;
  --paper-deep: #efe8db;
  --ink: #2c2a25;
  --ink-soft: #5c574e;
  --ink-muted: #8b8377;
  --line: rgba(96, 82, 62, 0.14);
  --line-strong: rgba(96, 82, 62, 0.26);

  /* 玻璃 */
  --glass: rgba(255, 253, 247, 0.62);
  --glass-strong: rgba(255, 253, 248, 0.84);
  --glass-line: rgba(255, 255, 255, 0.72);
  --blur: 18px;

  /* 莫兰迪色（低饱和） */
  --sage: #8fa08f;
  --sage-deep: #74856f;
  --sage-soft: #dde5da;
  --clay: #c09a86;
  --clay-soft: #f2e0d6;
  --blue: #93a3b6;
  --blue-soft: #dfe5ec;
  --sand: #c9b698;
  --sand-soft: #ece3d3;
  --rose: #c4a09c;
  --rose-soft: #efdedb;
  --gold: #b39b72;

  /* 阴影（柔和的层叠纸影） */
  --shadow-sm: 0 2px 10px rgba(88, 72, 50, 0.06);
  --shadow-md: 0 16px 36px -20px rgba(80, 64, 44, 0.38), 0 3px 8px rgba(80, 64, 44, 0.05);
  --shadow-lg: 0 34px 70px -34px rgba(72, 58, 40, 0.48), 0 6px 18px rgba(72, 58, 40, 0.06);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  --font-serif: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(201, 182, 152, 0.26), transparent 62%),
    radial-gradient(900px 520px at -12% 6%, rgba(143, 160, 143, 0.18), transparent 64%),
    radial-gradient(760px 640px at 46% 118%, rgba(147, 163, 182, 0.16), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(192, 154, 134, 0.28); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(140, 125, 100, 0.28);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 版心 ---------- */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- 玻璃拟态卡片 ---------- */
.glass {
  position: relative;
  background-color: var(--glass);
  background-image: linear-gradient(225deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 26%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(130%);
  backdrop-filter: blur(var(--blur)) saturate(130%);
}

/* 玻璃高光：模拟纸张斜面反光 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  opacity: 0.9;
}

/* 折角：右下角压出的折纸三角 */
.fold::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.94) 0 48%, rgba(198, 182, 154, 0.55) 52% 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: var(--radius);
  box-shadow: -3px -3px 9px rgba(110, 92, 64, 0.12);
  pointer-events: none;
  z-index: 2;
}

/* ---------- 纸浪折叠装饰 ---------- */
.wave-divider {
  height: 26px;
  margin: 28px 0 20px;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2026'%3E%3Cpath%20d='M0%2018%20Q%2024%204%2048%2018%20T%2096%2018'%20fill='none'%20stroke='%23b3a58b'%20stroke-width='1.5'%20opacity='0.55'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2026'%3E%3Cpath%20d='M0%2018%20Q%2024%204%2048%2018%20T%2096%2018'%20fill='none'%20stroke='%23ffffff'%20stroke-width='3'%20opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 96px 26px, 96px 26px;
  background-position: 0 0, 0 2px;
  pointer-events: none;
}

/* 纸浪层叠（页面装饰） */
.paper-stack {
  position: relative;
  pointer-events: none;
}
.paper-stack i {
  position: absolute;
  left: 0;
  right: 0;
  height: 96px;
  border-radius: 100% 100% 0 0 / 62% 62% 0 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 -12px 26px -18px rgba(120, 100, 70, 0.3);
}
.paper-stack i:nth-child(1) { bottom: -26px; background: rgba(143, 160, 143, 0.2); transform: rotate(-1.4deg); }
.paper-stack i:nth-child(2) { bottom: -42px; background: rgba(201, 182, 152, 0.24); transform: rotate(1deg); }
.paper-stack i:nth-child(3) { bottom: -60px; background: rgba(147, 163, 182, 0.16); transform: rotate(-0.6deg); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 60;
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 14px 10px 16px;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -7px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2010'%3E%3Cpath%20d='M0%204%20Q%2012%20-2%2024%204%20T%2048%204'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2.4'%20opacity='0.7'/%3E%3C/svg%3E") repeat-x;
  background-size: 48px 10px;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, #e9dfc9 0%, #cdbb9a 58%, #b9a583 100%);
  box-shadow: 0 8px 16px -10px rgba(90, 74, 48, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(128deg, transparent 40%, rgba(255, 255, 255, 0.78) 44%, rgba(255, 255, 255, 0.2) 47%, transparent 52%),
    linear-gradient(128deg, transparent 68%, rgba(120, 104, 76, 0.16) 72%, transparent 76%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fbf7ec 0 49%, #b19e7f 51% 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -2px -2px 4px rgba(90, 74, 48, 0.14);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-text i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.5); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sage), var(--sand));
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, #97a894, #778a74);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(58, 74, 56, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.btn-primary:hover { box-shadow: 0 18px 32px -16px rgba(58, 74, 56, 0.85); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(110, 94, 68, 0.18);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }
.btn-clay {
  background: linear-gradient(135deg, #c8a28c, #af8368);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(140, 100, 76, 0.8);
}
.btn-danger {
  background: rgba(190, 118, 108, 0.12);
  border-color: rgba(178, 108, 99, 0.3);
  color: #9c574b;
}
.btn-danger:hover { background: rgba(190, 118, 108, 0.2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* 用户胶囊 */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(110, 94, 68, 0.16);
  font-size: 13px;
  color: var(--ink-soft);
  transition: background 0.2s;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.86); }
.user-chip .mini-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 头像 */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 8px rgba(80, 64, 44, 0.16);
  overflow: hidden;
  background: var(--sage);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; border-radius: 22px; }
.avatar.tone-0 { background: linear-gradient(135deg, #a3b3a0, #86967f); }
.avatar.tone-1 { background: linear-gradient(135deg, #cbab97, #b08873); }
.avatar.tone-2 { background: linear-gradient(135deg, #a3b2c3, #8397ad); }
.avatar.tone-3 { background: linear-gradient(135deg, #c3b393, #a99572); }
.avatar.tone-4 { background: linear-gradient(135deg, #c8a8a4, #ac8681); }

/* ---------- 页面布局 ---------- */
.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

/* 便当盒 */
.bento {
  display: grid;
  gap: 18px;
}
.bento-hero {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  align-items: stretch;
}
.hero-side { display: grid; gap: 18px; grid-template-rows: auto auto 1fr; }

.hero-card {
  padding: 38px 40px 46px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.hero-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--clay);
}
.hero-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.hero-card h1 em {
  font-style: normal;
  color: var(--sage-deep);
  position: relative;
  z-index: 0; /* 建立层叠上下文，让下方纸色笔触可见 */
}
.hero-card h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 182, 152, 0.42);
  z-index: -1;
}
.hero-card p {
  max-width: 460px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 3; }
.hero-waves { position: absolute; left: -8%; right: -8%; bottom: -74px; height: 150px; opacity: 0.85; }

/* 数据 / 指南小卡 */
.mini-card { padding: 22px 24px; }
.mini-card .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.mini-card .value {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}
.mini-card .value small { font-size: 13px; font-family: var(--font-sans); color: var(--ink-muted); margin-left: 4px; }
.mini-card .note { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }

.guide-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.guide-list li { display: flex; gap: 10px; font-size: 12.8px; color: var(--ink-soft); align-items: baseline; }
.guide-list li b {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--clay);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(110, 94, 68, 0.14);
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.chip:hover { background: #fff; border-color: rgba(110, 94, 68, 0.28); }
.chip.active { background: rgba(143, 160, 143, 0.2); border-color: rgba(116, 133, 111, 0.4); color: var(--sage-deep); font-weight: 600; }

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title small {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
}
.section-tools { display: flex; align-items: center; gap: 10px; }

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(110, 94, 68, 0.16);
  transition: 0.2s;
}
.search-box:focus-within { border-color: rgba(143, 160, 143, 0.7); box-shadow: 0 0 0 3px rgba(143, 160, 143, 0.15); }
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 160px;
  color: var(--ink);
}
.search-box button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: rgba(143, 160, 143, 0.18);
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.search-box button:hover { background: rgba(143, 160, 143, 0.3); }

/* ---------- 瀑布流（便当盒 + 折纸卡片） ---------- */
.masonry { column-count: 2; column-gap: 18px; }
.masonry > * { break-inside: avoid; margin: 0 0 18px; display: block; width: 100%; }

.post-card {
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-inset); }

.post-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.post-media img,
.post-media video {
  display: block;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}
.post-card:hover .post-media img { transform: scale(1.03); }
.post-media video { pointer-events: none; }
.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(60, 50, 36, 0.18));
  pointer-events: none;
}

.play-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px -10px rgba(60, 48, 32, 0.5);
  display: grid;
  place-items: center;
  z-index: 2;
}
.play-glyph::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--ink);
  margin-left: 3px;
}

.badge-row {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px -6px rgba(60, 48, 32, 0.5);
}
.media-badge.video { background: rgba(44, 42, 37, 0.82); color: #fff; }
.media-badge.private { background: rgba(196, 160, 156, 0.9); color: #fff; }
.media-badge.selected { background: rgba(147, 163, 182, 0.92); color: #fff; }
.media-badge.offline { background: rgba(150, 120, 90, 0.9); color: #fff; }

.post-body { padding: 16px 18px 17px; }
.post-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-text {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.post-tags span { font-size: 11.5px; color: var(--sage-deep); background: rgba(143, 160, 143, 0.12); padding: 2px 8px; border-radius: 6px; }
.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.author-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.author-line .name { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-muted); flex-shrink: 0; }
.post-stats b { font-weight: 600; color: var(--ink-soft); }

/* ---------- 空状态 ---------- */
.empty-state {
  padding: 58px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.empty-fold {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(140deg, #f2ead9, #d9c9ac);
  box-shadow: 0 18px 30px -20px rgba(90, 74, 48, 0.55), inset 0 1px 0 #fff;
  position: relative;
  transform: rotate(-6deg);
}
.empty-fold::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #fbf7ec 0 49%, #b6a181 51% 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 18px;
  box-shadow: -3px -3px 8px rgba(90, 74, 48, 0.16);
}
.empty-state h3 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 8px; }
.empty-state p { margin: 0 auto 20px; max-width: 340px; color: var(--ink-muted); font-size: 13px; }

/* ---------- 加载与提示 ---------- */
.load-more-wrap { display: flex; justify-content: center; margin-top: 8px; }
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(143, 160, 143, 0.24);
  border-top-color: var(--sage);
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -18px rgba(60, 48, 32, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
  max-width: min(88vw, 420px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: #8d4a3f; border-color: rgba(196, 140, 130, 0.4); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(58, 48, 34, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; animation: fadeIn 0.22s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  animation: modalUp 0.28s var(--ease);
  position: relative;
}
@keyframes modalUp { from { transform: translateY(16px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-family: var(--font-serif); font-size: 20px; margin: 0 0 8px; }
.modal p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 7px;
}
.field-label .req { color: var(--clay); }
.field input[type="text"],
.field input[type="password"],
.field input[type="search"],
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(110, 94, 68, 0.16);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(143, 160, 143, 0.75);
  box-shadow: 0 0 0 3px rgba(143, 160, 143, 0.16);
  background: rgba(255, 255, 255, 0.9);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(120, 112, 100, 0.6); }
.field-hint { font-size: 11.5px; color: var(--ink-muted); margin-top: 6px; }

/* 分段选择器 */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}
.segmented label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 8px;
  border-radius: 11px;
  cursor: pointer;
  transition: 0.22s var(--ease);
  text-align: center;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.segmented label small { font-size: 10.5px; color: var(--ink-muted); }
.segmented label:has(input:checked) {
  background: var(--glass-strong);
  box-shadow: 0 6px 14px -10px rgba(80, 64, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.segmented label:has(input:checked) span { color: var(--sage-deep); }

/* 上传区 */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 18px;
  border-radius: 18px;
  border: 1.5px dashed rgba(120, 104, 78, 0.32);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}
.dropzone:hover,
.dropzone.dragover { border-color: rgba(143, 160, 143, 0.8); background: rgba(255, 255, 255, 0.7); }
.dropzone .dz-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(143, 160, 143, 0.35), rgba(201, 182, 152, 0.35));
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink-soft);
}
.dropzone b { font-size: 14px; font-weight: 600; }
.dropzone span { font-size: 11.5px; color: var(--ink-muted); }
.dropzone input { display: none; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.media-item img,
.media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .remove {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(44, 42, 37, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.media-item .file-type {
  position: absolute;
  left: 5px;
  bottom: 5px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink-soft);
}

/* 用户选择 */
.viewer-picker { margin-top: 12px; }
.viewer-results {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  margin-top: 8px;
}
.viewer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.18s;
}
.viewer-option:hover { background: rgba(255, 255, 255, 0.65); border-color: var(--line); }
.viewer-option .vo-name { font-size: 13px; }
.viewer-option .vo-account { font-size: 11px; color: var(--ink-muted); }
.selected-viewers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.viewer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 12px;
}
.viewer-chip button {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
}

/* ---------- 认证页 ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
  min-height: 560px;
}
.auth-art {
  position: relative;
  padding: 44px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.28;
  margin: 14px 0 12px;
  max-width: 380px;
}
.auth-art p { color: var(--ink-soft); font-size: 13.5px; max-width: 330px; margin: 0; }
.auth-quote {
  margin-top: 30px;
  padding-left: 14px;
  border-left: 2px solid rgba(192, 154, 134, 0.5);
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.9;
}
.auth-form-card { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  align-self: flex-start;
}
.auth-tabs button {
  border: none;
  background: transparent;
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: 0.2s;
}
.auth-tabs button.active { background: var(--glass-strong); color: var(--ink); box-shadow: 0 4px 10px -8px rgba(80, 64, 44, 0.4); }
.auth-footnote { font-size: 11.5px; color: var(--ink-muted); margin-top: 18px; text-align: center; }

/* ---------- 发布页 ---------- */
.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.form-card { padding: 30px 32px 34px; }
.side-stack { display: grid; gap: 18px; position: sticky; top: 96px; }
.tips-card { padding: 24px; }
.tips-card h4 { font-family: var(--font-serif); font-size: 15px; margin: 0 0 12px; letter-spacing: 0.04em; }
.tips-card ul { margin: 0; padding-left: 16px; display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.tips-card li::marker { color: var(--clay); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }
.edit-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(201, 182, 152, 0.16);
  border: 1px solid rgba(201, 182, 152, 0.34);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ---------- 个人空间 ---------- */
.space-head {
  padding: 30px 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}
.space-id h1 {
  font-family: var(--font-serif);
  font-size: 27px;
  margin: 0 0 3px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.role-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(192, 154, 134, 0.2);
  color: #96694f;
  border: 1px solid rgba(192, 154, 134, 0.32);
}
.space-id .sub { font-size: 12.5px; color: var(--ink-muted); }
.space-stats { display: flex; gap: 26px; }
.space-stat { text-align: center; }
.space-stat b { display: block; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; }
.space-stat span { font-size: 11.5px; color: var(--ink-muted); letter-spacing: 0.08em; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.2s;
}
.filter-tab:hover { background: rgba(255, 255, 255, 0.85); }
.filter-tab.active { background: rgba(143, 160, 143, 0.18); border-color: rgba(116, 133, 111, 0.4); color: var(--sage-deep); font-weight: 600; }

.space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.space-card { overflow: hidden; display: flex; flex-direction: column; }
.space-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  overflow: hidden;
  position: relative;
  display: block;
}
.space-card .thumb img,
.space-card .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.space-card h3 {
  font-family: var(--font-serif);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.space-card .meta { font-size: 11.5px; color: var(--ink-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.space-card .ops { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.status-dot { display: inline-flex; align-items: center; gap: 4px; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.status-dot.offline::before { background: var(--clay); }
.status-dot.pending::before { background: var(--sand); }

.mini-select {
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0 8px;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- 作品详情 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 18px; align-items: start; }
.detail-media-card { overflow: hidden; padding: 0; }
.detail-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(239, 232, 219, 0.9), rgba(224, 214, 197, 0.9));
  min-height: 320px;
  max-height: 640px;
  overflow: hidden;
}
.detail-stage img { max-width: 100%; max-height: 640px; width: auto; height: auto; display: block; object-fit: contain; }
.detail-stage video { width: 100%; max-height: 640px; display: block; background: #1e1c18; }
.thumb-row { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--line); }
.thumb-row button {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--paper-deep);
  transition: 0.2s;
}
.thumb-row button.active { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(143, 160, 143, 0.22); }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-info { padding: 28px 28px 26px; }
.detail-author { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.detail-author .who b { display: block; font-size: 13.5px; }
.detail-author .who span { font-size: 11.5px; color: var(--ink-muted); }
.detail-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-muted); margin-bottom: 16px; }
.detail-content { font-size: 14px; color: var(--ink-soft); line-height: 1.85; white-space: pre-wrap; word-break: break-word; margin-bottom: 18px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--line); }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(192, 154, 134, 0.34);
  background: rgba(255, 255, 255, 0.66);
  color: #9c6a58;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.22s var(--ease);
}
.like-btn .heart { font-size: 15px; line-height: 1; }
.like-btn:hover { background: rgba(255, 255, 255, 0.92); transform: translateY(-1px); }
.like-btn.liked { background: linear-gradient(135deg, rgba(200, 162, 140, 0.32), rgba(190, 140, 120, 0.28)); border-color: rgba(190, 140, 120, 0.5); }

/* 评论 */
.comments-card { margin-top: 18px; padding: 26px 28px 30px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.comments-head h3 { font-family: var(--font-serif); font-size: 19px; margin: 0; letter-spacing: 0.04em; }
.comments-head span { font-size: 11.5px; color: var(--ink-muted); letter-spacing: 0.1em; }
.comment-form { display: flex; gap: 10px; margin-bottom: 20px; align-items: flex-start; }
.comment-form .field { flex: 1; margin: 0; }
.comment-form textarea { min-height: 46px; height: 46px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; }
.comment-list { display: grid; gap: 4px; }
.comment-item { padding: 13px 0; border-top: 1px dashed var(--line); display: flex; gap: 10px; }
.comment-item:first-child { border-top: none; }
.comment-main { flex: 1; min-width: 0; }
.comment-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-top b { font-size: 12.5px; font-weight: 600; }
.comment-top time { font-size: 11px; color: var(--ink-muted); }
.comment-main p { margin: 3px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.65; word-break: break-word; }
.comment-main .del {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}
.comment-main .del:hover { color: #9c574b; }

/* ---------- 管理后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-nav {
  padding: 16px 14px;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
}
.admin-nav .nav-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding: 4px 10px 10px;
}
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: 0.18s;
  font-family: inherit;
}
.admin-nav button:hover { background: rgba(255, 255, 255, 0.6); }
.admin-nav button.active {
  background: linear-gradient(120deg, rgba(143, 160, 143, 0.22), rgba(201, 182, 152, 0.18));
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.admin-nav .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(140, 125, 100, 0.4); }
.admin-nav button.active .dot { background: var(--sage-deep); }

.admin-main { display: grid; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat-box { padding: 18px 20px; }
.stat-box .k { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-muted); text-transform: uppercase; }
.stat-box .v { font-family: var(--font-serif); font-size: 27px; line-height: 1.3; margin-top: 2px; }
.stat-box .v small { font-size: 12px; font-family: var(--font-sans); color: var(--ink-muted); }

.panel { padding: 24px 26px 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--font-serif); font-size: 19px; margin: 0; letter-spacing: 0.04em; }
.panel-head p { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.45); }
.table .cell-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table .truncate { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.table .sub { font-size: 11px; color: var(--ink-muted); }
.table-empty { padding: 36px 0; text-align: center; color: var(--ink-muted); font-size: 13px; }

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}
.panel-foot .ops { display: flex; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill.ok { background: rgba(143, 160, 143, 0.16); color: #5f735c; border-color: rgba(143, 160, 143, 0.32); }
.pill.warn { background: rgba(201, 182, 152, 0.2); color: #8a7040; border-color: rgba(201, 182, 152, 0.4); }
.pill.bad { background: rgba(196, 130, 120, 0.14); color: #9c574b; border-color: rgba(196, 130, 120, 0.34); }
.pill.info { background: rgba(147, 163, 182, 0.16); color: #5a6d85; border-color: rgba(147, 163, 182, 0.34); }

/* ---------- 移动端底部导航 ---------- */
.mobile-tabs { display: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-muted);
  border-top: 1px dashed var(--line);
}
.site-footer .foot-brand { font-family: var(--font-serif); letter-spacing: 0.1em; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .bento-hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .publish-layout { grid-template-columns: 1fr; }
  .side-stack { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-flow: row; }
  .detail-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-nav .nav-title { display: none; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .site-header { gap: 12px; padding: 9px 12px; }
  .brand-text i { display: none; }
  .header-actions .btn span.hide-sm { display: none; }
  .masonry { column-count: 2; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; padding: 32px 28px; }
  .space-head { grid-template-columns: auto 1fr; }
  .space-stats { grid-column: 1 / -1; justify-content: flex-start; padding-top: 6px; }
  .mobile-tabs {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 70;
    gap: 4px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 44px -20px rgba(60, 48, 32, 0.5);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
  }
  .mobile-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 66px;
    padding: 7px 10px;
    border-radius: 13px;
    font-size: 10.5px;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
  }
  .mobile-tabs a svg { width: 18px; height: 18px; opacity: 0.75; }
  .mobile-tabs a.active { background: rgba(143, 160, 143, 0.16); color: var(--sage-deep); font-weight: 600; }
  body { padding-bottom: 78px; }
  .page { padding-top: 22px; }
}

@media (max-width: 620px) {
  .container, .page { width: calc(100% - 24px); }
  .site-header { width: calc(100% - 20px); border-radius: 16px; }
  .masonry { column-count: 1; }
  .hero-card { padding: 30px 24px 38px; min-height: 280px; }
  .hero-card p { font-size: 13.5px; }
  .mini-card { padding: 18px 20px; }
  .form-card, .detail-info, .comments-card, .panel { padding-left: 20px; padding-right: 20px; }
  .space-head { padding: 22px 20px; }
  .space-stats { gap: 20px; }
  .space-grid { grid-template-columns: 1fr; }
  .section-tools { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .detail-stage { min-height: 220px; }
  .toast { bottom: 90px; }
  .auth-form-card { padding: 26px 22px; }
  .comment-form { flex-direction: column; }
  .comment-form .btn { width: 100%; }
  .table { min-width: 0; }
}

/* 打印/无背景模糊降级 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
