:root {
  color-scheme: light;
  --ink: #080808;
  --ink-2: #151515;
  --ink-soft: #4b4b4b;
  --paper: #f4f1ea;
  --paper-deep: #e5e0d6;
  --paper-pale: #fbfaf6;
  --ash: #9b9b96;
  --line: rgba(8, 8, 8, 0.15);
  --line-strong: rgba(8, 8, 8, 0.42);
  --cinnabar: #a51f18;
  --cinnabar-dark: #67110d;
  --shadow: 0 28px 88px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --scroll: 0;
  --parallax-x: 0;
  --parallax-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.05)),
    radial-gradient(ellipse at 70% 8%, rgba(0, 0, 0, 0.14), transparent 34%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 5px),
    var(--paper);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 255, 255, 0.86), transparent 36%),
    radial-gradient(ellipse at 84% 22%, rgba(0, 0, 0, 0.18), transparent 36%),
    linear-gradient(180deg, #f8f6f0, #e7e1d6 74%, #d5cec2);
}

body::after {
  z-index: -2;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(90deg, transparent 0 24px, rgba(0, 0, 0, 0.035) 25px 26px, transparent 27px 72px),
    linear-gradient(0deg, transparent 0 26px, rgba(0, 0, 0, 0.025) 27px 28px, transparent 29px 68px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: calc(var(--scroll) * 100%);
  height: 3px;
  background: linear-gradient(90deg, #060606, var(--cinnabar), #060606);
}

.ink-cursor {
  position: fixed;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 8;
  opacity: 0.13;
  filter: blur(26px);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.58), transparent 66%);
  mix-blend-mode: multiply;
}

.ink-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.ink-weather {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ink-weather i {
  position: absolute;
  top: -10vh;
  width: 2px;
  height: 36px;
  opacity: 0.22;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52), transparent);
  transform: rotate(18deg);
  animation: inkRain 9s linear infinite;
}

.ink-weather i:nth-child(1) { left: 6%; animation-delay: -1s; animation-duration: 8s; }
.ink-weather i:nth-child(2) { left: 12%; animation-delay: -6s; animation-duration: 12s; }
.ink-weather i:nth-child(3) { left: 19%; animation-delay: -3s; animation-duration: 10s; }
.ink-weather i:nth-child(4) { left: 27%; animation-delay: -8s; animation-duration: 13s; }
.ink-weather i:nth-child(5) { left: 34%; animation-delay: -2s; animation-duration: 9s; }
.ink-weather i:nth-child(6) { left: 42%; animation-delay: -5s; animation-duration: 14s; }
.ink-weather i:nth-child(7) { left: 48%; animation-delay: -9s; animation-duration: 11s; }
.ink-weather i:nth-child(8) { left: 55%; animation-delay: -4s; animation-duration: 8s; }
.ink-weather i:nth-child(9) { left: 63%; animation-delay: -7s; animation-duration: 15s; }
.ink-weather i:nth-child(10) { left: 69%; animation-delay: -2s; animation-duration: 10s; }
.ink-weather i:nth-child(11) { left: 74%; animation-delay: -11s; animation-duration: 13s; }
.ink-weather i:nth-child(12) { left: 79%; animation-delay: -1s; animation-duration: 9s; }
.ink-weather i:nth-child(13) { left: 85%; animation-delay: -6s; animation-duration: 12s; }
.ink-weather i:nth-child(14) { left: 90%; animation-delay: -4s; animation-duration: 15s; }
.ink-weather i:nth-child(15) { left: 95%; animation-delay: -10s; animation-duration: 11s; }
.ink-weather i:nth-child(16) { left: 98%; animation-delay: -3s; animation-duration: 8s; }

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  background: rgba(247, 244, 237, 0.78);
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(0.7);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  background: var(--cinnabar);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 10px 24px rgba(165, 31, 24, 0.26);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 132%;
  height: 132%;
  object-fit: cover;
  max-width: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

nav a:hover,
nav a.active {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.42);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.chapter-dock {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 24;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.chapter-dock a {
  display: grid;
  gap: 3px;
  width: 58px;
  padding: 10px 8px;
  color: var(--ink-soft);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 244, 237, 0.74);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.chapter-dock span {
  color: var(--cinnabar);
  font-weight: 900;
}

main {
  position: relative;
  z-index: 5;
}

.hero {
  position: relative;
  min-height: min(860px, 92vh);
  display: grid;
  align-items: end;
  padding: 138px max(24px, calc((100vw - 1180px) / 2)) 52px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035) translate(calc(var(--parallax-x) * -9px), calc(var(--parallax-y) * -7px));
  filter: grayscale(1) contrast(1.08) saturate(0.5);
}

.hero-ink {
  position: absolute;
  inset: -8% -6%;
  z-index: -3;
  opacity: 0.72;
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 10% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78) 28%, transparent 48%),
    radial-gradient(ellipse at 95% 74%, rgba(0, 0, 0, 0.35), transparent 42%),
    linear-gradient(90deg, rgba(246, 243, 236, 0.96) 0%, rgba(246, 243, 236, 0.78) 42%, rgba(246, 243, 236, 0.12) 76%),
    linear-gradient(0deg, var(--paper) 0%, rgba(244, 241, 234, 0.36) 26%, transparent 58%);
}

.hero-ink::before,
.hero-ink::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.hero-ink::before {
  left: -16vw;
  top: 6vh;
  width: 58vw;
  height: 42vh;
  opacity: 0.34;
  filter: blur(1px);
  background:
    radial-gradient(ellipse at 28% 48%, rgba(0, 0, 0, 0.64), transparent 12%),
    radial-gradient(ellipse at 42% 52%, rgba(0, 0, 0, 0.22), transparent 30%),
    linear-gradient(100deg, transparent 12%, rgba(0, 0, 0, 0.34) 18%, transparent 28%);
  transform: rotate(-11deg);
  animation: brushBreathe 9s ease-in-out infinite;
}

.hero-ink::after {
  right: -6vw;
  bottom: -8vh;
  width: 52vw;
  height: 32vh;
  opacity: 0.38;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 0, 0, 0.52), transparent 18%),
    radial-gradient(ellipse at 45% 58%, rgba(0, 0, 0, 0.32), transparent 28%),
    linear-gradient(14deg, transparent 8%, rgba(0, 0, 0, 0.46) 16%, transparent 29%);
  animation: inkDrift 14s ease-in-out infinite alternate;
}

.hero-mist {
  position: absolute;
  inset: auto -20% 0;
  z-index: -2;
  height: 42%;
  opacity: 0.72;
  filter: blur(12px);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(ellipse at 28% 62%, rgba(255, 255, 255, 0.78), transparent 48%),
    radial-gradient(ellipse at 78% 42%, rgba(255, 255, 255, 0.56), transparent 44%);
  animation: mistFlow 18s linear infinite;
}

.blade-flash {
  position: absolute;
  right: 41%;
  bottom: 18%;
  z-index: -1;
  width: 2px;
  height: 230px;
  opacity: 0.22;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0.44), transparent);
  transform: rotate(28deg);
  filter: blur(0.4px);
  animation: bladeFlash 5.8s ease-in-out infinite;
}

.calligraphy-wall {
  position: absolute;
  left: max(26px, calc((100vw - 1180px) / 2));
  top: 19%;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(8px, 1.4vw, 18px);
  color: rgba(0, 0, 0, 0.18);
  font-family: "STKaiti", "KaiTi", "SimKai", serif;
  font-size: clamp(72px, 14vw, 190px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.calligraphy-wall span {
  display: inline-block;
  filter: blur(0.2px);
  transform: rotate(var(--r, -6deg));
  animation: calligraphyFloat 8s ease-in-out infinite;
}

.calligraphy-wall span:nth-child(2) { --r: 4deg; animation-delay: -1.2s; }
.calligraphy-wall span:nth-child(3) { --r: -2deg; animation-delay: -2.4s; }
.calligraphy-wall span:nth-child(4) { --r: 7deg; color: rgba(165, 31, 24, 0.22); animation-delay: -3.5s; }

.seal-stamp {
  position: absolute;
  left: min(55vw, 680px);
  top: 24%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 5px;
  background: rgba(165, 31, 24, 0.9);
  box-shadow: 0 18px 42px rgba(103, 17, 13, 0.28);
  transform: rotate(-9deg);
  animation: sealPulse 5s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 690px;
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cinnabar);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(76px, 11vw, 168px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
  text-wrap: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #222;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn,
.profile-btn,
.forum-actions button,
.reaction-row button,
.comment-form button,
.wall-form button,
.profile-like,
.wall-like {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(251, 250, 246, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn::before,
.profile-btn::before,
.forum-actions button::before,
.reaction-row button::before,
.comment-form button::before,
.wall-form button::before,
.profile-like::before,
.wall-like::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(0, 0, 0, 0.12), transparent);
  transform: translateX(-120%);
  transition: opacity 0.18s ease, transform 0.34s ease;
}

.btn:hover,
.profile-btn:hover,
.forum-actions button:hover,
.reaction-row button:hover,
.comment-form button:hover,
.wall-form button:hover,
.profile-like:hover,
.wall-like:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 31, 24, 0.58);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.btn:hover::before,
.profile-btn:hover::before,
.forum-actions button:hover::before,
.reaction-row button:hover::before,
.comment-form button:hover::before,
.wall-form button:hover::before,
.profile-like:hover::before,
.wall-like:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.btn-primary {
  color: var(--paper-pale);
  border-color: rgba(0, 0, 0, 0.78);
  background: linear-gradient(135deg, #060606, #272727 62%, var(--cinnabar-dark));
}

.btn-ghost {
  background: rgba(247, 244, 237, 0.72);
}

.text-link {
  color: var(--cinnabar);
  font-weight: 800;
}

.hero-ribbon {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 42px;
}

.hero-ribbon div {
  position: relative;
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 244, 237, 0.64);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-ribbon div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(165, 31, 24, 0.8), transparent);
}

.hero-ribbon span,
.hero-ribbon strong {
  display: block;
}

.hero-ribbon span {
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-ribbon strong {
  margin-top: 4px;
  font-size: 16px;
}

.section-ink {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(66px, 8vw, 104px) 0;
}

.section-head {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 26px;
}

.section-head::before {
  content: "";
  width: 86px;
  height: 3px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--ink), var(--cinnabar), transparent);
}

.section-head h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.updates-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(210px, 1fr));
  gap: 14px;
}

.ink-panel,
.notice-panel,
.pulse-panel,
.forum-auth,
.forum-main,
.member-card,
.chapter-paper,
.profile-section,
.profile-modal,
.activity-item,
.forum-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(230, 226, 218, 0.72)),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ink-panel::after,
.notice-panel::after,
.pulse-panel::after,
.forum-card::after,
.member-card::after,
.chapter-paper::after,
.profile-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(0, 0, 0, 0.08) 43%, transparent 48%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 0), rgba(165, 31, 24, 0.16), transparent 26%);
  mix-blend-mode: multiply;
  transition: opacity 0.2s ease;
}

.ink-panel:hover::after,
.notice-panel:hover::after,
.pulse-panel:hover::after,
.forum-card:hover::after,
.member-card:hover::after,
.chapter-paper:hover::after,
.profile-section:hover::after {
  opacity: 0.55;
}

.notice-panel,
.pulse-panel,
.forum-auth,
.forum-main {
  padding: 20px;
}

.notice-panel {
  min-height: 360px;
}

.board-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.board-title span {
  color: var(--cinnabar);
  font-weight: 900;
}

.board-title h3 {
  margin: 0;
  font-size: 21px;
}

.notice-list,
.pulse-list,
.forum-feed,
.modal-posts,
.wall-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.activity-item {
  padding: 14px;
  box-shadow: none;
  background: rgba(251, 250, 246, 0.58);
}

.activity-item span,
.mini-post span,
.forum-meta span {
  color: var(--ink-soft);
  font-size: 13px;
}

.activity-item strong,
.activity-item p {
  display: block;
  margin: 5px 0 0;
}

.activity-item p,
.forum-content,
.mini-post p,
.comment-item p,
.wall-message p,
.login-note,
.empty-note {
  color: var(--ink-soft);
  line-height: 1.8;
}

.empty-note {
  margin: 0;
}

.event-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--cinnabar);
  font-weight: 800;
}

.forum-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.forum-login,
.forum-status,
.forum-composer,
.wall-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(165, 31, 24, 0.62);
  box-shadow: 0 0 0 4px rgba(165, 31, 24, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.field-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px dashed rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.file-pill input {
  display: none;
}

.emoji-row,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-row button,
.reaction-row button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 10px;
}

.emoji-row button.active,
.reaction-row button:hover,
.ink-action.liked,
.profile-like.liked,
.wall-like.liked {
  color: var(--paper-pale);
  background: linear-gradient(135deg, #070707, var(--cinnabar-dark));
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-chip {
  max-width: 220px;
  padding: 8px 10px;
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
}

.forum-card {
  padding: 18px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.12);
}

.forum-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.forum-meta div {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.forum-meta em {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
  background: rgba(255, 255, 255, 0.55);
}

.forum-card h3,
.member-card h3,
.mini-post strong {
  margin: 0;
  font-size: 22px;
}

.forum-content {
  white-space: pre-wrap;
}

.forum-images,
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.forum-images img,
.modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
  filter: grayscale(0.35) contrast(1.04);
}

.forum-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.forum-actions span {
  color: var(--ink-soft);
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.comment-item,
.wall-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
}

.comment-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.comment-item strong,
.wall-message strong {
  display: block;
}

.comment-item p,
.wall-message p {
  margin: 4px 0 0;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px auto;
  gap: 8px;
  margin-top: 12px;
}

.members {
  padding-top: 88px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 16px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
}

.filter-btn.active {
  color: var(--paper-pale);
  background: linear-gradient(135deg, #070707, #2a2a2a);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.member-card {
  padding: 18px;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.member-card.is-hidden {
  display: none;
}

.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.member-top span,
.tag {
  color: var(--ink-soft);
}

.member-tags,
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.member-tags {
  margin: 10px 0 4px;
}

.profile-tags {
  margin: 8px 0 14px;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #2b211c;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(163, 72, 53, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-tag.muted {
  color: var(--ink-soft);
  font-weight: 600;
  border-style: dashed;
}

.member-card p {
  line-height: 1.8;
}

.portrait {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--paper-pale);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  overflow: hidden;
  background: #151515;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.2);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.portrait[role="button"],
.author-avatar,
.comment-avatar {
  cursor: pointer;
}

.seal-moss,
.seal-blue,
.seal-ink {
  background: linear-gradient(135deg, #060606, #3b3b3b);
}

.seal-cinnabar {
  background: linear-gradient(135deg, #b2261f, #67110d);
}

.author-avatar,
.comment-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 0;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.chronicle-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-item {
  width: 100%;
  min-height: 74px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.chapter-item.active {
  color: var(--paper-pale);
  background: linear-gradient(135deg, #070707, #2d2d2d 68%, var(--cinnabar-dark));
}

.chapter-item time,
.chapter-item strong {
  display: block;
}

.chapter-paper {
  min-height: 260px;
  padding: 26px;
}

.chapter-paper h3 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 38px;
}

.chapter-paper p {
  color: var(--ink-soft);
  line-height: 2;
}

.role {
  color: var(--cinnabar);
  font-weight: 900;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 60px;
  padding: 20px;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

.profile-modal {
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(226, 222, 214, 0.95)),
    var(--paper);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.profile-modal::backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.modal-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.modal-portrait {
  width: 150px;
  height: 150px;
  font-size: 56px;
}

.modal-copy h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(36px, 5vw, 62px);
}

.modal-copy dl {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.modal-copy dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.modal-copy dt {
  color: var(--cinnabar);
  font-weight: 900;
}

.modal-copy dd {
  margin: 0;
  color: var(--ink-soft);
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.profile-section {
  padding: 18px;
  box-shadow: none;
}

.profile-section h3 {
  margin: 0 0 12px;
}

.profile-wall {
  grid-column: 1 / -1;
}

.mini-post {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
}

.wall-form {
  grid-template-columns: minmax(0, 1fr) 120px auto;
  margin-bottom: 12px;
}

.wall-like {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes inkRain {
  from { transform: translate3d(0, -14vh, 0) rotate(18deg); opacity: 0; }
  12% { opacity: 0.22; }
  84% { opacity: 0.18; }
  to { transform: translate3d(-10vw, 118vh, 0) rotate(18deg); opacity: 0; }
}

@keyframes brushBreathe {
  0%, 100% { transform: rotate(-11deg) scale(0.98); opacity: 0.24; }
  50% { transform: rotate(-9deg) scale(1.06); opacity: 0.42; }
}

@keyframes inkDrift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-36px, -18px, 0) rotate(-2deg); }
}

@keyframes mistFlow {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

@keyframes bladeFlash {
  0%, 72%, 100% { opacity: 0.12; filter: blur(0.8px); }
  78% { opacity: 0.62; filter: blur(0); }
}

@keyframes calligraphyFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r)); opacity: 0.84; }
  50% { transform: translateY(-8px) rotate(calc(var(--r) * -1)); opacity: 0.58; }
}

@keyframes sealPulse {
  0%, 100% { transform: rotate(-9deg) scale(1); }
  50% { transform: rotate(-7deg) scale(1.04); }
}

@media (max-width: 1080px) {
  .chapter-dock {
    display: none;
  }

  .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-shell,
  .chronicle-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    padding: 8px 7px;
    font-size: 14px;
  }

  .hero {
    min-height: 820px;
    padding-top: 156px;
    padding-bottom: 36px;
    align-items: start;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-ink {
    background:
      linear-gradient(180deg, rgba(246, 243, 236, 0.96), rgba(246, 243, 236, 0.38) 52%, rgba(246, 243, 236, 0.9)),
      linear-gradient(90deg, rgba(246, 243, 236, 0.98), rgba(246, 243, 236, 0.28));
  }

  .calligraphy-wall {
    top: 38%;
    left: 18px;
    grid-template-columns: 1fr;
    gap: 0;
    font-size: clamp(70px, 23vw, 112px);
    opacity: 0.7;
  }

  .seal-stamp {
    left: auto;
    right: 24px;
    top: 34%;
    width: 60px;
    height: 60px;
    font-size: 14px;
  }

  .hero-content {
    max-width: 330px;
    padding-top: 10px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 78px);
    line-height: 0.98;
  }

  .hero-copy {
    max-width: 310px;
    font-size: 15px;
    line-height: 1.82;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 18px;
  }

  .hero-actions .btn {
    min-height: 38px;
    padding: 8px 13px;
  }

  .hero-ribbon {
    grid-template-columns: 1fr;
    margin-top: 22px;
    max-width: 330px;
  }

  .updates-grid,
  .modal-grid,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .field-line,
  .comment-form,
  .wall-form {
    grid-template-columns: 1fr;
  }

  .modal-portrait {
    width: 112px;
    height: 112px;
  }
}

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

  .ink-canvas,
  .ink-weather,
  .ink-cursor {
    display: none;
  }
}


/* v-livebg-lock: 首页改为用户提供的静音循环动态底图，并清除额外雨线/纸纹竖线。 */
.hero-bg {
  pointer-events: none;
  filter: none !important;
  transform: scale(1.01) translate(calc(var(--parallax-x) * -4px), calc(var(--parallax-y) * -3px));
}

.hero video.hero-bg {
  display: block;
  background: var(--paper);
}

.ink-weather,
.ink-weather i,
.yanyu-soft-rain,
.yanyu-soft-rain::before,
.yanyu-soft-rain i,
.yanyu-rain-splash,
.yanyu-rain-splash em,
.blade-flash,
.ink-enhance-paper,
.ink-enhance-hero::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

body::after {
  background-image: none !important;
  opacity: 0 !important;
}

@media (max-width: 760px), (prefers-reduced-data: reduce) {
  .hero-bg.is-static-poster {
    object-position: 56% top;
  }

  .ink-canvas {
    display: none !important;
  }

  main section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
  }
}


/* repair v2: forum usability polish */
.hero-ribbon strong { line-height: 1.25; }
.forum-auth { position: sticky; top: 92px; }
.forum-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.52);
}
.forum-filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.forum-filter-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: var(--ink-soft);
}
.forum-filter-btn.active {
  color: var(--paper-pale);
  border-color: rgba(103,17,13,0.82);
  background: linear-gradient(135deg, #1d1a18, var(--cinnabar-dark));
}
.forum-search { width: min(320px, 100%); }
.forum-search input { min-height: 40px; }
.forum-main { padding-bottom: 22px; }
.forum-feed { gap: 14px; }
.forum-card {
  padding: 16px;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}
.forum-card::after { opacity: 0.18; }
.forum-card:hover::after { opacity: 0.28; }
.reaction-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}
.reaction-row button {
  min-width: auto;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.72);
}
.comment-list { gap: 10px; }
.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 84px;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}
.comment-form input,
.comment-form select,
.comment-form button { min-height: 40px; }
.comment-form button {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: linear-gradient(135deg, #111, var(--cinnabar-dark));
  color: var(--paper-pale);
}
.login-note { margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,0.08); }
@media (max-width: 900px) {
  .forum-toolbar { align-items: stretch; }
  .forum-search { width: 100%; }
  .comment-form { grid-template-columns: 1fr; }
}


/* repair v3: advanced forum + toast */
.floating-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate3d(-50%, 20px, 0);
  min-width: 180px;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.9);
  color: #f8f3eb;
  box-shadow: 0 16px 40px rgba(0,0,0,0.26);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  text-align: center;
  transition: opacity .22s ease, transform .22s ease;
}
.floating-toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}
.floating-toast[data-type="error"] { background: rgba(111, 23, 23, 0.94); }
.forum-meta { align-items: center; }
.forum-meta-side {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.forum-mood {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  font-style: normal;
}
.forum-delete-btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(132, 30, 18, 0.18);
  background: rgba(132, 30, 18, 0.08);
  color: #7e261b;
}
.forum-delete-btn:hover {
  border-color: rgba(132, 30, 18, 0.28);
  background: rgba(132, 30, 18, 0.13);
}
.forum-title { margin-bottom: 10px; }
.forum-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 2px;
}
.forum-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  color: var(--ink-soft);
}
.forum-actions { align-items: center; }
.forum-action-hint { color: var(--ink-soft); font-size: 12px; }
.comment-list .comment-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.comment-list .comment-item:last-child { border-bottom: 0; }
@media (max-width: 680px) {
  .forum-meta { align-items: flex-start; }
  .forum-meta-side { width: 100%; justify-content: space-between; }
}

/* forum simple mode */
.forum-shell {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.forum-auth {
  position: relative;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.forum-auth .board-title {
  margin: 0;
}

.forum-auth .forum-login {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  align-items: end;
  min-width: min(620px, 100%);
}

.forum-auth .forum-login .text-link {
  grid-column: 1 / -1;
}

.forum-status {
  min-width: min(520px, 100%);
}

.forum-main {
  padding: 16px;
}

.forum-composer {
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.36);
}

.emoji-row,
.reaction-row,
.forum-mood,
.forum-filter-btn[data-view="images"],
.comment-form select,
.forum-action-hint {
  display: none !important;
}

.forum-toolbar {
  align-items: center;
  margin: 12px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.forum-filter-group {
  gap: 6px;
}

.forum-filter-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 6px;
}

.forum-search {
  width: min(260px, 100%);
}

.forum-search input {
  min-height: 36px;
  padding: 9px 11px;
}

.forum-feed {
  gap: 12px;
}

.forum-card {
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.07);
}

.forum-card h3 {
  font-size: 20px;
}

.forum-content {
  margin: 8px 0 0;
  line-height: 1.75;
}

.forum-chips {
  margin: 10px 0 0;
}

.forum-actions {
  margin: 10px 0 4px;
}

.comment-list {
  gap: 6px;
  margin-top: 6px;
}

.comment-list .comment-item {
  padding: 8px 0;
}

.comment-form {
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

.comment-form input,
.comment-form button {
  min-height: 38px;
}

@media (max-width: 820px) {
  .forum-auth,
  .forum-auth .forum-login,
  .forum-toolbar,
  .field-line,
  .composer-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .forum-search {
    width: 100%;
  }

  .composer-tools .btn {
    width: 100%;
  }
}


/* v-hero-normal-size-20260501：修复电脑版底图被手机兜底图放大的问题 */
.hero {
  background:
    linear-gradient(90deg, rgba(246, 243, 236, 0.88), rgba(246, 243, 236, 0.18)),
    url("./assets/hero-yanyu-poster-960.jpg") center / cover no-repeat,
    var(--paper);
}

.hero video.hero-bg,
.hero-bg {
  background:
    url("./assets/hero-yanyu-poster-960.jpg") center / cover no-repeat,
    var(--paper);
  object-position: center center;
}

@media (min-width: 761px) {
  .hero-bg {
    transform: none !important;
  }
}

@media (max-width: 760px), (prefers-reduced-data: reduce) {
  .hero {
    background:
      linear-gradient(180deg, rgba(246, 243, 236, 0.90), rgba(246, 243, 236, 0.30)),
      url("./assets/hero-yanyu-mobile.jpg") 56% top / cover no-repeat,
      var(--paper);
  }

  .hero video.hero-bg,
  .hero-bg,
  .hero-bg.is-static-poster {
    background:
      url("./assets/hero-yanyu-mobile.jpg") 56% top / cover no-repeat,
      var(--paper);
    object-position: 56% top;
  }
}
