/* ==========================================================================
   04 · 视图：登录（玻璃拟态）、我的、通知、管理，以及响应式
   ========================================================================== */

/* ---------------- 登录（玻璃拟态 · 常暗） ---------------- */
.auth {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: #070708; overflow: hidden;
  color: #fff; font-family: var(--sans);
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(24px); }
.orb-blue {
  width: 310px; height: 310px;
  left: calc(50% - 376px); top: -46px;
  background: radial-gradient(circle at 38% 34%, #4b86ff 0%, #2a63f0 42%, #1a45c4 68%, rgba(26, 69, 196, 0) 76%);
}
.orb-orange {
  width: 344px; height: 344px;
  left: calc(50% + 36px); bottom: -176px;
  background: radial-gradient(circle at 50% 40%, #ffc488 0%, #f79045 40%, #e46f2c 66%, rgba(228, 111, 44, 0) 76%);
}
.auth-noise {
  position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.055'/></svg>");
}
.auth-card {
  position: relative; z-index: 2;
  width: min(420px, calc(100vw - 40px));
  padding: 34px 32px 30px; border-radius: 16px;
  background: linear-gradient(rgba(255, 255, 255, .085), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .115);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: popIn .5s var(--ease-out) both;
}
.auth-card h1 {
  margin: 6px 0 32px; text-align: center; font-family: var(--sans);
  font-size: 29px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.afield { margin-bottom: 22px; }
.afield label { display: block; font-size: 14.5px; font-weight: 600; color: #fff; margin-bottom: 10px; letter-spacing: .02em; }
.afield input {
  width: 100%; height: 56px; border-radius: 8px; border: 0;
  background: rgba(255, 255, 255, .07); padding: 0 18px;
  font-size: 15px; color: #fff; outline: none; font-family: var(--sans);
  transition: background-color .18s, box-shadow .18s;
}
.afield input::placeholder { color: rgba(255, 255, 255, .42); }
.afield input:focus { background: rgba(255, 255, 255, .11); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .30); }
.auth-err { height: 22px; margin: 2px 0 6px; text-align: center; font-size: 12.5px; font-weight: 500; color: #ff9384; line-height: 22px; overflow: hidden; }
.abtn-main {
  width: 100%; height: 56px; border-radius: 8px; background: #fff; color: #0b0b0c;
  font-size: 16px; font-weight: 700; letter-spacing: .18em; transition: transform .12s, background-color .15s;
}
.abtn-main:hover { background: #f2f2f2; }
.abtn-main:active { transform: scale(.99); }
.abtn-main[disabled] { opacity: .6; pointer-events: none; }
.abtn-row { display: flex; gap: 14px; margin-top: 34px; }
.abtn-row button {
  flex: 1; height: 46px; border-radius: 6px;
  background: rgba(255, 255, 255, .075); color: rgba(255, 255, 255, .72);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: background-color .15s, color .15s;
}
.abtn-row button:hover { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.abtn-row button:active { transform: scale(.99); }

/* ---------------- 页面容器 ---------------- */
.page { max-width: 960px; margin: 0 auto; padding: 40px var(--gut) 80px; }
.page.wide { max-width: var(--max); }
.page-head { margin-bottom: 30px; }
.page-head .kicker { display: block; margin-bottom: 10px; }
.page-head h1 { font-family: var(--serif); font-size: var(--fs-h1); font-weight: 600; margin: 0; letter-spacing: -.02em; line-height: 1.2; }
.page-head p { margin: 10px 0 0; color: var(--ink-3); font-size: 13.5px; max-width: 52ch; line-height: 1.7; }

/* ---------------- 我的 ---------------- */
.profile {
  display: flex; gap: 22px; align-items: center; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2);
  position: relative; overflow: hidden;
}
.profile::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 1px solid var(--line-2); pointer-events: none;
}
.profile .who b { font-family: var(--serif); font-size: 26px; font-weight: 600; display: block; letter-spacing: .01em; }
.profile .who span { font-size: 12px; color: var(--ink-4); }
.profile .stat-row { display: flex; gap: 26px; margin-top: 14px; flex-wrap: wrap; }
.profile .stat-row div { text-align: left; }
.profile .stat-row b { font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 700; display: block; line-height: 1.2; font-family: var(--serif); }
.profile .stat-row span { font-size: 10.5px; color: var(--ink-4); letter-spacing: .05em; }

.seg {
  display: inline-flex; gap: 4px; padding: 4px; margin: 30px 0 24px;
  border-radius: var(--r-pill); background: var(--paper-3);
}
.seg button {
  padding: 9px 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  color: var(--ink-3); transition: .18s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--paper-2); color: var(--ink); box-shadow: var(--sh-1); }
.seg button em { font-style: normal; font-size: 10.5px; margin-left: 5px; color: var(--ink-4); font-family: var(--mono); }
.seg button.on em { color: var(--seal); }

.panel-box {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2);
  padding: 22px; margin-bottom: 16px;
}
.panel-box h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.panel-box p.hint { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
.rowline { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rowline:last-child { border-bottom: 0; }
.rowline .grow { flex: 1; min-width: 0; }
.rowline b { font-size: 14px; font-weight: 600; display: block; }
.rowline span { font-size: 11.5px; color: var(--ink-4); }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.segmented button { padding: 9px 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: .16s; }
.segmented button:hover { color: var(--ink); background: var(--paper-3); }
.segmented button.on { background: var(--ink); color: var(--paper-2); }

.codegrid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.codegrid code {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em;
  padding: 7px 12px; border-radius: var(--r-sm); background: var(--paper-3); color: var(--ink-2);
  border: 1px dashed var(--line-strong); cursor: pointer; transition: .16s;
}
.codegrid code:hover { border-color: var(--seal); color: var(--seal); }

/* ---------------- 通知 ---------------- */
.notif {
  display: flex; gap: 14px; padding: 18px 16px; width: 100%; text-align: left; align-items: flex-start;
  border-bottom: 1px solid var(--line-2); border-radius: var(--r-md); transition: background-color .16s;
}
.notif:hover { background: var(--paper-2); }
.notif.unread { background: color-mix(in srgb, var(--seal-soft) 42%, transparent); }
.notif.unread:hover { background: var(--seal-soft); }
.notif .txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.notif .txt b { font-weight: 700; color: var(--ink); }
.notif .txt em { font-style: normal; color: var(--ink-3); }
.notif .when { font-size: 11px; color: var(--ink-4); margin-top: 5px; font-variant-numeric: tabular-nums; }
.notif .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--seal); flex: 0 0 auto; margin-top: 9px; }

/* ---------------- 管理 ---------------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--paper-2); }
.kpi b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: 10.5px; color: var(--ink-4); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

/* ---------------- 响应式 ---------------- */
@media (min-width: 720px) {
  .feed { padding: 26px 0 70px; }
  .dl { grid-template-columns: repeat(4, 1fr); }
  .related { grid-template-columns: repeat(3, 1fr); }
  .hero-media { aspect-ratio: 21 / 9; }
}

@media (min-width: 900px) {
  .tabbar { display: none !important; }
  .sheet { background: rgba(16, 13, 10, .5); padding: 46px 24px; align-items: center; justify-content: center; animation: fadeIn .2s both; }
  .sheet-inner {
    max-width: 820px; width: 100%; max-height: 88vh; border-radius: var(--r-xl);
    overflow: hidden; box-shadow: var(--sh-3); animation: popIn .3s var(--ease-out) both;
    border: 1px solid var(--line);
  }
  .sheet-head { padding: 16px 28px 14px; }
  .sheet-body { padding: 28px 34px 34px; }
  .sheet-foot { padding: 16px 28px; }
  .gallery.g2 { grid-template-columns: 1fr 1fr; }
  .head-search { max-width: 520px; }
  .hero { margin-top: 28px; }
}

@media (min-width: 1180px) {
  :root { --gut: 32px; }
  .mast-inner { padding: 18px var(--gut); }
}

@media (max-width: 899px) {
  :root { --gut: 16px; --gap: 12px; }
  body { padding-bottom: calc(70px + var(--sb)); }
  .tabbar { display: flex; }
  .head-upload { display: none; }
  .head-actions .btn span { display: none; }
  .head-actions .btn { width: 44px; padding: 0; margin-left: 4px; }
  .mast-inner { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .brand-seal { width: 36px; height: 36px; font-size: 20px; }
  .brand-text b { font-size: 17px; }
  .brand-text span { display: none; }
  .head-search .head-kbd { display: none; }

  .hero { margin-top: 16px; border-radius: var(--r-lg); }
  .hero-media { aspect-ratio: 1 / 1; }
  .hero-body { padding: 22px 20px; padding-right: 84px; gap: 10px; }
  .hero h2 { font-size: 27px; }
  .hero p { -webkit-line-clamp: 2; font-size: 13.5px; }
  .hero-go { width: 50px; height: 50px; right: 20px; bottom: 22px; }
  .hero-go svg { width: 19px; height: 19px; }

  .toolbar { padding-top: 22px; gap: 12px; }
  .toolbar .sorts { gap: 16px; }
  .toolbar .count { display: none; }
  .view-toggle { margin-left: auto; }
  .feed { padding: 16px 0 24px; }
  .page { padding: 26px var(--gut) 40px; }
  .page-head h1 { font-size: 26px; }
  .profile { padding: 20px; gap: 16px; }
  .profile .who b { font-size: 22px; }
  .profile .stat-row { gap: 20px; }
  .foot { display: none; }
  .seg { margin: 22px 0 18px; }
  .panel-box { padding: 18px; }
  .notif { padding: 16px 12px; }
}

@media (max-width: 620px) {
  .brand-text { display: none; }
  .head-actions [data-theme-toggle] { display: none; }
  .card-body { padding: 13px 14px 14px; }
  .card h3 { font-size: 15.5px; }
  .related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 22px 24px; border-radius: 14px; }
  .auth-card h1 { font-size: 24px; margin-bottom: 26px; }
  .afield input, .abtn-main { height: 52px; }
  .abtn-row { margin-top: 26px; gap: 10px; }
  .abtn-row button { height: 44px; font-size: 13px; }
  .orb-blue { width: 220px; height: 220px; left: calc(50% - 230px); top: -80px; }
  .orb-orange { width: 240px; height: 240px; left: calc(50% + 10px); bottom: -140px; }
}


/* ==========================================================================
   登录页（纸 + 鎏金，跟主界面同一套）
   ========================================================================== */
.auth-page {
  position: fixed; inset: 0; z-index: 60; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center; gap: clamp(30px, 6vw, 96px);
  padding: clamp(28px, 7vh, 90px) clamp(24px, 7vw, 120px);
}
.auth-brand { max-width: 560px; }
.auth-seal {
  width: 74px; height: 74px; border-radius: 10px;
  display: grid; place-items: center;
  border: 2px solid var(--seal); color: var(--seal);
  font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 5px var(--paper-2), inset 0 0 0 6px var(--seal-line);
  margin-bottom: 26px;
}
.auth-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.32; margin: 0; color: var(--ink);
  text-wrap: balance;
}
.auth-lede {
  font-size: clamp(13.5px, 1.15vw, 16px); line-height: 1.95; color: var(--ink-2);
  margin: 0; max-width: 34em;
}
.auth-foot {
  display: flex; align-items: center; gap: 12px; margin-top: 34px;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze);
}
.auth-foot i { width: 34px; height: 1px; background: var(--bronze-line); display: block; }

.auth-form-card {
  position: relative; justify-self: end; width: min(420px, 100%);
  padding: 34px 34px 28px; border-radius: var(--r-xl);
  background: var(--paper-2); border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.auth-form-card::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  --g: var(--bronze-line);
  background-image:
    linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g)),
    linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g)),
    linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g)),
    linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g));
  background-repeat: no-repeat;
  background-size: 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}
.auth-form-card h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 6px 0 24px;
  letter-spacing: -.01em; color: var(--ink);
}
.auth-form-card .afield { margin-bottom: 16px; }
.auth-form-card .afield label {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink-3);
  margin-bottom: 7px; letter-spacing: .06em;
}
.auth-form-card .afield label em { font-style: normal; font-weight: 400; opacity: .8; }
.auth-form-card .afield input {
  width: 100%; height: 48px; border-radius: var(--r-md); font-size: 15px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 0 14px; outline: none; font-family: var(--sans);
  transition: border-color .16s, box-shadow .16s;
}
.auth-form-card .afield input:focus { border-color: var(--bronze-2); box-shadow: 0 0 0 3px var(--bronze-soft); }
.auth-form-card .afield input::placeholder { color: var(--ink-4); }
.auth-err { min-height: 18px; font-size: 12.5px; color: var(--seal); margin: 6px 0 10px; line-height: 1.6; }
.auth-submit { width: 100%; height: 52px; font-size: 15px; letter-spacing: .18em; border-radius: var(--r-pill); }
.auth-links { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12px; }
.auth-links span { flex: 1; }
.auth-links button { color: var(--ink-3); padding: 4px 0; transition: color .15s; }
.auth-links button:hover { color: var(--bronze); }

@media (max-width: 899px) {
  .auth-page { grid-template-columns: 1fr; align-content: start; padding: 46px 22px 40px; gap: 26px; }
  .auth-brand { max-width: none; }
  .auth-seal { width: 56px; height: 56px; font-size: 30px; margin-bottom: 16px; border-radius: 8px; }
  .auth-title { font-size: 30px; }
  .auth-lede { font-size: 13px; line-height: 1.8; }
  .auth-foot { margin-top: 18px; }
  .auth-form-card { justify-self: stretch; width: auto; padding: 26px 22px 22px; }
  .auth-form-card::after { display: none; }
}

/* 登录页：回门厅的出口 */
.auth-back {
  display: inline-block; margin-top: 20px; font-size: 12.5px; letter-spacing: .08em;
  color: var(--ink-3); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .18s, border-color .18s;
}
.auth-back:hover { color: var(--ink); border-bottom-color: var(--bronze-line); }
/* 视频播放框 */
.videobox { margin: 18px 0; border-radius: 12px; overflow: hidden; background: #12100E; }
.videobox video { display: block; width: 100%; max-height: 70vh; background: #000; }
.videometa { padding: 8px 12px; font-size: 11.5px; color: rgba(255,255,255,.55); letter-spacing: .02em; }

/* 色板上的 PANTONE 近似标签 */
.sw { flex-direction: column; gap: 3px; }
.sw-pan {
  font-style: normal; font-size: 10.5px; letter-spacing: .01em;
  color: var(--ink-3); white-space: nowrap; opacity: .78;
}
/* 回收站行：长标题不再把按钮挤出屏幕 */
.trash-row { min-width: 0; }
.trash-row .grow { min-width: 0; flex: 1 1 auto; }
.trash-row .grow b {
  display: block; min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px;
}
.trash-row .grow span { display: block; font-size: 11px; color: var(--ink-3); }
.trash-row .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .trash-row { gap: 8px; padding: 7px 8px; }
  .trash-row .btn-sm { padding: 5px 8px; font-size: 11px; }
  .trash-thumb { width: 38px; height: 30px; }
}
/* 目录条（多级） */
.folderbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 0 12px; border-bottom: 1px dashed var(--line-2); margin-bottom: 14px;
}
.fb-crumbs { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.fcrumb {
  border: 0; background: none; padding: 4px 6px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-3); font-family: inherit;
}
.fcrumb:hover { background: var(--paper-3); color: var(--ink); }
.fcrumb.on { color: var(--ink); font-weight: 600; }
.fsep { color: var(--ink-4); font-size: 11px; }
.fb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fold-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; color: var(--ink-2); font-family: inherit;
  transition: border-color .16s, color .16s, background .16s;
}
.fold-pill svg { width: 14px; height: 14px; opacity: .55; }
.fold-pill:hover { border-color: var(--bronze); color: var(--ink); }
.fold-pill s { text-decoration: none; font-size: 10.5px; color: var(--ink-4); }
.fold-add {
  border: 1px dashed var(--line); background: none; border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; font-family: inherit;
}
.fold-add:hover { border-color: var(--bronze); color: var(--bronze); }
.fb-ops { display: flex; gap: 6px; margin-left: auto; }
.fb-op {
  border: 0; background: none; font-size: 11.5px; color: var(--ink-3);
  cursor: pointer; padding: 3px 6px; border-radius: 5px; font-family: inherit;
}
.fb-op:hover { background: var(--paper-3); color: var(--ink); }
.fb-op.danger:hover { color: var(--seal); }
/* 目录相关按钮：任何视口都保证够大（审计要求高 >=34 / 宽 >=28） */
.fcrumb { min-height: 34px; padding: 8px 8px; display: inline-flex; align-items: center; }
.fold-pill { min-height: 34px; }
.fold-add { min-height: 34px; }
.fb-op { min-height: 34px; padding: 7px 8px; }
@media (max-width: 900px) {
  /* 手机上再放宽到 44px */
  .fcrumb { min-height: 44px; padding: 10px 10px; }
  .fold-pill { min-height: 44px; padding: 8px 14px; }
  .fold-add { min-height: 44px; padding: 8px 14px; }
  .fb-op { min-height: 44px; padding: 8px 10px; }
}
@media (max-width: 640px) {
  .folderbar { gap: 6px; padding: 8px 0 10px; }
  .fold-pill { font-size: 12px; }
  .fb-ops { margin-left: 0; width: 100%; }
}
/* 编辑器：归到目录 */
#e-folder .ef-sel {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); font-size: 13.5px; font-family: inherit;
}

/* AI 卡片：材料成分 + 注意事项 */
.ai-mat { margin: 8px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }
.ai-mat em {
  font-style: normal; font-size: 10.5px; letter-spacing: .08em;
  color: var(--bronze); margin-right: 7px;
}
.ai-cautions {
  margin: 8px 0 0; padding: 0 0 0 2px; list-style: none;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
}
.ai-cautions li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.ai-cautions li::before {
  content: '⚠'; position: absolute; left: 0; color: var(--seal); font-size: 11px; opacity: .75;
}


/* 视频卡片：播放角标 */
.card-media { position: relative; }
.card-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(12, 11, 9, .55); color: #fff;
  display: grid; place-items: center; font-size: 15px; padding-left: 3px;
  backdrop-filter: blur(6px); pointer-events: none;
}

/* 最近看过 */
.recent-row {
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
  padding: 2px 0 10px; touch-action: pan-x; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.recent-row::-webkit-scrollbar { height: 6px; }
.recent-item {
  flex: 0 0 auto; width: 108px; border: 0; background: none; padding: 0;
  cursor: pointer; text-align: left; scroll-snap-align: start; font-family: inherit;
}
.recent-item img, .recent-no {
  display: block; width: 108px; height: 108px; border-radius: 10px;
  object-fit: cover; background: var(--paper-3); border: 1px solid var(--line-2);
}
.recent-no { display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--ink-4); }
.recent-t {
  margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: var(--ink-2);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.recent-item:hover img, .recent-item:hover .recent-no { border-color: var(--bronze); }

/* 图片兜底与淡入 */
img.img-broken {
  background: var(--paper-3);
  object-fit: contain !important;
}
img.img-in {
  animation: nb-img-in .32s ease both;
}
@keyframes nb-img-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  img.img-in { animation: none; }
}

/* 色条（按颜色找参考） */
.colorbar {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding: 2px 0 14px; margin-top: -4px;
  touch-action: pan-x; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.colorbar::-webkit-scrollbar { display: none; }
.cchip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink-2);
  font: 12px/1 "Noto Sans SC", system-ui, sans-serif; letter-spacing: .04em;
  transition: border-color .18s, color .18s, background .18s;
}
.cchip i {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.cchip em { font-style: normal; color: var(--ink-4); font-size: 11px; }
.cchip:hover { border-color: var(--bronze); color: var(--bronze); }
.cchip.on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.cchip.on em { color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .cchip { min-height: 36px; padding: 0 12px; } }

/* ==========================================================================
   并排对比 / 参考板 / 详情翻页
   ========================================================================== */
/* ---- 对比 ---- */
.cmp-ov {
  position: fixed; inset: 0; z-index: 9000; background: rgba(21,20,15,.86);
  display: flex; align-items: stretch; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 14px;
}
.cmp-in {
  width: min(1400px, 100%); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.7);
}
.cmp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex: 0 0 auto;
}
.cmp-head b { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; }
.cmp-body {
  flex: 1 1 auto; min-height: 0; display: flex; gap: 10px; padding: 12px;
  overflow-x: auto; overflow-y: hidden;
}
.cmp-col {
  margin: 0; flex: 1 1 0; min-width: 240px; display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--paper-2);
}
.cmp-col img {
  flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; object-fit: contain;
  background: var(--paper-3); display: block;
}
.cmp-col figcaption {
  flex: 0 0 auto; padding: 9px 11px; border-top: 1px solid var(--line-2); background: var(--paper);
}
.cmp-col figcaption b { display: block; font-size: 13px; line-height: 1.4; }
.cmp-col figcaption span { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-4); }

/* ---- 参考板 ---- */
.board-page { padding: 0 0 40px; }
.board-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line-2);
}
.board-bar .muted { flex: 1 1 auto; }
.board-sheet {
  max-width: 1180px; margin: 22px auto 0; padding: 0 18px;
}
.board-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px;
}
.board-head h1 { font-family: var(--serif); font-size: 30px; margin: 6px 0 0; letter-spacing: -.01em; }
.board-meta { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.board-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.board-cell {
  margin: 0; position: relative; border: 1px solid var(--line-2); border-radius: 10px;
  overflow: hidden; background: var(--paper-2); break-inside: avoid;
}
.board-cell img { width: 100%; height: 200px; object-fit: cover; display: block; }
.board-no {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font: 11px/1 "Noto Sans SC", system-ui, sans-serif; letter-spacing: .1em;
  background: rgba(255,255,255,.86); color: var(--ink); padding: 4px 7px; border-radius: 5px;
}
.board-cell figcaption { padding: 9px 11px 11px; }
.board-cell figcaption b { display: block; font-size: 13px; line-height: 1.45; font-family: var(--serif); }
.board-cell figcaption span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--ink-4); line-height: 1.5; }
.board-foot {
  margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line-2);
  font-size: 11px; color: var(--ink-4); letter-spacing: .08em;
}

/* ---- 详情里的上一张/下一张 ---- */
.pnav {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 10px 4px 2px;
}

/* ---- 打印：A3 横版，去掉一切界面 ---- */
@media print {
  @page { size: A3 landscape; margin: 12mm; }
  body { background: #fff !important; }
  .tabbar, .topbar, .board-bar, .fab, .sel-bar, #nb-back, #nb-share-sec, .pnav { display: none !important; }
  .board-sheet { max-width: none; margin: 0; padding: 0; }
  .board-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .board-cell { border: 1px solid #ccc; }
  .board-cell img { height: 62mm; }
  .board-head h1 { font-size: 26pt; }
  .cmp-ov { display: none !important; }
}
@media (max-width: 900px) {
  .cmp-body { flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .cmp-col { min-width: 0; flex: 0 0 auto; }
  .cmp-col img { max-height: 46vh; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   图上标注
   ========================================================================== */
.anno-wrap { position: relative; display: block; line-height: 0; }
.anno-wrap > img { width: 100%; display: block; }
.anno-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.anno-btn {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  font: 11px/1 "Noto Sans SC", system-ui, sans-serif; letter-spacing: .08em;
  padding: 7px 10px; min-height: 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: rgba(21,20,15,.55); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s;
}
.anno-wrap:hover .anno-btn, .anno-btn:focus-visible { opacity: 1; }
@media (hover: none) { .anno-btn { opacity: .92; } }

.anno-ov {
  position: fixed; inset: 0; z-index: 9500; background: rgba(15,14,11,.92);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.anno-in {
  width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 14px; overflow: hidden;
}
.anno-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid var(--line-2); flex: 0 0 auto;
}
.anno-bar b { font-family: var(--serif); font-size: 14px; }
.anno-bar .muted { font-size: 11.5px; color: var(--ink-4); flex: 1 1 auto; }
.anno-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 10px; }
.anno-stage img { max-width: 100%; max-height: 68vh; display: block; border-radius: 8px; }
.anno-canvas {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  touch-action: none; cursor: crosshair;
}
@media (max-width: 900px) {
  .anno-stage img { max-height: 58vh; }
  .anno-bar .muted { display: none; }
}
.cchip-sep { flex: 0 0 auto; width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; align-self: center; }

/* ==========================================================================
   详情弹层：桌面加宽 + 全屏切换；相似推荐紧凑化
   ========================================================================== */
@media (min-width: 900px) {
  /* 桌面：变成一张大一点的浮层卡片，而不是整页铺满 */
  #sheet-post {
    align-items: center;
    justify-content: center;
    padding: 3vh 0;
    background: rgba(12, 11, 9, .55);
  }
  #sheet-post .sheet-inner {
    width: min(1180px, 94vw);
    max-width: min(1180px, 94vw);   /* 压掉通用 .sheet-inner 的 820px */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-2);
  }
  /* 全屏模式：铺满视口，图能看到最大 */
  #sheet-post.is-full {
    padding: 0;
    background: var(--paper);
  }
  #sheet-post.is-full .sheet-inner {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  #sheet-post.is-full .sheet-body {
    padding-left: max(24px, calc((100vw - 1180px) / 2));
    padding-right: max(24px, calc((100vw - 1180px) / 2));
  }
  /* 大图在宽屏下别再被压成一条 */
  #sheet-post .gallery img {
    max-height: 72vh;
    object-fit: contain;
  }
  #sheet-post.is-full .gallery img {
    max-height: 84vh;
  }
}

/* ---- 相似参考：紧凑小卡，不再抢版面 ---- */
.sim-box { margin: 26px 0 6px; }
.sim-head {
  font: 11px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .2em; color: var(--ink-4);
  padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px;
}
.sim-row {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 6px; touch-action: pan-x; scrollbar-width: none;
}
.sim-row::-webkit-scrollbar { display: none; }
.sim-item {
  flex: 0 0 auto; width: 84px; border: 0; background: none; padding: 0; cursor: pointer;
  text-align: left; font-family: inherit;
}
.sim-item img, .sim-no {
  display: block; width: 84px; height: 84px; border-radius: 8px; object-fit: cover;
  background: var(--paper-3); border: 1px solid var(--line-2);
}
.sim-no { display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--ink-4); }
.sim-t {
  display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.35; color: var(--ink-3);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sim-item:hover img { border-color: var(--bronze); }
/* 非首页的统一返回按钮（左上角，固定） */
#nb-page-back {
  position: fixed;
  left: 14px;
  top: calc(14px + env(safe-area-inset-top));
  z-index: 60;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: rgba(21, 20, 15, .86); color: #F3EDE1;
  font: 13px/1 "Noto Sans SC", system-ui, sans-serif; letter-spacing: .04em;
  text-decoration: none; box-shadow: 0 8px 26px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .15s, background .18s;
}
#nb-page-back:hover { background: rgba(21, 20, 15, .97); }
#nb-page-back:active { transform: scale(.97); }
html[data-theme="dark"] #nb-page-back { background: rgba(240, 235, 225, .92); color: #15140F; }
@media (max-width: 900px) {
  #nb-page-back { min-height: 42px; padding: 0 14px; font-size: 13.5px; }
}
/* 我的页面顶部留出按钮的位置 */
.page > .page-head { padding-top: 4px; }
@media (max-width: 900px) {
  #view > .page > .page-head { margin-top: 44px; }
}

/* ==========================================================================
   本期精选：整幅编辑式横条
   ========================================================================== */
#feat-slot { margin: 26px 0 8px; }
.nb-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0; border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink); color: var(--paper);
  text-decoration: none; border: 1px solid var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.nb-feat:hover { transform: translateY(-2px); box-shadow: 0 30px 70px -34px rgba(0,0,0,.65); }
.nb-feat-img {
  display: block; position: relative;
  aspect-ratio: 16 / 10;
  min-height: 280px; overflow: hidden; background: var(--ink-2);
}
.nb-feat-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.02) contrast(1.02);
}
.nb-feat-txt {
  display: flex; flex-direction: column; justify-content: center;
  gap: 12px; padding: 40px 42px;
}
.nb-feat-k {
  font: 10.5px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .28em; color: var(--bronze-2, #c9a35f);
}
.nb-feat-h {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 3.1vw, 38px); line-height: 1.22; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-feat-m {
  font: 11.5px/1.7 "Noto Sans SC", system-ui, sans-serif;
  color: rgba(251,248,242,.55); letter-spacing: .04em;
}
.nb-feat-go {
  margin-top: 6px; font: 12px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .14em; color: var(--paper);
  border-bottom: 1px solid rgba(251,248,242,.35); padding-bottom: 6px; align-self: flex-start;
}
.nb-feat:hover .nb-feat-go { border-bottom-color: var(--bronze-2, #c9a35f); color: var(--bronze-2, #c9a35f); }

@media (max-width: 900px) {
  .nb-feat { grid-template-columns: 1fr; }
  .nb-feat-img { min-height: 210px; max-height: 44vh; }
  .nb-feat-txt { padding: 24px 22px 28px; gap: 9px; }
  .nb-feat-h { font-size: 22px; -webkit-line-clamp: 2; }
}

/* 空状态图标：SVG 比文字符号更整 */
.empty .mark svg { width: 44px; height: 44px; opacity: .5; stroke-width: 1.4; }

/* ==========================================================================
   分区横线（鎏金古铜）
   设计判断：只在「大区块之间」加一道，不给每个标题都加。
   原因：分节线的作用是切段，不是装饰；每级标题都加会变成表格。
   ========================================================================== */
.sec-div,
.works-band::before,
#feat-slot:not(:empty)::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin: 52px 0 44px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bronze) 72%, transparent) 0%,
    color-mix(in srgb, var(--bronze) 34%, transparent) 46%,
    color-mix(in srgb, var(--bronze) 12%, transparent) 100%);
  border-radius: 2px;
  opacity: .85;
}
/* 第一块之前不要横线（避免页面顶部凭空一道杠） */
#feat-slot:not(:empty)::before { margin-top: 8px; }
.works-band::before { margin-top: 40px; }

/* 区块大标题前的短引线（bream 感，不是满宽） */
:where(.page-head, .wb-head) .kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--bronze);
  opacity: .7;
  border-radius: 2px;
}

/* 区块标题下的小衬线横杠（h2 之下，短而精） */
.wb-head h2::after,
.page-head h1::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 14px;
  background: var(--bronze);
  opacity: .55;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .sec-div, .works-band::before, #feat-slot:not(:empty)::before {
    width: 52px; margin: 32px 0 28px;
  }
  .wb-head h2::after, .page-head h1::after { width: 26px; margin-top: 10px; }
}
/* 分隔线间距微调：显式元素与伪元素统一 */
.sec-div {
  width: 100%; height: 1px;
  margin: 52px 0 44px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bronze) 72%, transparent) 0%,
    color-mix(in srgb, var(--bronze) 34%, transparent) 46%,
    color-mix(in srgb, var(--bronze) 12%, transparent) 100%);
  border-radius: 0; opacity: 1;
}
#feat-slot:not(:empty)::before { margin: 34px 0 30px; }
@media (max-width: 900px) {
  .sec-div { width: 100%; margin: 36px 0 30px; }
}

/* ==========================================================================
   本期精选：轮播版
   ========================================================================== */
.nb-feat { position: relative; }
.nb-feat-track { display: grid; }
.nb-feat-track > .nb-feat-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink); color: var(--paper);
  text-decoration: none; border: 1px solid var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease-out, ease), visibility .7s;
  pointer-events: none;
}
.nb-feat-track > .nb-feat-slide.is-on {
  opacity: 1; visibility: visible; pointer-events: auto;
  position: relative; z-index: 1;
}
.nb-feat-img {
  display: block; position: relative;
  aspect-ratio: 16 / 10;
  min-height: 280px; overflow: hidden; background: var(--ink-2);
}
.nb-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-feat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,20,15,0) 62%, rgba(21,20,15,.55) 100%); pointer-events: none; }
.nb-feat-txt { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 40px 42px; }
.nb-feat-k { font: 10.5px/1 "Noto Sans SC", system-ui, sans-serif; letter-spacing: .28em; color: #c9a35f; }
.nb-feat-h {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 3.1vw, 38px); line-height: 1.22; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-feat-m { font: 11.5px/1.7 "Noto Sans SC", system-ui, sans-serif; color: rgba(251,248,242,.55); letter-spacing: .04em; }
.nb-feat-go {
  margin-top: 6px; font: 12px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .14em; color: var(--paper);
  border-bottom: 1px solid rgba(251,248,242,.35); padding-bottom: 6px; align-self: flex-start;
}
.nb-feat-slide:hover .nb-feat-go { border-bottom-color: #c9a35f; color: #c9a35f; }

/* 轮播圆点 */
.nb-feat-dots {
  position: absolute; right: 22px; bottom: 18px; z-index: 3;
  display: flex; gap: 7px;
}
.nb-dot {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(251,248,242,.6); background: transparent;
  transition: background .25s, transform .25s, border-color .25s;
}
.nb-dot.on { background: #c9a35f; border-color: #c9a35f; transform: scale(1.25); }
.nb-dot:hover { border-color: #c9a35f; }

@media (max-width: 900px) {
  .nb-feat-track > .nb-feat-slide { grid-template-columns: 1fr; }
  .nb-feat-img { aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
  .nb-feat-txt { padding: 22px 20px 30px; gap: 9px; }
  .nb-feat-h { font-size: 21px; -webkit-line-clamp: 2; }
  .nb-feat-dots { right: 14px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-feat-track > .nb-feat-slide { transition: none; }
}

/* 轮播图片：父级用 aspect-ratio 定高，img 正常填充 */
@media (max-width: 900px) {
  .nb-feat-img { aspect-ratio: 4 / 3; min-height: 200px; }
}

/* ==========================================================================
   1) 本期精选：固定深色（不跟主题翻转）+ 合理比例
   —— 深色模式下 --ink 是亮的，之前就翻成白底黑字了
   ========================================================================== */
.nb-feat-track > .nb-feat-slide {
  background: #15140F !important;
  color: #FBF8F2 !important;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  min-height: 340px;
  align-items: stretch;
}
.nb-feat-img { aspect-ratio: auto; min-height: 340px; height: 100%; }
.nb-feat-txt {
  padding: 44px 46px;
  justify-content: center;
  min-width: 0;               /* 防止文字溢出挤压 */
  overflow: hidden;
}
.nb-feat-h {
  color: #FBF8F2 !important;
  font-size: clamp(22px, 2.5vw, 34px);
  -webkit-line-clamp: 2;
}
.nb-feat-k { color: #c9a35f !important; }
.nb-feat-m { color: rgba(251, 248, 242, .58) !important; }
.nb-feat-go { color: #FBF8F2 !important; }

/* ==========================================================================
   2) 参考图卡片：绝对等高、同比例
   ========================================================================== */
.grid:not(.wall):not(.timeline) .card {
  display: flex; flex-direction: column;
  height: 100%;
}
.grid:not(.wall):not(.timeline) .card-media {
  aspect-ratio: 4 / 5 !important;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
}
.grid:not(.wall):not(.timeline) .card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.grid:not(.wall):not(.timeline) .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.grid:not(.wall):not(.timeline) .card h3 {
  -webkit-line-clamp: 2;
  min-height: 2.9em;          /* 两行标题占位，短标题也不塌 */
}
.grid:not(.wall):not(.timeline) .card .exc,
.grid:not(.wall):not(.timeline) .card .card-quote { display: none; }
.grid:not(.wall):not(.timeline) .card .ctags { margin-top: auto; }
.grid:not(.wall):not(.timeline) .card-foot { margin-top: 8px; }

@media (max-width: 900px) {
  .nb-feat-track > .nb-feat-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .nb-feat-img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .nb-feat-txt { padding: 20px 18px 26px; }
  .nb-feat-h { font-size: 21px; -webkit-line-clamp: 2; }
}

/* 精选：给固定高度，图片才能拿到百分比高度 */
.nb-feat-track > .nb-feat-slide { height: 380px; min-height: 0; }
.nb-feat-img { height: 100%; min-height: 0; aspect-ratio: auto; }
.nb-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .nb-feat-track > .nb-feat-slide { height: auto; }
  .nb-feat-img { height: auto; aspect-ratio: 4 / 3; }
}

/* 修：轮播轨道列宽用 auto 会被图片固有宽度压住 → 强制 1fr / 100% */
.nb-feat-track { grid-template-columns: minmax(0, 1fr); width: 100%; }
.nb-feat-track > .nb-feat-slide { width: 100%; }
.nb-feat { width: 100%; }

/* 轮播：改成「活动帧在文档流里，其余绝对定位」——最稳，宽度天然 100% */
.nb-feat-track { display: block; position: relative; width: 100%; }
.nb-feat-track > .nb-feat-slide {
  position: absolute; inset: 0; width: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  background: #15140F !important; color: #FBF8F2 !important;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid #15140F;
}
.nb-feat-track > .nb-feat-slide.is-on {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto;
}
.nb-feat-img { height: 380px; }
.nb-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .nb-feat-track > .nb-feat-slide { grid-template-columns: 1fr; }
  .nb-feat-img { height: auto; aspect-ratio: 4 / 3; }
}

/* 只渲染当前帧：单张自然铺满 */
.nb-feat { position: relative; width: 100%; }
.nb-feat > .nb-feat-slide {
  position: relative !important; inset: auto !important;
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  width: 100% !important; opacity: 1 !important; visibility: visible !important;
  background: #15140F !important; color: #FBF8F2 !important;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid #15140F;
}
.nb-feat-img { height: 380px; position: relative; overflow: hidden; }
.nb-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .nb-feat > .nb-feat-slide { grid-template-columns: 1fr; }
  .nb-feat-img { height: auto; aspect-ratio: 4 / 3; }
}

/* 真正的根因：.nb-feat 是 grid，把「幻灯片」和「圆点」排成两列
   → 强制 block，圆点绝对定位 */
.nb-feat { display: block !important; position: relative; width: 100%; }
.nb-feat-dots {
  position: absolute !important;
  right: 22px; bottom: 18px; z-index: 3;
  display: flex; gap: 7px; width: auto;
}

/* 分隔线：真古铜（更暗更沉，不偏黄） */
.sec-div,
.works-band::before,
#feat-slot:not(:empty)::before {
  background: linear-gradient(90deg, #6E5228 0%, #7A5C2F 40%, rgba(110, 82, 40, .28) 100%) !important;
  opacity: .9 !important;
  height: 1.5px !important;
}

/* ==========================================================================
   首次使用引导 + 批量栏「更多」
   ========================================================================== */
.guide {
  margin: 18px 0 6px; padding: 20px 22px 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
}
.guide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.guide-head b { font-family: var(--serif); font-size: 16px; }
.guide-x {
  border: 0; background: none; cursor: pointer; color: var(--ink-4);
  font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.guide-x:hover { background: var(--paper); color: var(--ink); }
.guide-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 9px; }
.guide-list li { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.guide-list i {
  font-style: normal; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 11px;
}
.guide-list em { font-style: normal; color: var(--seal); font-weight: 600; }
.guide-foot {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-4); line-height: 1.6;
}
@media (max-width: 900px) {
  .guide { padding: 16px 16px 12px; }
  .guide-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 批量栏的「更多」区 */
.sel-more { display: contents; }

/* ==========================================================================
   标题旁的英文小字：古铜渐变、不抢主视线
   ========================================================================== */
.h-en {
  display: inline-block;
  margin-left: .7em;
  vertical-align: baseline;
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  /* 渐变文字：古铜实起，向右渐隐 */
  background: linear-gradient(90deg, var(--bronze) 0%, color-mix(in srgb, var(--bronze) 45%, transparent) 62%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: .95;
  transform: translateY(-1px);
}
/* 深色主题下古铜偏亮，压一点 */
html[data-theme="dark"] .h-en {
  background: linear-gradient(90deg, #A9843F 0%, rgba(169, 132, 63, .42) 62%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* 小标题（首页官方资料带）：字再小一点 */
.wb-head h2 .h-en { font-size: 9.5px; letter-spacing: .24em; }
/* 窄屏放不下就不显示，别挤换行 */
@media (max-width: 640px) {
  .h-en { display: none; }
}

/* 登录页免责声明 */
.auth-terms {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(245, 240, 232, .38);
  text-align: left;
}
@media (max-width: 900px) {
  .auth-terms { font-size: 10px; margin-top: 12px; }
}

/* 空资料占位 */
.sheet-empty {
  margin: 22px 0 10px;
  padding: 26px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.8;
}
.sheet-empty span { font-size: 12px; color: var(--ink-4); }

/* ==========================================================================
   视频全屏 / 横屏
   ========================================================================== */
.videobox { position: relative; }
.video-box, .videobox video { display: block; width: 100%; border-radius: var(--r-md); background: #000; }

/* 右上角全屏按钮 */
.vbtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 12px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.vbtn:hover { background: rgba(0, 0, 0, .78); }
.vbtn:active { transform: scale(.96); }
.vbtn svg { width: 15px; height: 15px; }

/* 手机上只显示图标，省地方 */
@media (max-width: 900px) {
  .vbtn span { display: none; }
  .vbtn { width: 34px; height: 34px; padding: 0; justify-content: center; }
}

/* 真全屏时铺满 */
video:fullscreen,
video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

/* ==========================================================================
   资料墙卡片：强制等高（视频卡/文档卡不再高出一截）
   ========================================================================== */
.grid:not(.wall):not(.timeline) .card {
  height: 440px;
  display: flex !important;
  flex-direction: column !important;
}
.grid:not(.wall):not(.timeline) .card-media,
.grid:not(.wall):not(.timeline) .card-media.ar,
.grid:not(.wall):not(.timeline) .card-doc {
  aspect-ratio: auto !important;
  flex: 1 1 auto !important;
  min-height: 96px;
  overflow: hidden;
}
.grid:not(.wall):not(.timeline) .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grid:not(.wall):not(.timeline) .card-body {
  flex: 0 0 auto;
  overflow: hidden;
}
@media (max-width: 900px) {
  .grid:not(.wall):not(.timeline) .card { height: 336px; }
  .grid:not(.wall):not(.timeline) .card-media,
  .grid:not(.wall):not(.timeline) .card-doc { min-height: 80px; }
}

/* ==========================================================================
   去掉「每点一下就闪一下」
   —— 卡片/图片的入场动画在每次重渲染时都会重播，观感像刷新
   —— 弹层（sheet / 灯箱 / 海报）的动画保留，因为它们只开一次
   ========================================================================== */
.card,
.card-media img,
img.img-in,
.hero,
.hero-media img,
.rel-item,
.sim-item,
.work-card,
.wb-card,
.post-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none;
}
/* 卡片内联的 animation-delay 也不再需要 */
.card { animation-delay: 0s !important; }

/* 卡片 hover 的位移保留（那是交互反馈，不是刷新感） */
.card:hover { transform: translateY(-4px); }

/* ==========================================================================
   画廊单张删除 + 图片丢失占位
   ========================================================================== */
.gallery .gcell {
  position: relative;
  display: block;
  min-width: 0;
}
.gallery .gcell img { display: block; width: 100%; }

/* 删除按钮：桌面悬停才明显，手机常显 */
.gallery .img-del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .16s, background .16s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gallery .gcell:hover .img-del { opacity: 1; }
.gallery .img-del:hover { background: rgba(182, 58, 43, .85); }

@media (max-width: 900px) {
  .gallery .img-del { opacity: .95; width: 30px; height: 30px; }
}

/* 图片加载失败：给它一个明确的“丢失”外观 */
img.img-broken {
  min-height: 120px;
  background:
    repeating-linear-gradient(45deg, rgba(142,107,46,.06) 0 10px, transparent 10px 20px),
    var(--paper-3) !important;
  color: var(--ink-4);
  font: 12px/120px "Noto Sans SC", system-ui, sans-serif;
  text-align: center;
}

/* ==========================================================================
   官方资料卡片：NEW 角标
   ========================================================================== */
.work-card { position: relative; }
.work-new {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font: 9px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .14em;
  padding: 4px 7px 3px;
  border-radius: 99px;
  background: var(--bronze);
  color: #FFF8EC;
  box-shadow: 0 4px 14px -6px rgba(142, 107, 46, .8);
}

/* ==========================================================================
   PDF 文件行：预览版 + 原版 两个按钮
   ========================================================================== */
.filelist .frow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
  transition: border-color .18s, background .18s;
}
.filelist .frow:hover { border-color: var(--ink-3); }
.filelist .frow .nm { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .frow .sz { font: 11.5px/1 var(--sans); color: var(--ink-4); white-space: nowrap; }
.filelist .frow .fbtns { display: flex; gap: 8px; flex: 0 0 auto; }
.filelist .fbtn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  font: 12px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.filelist .fbtn-pv {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.filelist .fbtn-pv:hover { background: var(--bronze); border-color: var(--bronze); }
.filelist .fbtn-og {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
}
.filelist .fbtn-og:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 620px) {
  .filelist .frow { flex-wrap: wrap; }
  .filelist .frow .nm { flex: 1 1 100%; order: 2; }
  .filelist .frow .fbtns { order: 3; width: 100%; }
}


/* 文件行：在线看主按钮 */
.filelist .fbtn-view {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font: inherit;
  cursor: pointer;
}
.filelist .fbtn-view:hover { background: var(--bronze); border-color: var(--bronze); }


/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom));
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .2s;
  z-index: 60; box-shadow: 0 8px 20px -10px rgba(0,0,0,.45);
}
.to-top.on { opacity: .88; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--bronze); opacity: 1; }
@media (max-width: 620px) { .to-top { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 36px; height: 36px; } }

/* 搜索命中高亮 */
mark.hl {
  background: rgba(182, 58, 43, .14);
  color: inherit;
  font-weight: 600;
  padding: 0 1px;
  border-radius: 2px;
}
[data-theme="dark"] mark.hl { background: rgba(210, 120, 96, .26); }


/* 卡片图轻微放大（长缓动，不改变布局） */
.card .card-media img, .card img.card-img {
  transition: transform .6s cubic-bezier(.25, 1, .5, 1);
  will-change: transform;
}
.card:hover .card-media img, .card:hover img.card-img { transform: scale(1.03); }


/* 关于作者页 */
.ab-lead{font-family:var(--serif);font-size:clamp(16px,1.7vw,19px);line-height:1.95;
  letter-spacing:.02em;color:var(--ink);margin:6px 0 0;max-width:34em}
.ab-p{font-size:14px;line-height:2.1;color:var(--ink-2);max-width:38em;margin:0}
@media (max-width: 620px){
  .ab-lead{font-size:15.5px;line-height:1.9}
  .ab-p{font-size:13.5px;line-height:2}
}

/* 登录页左栏：品牌标志 */
.auth-logo {
  display: block; height: 46px; width: auto;      /* 与门厅 .brand-mark 同高 */
  margin: 0 0 clamp(20px, 2.8vh, 28px);
  opacity: .92;
}
html[data-theme="dark"] .auth-logo { filter: invert(1) brightness(1.08); opacity: .9; }

/* 铜色渐变细线（左栏收尾） */
.auth-rule {
  display: block; height: 1px; margin: clamp(24px, 3.4vh, 34px) 0 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bronze) 55%, transparent) 0%,
    color-mix(in srgb, var(--bronze) 18%, transparent) 46%,
    transparent 100%);
}

/* 登录页整体：底部一层极淡的光，让留白不空 */
.auth-page::after {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 34vh;
  background: radial-gradient(120% 100% at 50% 100%,
    color-mix(in srgb, var(--bronze) 7%, transparent) 0%, transparent 62%);
  pointer-events: none; z-index: -1;
}

/* 站点页脚：渐变描边 + 顶部一层暖光 */
.foot {
  position: relative;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--bronze) 7%, transparent) 0%,
    color-mix(in srgb, var(--bronze) 2.5%, transparent) 38%,
    transparent 100%);
}
/* 页尾那条渐变细线：两端淡出，中间古铜 */
.foot::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--bronze) 62%, transparent) 18%,
    color-mix(in srgb, var(--bronze) 30%, transparent) 55%,
    color-mix(in srgb, var(--bronze) 55%, transparent) 82%,
    transparent 100%);
}
/* 底部再叠一层极淡的暖光，收尾更饱满 */
.foot::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: radial-gradient(80% 120% at 50% 100%,
    color-mix(in srgb, var(--bronze) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 980px) {
  .auth-logo { height: 30px; margin-bottom: 18px; }
  .auth-rule { margin-top: 20px; }
  .auth-page::after { height: 22vh; }
}

/* 登录页：四条要点 */
.auth-list {
  list-style: none; margin: clamp(18px, 2.4vh, 24px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px;
  max-width: 30em;
}
.auth-list li {
  font-size: 12.5px; line-height: 1.75; color: var(--ink-3);
  padding: 9px 0 9px 13px; position: relative;
  border-top: 1px solid color-mix(in srgb, var(--bronze) 14%, transparent);
}
.auth-list li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--bronze) 55%, transparent);
}
.auth-list b { color: var(--ink-2); font-weight: 600; margin-right: 8px; letter-spacing: .02em; }

/* 登录页：收束句（左侧古铜细线） */
.auth-quote {
  margin: clamp(18px, 2.4vh, 24px) 0 0; padding-left: 14px;
  border-left: 1px solid color-mix(in srgb, var(--bronze) 38%, transparent);
  font-family: var(--serif); font-size: clamp(12.5px, 1.1vw, 13.5px);
  line-height: 1.95; color: var(--ink-2); max-width: 30em;
}

/* 页脚 BAYUE 标志 */
.foot-mark { height: 24px; width: auto; display: block; opacity: .8; }
html[data-theme="dark"] .foot-mark { filter: invert(1) brightness(1.05); opacity: .75; }
@media (max-width: 980px) { .foot-mark { height: 18px; } }

@media (max-width: 620px) {
  .auth-list { grid-template-columns: 1fr; gap: 0; }
  .auth-list li { padding: 8px 0 8px 13px; }
}


/* ===== 3D 查看器覆盖层 ===== */
.view3d {
  position: fixed; inset: 0; z-index: 90; background: rgba(18,16,13,.55);
  display: flex; flex-direction: column; backdrop-filter: blur(3px);
  animation: v3in .18s ease-out;
}
@keyframes v3in { from { opacity: 0 } to { opacity: 1 } }
.view3d-bar {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px;
  background: rgba(251,248,242,.96); border-bottom: 1px solid var(--line);
}
.view3d-t {
  font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; flex: 1; min-width: 0;
}
.view3d-dl {
  font-size: 11.5px; color: var(--ink-3); text-decoration: none;
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px;
  transition: color .18s, border-color .18s;
}
.view3d-dl:hover { color: var(--ink); border-color: var(--bronze-line); }
.view3d-x {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer; line-height: 1; font-size: 13px;
}
.view3d-x:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.view3d iframe { flex: 1; width: 100%; border: 0; display: block; background: #DAD8D3; }

/* 文件行里的 3D 按钮 */
.fbtn-3d { background: color-mix(in srgb, var(--bronze) 12%, transparent); border-color: var(--bronze-line); }
.fbtn-3d:hover { background: color-mix(in srgb, var(--bronze) 20%, transparent); }
@media (max-width: 620px) { .view3d-bar { padding: 7px 10px; gap: 8px } .view3d-t { font-size: 11.5px } }


/* 卡片上的 3D 角标 */
.card-3d {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  font-size: 9.5px; letter-spacing: .12em; font-weight: 600;
  padding: 3px 7px; border-radius: 4px;
  background: color-mix(in srgb, var(--bronze) 82%, #000 0%);
  color: #FBF8F2; box-shadow: 0 4px 12px -6px rgba(0,0,0,.5);
}


/* ===== 3D 资料的占位封面（还没有真封面时） ===== */
.card-3d-cover {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #F3F1EB 0%, #E2DED6 55%, #D2CDC3 100%);
}
/* 等轴体块：真 3D（透视在容器上，旋转在方块上，不用百分比 translateZ） */
.card-3d-cover { perspective: 620px; }
.c3d-cube {
  position: relative; width: 76px; height: 76px;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(34deg);
}
.c3d-cube i {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #FCFBF8, #E3DED4);
  border: 1px solid rgba(96, 88, 74, .28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
  backface-visibility: hidden;
}
.c3d-cube i:nth-child(1) { transform: translateZ(38px); }
.c3d-cube i:nth-child(2) { transform: rotateY(90deg) translateZ(38px); filter: brightness(.9); }
.c3d-cube i:nth-child(3) { transform: rotateX(90deg) translateZ(38px); filter: brightness(1.1); }
.c3d-cube i:nth-child(4) { transform: rotateX(-90deg) translateZ(38px); filter: brightness(.82); }
@media (hover: hover) {
  .card:hover .c3d-cube { transform: rotateX(-16deg) rotateY(52deg); transition: transform .6s cubic-bezier(.2,1,.4,1); }
}

.c3d-label {
  position: absolute; left: 12px; top: 11px;
  font-size: 8.5px; letter-spacing: .22em; color: rgba(70,62,50,.55); text-transform: uppercase;
}
.c3d-name {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font-size: 10.5px; color: rgba(60,54,44,.68);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: hover) {
  .card:hover .card-3d-cover .c3d-cube { transform: rotate(-6deg) scale(1.04); transition: transform .5s cubic-bezier(.2,1,.4,1); }
}


/* 上传面板的「3D 怎么传？」小按钮 */
.hint-3d {
  margin: -2px 0 10px; padding: 3px 10px; border-radius: 99px;
  border: 1px dashed var(--bronze-line); background: transparent;
  color: var(--ink-3); font-size: 11px; cursor: pointer; letter-spacing: .04em;
}
.hint-3d:hover { color: var(--ink); border-color: var(--bronze); }


/* 搜索建议条 */
.search-hints {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 2px 0 12px; font-size: 11.5px; color: var(--ink-3);
}
.search-hints .sh-lbl { letter-spacing: .12em; font-size: 10px; text-transform: uppercase; }
.sh-chip {
  padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font-size: 11.5px; cursor: pointer;
  transition: all .16s;
}
.sh-chip:hover { border-color: var(--bronze-line); color: var(--ink); background: color-mix(in srgb, var(--bronze) 6%, transparent); }

/* 卡片角标：私密 / 过期 */
.card-flag {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  font-size: 9px; letter-spacing: .1em; padding: 3px 7px; border-radius: 4px;
  background: rgba(27,25,21,.78); color: #FBF8F2;
}
.flag-admin { background: rgba(120,54,40,.88); }
.flag-private { background: rgba(46,44,40,.9); }
.flag-stale { background: transparent; color: var(--ink-3); border: 1px solid var(--line); backdrop-filter: blur(6px); }


/* 操作按钮分层：更多抽屉 */
.act-more {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--bronze) 3%, transparent);
  animation: actMoreIn .18s ease-out;
}
@keyframes actMoreIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.act-more[hidden] { display: none; }
.act-more .btn { height: 32px; font-size: 12px; }
.act-more-btn { letter-spacing: .1em; }
