:root {
  --ink: #1b1d18;
  --paper: #f2ede1;
  --paper-dim: rgba(242, 237, 225, 0.72);
  --gold: #c9a86a;
  --jade: #8fa593;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(22, 24, 20, 0.42);
  --glass-strong: rgba(18, 20, 17, 0.72);
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  background: #0f110d;
  color: var(--paper);
  font-family: var(--font-sans);
  overflow: hidden;
}

body { transition: background 0.6s ease; }

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ---------------- 通用 ---------------- */
.view {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.view.active { display: block; opacity: 1; }

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn.primary {
  background: linear-gradient(135deg, #d8b87c, #b0894c);
  color: #211c12;
  box-shadow: 0 8px 26px rgba(201, 168, 106, 0.28);
  font-weight: 600;
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(201, 168, 106, 0.42); }
.btn.primary:active { transform: translateY(0) scale(0.99); }
.btn.ghost {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.btn.block { width: 100%; display: block; }
.btn.small { padding: 9px 20px; font-size: 13px; }

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--paper-dim);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}
.icon-btn:hover { color: var(--paper); background: rgba(255, 255, 255, 0.16); }
.icon-btn[aria-pressed="true"] { color: var(--gold); border-color: rgba(201, 168, 106, 0.5); }

.merit-pill {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.merit-pill b { color: var(--gold); font-weight: 600; font-size: 13px; }

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.logo {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--paper);
}

/* ---------------- 入园 ---------------- */
.gate { overflow: hidden; background: #eff4e9; }
.gate-bg {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.02);
  animation: gateDrift 28s ease-in-out infinite alternate;
  filter: saturate(1.16) contrast(1.02) brightness(1.01);
}
@keyframes gateDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
.gate-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(249, 252, 245, 0.74) 0%, rgba(249, 252, 245, 0.4) 36%, rgba(249, 252, 245, 0.14) 60%, rgba(249, 252, 245, 0.58) 100%),
    radial-gradient(120% 90% at 18% 40%, rgba(255, 255, 255, 0.28), transparent 64%),
    linear-gradient(180deg, rgba(247, 250, 242, 0.26), rgba(238, 245, 233, 0.48));
}
.gate-inner {
  position: relative;
  z-index: 5;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: center;
  gap: 6vw;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 56px;
}
.brand { animation: riseIn 1.2s var(--ease) both; }
.brand-line {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.6em;
  color: #9a7f4a;
}
.brand-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: #26312a;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.65);
}
.brand-title span { display: inline-block; margin-left: 0.12em; color: #b6903f; }
.brand-sub {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(38, 49, 42, 0.6);
}
.brand-poem {
  margin: 30px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 2;
  letter-spacing: 0.16em;
  color: rgba(38, 49, 42, 0.88);
}
.brand-sign {
  margin: 34px 0 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(38, 49, 42, 0.42);
}

.gate-card {
  position: relative;
  padding: 34px 32px 30px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(243, 249, 236, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 80px rgba(58, 78, 52, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.15);
  animation: riseIn 1.2s var(--ease) 0.15s both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(58, 78, 52, 0.14);
  padding-bottom: 2px;
}
.tab {
  background: none;
  border: none;
  color: rgba(38, 49, 42, 0.48);
  font-size: 15px;
  letter-spacing: 0.18em;
  padding: 8px 2px 12px;
  position: relative;
}
.tab.active { color: #26312a; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b6903f, transparent);
}

.field { display: block; margin-bottom: 18px; }
.field span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(38, 49, 42, 0.56);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(72, 96, 70, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #26312a;
  font-size: 15px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field input::placeholder { color: rgba(38, 49, 42, 0.32); }
.field input:focus {
  border-color: rgba(176, 138, 69, 0.7);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(176, 138, 69, 0.12);
}

.form-error {
  min-height: 18px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #b3503a;
  letter-spacing: 0.06em;
}
.gate-card .btn.block + .btn.block { margin-top: 10px; }
.gate-note {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.9;
  color: rgba(38, 49, 42, 0.46);
  letter-spacing: 0.06em;
}
.gate-foot {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: rgba(38, 49, 42, 0.52);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
  z-index: 5;
}
.gate .btn.primary {
  background: linear-gradient(180deg, #cfae6c, #a67f3d);
  box-shadow: 0 14px 30px rgba(138, 103, 44, 0.26);
}
.gate .btn.ghost {
  border-color: rgba(58, 78, 52, 0.26);
  color: #33402f;
  background: rgba(255, 255, 255, 0.55);
}
.gate .btn.ghost:hover { background: #ffffff; border-color: rgba(58, 78, 52, 0.4); }

/* ---------------- 选景 ---------------- */
.scenes { overflow-y: auto; overflow-x: hidden; background: #10120e; }
.scenes-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(122, 138, 112, 0.18), transparent 60%),
    radial-gradient(60% 50% at 80% 90%, rgba(201, 168, 106, 0.1), transparent 70%),
    linear-gradient(180deg, #14170f, #0c0e0a);
}
.scenes-glow {
  position: fixed;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.scenes-inner {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 128px 48px 80px;
  min-height: 100%;
}
.scenes-intro { max-width: 620px; margin-bottom: 46px; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.scenes-intro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.1em;
  color: #f4efe2;
}
.scenes-desc {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: rgba(242, 237, 225, 0.52);
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.scene-card {
  position: relative;
  display: block;
  border: none;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1b1e17;
  text-align: left;
  isolation: isolate;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.scene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(0.92) brightness(0.88);
}
.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 7, 0.05) 30%, rgba(8, 10, 7, 0.86));
}
.scene-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.scene-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.scene-card .card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 22px 20px;
}
.scene-card .card-no {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(201, 168, 106, 0.75);
  margin-bottom: 8px;
}
.scene-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: #f6f1e3;
}
.scene-card .card-poem {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.9;
  color: rgba(246, 241, 227, 0.6);
}
.scene-card .card-go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(246, 241, 227, 0.85);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
}
.scene-card:hover .card-go { opacity: 1; transform: translateY(0); }
.scene-card .card-go::after { content: "→"; color: var(--gold); }
.scenes-foot {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(242, 237, 225, 0.3);
}

/* ---------------- 场景 ---------------- */
.scene { overflow: hidden; background: #0b0d09; }
.scene-photo {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: sceneDrift 40s ease-in-out infinite alternate;
  transition: opacity 0.6s;
}
@keyframes sceneDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}
.scene-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 7, 0.66), rgba(8, 10, 7, 0.12) 32%, rgba(8, 10, 7, 0.25) 62%, rgba(8, 10, 7, 0.86)),
    radial-gradient(120% 100% at 50% 40%, transparent 30%, rgba(8, 10, 7, 0.45));
  transition: background 0.6s;
}
.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 5, 0.34), rgba(6, 8, 5, 0) 20%),
    linear-gradient(0deg, rgba(6, 8, 5, 0.48), rgba(6, 8, 5, 0) 24%);
}
.scene-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(72% 52% at 2% 0%, rgba(8, 10, 7, 0.8), rgba(8, 10, 7, 0) 74%),
    radial-gradient(80% 30% at 50% 102%, rgba(8, 10, 7, 0.8), rgba(8, 10, 7, 0) 72%);
}
.scene-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--wall-glow, transparent);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.mist {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 42%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(22px);
  opacity: 0.45;
  animation: mistMove 26s ease-in-out infinite alternate;
}
.mist-a { bottom: 2%; }
.mist-b { bottom: 24%; height: 26%; opacity: 0.22; animation-duration: 36s; animation-direction: alternate-reverse; }
@keyframes mistMove {
  from { transform: translateX(-4%); }
  to { transform: translateX(6%); }
}
.mist-b { animation-name: mistMove2; }
@keyframes mistMove2 {
  from { transform: translateX(5%) scaleY(1.1); }
  to { transform: translateX(-5%) scaleY(0.9); }
}

.scene-top { padding: 20px 30px; }
.scene-title h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #fbf6e8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 8px 28px rgba(0, 0, 0, 0.4);
}
.scene-title p {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #f3ecda;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 2px 14px rgba(0, 0, 0, 0.4);
}
.scene .icon-btn {
  background: rgba(14, 16, 12, 0.46);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(250, 246, 236, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.scene .merit-pill { background: rgba(14, 16, 12, 0.4); border-color: rgba(255, 255, 255, 0.18); }
.scene-meta {
  position: absolute;
  left: 34px;
  top: 108px;
  z-index: 6;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: #efe8d8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.62), 0 2px 16px rgba(0, 0, 0, 0.45);
}
.scene-meta p { margin: 0 0 6px; }
.scene-tip { transition: opacity 1s; }
.scene-tip.hide { opacity: 0; }

/* 漂浮心念 */
.floats {
  position: absolute;
  inset: 0;
  z-index: 8;
}
.float-card {
  position: absolute;
  width: 208px;
  padding: 15px 16px 13px;
  border-radius: 15px;
  background: rgba(14, 16, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: rgba(247, 243, 233, 0.92);
  text-align: left;
  animation: floatIn 0.9s var(--ease) both, floaty var(--dur, 9s) ease-in-out infinite alternate;
  animation-delay: 0s, var(--delay, 0s);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: pointer;
  overflow: hidden;
}
.float-card:hover {
  background: rgba(30, 33, 26, 0.74);
  border-color: rgba(201, 168, 106, 0.5);
  transform: translateY(-3px);
  z-index: 4;
}
.float-card .fc-author {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 227, 0.5);
}
.float-card .fc-author b { font-weight: 500; color: rgba(246, 241, 227, 0.78); }
.float-card .fc-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.float-card .fc-likes {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201, 168, 106, 0.7);
}
.float-card.sealed {
  background: rgba(18, 19, 16, 0.5);
  border-style: dashed;
  border-color: rgba(201, 168, 106, 0.35);
}
.float-card.sealed .fc-text { color: rgba(246, 241, 227, 0.6); }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floaty {
  from { translate: 0 -5px; }
  to { translate: 0 6px; }
}

/* 底部操作 */
.dock-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(20, 22, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}
.dock button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: rgba(246, 241, 227, 0.72);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.dock button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.dock button.primary-act {
  background: rgba(201, 168, 106, 0.16);
  color: #ecd7a6;
  border: 1px solid rgba(201, 168, 106, 0.3);
}
.dock button.primary-act:hover { background: rgba(201, 168, 106, 0.28); }
.dock .divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 4px;
}
.dock-hint {
  color: rgba(244, 239, 226, 0.72);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 2px 14px rgba(0, 0, 0, 0.45);
  margin: 0;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(246, 241, 227, 0.4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---------------- 抽屉 ---------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 8, 5, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 92vw;
  z-index: 45;
  transform: translateX(102%);
  transition: transform 0.55s var(--ease);
  background: linear-gradient(170deg, rgba(28, 31, 25, 0.96), rgba(15, 17, 13, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 26px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.drawer-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.16em;
}
.drawer-sub {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: rgba(242, 237, 225, 0.42);
}
.mine-list { padding: 12px 20px 30px; overflow-y: auto; flex: 1; }
.mine-item {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mine-item .mi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(242, 237, 225, 0.4);
}
.mi-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.mi-tag.private { color: var(--gold); border-color: rgba(201, 168, 106, 0.4); }
.mine-item .mi-text {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 227, 0.86);
  word-break: break-word;
}
.mine-item .mi-actions { display: flex; gap: 14px; font-size: 10px; letter-spacing: 0.1em; color: rgba(242, 237, 225, 0.38); }
.mi-del { background: none; border: none; color: rgba(226, 160, 140, 0.7); font-size: 10px; letter-spacing: 0.1em; padding: 0; }
.mi-del:hover { color: #e8a48c; }
.empty-note {
  padding: 40px 10px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 225, 0.34);
}

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 5, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 520px;
  max-width: 100%;
  border-radius: 22px;
  padding: 26px 26px 22px;
  background: linear-gradient(165deg, rgba(34, 37, 30, 0.96), rgba(17, 19, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal.show .modal-card { transform: translateY(0) scale(1); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.modal-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.16em;
}
.modal-head p {
  margin: 7px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 225, 0.42);
}
#compose-text {
  width: 100%;
  min-height: 148px;
  resize: none;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.26);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.3s;
}
#compose-text:focus { border-color: rgba(201, 168, 106, 0.5); }
#compose-text::placeholder { color: rgba(242, 237, 225, 0.26); }
.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.seg button {
  border: none;
  background: transparent;
  color: rgba(242, 237, 225, 0.5);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  transition: all 0.3s;
}
.seg button.active { background: rgba(201, 168, 106, 0.2); color: #eeddb4; }
.counter { font-size: 11px; letter-spacing: 0.08em; color: rgba(242, 237, 225, 0.34); }
.counter b { color: rgba(242, 237, 225, 0.66); font-weight: 500; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.detail { width: 440px; }
.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 225, 0.4);
  margin-bottom: 16px;
}
.detail-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: #f6f1e3;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.like-btn {
  border: 1px solid rgba(201, 168, 106, 0.36);
  background: rgba(201, 168, 106, 0.12);
  color: #ecd7a6;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.3s;
}
.like-btn b { margin-left: 5px; font-weight: 600; }
.like-btn.on { background: rgba(201, 168, 106, 0.34); color: #fff3d8; }
.like-btn:hover { background: rgba(201, 168, 106, 0.24); }

/* ---------------- 静坐 ---------------- */
.sit {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 5, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}
.sit.show { opacity: 1; pointer-events: auto; }
.sit-inner { text-align: center; }
.sit-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sit-ring span {
  font-family: var(--font-serif);
  font-size: 40px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 227, 0.9);
}
.sit-breath {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.22), transparent 70%);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.82); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0.9; }
}
.sit-inner p {
  margin: 32px 0 26px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: rgba(242, 237, 225, 0.6);
}

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 70;
  transform: translate(-50%, 16px);
  padding: 13px 26px;
  border-radius: 999px;
  background: rgba(24, 26, 21, 0.86);
  border: 1px solid rgba(201, 168, 106, 0.32);
  color: rgba(246, 241, 227, 0.9);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 场景配色 ---------------- */
body[data-scene="temple"] .scene-veil {
  background:
    linear-gradient(180deg, rgba(48, 33, 16, 0.42), rgba(48, 33, 16, 0) 26%, rgba(30, 20, 10, 0.04) 58%, rgba(26, 18, 9, 0.56)),
    radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(34, 22, 10, 0.2));
}
body[data-scene="forest"] .scene-veil {
  background:
    linear-gradient(180deg, rgba(14, 34, 22, 0.4), rgba(14, 34, 22, 0) 26%, rgba(8, 24, 15, 0.04) 58%, rgba(7, 20, 13, 0.58)),
    radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(10, 26, 16, 0.2));
}
body[data-scene="meadow"] .scene-veil {
  background:
    linear-gradient(180deg, rgba(56, 40, 16, 0.44), rgba(56, 40, 16, 0) 26%, rgba(38, 28, 12, 0.04) 58%, rgba(30, 22, 10, 0.58)),
    radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(44, 32, 12, 0.2));
}
body[data-scene="stream"] .scene-veil {
  background:
    linear-gradient(180deg, rgba(10, 38, 34, 0.4), rgba(10, 38, 34, 0) 26%, rgba(6, 24, 21, 0.04) 58%, rgba(5, 20, 18, 0.58)),
    radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(8, 26, 23, 0.2));
}
body[data-scene="sea"] .scene-veil {
  background:
    linear-gradient(180deg, rgba(40, 30, 52, 0.42), rgba(40, 30, 52, 0) 26%, rgba(28, 22, 40, 0.04) 58%, rgba(22, 18, 32, 0.56)),
    radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(30, 24, 44, 0.2));
}
body[data-scene="night"] .scene-veil {
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.45), rgba(4, 10, 22, 0) 30%, rgba(4, 10, 22, 0.06) 60%, rgba(3, 8, 18, 0.6)),
    radial-gradient(120% 100% at 50% 40%, transparent 42%, rgba(3, 8, 18, 0.24));
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .gate-inner { grid-template-columns: 1fr; align-content: center; gap: 34px; padding: 64px 28px; max-width: 560px; }
  .brand-poem, .brand-sign { display: none; }
  .brand-title { font-size: clamp(52px, 14vw, 88px); }
  .gate-card { padding: 28px 24px 26px; }
  .gate-foot { display: none; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .scenes-inner { padding: 108px 24px 60px; }
  .topbar { padding: 16px 18px; }
  .scene-top { flex-wrap: wrap; row-gap: 12px; }
  .scene-meta { top: 128px; left: 20px; }
  .scene-title p { display: none; }
}
@media (max-width: 720px) {
  .topbar-right .merit-pill { display: none; }
  .scene-top .merit-pill { display: none; }
  .scene-top { padding: 12px 14px; flex-wrap: nowrap; gap: 8px; }
  .scene-top .topbar-right { gap: 6px; }
  .scene-top .icon-btn { padding: 8px 11px; font-size: 12px; letter-spacing: 0.04em; }
  .scene-top .btn.small { padding: 9px 14px; font-size: 12px; letter-spacing: 0.06em; }
  .scene-title { display: none; }
  .scene-meta { top: 74px; left: 16px; font-size: 10px; }
  .scene-tip { display: none; }
  .float-card { width: 150px; padding: 11px 12px; }
  .float-card .fc-text { font-size: 12px; -webkit-line-clamp: 2; }
  .dock { padding: 5px; gap: 2px; max-width: calc(100vw - 24px); overflow-x: auto; }
  .dock button { padding: 10px 13px; font-size: 12px; letter-spacing: 0.06em; }
  .dock-wrap { bottom: 18px; }
  .toast { bottom: 96px; width: max-content; max-width: 86vw; font-size: 12px; }
  .scene-grid { grid-template-columns: 1fr 1fr; }
  .scene-card { aspect-ratio: 3 / 4; }
  .scene-card h3 { font-size: 20px; }
  .scene-card .card-body { padding: 14px; }
  .scene-card .card-go { opacity: 1; transform: none; margin-top: 8px; }
  .scenes-intro h2 { font-size: 30px; }
  .gate-inner { padding: 48px 20px 24px; }
  .drawer { width: 100%; max-width: 100%; }
  .detail-text { font-size: 17px; }
  .modal { padding: 14px; align-items: flex-end; }
  .modal.show .modal-card { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------- 六境背景墙配色 ---------------- */
body[data-scene="temple"] {
  --accent: #e4c188;
  --accent-bg: rgba(228, 193, 136, 0.16);
  --accent-line: rgba(228, 193, 136, 0.42);
  --wall-glow: radial-gradient(90% 72% at 50% 18%, rgba(255, 203, 128, 0.5), transparent 72%);
}
body[data-scene="forest"] {
  --accent: #b8d19c;
  --accent-bg: rgba(184, 209, 156, 0.15);
  --accent-line: rgba(184, 209, 156, 0.4);
  --wall-glow: linear-gradient(175deg, rgba(120, 190, 122, 0.55), rgba(18, 52, 28, 0.3) 70%);
}
body[data-scene="meadow"] {
  --accent: #ecd394;
  --accent-bg: rgba(236, 211, 148, 0.16);
  --accent-line: rgba(236, 211, 148, 0.42);
  --wall-glow: radial-gradient(84% 64% at 66% 32%, rgba(255, 226, 140, 0.55), transparent 72%);
}
body[data-scene="stream"] {
  --accent: #a9d6ce;
  --accent-bg: rgba(169, 214, 206, 0.16);
  --accent-line: rgba(169, 214, 206, 0.42);
  --wall-glow: linear-gradient(180deg, rgba(136, 216, 205, 0.45), rgba(16, 58, 54, 0.22) 72%);
}
body[data-scene="sea"] {
  --accent: #dcc4e6;
  --accent-bg: rgba(220, 196, 230, 0.16);
  --accent-line: rgba(220, 196, 230, 0.42);
  --wall-glow: linear-gradient(180deg, rgba(223, 176, 226, 0.45), rgba(52, 46, 106, 0.25) 72%);
}
body[data-scene="night"] {
  --accent: #a8bce6;
  --accent-bg: rgba(168, 188, 230, 0.16);
  --accent-line: rgba(168, 188, 230, 0.42);
  --wall-glow: radial-gradient(84% 66% at 50% 22%, rgba(118, 152, 255, 0.4), transparent 74%);
}

.scene-title h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 9px;
  background: var(--accent, #c9a86a);
  opacity: 0.75;
}
.scene .merit-pill b { color: var(--accent, #c9a86a); }
.dock button.primary-act {
  background: var(--accent-bg, rgba(201, 168, 106, 0.16));
  color: var(--accent, #ecd7a6);
  border: 1px solid var(--accent-line, rgba(201, 168, 106, 0.3));
}
.dock button.primary-act:hover { background: var(--accent-bg, rgba(201, 168, 106, 0.16)); filter: brightness(1.18); }
.float-card:hover { border-color: var(--accent-line, rgba(201, 168, 106, 0.5)); }

/* ---------------- 亮境纸感主题（除星夜） ---------------- */
body[data-tone="light"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(247, 250, 242, 0.62), rgba(247, 250, 242, 0) 18%),
    linear-gradient(0deg, rgba(247, 250, 242, 0.72), rgba(247, 250, 242, 0) 30%);
}
body[data-tone="light"] .scene-scrim {
  background:
    radial-gradient(64% 48% at 0% 0%, rgba(250, 252, 246, 0.88), rgba(250, 252, 246, 0) 74%),
    radial-gradient(84% 30% at 50% 102%, rgba(250, 252, 246, 0.82), rgba(250, 252, 246, 0) 72%);
}
body[data-tone="light"] .scene-veil { opacity: 0.16; }
body[data-tone="light"] .scene-tint { opacity: 0.4; }
body[data-tone="light"] .scene-title h2 {
  color: #28322b;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(255, 255, 255, 0.7);
}
body[data-tone="light"] .scene-title p {
  color: #44503f;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.95);
}
body[data-tone="light"] .scene-meta,
body[data-tone="light"] .scene-tip {
  color: #36432e;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.8);
}
body[data-tone="light"] .dock-hint {
  color: #2f3a2c;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}
body[data-tone="light"] .float-card {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 240, 0.82));
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(58, 78, 52, 0.2);
  color: #2b332c;
}
body[data-tone="light"] .float-card .fc-author { color: #62705a; }
body[data-tone="light"] .float-card .fc-author b { color: #37432f; }
body[data-tone="light"] .float-card .fc-likes { color: #8a6f38; }
body[data-tone="light"] .float-card.sealed {
  background: rgba(252, 253, 248, 0.78);
  border-color: rgba(122, 138, 110, 0.45);
}
body[data-tone="light"] .float-card.sealed .fc-text { color: #55624b; }
