/* ==========================================
   水面 · shuimian.css
   ========================================== */

:root {
  --paper: #f7efde;
  --paper-warm: #f3e8d0;
  --paper-light: #fcf6e8;
  --ink: #3a4658;
  --ink-deep: #2a3441;
  --ink-soft: #6a7a8e;
  --wash-blue: #a8b8c8;
  --wash-brown: #c9a878;
  --wash-pink: #e8c4b8;
  --vermilion: #c25450;
  --vermilion-soft: #d88278;
  --text-dark: #2e2a25;
  --text-soft: #756c5f;
  --line: #4a3f33;
}

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

html, body {
  overflow-x: hidden;
}

body {
  background: var(--paper);
  font-family: 'LXGW WenKai', serif;
  color: var(--text-dark);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 700px 350px at 15% 8%, rgba(168, 184, 200, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 85% 18%, rgba(232, 196, 184, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 800px 500px at 90% 75%, rgba(201, 168, 120, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 5% 80%, rgba(168, 184, 200, 0.14) 0%, transparent 70%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 桌面端：限制宽度居中 */
@media (min-width: 700px) {
  .page {
    max-width: 414px !important;
    margin: 0 auto !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
    min-height: 100vh;
    background: var(--paper);
    background-image:
      radial-gradient(ellipse 400px 250px at 30% 10%, rgba(168, 184, 200, 0.18) 0%, transparent 65%),
      radial-gradient(ellipse 350px 300px at 70% 20%, rgba(232, 196, 184, 0.22) 0%, transparent 65%);
  }
}

.page {
  padding: 32px 18px 60px;
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================
   起始引导动画
   ========================================== */
.guide {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.guide.exiting {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}
.guide.hidden {
  display: none;
}
.guide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}

.guide-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
  opacity: 0;
}
.guide-wash.active { opacity: 1; }

.guide-skip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 10;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 14px 8px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 1px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.guide-skip:hover { opacity: 1; }
.guide-skip svg {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
}

.guide-screens {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 28px 90px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-screen {
  position: absolute;
  width: 100%;
  max-width: 380px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.guide-screen.active {
  opacity: 1;
  transition: opacity 0.65s ease 0.45s;
  pointer-events: auto;
}

.guide-stroke {
  margin: 0 auto 30px;
  display: block;
  opacity: 0;
  transition: opacity 1s ease 0.2s;
}
.guide-screen.active .guide-stroke {
  opacity: 0.6;
}

.guide-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 4px;
  margin-bottom: 18px;
  opacity: 0.75;
}

.guide-title {
  font-family: 'LXGW WenKai', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-deep);
  line-height: 1.7;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}
.guide-title .accent {
  color: var(--vermilion);
  font-weight: 500;
}
.guide-title em {
  color: var(--vermilion);
  font-style: normal;
  font-weight: 500;
}

/* You are enough · 第 3 屏的精神锚点 */
.guide-enough {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--vermilion);
  letter-spacing: 1.5px;
  margin: 18px auto 26px;
  line-height: 1.4;
  opacity: 0.92;
  display: inline-block;
  position: relative;
}
.guide-enough::after {
  content: '';
  display: block;
  width: 75%;
  height: 1px;
  margin: 6px auto 0;
  background: var(--vermilion);
  opacity: 0.4;
}

.guide-body {
  font-family: 'LXGW WenKai', serif;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 2;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.guide-body em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

.guide-body-small {
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.85;
  letter-spacing: 0.5px;
  margin-top: 14px;
  opacity: 0.85;
}
.guide-body-small em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

/* 白描风格段落 */
.guide-plain {
  font-family: 'LXGW WenKai', serif;
  font-size: 22px;
  color: var(--ink-deep);
  line-height: 1;
  letter-spacing: 1.5px;
}
.guide-plain > div {
  margin-bottom: 22px;
}
.guide-plain > div:last-child {
  margin-bottom: 0;
}
.guide-plain em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin: 0 1px;
  letter-spacing: 0;
}

/* 引述 · 第 2 屏 */
.guide-quotes {
  margin: 24px 0;
}
.guide-quote {
  font-family: 'LXGW WenKai', serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
  margin: 12px 0;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 1s ease, transform 1s ease;
}
.guide-screen.active .guide-quote { opacity: 1; transform: translateX(0); }
.guide-screen.active .guide-quote:nth-child(1) { transition-delay: 0.6s; }
.guide-screen.active .guide-quote:nth-child(2) { transition-delay: 1.6s; }
.guide-screen.active .guide-quote:nth-child(3) { transition-delay: 2.6s; }
.guide-screen.active .guide-quote:nth-child(4) { transition-delay: 3.6s; }

/* 丁尼生引述 · 第 5 屏 */
.guide-tennyson {
  margin: 24px 0 8px;
  padding: 22px 18px 20px;
  position: relative;
  background: rgba(252, 246, 232, 0.4);
}
.guide-tennyson::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--vermilion);
  opacity: 0.5;
}
.guide-tennyson::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--vermilion);
  opacity: 0.5;
}
.tennyson-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-deep);
  line-height: 1.55;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.tennyson-source {
  font-family: 'LXGW WenKai', serif;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  opacity: 0.85;
}
.tennyson-cn {
  font-family: 'LXGW WenKai', serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: 0.5px;
}
.tennyson-cn em {
  color: var(--vermilion);
  font-style: normal;
  font-weight: 500;
}

.guide-enter-btn {
  margin-top: 30px;
  position: relative;
  padding: 14px 38px;
  font-family: 'LXGW WenKai', serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  cursor: pointer;
  background: transparent;
  border: none;
  letter-spacing: 6px;
  min-height: 48px;
}
.guide-enter-btn svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.guide-count {
  color: var(--vermilion);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  margin: 0 4px;
}

/* 进度点 */
.guide-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.guide-dot {
  position: relative;
  width: 10px;
  height: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
  background: transparent;
  border: 1px solid var(--ink-soft);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.4;
}
.guide-dot::before { content: ''; position: absolute; inset: -15px; }
.guide-dot.active {
  background: var(--vermilion);
  border-color: var(--vermilion);
  opacity: 0.95;
}
.guide-dot.passed {
  background: var(--ink-soft);
  opacity: 0.3;
}

.guide-tap-prev,
.guide-tap-next {
  position: absolute;
  top: 70px;
  bottom: 80px;
  width: 30%;
  z-index: 3;
  cursor: pointer;
}
.guide-tap-prev { left: 0; }
.guide-tap-next { right: 0; }

/* ==========================================
   主页 - 顶部
   ========================================== */
.header {
  text-align: center;
  padding: 16px 8px 40px;
  position: relative;
}
.header-wash {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 200px;
}
.brand-name {
  font-family: 'LXGW WenKai', serif;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 4px;
  margin-bottom: 4px;
  display: block;
}
.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  letter-spacing: 5px;
  margin-bottom: 18px;
  display: inline-block;
}
.headline {
  font-family: 'LXGW WenKai', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-deep);
  line-height: 1.7;
  letter-spacing: 1px;
  padding: 0 8px;
}
.headline-line {
  display: block;
}
.headline-line.first {
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  letter-spacing: 1.5px;
}
.header-stroke {
  margin: 24px auto 0;
  display: block;
}
.signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
}
.signature-mark {
  color: var(--vermilion);
  margin-right: 6px;
  opacity: 0.7;
}

.water-pulse {
  text-align: center;
  margin: 32px 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-soft);
  opacity: 0.6;
  letter-spacing: 0.5px;
}
.water-pulse .pulse-num {
  color: var(--vermilion);
  font-weight: 500;
  margin: 0 2px;
  opacity: 0.8;
}

/* ==========================================
   留言区
   ========================================== */
.water {
  position: relative;
  padding: 12px 0;
  margin-bottom: 40px;
}
.water-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.7;
}
.water-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  opacity: 0.5;
}

.card {
  position: relative;
  width: 80%;
  padding: 16px 18px 14px;
  background: var(--paper-light);
  margin-bottom: 18px;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.1, 1);
}
.card:nth-child(odd) {
  margin-left: 4%;
  margin-right: 16%;
}
.card:nth-child(even) {
  margin-left: 16%;
  margin-right: 4%;
}
.card:nth-child(7n+3) {
  margin-left: 10%;
  margin-right: 10%;
}

.card-svg-border {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
}
.card-wash {
  position: absolute;
  inset: -8px;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
}

.card-content {
  font-family: 'LXGW WenKai', serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.card-content.short {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1px;
}

.card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.card-tag {
  display: inline-block; position: relative;
  padding: 3px 11px;
  font-size: 12px;
  font-family: 'LXGW WenKai', serif;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.card-tag svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.card-tag.field { color: var(--text-soft); }

/* 按专业搜留言 */
.field-search { max-width: 320px; margin: 0 auto 18px; padding: 0 4px; }
.field-search input { width: 100%; box-sizing: border-box; font-family: 'LXGW WenKai', serif; font-size: 14px; color: var(--ink); background: var(--paper-light); border: 1.2px solid rgba(74,63,51,.2); border-radius: 18px; padding: 9px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field-search input::placeholder { color: var(--ink-soft); opacity: .8; }
.field-search input:focus { border-color: var(--vermilion-soft); box-shadow: 0 0 0 3px rgba(194,84,80,.10); }

/* 水面浏览控件 */
.water-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 34px; position: relative; z-index: 2; }
.wc-btn { font-family: 'LXGW WenKai', serif; font-size: 13.5px; color: var(--ink); background: var(--paper-light); border: 1.2px solid rgba(74,63,51,.2); border-radius: 16px; padding: 7px 16px; cursor: pointer; letter-spacing: .5px; transition: background .2s, border-color .2s, color .2s; }
.wc-btn:hover { border-color: var(--vermilion-soft); color: var(--ink-deep); }
.wc-btn.ghost { background: transparent; border-style: dashed; color: var(--ink-soft); }
.wc-btn.toggle.on { background: var(--vermilion); border-color: var(--vermilion); color: #fcf6e8; }
/* 看全部 · 双列瀑布（窄屏自动单列） */
.water.wall-all { column-width: 240px; column-gap: 14px; }
.water.wall-all .card { width: auto; margin-left: 0; margin-right: 0; margin-bottom: 14px; break-inside: avoid; }

.new-mark {
  position: absolute;
  top: 8px;
  right: 12px;
  pointer-events: none;
  opacity: 0.5;
}

/* "审核中"标记（仅自己的 pending 卡片） */
.pending-mark {
  position: absolute;
  bottom: 14px;
  left: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.65;
  letter-spacing: 0.5px;
}

/* ==========================================
   涟漪按钮
   ========================================== */
.ripple-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 2;
}
.ripple-btn svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ripple-btn .ink-default { transition: opacity 0.6s ease; }
.ripple-btn .ink-claimed { opacity: 0; transition: opacity 0.7s ease; }
.ripple-btn.claimed .ink-default { opacity: 0; }
.ripple-btn.claimed .ink-claimed { opacity: 1; }

.ripple-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-light);
  padding: 8px 18px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(58, 70, 88, 0.08);
}
.ripple-toast.show {
  opacity: 0.95;
  transform: translateX(-50%) translateY(0);
}
.ripple-toast-border {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1;
}

/* 禅意水波动画 */
.ripple-fx {
  position: absolute;
  top: 50%; left: 50%;
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  pointer-events: none;
  transform: scale(0.15);
  opacity: 0;
}
.ripple-fx svg {
  width: 100%; height: 100%;
  overflow: visible;
}
@keyframes zenRipple {
  0% { transform: scale(0.15); opacity: 0; }
  20% { opacity: var(--peak-op, 0.7); }
  100% { transform: scale(3.2); opacity: 0; }
}
.ripple-fx.r1 { animation: zenRipple 3.2s cubic-bezier(0.15, 0.4, 0.2, 1) forwards; --peak-op: 0.75; }
.ripple-fx.r2 { animation: zenRipple 3.6s cubic-bezier(0.15, 0.4, 0.2, 1) forwards; animation-delay: 0.4s; --peak-op: 0.55; }
.ripple-fx.r3 { animation: zenRipple 4.0s cubic-bezier(0.15, 0.4, 0.2, 1) forwards; animation-delay: 0.8s; --peak-op: 0.4; }
.ripple-fx.r4 { animation: zenRipple 4.4s cubic-bezier(0.15, 0.4, 0.2, 1) forwards; animation-delay: 1.2s; --peak-op: 0.28; }

/* 极细发丝水纹 · 同心圆（首页卡片点击） */
.rfx {
  position: absolute; top: 50%; left: 50%;
  width: 100px; height: 100px; margin: -50px 0 0 -50px;
  transform: scale(0.06); opacity: 0;
  filter: blur(0.55px);
  will-change: transform, opacity;
  animation: rippleFine 2.5s cubic-bezier(0.12, 0.5, 0.2, 1) forwards;
}
.rfx svg { width: 100%; height: 100%; display: block; }
@keyframes rippleFine {
  0% { transform: scale(0.06); opacity: 0; }
  10% { opacity: var(--op, 0.4); }
  100% { transform: scale(var(--mx, 2)); opacity: 0; }
}

/* ==========================================
   "N 个人也想说这句话"（仅自己的 approved 卡片）
   ========================================== */
.me-too-banner {
  margin: 14px -22px -20px;
  padding: 12px 22px 14px;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(194, 84, 80, 0.06) 100%);
}
.me-too-banner-line {
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 6px;
  pointer-events: none;
}
.me-too-banner-text {
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.me-too-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--vermilion);
  line-height: 1;
}

/* 朱砂印章 - "这是你留下的" */
.my-mark {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 5;
  transform: rotate(-8deg);
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 84, 80, 0); }
  50% { box-shadow: 0 0 24px 4px rgba(194, 84, 80, 0.15); }
}
.card.just-approved {
  animation: gentlePulse 4s ease-in-out 3;
}

/* ==========================================
   写一句的悬浮按钮
   ========================================== */
.compose-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--ink);
  border: none;
  cursor: pointer;
  z-index: 50;
  padding: 0;
  transition: transform 0.3s ease;
}
.compose-fab:active {
  transform: scale(0.92);
}
.compose-fab svg.fab-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.compose-fab .fab-icon {
  width: 26px;
  height: 26px;
  color: white;
}
.compose-fab-label {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--paper-light);
  padding: 5px 12px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 1px;
  opacity: 0.92;
}
.compose-fab-label::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--text-soft);
  opacity: 0.35;
  border-radius: 2px;
}

/* ==========================================
   音效开关
   ========================================== */
.sound-toggle {
  position: fixed;
  bottom: 28px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: rgba(252, 246, 232, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  z-index: 50;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}
.sound-toggle svg {
  width: 20px;
  height: 20px;
}

/* ==========================================
   全屏写作面板
   ========================================== */
.compose-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  background-image:
    radial-gradient(ellipse 600px 400px at 50% 10%, rgba(232, 196, 184, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 50% 90%, rgba(168, 184, 200, 0.16) 0%, transparent 70%);
}
.compose-overlay.open {
  transform: translateY(0);
}
.compose-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (min-width: 700px) {
  .compose-overlay {
    max-width: 414px;
    left: 50%;
    transform: translateY(100%) translateX(-50%);
  }
  .compose-overlay.open {
    transform: translateY(0) translateX(-50%);
  }
}

.compose-inner {
  padding: 32px 24px 100px;
  position: relative;
  z-index: 1;
}
.compose-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compose-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-soft);
  letter-spacing: 2px;
  margin-bottom: 6px;
  margin-top: 30px;
}
.compose-label {
  font-family: 'LXGW WenKai', serif;
  font-size: 17px;
  color: var(--ink-deep);
  margin-bottom: 22px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}
.compose-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'LXGW WenKai', serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
  resize: none;
  outline: none;
  min-height: 70px;
  letter-spacing: 0.5px;
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
}
.compose-textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}
.compose-textarea.placeholder-fading::placeholder {
  opacity: 0;
}
.compose-underline {
  width: 100%;
  height: 6px;
  margin: 0 0 24px;
  display: block;
}

.tag-group {
  margin-bottom: 18px;
}
.tag-group-label {
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}
.tag-group-required {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--vermilion);
  opacity: 0.75;
}
.tag-group-optional {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.65;
}
.tag-group-hint {
  font-family: 'LXGW WenKai', serif;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.7;
  margin-top: 6px;
  margin-bottom: 9px;
  line-height: 1.5;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  position: relative;
  padding: 7px 16px;
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  min-height: 36px;
}
.tag-pill svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.tag-pill.active { color: white; }
.tag-pill.field { color: var(--text-soft); }
.tag-pill.field.active { color: white; }

.compose-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}
.char-count {
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--text-soft);
}
.submit-btn {
  position: relative;
  padding: 14px 38px;
  font-family: 'LXGW WenKai', serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  cursor: pointer;
  background: transparent;
  border: none;
  letter-spacing: 4px;
  min-height: 48px;
  white-space: nowrap;
}
.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.submit-btn svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}

.submit-success-message {
  margin-top: 26px;
  padding: 18px 20px;
  background: rgba(252, 246, 232, 0.6);
  position: relative;
  display: none;
}
.submit-success-message.show {
  display: block;
  animation: fadeInGently 0.6s ease;
}
@keyframes fadeInGently {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.submit-success-message-border {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1;
}
.submit-success-message p {
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.submit-success-message p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 500;
}

.submit-error {
  margin-top: 14px;
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--vermilion);
  text-align: right;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.submit-error.show { opacity: 0.85; }

/* ==========================================
   页脚
   ========================================== */
.footer-line {
  margin: 60px auto 0;
  text-align: center;
  padding: 0 16px;
}
.footer-stroke {
  margin: 0 auto 14px;
  display: block;
}
.footer-text {
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.85;
  letter-spacing: 1px;
}
.footer-text .count {
  color: var(--vermilion);
  font-weight: 500;
  margin: 0 4px;
  font-size: 17px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.deep-letter-toggle {
  margin-top: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-soft);
  opacity: 0.6;
  letter-spacing: 1px;
  padding: 6px 10px;
  transition: opacity 0.3s ease;
}
.deep-letter-toggle:hover {
  opacity: 0.9;
}
.deep-letter-toggle::after {
  content: '↓';
  margin-left: 8px;
  transition: transform 0.4s ease;
  display: inline-block;
}
.deep-letter-toggle.open::after {
  transform: rotate(180deg);
}
.deep-letter {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  text-align: left;
  padding: 0 20px;
}
.deep-letter.open {
  max-height: 1500px;
}
.deep-letter-inner {
  padding: 20px 4px 28px;
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  line-height: 2;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  text-align: center;
}
.deep-letter-inner p {
  margin-bottom: 14px;
}
.deep-letter-inner p:last-child {
  margin-bottom: 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 24px;
}
.deep-letter-inner em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

.footer-relink {
  margin-top: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'LXGW WenKai', serif;
  font-size: 13px;
  color: var(--text-soft);
  opacity: 0.55;
  letter-spacing: 1px;
  padding: 6px 10px;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-relink:hover {
  opacity: 0.85;
}
.footer-relink svg {
  opacity: 0.6;
}

.footer-eyebrow {
  font-family: 'LXGW WenKai', serif;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.65;
  margin-top: 30px;
  display: block;
  letter-spacing: 2px;
}

/* ==========================================
   干货库入口（首页页脚）
   ========================================== */
.library-entry {
  display: block;
  margin: 22px auto 6px;
  max-width: 320px;
  padding: 16px 20px;
  text-align: center;
  text-decoration: none;
  background: var(--paper-light);
  border: 1.4px solid rgba(194, 84, 80, 0.35);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(58, 70, 88, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.library-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(194, 84, 80, 0.14);
  border-color: var(--vermilion);
}
.library-entry-label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.library-entry-cta {
  display: block;
  font-size: 18px;
  color: var(--vermilion);
  font-weight: 600;
  letter-spacing: 1px;
}
.library-entry-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: .3px;
}

/* ==========================================
   门户首页 hub（index.html）
   ========================================== */
.hub-wrap {
  position: relative; z-index: 2;
  max-width: 560px; margin: 0 auto; padding: 56px 22px 70px;
}
.hub-head { text-align: center; margin-bottom: 38px; }
.hub-eyebrow {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  letter-spacing: 1.5px; color: var(--ink-soft); font-size: 16px; margin-bottom: 10px;
}
.hub-brand {
  font-size: 30px; color: var(--ink-deep); font-weight: 600; letter-spacing: 3px;
}
.hub-stroke { display: block; margin: 12px auto 16px; }
.hub-tagline { color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.hub-poem { margin-top: 22px; }
.hub-poem p { color: var(--text-soft); font-size: 15px; line-height: 2.05; margin: 0; letter-spacing: 0.3px; }
.hub-poem p + p { margin-top: 17px; }

/* 主页背景虚影 · across-oceans 题诗（镌于大英博物馆中央大厅地砖） */
.hub-poembg {
  position: absolute; z-index: 0;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 132vw;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(38px, 10vw, 72px); line-height: 1.12; letter-spacing: 0.5px;
  white-space: nowrap; text-align: center;
  color: rgba(58, 70, 88, 0.10);
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 34%, transparent 86%);
}
.hub-head, .hub-modules, .hub-foot { position: relative; z-index: 1; }
@media (max-width: 480px) {
  .hub-poembg { font-size: clamp(28px, 11vw, 46px); top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hub-poembg { opacity: 0.85; } }

/* 主页底部 · across-oceans 题诗中文（与顶部英文虚影一首一尾） */
.hub-inscription {
  position: relative; z-index: 1;
  text-align: center; max-width: 440px; margin: 46px auto 0;
}
.hub-inscription .ins-cn {
  font-family: 'LXGW WenKai', serif;
  font-size: 16.5px; line-height: 2.05; letter-spacing: 1px;
  color: var(--text-soft); margin: 0;
}
.hub-inscription .ins-cn em { font-style: normal; color: var(--vermilion); }
.hub-inscription .ins-src {
  font-size: 12.5px; color: var(--ink-soft);
  letter-spacing: 0.5px; margin: 13px 0 0;
}
/* 水墨晕染 · 手绘线条的淡墨/朱砂晕开 */
.hub-stroke { filter: drop-shadow(0 0.6px 1.4px rgba(194,84,80,0.20)); }
.hub-foot svg:first-of-type { filter: drop-shadow(0 0.6px 1.2px rgba(58,70,88,0.18)); }
.lib-head .stroke { filter: drop-shadow(0 0.6px 1.4px rgba(194,84,80,0.20)); }

/* 播客卡片 · 续写小句 */
.pod-story { margin: 11px 0 5px; }
.pod-story .ps-en {
  display: block; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14.5px; color: var(--wash-brown); letter-spacing: 0.3px;
}
.pod-story .ps-cn {
  display: block; font-family: 'LXGW WenKai', serif;
  font-size: 13px; color: var(--text-soft); margin-top: 2px; letter-spacing: 0.5px;
}

.hub-modules { display: flex; flex-direction: column; gap: 16px; }
.module-card {
  display: block; text-decoration: none; position: relative;
  background: var(--paper-light); border: 1.4px solid rgba(74,63,51,.16);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(58,70,88,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(58,70,88,.12);
  border-color: rgba(194,84,80,.4);
}
.module-en {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--wash-brown); font-size: 15px; letter-spacing: 1px; margin-bottom: 4px;
}
.module-card h2 {
  font-size: 21px; color: var(--ink-deep); font-weight: 600; letter-spacing: 1px; margin-bottom: 8px;
}
.module-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }
.module-go {
  display: inline-block; font-size: 14.5px; color: var(--vermilion); font-weight: 600; letter-spacing: .5px;
}

.hub-soon { text-align: center; margin: 30px 0 8px; }
.hub-soon-label {
  display: inline-block; font-size: 12px; color: var(--ink-soft);
  letter-spacing: 2px; padding: 0 10px; position: relative;
}
.hub-soon-items {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px;
}
.hub-soon-items span {
  font-size: 13.5px; color: var(--ink-soft);
  border: 1px dashed rgba(74,63,51,.3); border-radius: 18px; padding: 5px 16px;
  background: transparent;
}

.hub-foot { text-align: center; margin-top: 46px; color: var(--ink-soft); }
.hub-foot svg { opacity: .7; margin-bottom: 10px; }
.hub-foot p { font-size: 13px; line-height: 1.8; }
.hub-foot .hub-sign { margin-top: 12px; font-size: 13px; color: var(--text-soft); }

@media (max-width: 480px) {
  .hub-wrap { padding: 44px 16px 56px; }
  .hub-brand { font-size: 26px; }
}

/* ===== 首页 hub · 卡片 + 水波（纵向列表）===== */
.hub-modules { gap: 16px; }
.hub-zone { margin-top: 34px; }
.hub-zone:first-child { margin-top: 26px; }
.zone-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0 2px; }
.zone-name { font-size: 12.5px; letter-spacing: 3px; color: var(--ink-soft); white-space: nowrap; }
.zone-wave { flex: 1; height: 9px; opacity: .85; }
.mod-row { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 13px; align-items: stretch; }
.module-card { overflow: hidden; }
.module-card:focus-visible { outline: 2px solid var(--vermilion-soft); outline-offset: 3px; }
/* 全站键盘焦点环 */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--vermilion-soft); outline-offset: 2px; border-radius: 4px;
}
.module-card.sm { padding: 15px 17px; border-radius: 15px; }
.module-card.sm .module-en { font-size: 13px; margin-bottom: 2px; }
.module-card.sm h2 { font-size: 16px; margin-bottom: 4px; letter-spacing: .6px; }
.module-card.sm p { font-size: 12px; line-height: 1.6; margin-bottom: 0; }
.module-card.soon { background: #f4efe3; border-style: dashed; border-color: rgba(74,63,51,.2); box-shadow: none; cursor: default; }
.module-card.soon:hover { transform: none; box-shadow: none; border-color: rgba(74,63,51,.2); }
.module-card.soon .module-en { color: #c2b89f; }
.module-card.soon h2 { color: #a8a08f; }
.module-card.soon .soon-tag { display: inline-block; font-size: 12px; color: var(--ink-soft); letter-spacing: 1px; }
.module-card .tool-line { font-size: 12px; color: var(--text-soft); margin-bottom: 0; }
@media (max-width: 560px) {
  .mod-row { grid-template-columns: 1fr; gap: 12px; }
  .module-card.sm { padding: 17px 19px; }
  .module-card.sm h2 { font-size: 17px; }
  .module-card.sm p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ripple-fx, .rfx { display: none !important; }
  .module-card { transition: none; }
  .guide-screen, .guide-screen.active { transition-delay: 0s !important; transition-duration: 0.15s !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* 留言墙左上角回首页 */
.wall-home {
  display: inline-block; margin-bottom: 8px;
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.wall-home:hover { color: var(--vermilion); border-bottom-color: var(--vermilion); }

/* 门户·敬请上线卡片 */
.module-card.soon { opacity: .72; cursor: default; }
.module-card.soon:hover { transform: none; box-shadow: 0 2px 8px rgba(58,70,88,.05); border-color: rgba(74,63,51,.16); }
.module-go.soon-tag {
  color: var(--ink-soft); border: 1px dashed rgba(74,63,51,.4);
  border-radius: 14px; padding: 2px 12px; font-size: 13px; font-weight: 400;
}
