/* ============================================================
   藏艺阁 CYG · 网页端应用
   风格：Editorial Monochrome —— 纯白 / 墨黑 / 细线 / 留白即层级
   ============================================================ */

:root {
  /* Colors */
  --bg: #ffffff;
  --ink: #111111;
  --muted: #767676;
  --text: #555555;
  --line: #e8e8e6;
  --wash: #F2F2F0;
  --serif: YigeSerif, "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --serifDisplay: CygOldSong, YigeSerifSemi, "Noto Serif SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17,17,17,0.04);
  --shadow-md: 0 4px 20px rgba(17,17,17,0.06);
  --shadow-lg: 0 12px 40px rgba(17,17,17,0.08);

  /* Spacing */
  --space-xs: 8px; --space-sm: 16px; --space-md: 32px;
  --space-lg: 64px; --space-xl: 96px; --space-2xl: 128px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography scale */
  --fs-h2: clamp(28px, 4vw, 44px);
  --fs-h3: clamp(20px, 2.5vw, 26px);
  --fs-body: 16px;
  --fs-caption: 13px;
  --fs-kicker: 12px;

  --header-h: 68px;
  --page-w: 1280px;
  --page-w-wide: 1520px;
}

/* ---------- 全局动画关键帧 ---------- */

@keyframes cyg-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes cyg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cyg-slide-up {
  from { transform: translateY(6%); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

/* stagger 入场（用于 feed/列表卡片） */
.stagger > * {
  opacity: 0;
  animation: cyg-fade-up 0.6s var(--ease-out) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }
.stagger > *:nth-child(n+9) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .stagger > * { animation: none; opacity: 1; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease-out);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

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

.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
@media (min-width: 1600px) {
  .app-header { padding: 0 64px; gap: 48px; }
}

.app-wordmark {
  display: inline-flex; align-items: baseline; gap: 8px; flex-shrink: 0;
  transition: opacity 0.25s var(--ease-out);
}
.app-wordmark:hover { opacity: 0.75; }
.app-wordmark__cn {
  font-family: var(--serifDisplay);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.app-wordmark__en { font-size: 10px; letter-spacing: 0.28em; color: var(--muted); }

.app-tabs { display: flex; align-items: center; gap: 44px; flex: 1; }
@media (min-width: 1600px) {
  .app-tabs { gap: 52px; }
}

.app-tabs a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.app-tabs a:hover { color: var(--ink); transform: translateY(-1px); }
.app-tabs a.is-active { color: var(--ink); }
.app-tabs a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  animation: cyg-fade-in 0.3s var(--ease-out);
}
.app-tabs a::after {
  content: '';
  position: absolute;
  left: 0; right: 50%; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out), right 0.25s var(--ease-out);
}
.app-tabs a:not(.is-active):hover::after { opacity: 1; right: 0; }

/* 上传 tab 作为操作入口，左侧加分隔线与浏览区视觉分组 */
.app-tabs a[data-tab="upload"] {
  margin-left: 20px;
  padding-left: 20px;
  position: relative;
}
.app-tabs a[data-tab="upload"]::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: var(--line);
}
.app-tabs a[data-tab="upload"] { color: var(--ink); font-weight: 500; }

/* 拖拽排序视觉反馈 */
.app-tabs a[data-tab] { cursor: grab; }
.app-tabs a.is-dragging { opacity: 0.4; cursor: grabbing; }
.app-tabs a.is-drag-over { position: relative; }
.app-tabs a.is-drag-over::before {
  content: '';
  position: absolute;
  left: -2px; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
  z-index: 2;
}
.app-tabs a.is-drag-over.is-after::before {
  left: auto;
  right: -2px;
}

.badge {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
  text-align: center;
  vertical-align: 2px;
}

.app-user { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.btn-login {
  padding: 8px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.btn-login:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.user-chip {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px;
  transition: opacity 0.25s var(--ease-out);
}
.user-chip:hover { opacity: 0.75; }
.user-chip__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--wash);
  transition: border-color 0.25s var(--ease-out);
}
.user-chip:hover .user-chip__avatar { border-color: var(--ink); }

.promo-link {
  font-size: 13px; color: var(--muted); letter-spacing: 0.1em;
  transition: color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.promo-link:hover { color: var(--ink); }

/* ---------- 主视图 ---------- */

#view { padding-top: var(--header-h); min-height: 100vh; }

.page { max-width: var(--page-w); margin: 0 auto; padding: 48px 48px 96px; }
@media (min-width: 1600px) {
  .page { max-width: var(--page-w-wide); padding: 56px 64px 112px; }
}

.page-head { margin-bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-title {
  font-family: var(--serifDisplay);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.page-sub { font-size: 14px; color: var(--muted); letter-spacing: 0.06em; }

.empty-tip {
  padding: 90px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  letter-spacing: 0.1em;
  animation: cyg-fade-in 0.5s var(--ease-out);
}
.empty-tip::before {
  content: '· · ·';
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.5em;
  margin-bottom: 18px;
  color: var(--line);
}
.empty-tip a { border-bottom: 1px solid var(--ink); color: var(--ink); transition: opacity 0.25s var(--ease-out); }
.empty-tip a:hover { opacity: 0.7; }

/* 按钮体系 */
.btn {
  display: inline-block;
  padding: 10px 26px;
  font-size: 14px;
  letter-spacing: 0.12em;
  border: 1px solid var(--ink);
  transition: opacity 0.25s var(--ease-out), background 0.25s var(--ease-out),
              color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 6px 16px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- 推荐流（网格模式） ---------- */

.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips .chip {
  border: 1px solid var(--line);
  padding: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.filter-chips .chip:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.filter-chips .chip.is-on { color: var(--ink); border-color: var(--ink); }

.mode-toggle {
  border: 1px solid var(--line);
  padding: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.mode-toggle:hover { color: var(--ink); border-color: var(--ink); }

.masonry { columns: 4; column-gap: 24px; }
@media (min-width: 1600px) { .masonry { columns: 5; column-gap: 28px; } }
@media (max-width: 1280px) { .masonry { columns: 3; column-gap: 20px; } }
@media (max-width: 900px) { .masonry { columns: 2; column-gap: 18px; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* 艺术家档案库 */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (min-width: 1600px) { .arch-grid { grid-template-columns: repeat(5, 1fr); gap: 32px; } }
@media (max-width: 1280px) { .arch-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (max-width: 900px) { .arch-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .arch-grid { grid-template-columns: 1fr; } }

.arch-card {
  break-inside: avoid;
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.arch-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.arch-card__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--wash);
}
.arch-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.arch-card:hover .arch-card__img { transform: scale(1.04); }
.arch-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 64px;
  color: var(--line);
  background: linear-gradient(160deg, #f6f5f2, #ecebe6);
}
.arch-card__avatar {
  position: absolute;
  left: 16px;
  bottom: -22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: var(--wash);
}
.arch-card__avatar--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted);
}
.arch-card__body { padding: 32px 16px 16px; }
.arch-card__name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.arch-card__meta { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0.05em; }
.arch-card__bio {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= 我的文献档案库（vault） ================= */

.vault-login {
  text-align: center;
  padding: 80px 20px;
  animation: cyg-fade-up 0.6s var(--ease-out);
}
.vault-login__seal {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serifDisplay);
  font-size: 36px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.vault-login__seal:hover {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: var(--shadow-lg);
}
.vault-page { max-width: var(--page-w); }
@media (min-width: 1600px) { .vault-page { max-width: 1440px; } }

/* 档案页整体入场（逐层淡入上移） */
.vault-page > * { animation: cyg-fade-up 0.55s var(--ease-out) both; }
.vault-page > *:nth-child(2) { animation-delay: 0.07s; }
.vault-page > *:nth-child(3) { animation-delay: 0.14s; }
.vault-page > *:nth-child(n+4) { animation-delay: 0.21s; }

/* 个人名片 */
.vault-header {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  position: relative;
}
.vault-header__kicker {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.vault-artist { display: flex; align-items: center; gap: 20px; }
.vault-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wash);
  border: 1px solid var(--line);
  flex: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.vault-avatar:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.vault-artist__name {
  font-family: var(--serifDisplay);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}
.vault-artist__sig {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* 搜索栏（档案目录式：仅底部 hairline） */
.vault-search { margin-bottom: 22px; }
.vault-search__box {
  display: flex;
  align-items: center;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
  background: transparent;
  transition: border-color 0.3s var(--ease-out);
}
.vault-search__box:focus-within { border-bottom-color: var(--ink); }
.vault-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  height: 50px;
  font-size: 15.5px;
  font-family: inherit;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.vault-search__input::placeholder { color: var(--muted); opacity: 0.7; }
.vault-search__clear {
  cursor: pointer;
  font-size: 22px;
  color: var(--muted);
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s var(--ease-out);
}
.vault-search__clear:hover { color: var(--ink); }
.vault-search__tip {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.vault-search__tip a { color: var(--ink); text-decoration: underline; }

/* 工具栏 + chips */
.vault-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.vault-toolbar__label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  flex: none;
  width: 36px;
}
.vault-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vchip {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 5px 15px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.vchip:hover { border-color: var(--ink); transform: translateY(-1px); }
.vchip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* 折叠区块（统计 / 履历） */
.vault-block {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.vault-block:hover { border-color: var(--muted); box-shadow: var(--shadow-sm); }
.vault-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}
.vault-block__title {
  font-family: var(--serifDisplay);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.vault-block__fold {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2em;
  transition: color 0.2s var(--ease-out), letter-spacing 0.2s var(--ease-out);
}
.vault-block__head:hover .vault-block__fold { color: var(--ink); letter-spacing: 0.28em; }
.vault-block__body { padding: 4px 18px 20px; }
.vault-block__add {
  margin-left: auto;
  margin-right: 14px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.vault-block__add:hover { color: var(--ink); }

/* 文献资料（档案分类列表） */
.vmat-list { margin-top: 14px; }
.vmat {
  display: flex;
  gap: 16px;
  padding: 14px 8px 14px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.vmat:last-child { border-bottom: none; }
.vmat:hover { background: var(--wash); padding-left: 12px; }
.vmat:hover .vmat__title { text-decoration: underline; text-underline-offset: 3px; }
.vmat__thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  flex: none;
  background: var(--wash);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.vmat:hover .vmat__thumb { border-color: var(--muted); box-shadow: var(--shadow-sm); }
.vmat__thumb--kind {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.vmat__body { flex: 1; min-width: 0; }
.vmat__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.vmat__type {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 8px;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.vmat:hover .vmat__type { border-color: var(--muted); color: var(--ink); }
.vmat__date { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.vmat__title { font-family: var(--serif); font-size: 15.5px; color: var(--ink); }
.vmat__sum {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vmat__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vmat__tag {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--wash);
  padding: 1px 8px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.vmat:hover .vmat__tag { background: #e9e9e6; }

/* 文献资料上传弹层 */
.modal__panel.vmat-up {
  max-width: min(92vw, 520px);
  text-align: left;
  padding: 32px 34px 24px;
}
.vmat-up__title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.vmat-up__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin: 14px 0 8px;
}
.vmat-up__drop {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  background: var(--wash);
  padding: 22px 16px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.vmat-up__drop:hover { border-color: var(--ink); color: var(--ink); }
.vmat-up__input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 10px;
  outline: none;
  resize: vertical;
}
.vmat-up__input:focus { border-color: var(--ink); }
.vmat-up__row { display: flex; gap: 10px; }
.vmat-up__row .vmat-up__input { flex: 1; min-width: 0; }
.vmat-up__submit {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 0.24em;
}
.vmat-up__submit:hover { opacity: 0.88; }
.vmat-up__submit[disabled] { opacity: 0.5; cursor: default; }
.vmat-up__hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.vmat-up__hint--err { color: #b0342c; }

/* 创作统计 */
.vstat-summary {
  display: flex;
  gap: 56px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.vstat-num {
  font-family: var(--serifDisplay);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  animation: cyg-fade-up 0.5s var(--ease-out) both;
}
.vstat-summary .vstat-num:nth-child(2) { animation-delay: 0.08s; }
.vstat-unit {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.08em;
}
.vstat-group { margin-bottom: 18px; }
.vstat-group:last-child { margin-bottom: 4px; }
.vstat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}
.vbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  animation: cyg-fade-up 0.45s var(--ease-out) both;
}
.vbar-row:nth-child(2) { animation-delay: 0.05s; }
.vbar-row:nth-child(3) { animation-delay: 0.1s; }
.vbar-row:nth-child(4) { animation-delay: 0.15s; }
.vbar-row:nth-child(5) { animation-delay: 0.2s; }
.vbar-row:nth-child(n+6) { animation-delay: 0.25s; }
.vbar-name {
  width: 110px;
  flex: none;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vbar-track {
  flex: 1;
  height: 5px;
  background: var(--wash);
  overflow: hidden;
}
.vbar-fill {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  animation: vbar-grow 0.9s var(--ease-out) 0.15s both;
}
@keyframes vbar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.vbar-count {
  width: 32px;
  flex: none;
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 艺术履历时间轴 */
.vtimeline { padding: 6px 0 2px; }
.vtl-item {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 24px 20px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
  transition: padding-left 0.25s var(--ease-out);
}
.vtl-item:hover { padding-left: 26px; }
.vtl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.vtl-dot {
  position: absolute;
  left: -5.5px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--bg);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.vtl-item:hover .vtl-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--bg), var(--shadow-sm);
}
.vtl-year {
  flex: none;
  width: 52px;
  font-family: var(--serifDisplay);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}
.vtl-body { display: flex; flex-direction: column; gap: 4px; }
.vtl-title { font-size: 14.5px; color: var(--ink); letter-spacing: 0.02em; }
.vtl-meta { font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }

/* 档案作品卡标签 */
.vault-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.vtag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.vault-card:hover .vtag { border-color: var(--muted); color: var(--ink); }
.vtag--series { color: var(--ink); border-color: var(--ink); }
.vtag--private { color: #8a6d3b; background: #faf3e3; border-color: #ecdfc2; }

/* 作品详情就地编辑 */
.wd-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 18px 0;
}
@media (max-width: 560px) { .wd-edit-grid { grid-template-columns: 1fr; } }
.work-detail__panel .field { margin-bottom: 12px; }
.wd-del {
  color: #b03a2e;
  border-color: #d9b8b3;
  background: #fff;
}
.wd-del:hover { border-color: #b03a2e; background: #fdf3f2; }

.art-card {
  break-inside: avoid; margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); position: relative;
  transition: opacity 0.4s var(--ease-out);
}
.art-card__no {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.32);
  padding: 3px 7px;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(2px);
}
.art-card__img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--wash);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.art-card:hover .art-card__img {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.28);
  border-color: var(--muted);
}

/* 图片加载失败兜底：显示 wash 底色 + 标题占位 */
.img-failed {
  min-height: 240px;
  background: var(--wash) !important;
  position: relative;
  overflow: hidden;
}
.img-failed::after {
  content: attr(data-alt);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: center;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-card__cap { padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.art-card__title { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.5; cursor: pointer; }
.art-card__title:hover { color: #333; }
.art-card__artist { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.art-card__meta { font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; margin-top: 2px; }

.load-more {
  margin: 32px auto 0;
  display: block;
  padding: 56px 0 0;
  text-align: center;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.load-more:hover { color: var(--ink); }
.feed-end { padding-top: 48px; text-align: center; color: var(--muted); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; }

/* Editorial 章节小标（全大写西文） */
.sec-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* 首页 editorial 页头 */
.feed-head { padding: 12px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.feed-head__label { font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.feed-head__title { font-family: var(--serifDisplay); font-size: 30px; font-weight: 600; letter-spacing: 0.08em; margin-top: 8px; }
.feed-head__sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* ---------- 推荐流（沉浸模式） ---------- */

.imm {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: #0e0e0e;
  color: #f5f5f3;
  display: flex;
  overflow: hidden;
}

.imm__stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 96px;
  cursor: pointer;
}

.imm__img {
  max-width: min(72vw, 900px);
  max-height: calc(100% - 132px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.25s ease;
}
.imm__img.is-switching { opacity: 0; }

.imm__info {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: 56px 48px 26px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.72));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.imm__meta { min-width: 0; max-width: 720px; }
.imm__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.imm__artist { color: #cfcdc8; border-bottom: 1px solid rgba(245, 245, 243, 0.5); }
.imm__artist:hover { color: #fff; border-bottom-color: #fff; }
.imm__line { font-size: 13px; color: #b9b7b1; margin-top: 4px; letter-spacing: 0.03em; }
.imm__ai {
  font-size: 13px;
  color: #d8d6d0;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.imm__ops { display: flex; gap: 10px; flex-shrink: 0; }
.imm__btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(245, 245, 243, 0.4);
  color: #f5f5f3;
  font-size: 13px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.imm__btn:hover { border-color: #f5f5f3; }
.imm__btn.is-on { background: #f5f5f3; color: #111; border-color: #f5f5f3; }

.imm__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 110px;
  display: flex;
  gap: 14px;
}
.imm__arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(245, 245, 243, 0.35);
  color: #f5f5f3;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease;
}
.imm__arrow:hover { border-color: #f5f5f3; }
.imm__arrow[disabled] { opacity: 0.25; }

.imm__side {
  width: 220px;
  flex-shrink: 0;
  border-left: 1px solid rgba(245, 245, 243, 0.14);
  padding: 22px 20px;
  overflow-y: auto;
  display: none;
}
@media (min-width: 1024px) { .imm__side { display: block; } }

.imm__side-label { font-size: 11px; letter-spacing: 0.3em; color: #8a8880; margin-bottom: 14px; }
.imm__side-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 0;
  font-size: 13px;
  color: #b9b7b1;
  border-bottom: 1px solid rgba(245, 245, 243, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.imm__side-item:hover { color: #f5f5f3; }
.imm__side-item.is-current { color: #f5f5f3; }
.imm__side-count { font-size: 11px; color: #8a8880; margin-left: 6px; }

.imm__back {
  position: absolute;
  top: 18px; left: 22px;
  z-index: 5;
  color: #b9b7b1;
  font-size: 12.5px;
  letter-spacing: 0.16em;
}
.imm__back:hover { color: #fff; }

.imm__pos {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 5;
  font-size: 12px;
  color: #8a8880;
  letter-spacing: 0.14em;
}

/* ---------- 作品详情 ---------- */

.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
}
@media (min-width: 1600px) { .work-detail { max-width: 1600px; } }
@media (max-width: 1280px) { .work-detail { grid-template-columns: 1fr; } }

.work-detail__stage {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
@media (max-width: 1280px) {
  .work-detail__stage { position: static; height: 56vh; }
}
.work-detail__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.work-detail__cat-no {
  position: absolute; top: 20px; left: 24px;
  font-size: 10.5px; letter-spacing: 0.32em;
  color: rgba(245,245,243,0.6);
  text-transform: uppercase;
}
.work-detail__imgs {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.work-detail__dot { width: 7px; height: 7px; border: 1px solid rgba(245,245,243,0.6); border-radius: 50%; padding: 0; }
.work-detail__dot.is-on { background: #f5f5f3; }

.work-detail__panel { padding: 64px 72px 120px; }
.work-detail__panel > * { max-width: 560px; }
@media (max-width: 1280px) {
  .work-detail__panel { padding: 40px 32px 80px; }
}

.back-link {
  font-size: 11px; color: var(--muted); letter-spacing: 0.28em;
  text-transform: uppercase; margin-bottom: 36px; display: inline-block;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.back-link:hover { color: var(--ink); transform: translateX(-3px); }

.wd-title {
  font-family: var(--serifDisplay); font-size: 36px; font-weight: 600;
  letter-spacing: 0.05em; line-height: 1.4;
  animation: cyg-fade-up 0.5s var(--ease-out) 0.1s both;
}
.wd-artist {
  margin-top: 10px; font-size: 15px; color: var(--muted); letter-spacing: 0.04em;
  animation: cyg-fade-up 0.5s var(--ease-out) 0.15s both;
}
.wd-artist a {
  color: var(--ink); border-bottom: 1px solid var(--ink);
  transition: opacity 0.25s var(--ease-out);
}
.wd-artist a:hover { opacity: 0.7; }

.wd-meta {
  margin: 32px 0; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  animation: cyg-fade-up 0.5s var(--ease-out) 0.2s both;
}
.wd-meta__row { display: flex; gap: 18px; padding: 4px 0; font-size: 14.5px; }
.wd-meta__label { flex-shrink: 0; width: 84px; color: var(--muted); letter-spacing: 0.22em; text-transform: uppercase; font-size: 10.5px; padding-top: 4px; }
.wd-meta__value { color: var(--ink); flex: 1; }

.wd-desc { font-size: 16px; color: var(--text); white-space: pre-wrap; margin-bottom: 14px; line-height: 1.9; }
.wd-deep { font-size: 14px; color: var(--muted); margin-bottom: 26px; white-space: pre-wrap; }
.wd-sec { margin-top: 40px; }

.wd-ops { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.wd-ops .btn.is-on { background: var(--wash); border-color: var(--muted); color: var(--muted); }

/* 评论 */
.wd-comments h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.comment-item__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--wash);
  border: 1px solid var(--line);
}
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.comment-item__user { font-size: 13.5px; font-weight: 600; }
.comment-item__time { font-size: 12px; color: var(--muted); }
.comment-item__content { font-size: 14px; color: #333; white-space: pre-wrap; word-break: break-word; }
.comment-item__ops { margin-top: 6px; display: flex; gap: 16px; }
.comment-item__like { font-size: 12.5px; color: var(--muted); }
.comment-item__like:hover { color: var(--ink); }
.comment-item__like.is-on { color: var(--ink); }
.comment-item__del { font-size: 12.5px; color: var(--muted); }
.comment-item__del:hover { color: var(--ink); }

.comment-form { margin-top: 18px; }
.comment-form textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--wash);
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
}
.comment-form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.comment-form__foot { margin-top: 10px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 艺术家档案页 ---------- */

.artist-hero { display: grid; grid-template-columns: 96px 1fr; gap: 26px; align-items: start; margin-bottom: 34px; }
.artist-hero__avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--wash);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.artist-hero__avatar:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.artist-hero__name {
  font-family: var(--serifDisplay); font-size: 36px; font-weight: 600;
  letter-spacing: 0.06em;
  animation: cyg-fade-up 0.5s var(--ease-out) 0.1s both;
}
.artist-hero__sig { margin-top: 4px; font-size: 14px; color: var(--muted); letter-spacing: 0.08em; }
.artist-hero__bio { margin-top: 14px; font-size: 15.5px; color: var(--text); max-width: 46em; line-height: 1.85; }
.artist-hero__ops { margin-top: 16px; display: flex; gap: 10px; }
@media (min-width: 1280px) { .artist-hero { grid-template-columns: 120px 1fr; gap: 32px; } .artist-hero__avatar { width: 120px; height: 120px; } }
@media (max-width: 560px) { .artist-hero { grid-template-columns: 72px 1fr; gap: 18px; } .artist-hero__avatar { width: 72px; height: 72px; } }

.artist-info { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.artist-info__row { display: flex; gap: 20px; padding: 9px 0; font-size: 13.5px; }
.artist-info__row + .artist-info__row { border-top: 1px solid var(--wash); }
.artist-info__label { flex-shrink: 0; width: 64px; color: var(--muted); letter-spacing: 0.2em; }

.artist-stats { display: flex; gap: 44px; flex-wrap: wrap; margin-bottom: 34px; }
.artist-stats__num { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.artist-stats__label { font-size: 12.5px; color: var(--muted); letter-spacing: 0.14em; margin-top: 4px; }
.artist-stats__tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag-chip {
  border: 1px solid var(--line); padding: 4px 12px; font-size: 12px; color: var(--muted);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.tag-chip:hover { color: var(--ink); border-color: var(--ink); }

.artist-events { margin-bottom: 44px; }
.artist-events h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 14px; }
.event-row {
  display: flex; gap: 22px; padding: 10px 0;
  border-bottom: 1px solid var(--wash); font-size: 14px;
  transition: background 0.2s var(--ease-out);
}
.event-row:hover { background: rgba(0,0,0,0.015); }
.event-year { flex-shrink: 0; width: 52px; font-family: var(--serif); color: var(--muted); }
.event-title { flex: 1; }
.event-org { color: var(--muted); font-size: 13px; }

.artist-works h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 20px; }

/* ---------- 消息 ---------- */

.msg-layout { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1600px) { .msg-layout { grid-template-columns: 360px 1fr; } }
@media (max-width: 820px) { .msg-layout { grid-template-columns: 1fr; } }

.msg-list { border-right: 1px solid var(--line); overflow-y: auto; }
@media (max-width: 820px) { .msg-list { border-right: none; } }
.msg-list__head { padding: 22px 24px 12px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.1em; }
.conv-item {
  width: 100%;
  display: flex;
  gap: 14px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--wash);
  text-align: left;
  align-items: center;
  transition: background 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}
.conv-item:hover, .conv-item.is-active { background: var(--wash); }
.conv-item:hover { padding-left: 28px; }
.conv-item__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--wash); border: 1px solid var(--line); flex-shrink: 0; }
.conv-item__body { flex: 1; min-width: 0; }
.conv-item__name { font-size: 14.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.conv-item__time { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.conv-item__last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item__unread {
  flex-shrink: 0;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.msg-thread { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); }
@media (max-width: 820px) { .msg-thread { height: auto; min-height: 60vh; } }
.msg-thread__head { padding: 20px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.msg-thread__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--wash); }
.msg-thread__name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.05em; }
.msg-thread__body { flex: 1; overflow-y: auto; padding: 32px 40px; background: var(--wash); }
.msg-row { display: flex; margin-bottom: 18px; gap: 12px; }
.msg-row.is-mine { flex-direction: row-reverse; }
.msg-row__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.msg-row__bubble {
  max-width: min(70%, 560px);
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-row.is-mine .msg-row__bubble { background: var(--ink); border-color: var(--ink); color: #fff; }
.msg-row__meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.msg-row.is-mine .msg-row__meta { text-align: right; }

.msg-thread__foot { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; gap: 12px; }
.msg-thread__input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: #fff;
  resize: none;
  font-size: 14px;
  min-height: 44px;
  max-height: 120px;
}
.msg-thread__input:focus { outline: none; border-color: var(--ink); }

.msg-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }

/* ---------- 我的 ---------- */

.mine-head { display: flex; align-items: center; gap: 22px; margin-bottom: 40px; }
.mine-head__avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--wash);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.mine-head__avatar:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.mine-head__name { font-family: var(--serifDisplay); font-size: 26px; font-weight: 600; letter-spacing: 0.06em; }
.mine-head__sub { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; margin-top: 4px; }
.mine-head__ops { margin-left: auto; display: flex; gap: 10px; }

.mine-section { border-top: 1px solid var(--line); padding: 30px 0 44px; }
.mine-section h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: baseline; }

/* 设置列表（iOS 式分组 + 右箭头） */
.settings-list { border: 1px solid var(--line); }
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--wash); padding-left: 24px; }
.settings-item span { font-size: 15px; letter-spacing: 0.04em; color: var(--ink); }
.settings-item i {
  font-style: normal; font-size: 18px; color: var(--muted); font-weight: 300;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.settings-item:hover i { color: var(--ink); transform: translateX(3px); }

.upload-form { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
@media (max-width: 700px) { .upload-form { grid-template-columns: 1fr; } }

/* 上传独立页页头 */
.upload-head { margin-bottom: 36px; }
.upload-head__title { font-family: var(--serifDisplay); font-size: 34px; font-weight: 600; letter-spacing: 0.06em; }
.upload-head__sub { font-size: 14px; color: var(--muted); letter-spacing: 0.06em; margin-top: 6px; }
.upload-drop {
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed var(--muted);
  background: var(--wash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  padding: 16px;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.upload-drop:hover {
  border-color: var(--ink); color: var(--ink);
  background: #fff; box-shadow: var(--shadow-sm);
}
.upload-drop img { width: 100%; height: 100%; object-fit: contain; }
.upload-fields { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: 0.16em; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field textarea { min-height: 76px; resize: vertical; }

.my-works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
@media (min-width: 1600px) { .my-works-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.my-work-card { border-bottom: 1px solid var(--line); padding-bottom: 14px; transition: opacity 0.3s var(--ease-out); }
.my-work-card:hover { opacity: 0.88; }
.my-work-card__img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line); background: var(--wash); cursor: pointer;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.my-work-card:hover .my-work-card__img { border-color: var(--muted); box-shadow: var(--shadow-sm); }
.my-work-card__title { font-family: var(--serif); font-size: 15px; font-weight: 600; margin-top: 10px; }
.my-work-card__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.my-work-card__ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.state-chip { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; }
.state-chip.is-on { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   AI 档案问答 —— 沉浸式对话（克制画廊风格）
   ============================================================ */

.chat-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
}

.chat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}
.chat-head__title {
  font-family: var(--serifDisplay);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.chat-head__sub { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; margin-top: 4px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 0;
  scroll-behavior: smooth;
}
.chat-loading { text-align: center; color: var(--muted); font-size: 13px; padding: 60px 0; }

.chat-empty {
  text-align: center;
  padding: 80px 0 40px;
  animation: cyg-fade-up 0.5s var(--ease-out);
}
.chat-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serifDisplay);
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.chat-empty__text { font-size: 14px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 28px; }
.chat-empty__hints { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.chat-hint {
  border: 1px solid var(--line);
  padding: 8px 22px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.chat-hint:hover {
  border-color: var(--ink); color: var(--ink);
  transform: translateY(-1px); background: var(--wash);
}

.chat-msg { margin-bottom: 24px; display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--ai { justify-content: flex-start; }
.chat-msg__bubble {
  max-width: 70%;
  padding: 14px 20px;
  font-size: 15.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg--user .chat-msg__bubble {
  background: var(--ink);
  color: #fff;
}
.chat-msg--ai .chat-msg__bubble {
  background: var(--wash);
  color: var(--ink);
}

/* AI thinking 动画（三个跳动点，首字到达前显示） */
.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 2px 0; }
.chat-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: chat-typing-bounce 1.2s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-sources { margin-top: 8px; font-size: 12px; color: var(--muted); }
.chat-sources__label { letter-spacing: 0.08em; }
.chat-source {
  display: inline-block;
  margin-right: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.chat-source:hover { border-color: var(--ink); }

.chat-input {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.chat-input textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 12px 16px;
  font-size: 15.5px;
  line-height: 1.6;
  max-height: 140px;
  transition: border-color 0.2s;
}
.chat-input textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.chat-send {
  flex-shrink: 0;
  padding: 12px 28px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.82; }

/* ============================================================
   作品集管理 —— 画廊级卡片网格
   ============================================================ */

.coll-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.coll-head__title {
  font-family: var(--serifDisplay);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.coll-head__sub { font-size: 14px; color: var(--muted); letter-spacing: 0.06em; margin-top: 6px; }

.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
}
@media (min-width: 1600px) {
  .coll-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 40px; }
}
.coll-card { position: relative; }
.coll-card__body { padding: 14px 2px 0; }
.coll-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.coll-card__meta { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0.06em; }
.coll-card__ops { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.coll-card__del { color: var(--muted); }
.coll-card__del:hover { color: #c0392b; border-color: #c0392b; background: transparent; }

/* ===== 画册实体书卡片 ===== */
.coll-book {
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.14));
  transition: filter 0.35s;
}
.coll-book:hover { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.2)); }
/* 右侧书页层叠边 */
.coll-book__edge {
  position: absolute;
  top: 3px; bottom: 3px; right: -5px; width: 6px;
  background: repeating-linear-gradient(90deg, #d8d3c7 0 1px, #f7f4ec 1px 2.5px);
  border-radius: 0 3px 3px 0;
}
.coll-book__cover {
  position: absolute; inset: 0;
  border-radius: 2px 6px 6px 2px;
  background-color: var(--cbg, #fff);
  background-size: cover;
  background-position: center;
  color: var(--cink, var(--ink));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 14px 22px;
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.coll-book:hover .coll-book__cover { transform: perspective(1100px) rotateY(-9deg); }
/* 书脊（左缘压暗高光） */
.coll-book__cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 13px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05) 55%, rgba(255, 255, 255, 0.14));
  z-index: 2;
  pointer-events: none;
}
/* 有封面图时底部压暗，保证书名可读 */
.coll-book__cover.has-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.58) 100%);
}
.coll-book__brand {
  position: relative; z-index: 3;
  font-size: 8px; letter-spacing: 0.3em; opacity: 0.74;
}
.coll-book__cover.has-img .coll-book__brand { color: #fff; opacity: 0.92; }
.coll-book__tblock { position: relative; z-index: 3; }
.coll-book__t {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.coll-book__cover.has-img .coll-book__t { color: #fff; }
.coll-book__n { margin-top: 7px; font-size: 8.5px; letter-spacing: 0.32em; opacity: 0.66; }
.coll-book__cover.has-img .coll-book__n { color: #fff; opacity: 0.85; }
.coll-book__open {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  font-size: 10px; letter-spacing: 0.2em;
  background: rgba(255, 255, 255, 0.94); color: #111;
  padding: 5px 11px; border-radius: 2px;
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.25s, transform 0.25s;
}
.coll-book:hover .coll-book__open { opacity: 1; transform: none; }
/* 模板主题封面（无封面图时的书封配色与装饰） */
.coll-book--whitecube .coll-book__cover { --cbg: #fff; }
.coll-book--document .coll-book__cover { --cbg: #141414; --cink: #F2F0EA; }
.coll-book--oldsong .coll-book__cover {
  --cbg: #F2ECDD; --cink: #3A2F23;
  box-shadow: 0 0 0 1px rgba(179, 58, 43, 0.35), inset 0 0 0 4px #F2ECDD, inset 0 0 0 5px rgba(179, 58, 43, 0.5);
}
.coll-book--editorial .coll-book__t::before {
  content: '';
  display: block; width: 30px; height: 3px;
  background: #C8341F; margin-bottom: 12px;
}
.coll-book--swiss .coll-book__cover {
  --cbg: #fff;
  background-image: linear-gradient(0deg, transparent 0, transparent 100%);
}
.coll-book--swiss .coll-book__cover::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 34%; aspect-ratio: 1; background: #1226AA;
}
.coll-book--sketchbook .coll-book__cover {
  --cbg: #EFE6D4; --cink: #4A3A26;
  box-shadow: inset 0 0 0 1px #C9B892;
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(138, 110, 75, 0.07) 22px 23px);
}

/* ===== 画册翻页阅读器 ===== */
.bookv { position: fixed; inset: 0; z-index: 150; }
.bookv__mask { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.84); }
.bookv__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 18px;
}
.bookv__close {
  position: absolute; top: 14px; right: 20px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent; color: #fff; font-size: 20px;
  cursor: pointer; transition: background 0.2s;
}
.bookv__close:hover { background: rgba(255, 255, 255, 0.14); }
.bookv__book {
  position: relative;
  height: min(74vh, 112vw);
  aspect-ratio: 3 / 4;
  perspective: 2600px;
}
.bpage {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.42, 0.05, 0.22, 1);
}
.bpage.is-turned { transform: rotateY(-180deg); }
.bpage__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.bpage__face--front {
  background: var(--bpg, #fff);
  color: var(--bpink, #141414);
  border-radius: 2px 10px 10px 2px;
  box-shadow: inset 8px 0 18px -10px rgba(0, 0, 0, 0.32), 0 10px 30px -14px rgba(0, 0, 0, 0.5);
}
.bpage__face--back {
  transform: rotateY(180deg);
  background: var(--bpg2, #F5F1E6);
  border-radius: 10px 2px 2px 10px;
  box-shadow: inset -8px 0 18px -10px rgba(0, 0, 0, 0.22);
}
/* 阅读器内页封面：画廊图录式错位排版 */
.bcover {
  display: flex; flex-direction: column;
  padding: 30px 32px 26px 42px;
}
.bcover__top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--bpink, #141414) 18%, transparent);
}
.bcover__brand { font-size: 8.5px; letter-spacing: 0.32em; opacity: 0.72; }
.bcover__year { font-size: 8.5px; letter-spacing: 0.22em; opacity: 0.55; font-variant-numeric: tabular-nums; }
.bcover__mid { margin-top: auto; margin-bottom: auto; padding-right: 8%; }
.bcover__rule { width: 26px; height: 3px; background: var(--bacc, #999); margin-bottom: 22px; }
.bcover__title {
  font-family: var(--serif);
  font-size: 31px; font-weight: 600; line-height: 1.42;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.bcover__sub { margin-top: 14px; font-size: 9px; letter-spacing: 0.3em; opacity: 0.58; }
.bcover__bot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--bpink, #141414) 18%, transparent);
}
.bcover__artist { font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.18em; }
.bcover__meta { font-size: 8.5px; letter-spacing: 0.26em; opacity: 0.55; font-variant-numeric: tabular-nums; }
/* 作品页：画廊图录式 */
.bwork { display: flex; flex-direction: column; padding: 34px 34px 0 42px; }
.bwork__marks { position: absolute; inset: 0; pointer-events: none; }
.bwork__marks::before, .bwork__marks::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: color-mix(in srgb, var(--bpink, #141414) 22%, transparent);
  border-style: solid;
}
.bwork__marks::before { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.bwork__marks::after { bottom: 44px; left: 16px; border-width: 0 0 1px 1px; }
.bwork__fig {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 2px 0;
}
.bwork__fig img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, 0.35);
}
.bwork__cap {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--bpink, #141414) 20%, transparent);
}
.bwork__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.bwork__left { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.bwork__no {
  font-size: 9px; letter-spacing: 0.16em;
  color: var(--bacc, #999); font-variant-numeric: tabular-nums;
  flex: none;
}
.bwork__t {
  font-family: var(--serif);
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bwork__ten {
  font-size: 9px; letter-spacing: 0.1em; opacity: 0.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: capitalize;
}
.bwork__y { font-size: 9.5px; opacity: 0.55; font-variant-numeric: tabular-nums; flex: none; }
.bwork__right {
  font-size: 9px; letter-spacing: 0.14em; opacity: 0.6;
  text-align: right; flex: none;
}
.bwork__d {
  margin: 8px 0 0; max-width: 100%;
  font-size: 10.5px; line-height: 1.8; opacity: 0.72;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bwork__foot {
  margin-top: 12px;
  padding: 8px 0 12px;
  display: flex; justify-content: space-between;
  font-size: 7.5px; letter-spacing: 0.3em; opacity: 0.42;
  font-variant-numeric: tabular-nums;
}
/* 策展前言页：图录式长文版面 */
.bnote {
  display: flex; flex-direction: column;
  padding: 38px 40px 0 48px;
}
.bnote__head { display: flex; align-items: baseline; gap: 12px; }
.bnote__kick { font-size: 8px; letter-spacing: 0.34em; opacity: 0.55; }
.bnote__cn {
  font-family: var(--serif);
  font-size: 14px; font-weight: 600; letter-spacing: 0.42em;
}
.bnote__rule { width: 26px; height: 3px; background: var(--bacc, #999); margin: 16px 0 22px; }
.bnote__body {
  font-family: var(--serif);
  font-size: 13.5px; line-height: 2.15; letter-spacing: 0.05em;
  text-align: justify; text-indent: 2em;
  opacity: 0.9;
  overflow: hidden;
}
.bnote__sign {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}
.bnote__dash { display: inline-block; width: 26px; height: 1px; background: var(--bacc, #999); opacity: 0.7; }
.bnote__curator { font-size: 10px; letter-spacing: 0.24em; opacity: 0.72; }
.bnote .bwork__foot { margin-top: auto; }
@media (max-width: 640px) {
  .bnote { padding: 24px 22px 0 30px; }
  .bnote__body { font-size: 12px; line-height: 2.05; }
}
/* 画册编辑器：策展前言区 */
.coll-editor__hint { font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-left: 6px; }
.cnote-box { margin: 8px 0 18px; }
.cnote-box__ta {
  width: 100%;
  display: block;
  resize: vertical;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--wash, #faf9f6);
  border-radius: 4px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cnote-box__ta:focus { border-color: var(--ink); background: #fff; }
.cnote-box__bar { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.cnote-box__tip { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
/* 封底 */
.bback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.bback__brand { font-family: var(--serif); font-size: 14px; letter-spacing: 0.22em; }
.bback__rule { width: 24px; height: 2px; background: var(--bacc, #999); }
.bback__copy { font-size: 9px; letter-spacing: 0.2em; opacity: 0.55; }
/* 阅读器底部导航 */
.bookv__nav { margin-top: 20px; display: flex; align-items: center; gap: 20px; }
.bookv__btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent; color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; transition: background 0.2s;
}
.bookv__btn:hover { background: rgba(255, 255, 255, 0.14); }
.bookv__count {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px; letter-spacing: 0.3em;
  min-width: 110px; text-align: center;
}
.bookv__tip { margin-top: 12px; color: rgba(255, 255, 255, 0.42); font-size: 10px; letter-spacing: 0.14em; }
/* 阅读器模板主题（页面底/墨色/强调色/纸背面，与 PDF 端 THEMES 一致） */
.bookv--whitecube { --bpg: #FFFFFF; --bpg2: #F1EEE7; --bpink: #141414; --bacc: #8C8C8C; }
.bookv--document { --bpg: #161616; --bpg2: #1D1D1D; --bpink: #ECECE8; --bacc: #9A9A94; }
.bookv--oldsong { --bpg: #F2ECDD; --bpg2: #EAE2CE; --bpink: #3A2F23; --bacc: #B33A2B; }
.bookv--editorial { --bpg: #FFFFFF; --bpg2: #F1EEE7; --bpink: #141414; --bacc: #C8341F; }
.bookv--swiss { --bpg: #FFFFFF; --bpg2: #F1EEE7; --bpink: #111111; --bacc: #1226AA; }
.bookv--sketchbook { --bpg: #EFE6D4; --bpg2: #E7DCC6; --bpink: #4A3A26; --bacc: #8A6E4B; }
/* 阅读器内页封面装饰（与书封同款模板特征） */
.bookv--editorial .bcover__title::before {
  content: '';
  display: block; width: 34px; height: 4px;
  background: #C8341F; margin: 0 auto 16px;
}
.bookv--document .bcover {
  box-shadow: inset 0 0 0 1px #333;
}
.bookv--oldsong .bcover { box-shadow: inset 0 0 0 6px #F2ECDD, inset 0 0 0 7px rgba(179, 58, 43, 0.5); }
.bookv--sketchbook .bcover { box-shadow: inset 0 0 0 1px #C9B892; }
@media (max-width: 640px) {
  .bookv__book { height: min(66vh, 118vw); }
  .bwork { padding: 20px 18px 0 26px; }
  .bcover { padding: 20px 18px 16px 28px; }
  .bcover__title { font-size: 23px; }
  .bwork__t { font-size: 13.5px; }
  .bwork__ten { display: none; }
  .bwork__d { font-size: 10px; -webkit-line-clamp: 2; }
  .bookv__tip { display: none; }
}

/* 作品集编辑器（弹层） */
.modal__panel.coll-editor { max-width: min(94vw, 760px); max-height: 86vh; overflow-y: auto; text-align: left; padding: 32px 36px; }
.coll-editor__head { margin-bottom: 8px; }
.coll-editor__title {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.coll-editor__title:focus { outline: none; border-color: var(--ink); }
.coll-editor__sub { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 20px; }
.coll-editor__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.coll-pick {
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}
.coll-pick:hover { border-color: var(--ink); }
.coll-pick.is-on { border-color: var(--ink); border-width: 2px; }
.coll-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--wash); }
.coll-pick__title { font-size: 12px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-pick__num {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.coll-editor__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.coll-editor__count { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }


/* ---------- 编辑弹层 ---------- */

.edit-form { display: flex; flex-direction: column; gap: 14px; min-width: 420px; }
@media (max-width: 560px) { .edit-form { min-width: 0; } }

/* ============================================================
   订阅分级（Free / Pro / Max）
   ============================================================ */

/* ---------- 定价页 ---------- */

.plan-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  margin-bottom: 36px;
  background: var(--wash);
  border-left: 3px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.plan-status b { font-weight: 600; }
.plan-status--paid { background: var(--ink); color: #fff; border-left-color: #fff; }
.plan-status__hint { color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; }
.plan-status--paid .plan-status__hint { color: rgba(255,255,255,0.6); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 460px; } }

.plan-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.is-featured {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.plan-card__ribbon {
  position: absolute;
  top: -1px; right: 20px;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  border: 1px solid #fff;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  padding: 4px 12px;
}
.plan-card__en { font-size: 10.5px; letter-spacing: 0.3em; color: var(--muted); }
.is-featured .plan-card__en { color: rgba(255,255,255,0.55); }
.plan-card__name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.06em; margin-top: 8px; }
.plan-card__tagline { font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; min-height: 18px; }
.is-featured .plan-card__tagline { color: rgba(255,255,255,0.6); }
.plan-card__price { margin-top: 22px; display: flex; align-items: baseline; gap: 4px; }
.plan-card__price b { font-family: var(--serif); font-size: 38px; font-weight: 600; }
.plan-card__price span { font-size: 13px; color: var(--muted); }
.is-featured .plan-card__price span { color: rgba(255,255,255,0.55); }
.plan-card__year { font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; margin-top: 2px; min-height: 18px; }
.plan-card__features { margin: 24px 0 28px; flex: 1; }
.plan-card__features li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  border-top: 1px solid var(--line);
}
.plan-card__features li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 8px; height: 1px;
  background: var(--muted);
}
.is-featured .plan-card__features li { border-top-color: rgba(255,255,255,0.18); }
.is-featured .plan-card__features li::before { background: rgba(255,255,255,0.6); }
.plan-card__btn { width: 100%; justify-content: center; }
.is-featured .plan-card__btn.btn--solid { background: #fff; color: var(--ink); border-color: #fff; }
.plan-card__btn:disabled { opacity: 0.45; cursor: default; }

/* 兑换码 */
.redeem-box {
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 40px;
}
.redeem-box__label { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.redeem-box__title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.06em; margin: 6px 0 18px; }
.redeem-box__row { display: flex; gap: 12px; max-width: 560px; }
.redeem-box__row input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  background: #fff;
}
.redeem-box__row input:focus { outline: none; border-color: var(--ink); }
.redeem-box__hint { margin-top: 12px; font-size: 12.5px; color: #8a6d3b; letter-spacing: 0.04em; min-height: 18px; }

/* 主理人发码 */
.admin-box { border: 1px dashed var(--ink); padding: 28px 32px; margin-bottom: 40px; }
.admin-box__row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-box__row select, .admin-box__row input {
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}
.admin-box__row input[type="number"] { width: 90px; }
.admin-box__row input[placeholder] { flex: 1; min-width: 180px; }
.admin-box__list { margin-top: 20px; max-height: 280px; overflow-y: auto; border-top: 1px solid var(--line); }
.adm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.adm-row__code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.adm-row__meta { flex: 1; color: var(--muted); }
.adm-row__copy { font-size: 11.5px; letter-spacing: 0.12em; color: var(--ink); border: 1px solid var(--line); padding: 5px 12px; }
.adm-row__copy:hover { border-color: var(--ink); }

/* ---------- 统一升级弹框 ---------- */

.modal__panel.upgrade-panel { max-width: min(92vw, 540px); text-align: left; padding: 40px 40px 32px; }
.upgrade-panel__label { font-size: 10.5px; letter-spacing: 0.32em; color: var(--muted); text-transform: uppercase; }
.upgrade-panel__title { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.05em; margin-top: 8px; }
.upgrade-panel__desc { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.upgrade-panel__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 22px; }
.upgrade-plan { border: 1px solid var(--line); padding: 18px 16px; }
.upgrade-plan.is-featured { border: 1.5px solid var(--ink); }
.upgrade-plan__name { font-size: 13px; letter-spacing: 0.08em; font-weight: 600; }
.upgrade-plan__price { margin-top: 8px; }
.upgrade-plan__price b { font-family: var(--serif); font-size: 26px; }
.upgrade-plan__price span { font-size: 11.5px; color: var(--muted); }
.upgrade-plan__year { font-size: 11px; color: var(--muted); margin-top: 2px; }
.upgrade-panel__cta { width: 100%; justify-content: center; }
.upgrade-panel__redeem {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.upgrade-panel__redeem:hover { color: var(--ink); border-color: var(--ink); }
.upgrade-panel__soon { margin-top: 14px; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* 水印确认弹框 */
.modal__panel.wm-panel { max-width: min(92vw, 460px); text-align: left; padding: 40px 36px 32px; }
.wm-panel__label { font-size: 10.5px; letter-spacing: 0.32em; color: var(--muted); }
.wm-panel__title { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: 0.05em; margin-top: 8px; }
.wm-panel__desc { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin: 14px 0 26px; }
.wm-panel__ops { display: flex; gap: 12px; }
.wm-panel__ops .btn { flex: 1; justify-content: center; }

/* ---------- 我的页订阅横条 ---------- */

.sub-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin: 8px 0 32px;
  border: 1px solid var(--line);
  background: var(--wash);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.sub-banner:hover {
  border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.sub-banner__name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.06em; }
.sub-banner__name span { font-family: var(--sans); font-size: 10px; letter-spacing: 0.26em; color: var(--muted); font-weight: 400; margin-left: 8px; }
.sub-banner__desc { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-top: 3px; }
.sub-banner__cta { font-size: 12px; letter-spacing: 0.18em; white-space: nowrap; }
.sub-banner--paid { background: var(--ink); border-color: var(--ink); color: #fff; }
.sub-banner--paid:hover { border-color: var(--ink); opacity: 0.92; }
.sub-banner--paid .sub-banner__name span { color: rgba(255,255,255,0.55); }
.sub-banner--paid .sub-banner__desc, .sub-banner--paid .sub-banner__cta { color: rgba(255,255,255,0.75); }

/* ---------- 作品集：档位徽标 + 模板选择器 ---------- */

.coll-head { flex-wrap: wrap; margin-bottom: 30px; }
.coll-head__right { display: flex; align-items: center; gap: 14px; }
.coll-plan-badge {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.coll-plan-badge:hover { color: var(--ink); border-color: var(--ink); }
.coll-plan-badge--pro, .coll-plan-badge--max { background: var(--ink); color: #fff; border-color: var(--ink); }

.coll-editor__label {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 12px;
}
.tpl-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
@media (max-width: 600px) { .tpl-picker { grid-template-columns: repeat(2, 1fr); } }
.tpl-opt {
  position: relative;
  border: 1px solid var(--line);
  padding: 16px 14px;
  cursor: pointer;
  min-height: 118px;
  transition: border-color 0.2s, background 0.2s;
}
.tpl-opt:hover { border-color: var(--ink); }
.tpl-opt.is-on { border: 1.5px solid var(--ink); }
.tpl-opt.is-locked { cursor: pointer; background: var(--wash); }
.tpl-opt.is-locked:hover { border-color: var(--muted); }
.tpl-opt__top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  margin-bottom: 10px;
}
.tpl-opt__tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 2px 7px;
  border: 1px solid currentColor;
}
.tpl-opt__tag--pro { color: var(--ink); }
.tpl-opt__tag--max { background: var(--ink); color: #fff; border-color: var(--ink); }
.tpl-opt__soon { font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); }
.tpl-opt__lock { margin-left: auto; font-size: 11px; opacity: 0.55; }
.tpl-opt__en { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
.tpl-opt__name { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0.05em; margin-top: 3px; }
.tpl-opt__desc { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.is-locked .tpl-opt__en, .is-locked .tpl-opt__name, .is-locked .tpl-opt__desc { opacity: 0.6; }

/* ---------- 登录弹层 ---------- */

.modal { position: fixed; inset: 0; z-index: 100; animation: cyg-fade-in 0.2s var(--ease-out); }
.modal[hidden] { display: none; }
.modal__mask { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.44); backdrop-filter: blur(2px); }
.modal__panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 44px 48px 36px;
  max-width: min(92vw, 420px);
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: cyg-slide-up 0.3s var(--ease-out);
}
.modal__close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 26px;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.modal__close:hover { color: var(--ink); transform: rotate(90deg); }

.login-panel__kicker { font-size: 11px; letter-spacing: 0.32em; color: var(--muted); margin-bottom: 10px; }
.login-panel__title { font-family: var(--serifDisplay); font-size: 22px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 26px; }
.login-qr__box {
  width: 216px; height: 216px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.login-qr__box:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.login-qr__box img { width: 100%; height: 100%; object-fit: cover; }
.login-qr__loading { font-size: 13px; color: var(--muted); padding: 0 16px; }
.login-qr__refresh {
  font-size: 13px;
  border: 1px solid var(--ink);
  padding: 8px 22px;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: #fff;
}
.login-qr__tip { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 20px; }
.login-panel__note { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; line-height: 1.9; }

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 11px 26px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-md);
  animation: cyg-fade-up 0.3s var(--ease-out);
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 860px) {
  .app-header { padding: 0 16px; gap: 16px; }
  .app-tabs { gap: 20px; }
  .app-tabs a { font-size: 13px; letter-spacing: 0.08em; }
  .promo-link { display: none; }
  .user-chip span { display: none; }
  .page { padding: 26px 16px 60px; }
  .imm__info { padding: 44px 20px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .imm__img { max-width: 92vw; }
}
