/* ==========================================================================
   红枫下唯物主义学社 · 视觉系统
   纸张、墨色、枫红；宋体为骨，无衬线为用。零外部字体、零框架。
   ========================================================================== */

:root {
  --paper: #f5efe3;
  --paper-2: #ece3d2;
  --paper-3: #e0d3bd;
  --cream: #fbf7ee;
  --ink: #1b1714;
  --ink-2: #3b342c;
  --muted: #6c6154;
  --faint: #756a5b;
  --maple: #9b2c24;
  --maple-deep: #6d1712;
  --maple-bright: #b84336;
  --gold: #a8834a;
  --line: rgba(27, 23, 20, 0.14);
  --line-strong: rgba(27, 23, 20, 0.28);
  --ok: #3d674b;
  --warn: #94651b;
  --bad: #8d2a22;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --shell: 1180px;
  --shadow: 0 30px 70px -38px rgba(42, 26, 15, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(155, 44, 36, 0.06), transparent 62%),
    radial-gradient(900px 540px at -8% 32%, rgba(168, 131, 74, 0.06), transparent 60%);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--maple);
  color: var(--cream);
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

:focus-visible {
  outline: 2px solid var(--maple);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: min(100% - 64px, var(--shell));
  margin-inline: auto;
}

.main {
  display: block;
  min-height: 58vh;
}

/* --------------------------------------------------------------------------
   页眉
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 239, 227, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead__bar {
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--maple);
  color: var(--cream);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px var(--maple), inset 0 0 0 4px rgba(251, 247, 238, 0.5);
  transform: rotate(-2deg);
}

.brand__seal svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.brand__seal .leaf-stem {
  stroke: currentColor;
}

.brand__words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__sub {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.masthead__menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 28px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--maple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--maple);
}

.account {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.86rem;
}

.account__link {
  color: var(--ink-2);
  transition: color 0.2s;
}

.account__link:hover {
  color: var(--maple);
}

.account__link--admin {
  color: var(--maple);
  font-weight: 600;
}

.account__logout {
  display: inline;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkish:hover {
  color: var(--maple);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.masthead.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.masthead.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.masthead.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.masthead__ticker {
  border-top: 1px solid var(--line);
  background: rgba(236, 227, 210, 0.45);
}

.masthead__ticker-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.masthead__motto {
  color: var(--maple);
}

.notice-bar {
  background: var(--maple);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.notice-bar .shell {
  padding-block: 10px;
}

/* --------------------------------------------------------------------------
   通用元素
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--maple);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow--plain::before {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--maple);
  border-radius: 2px;
  background: var(--maple);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.button:hover {
  background: var(--maple-deep);
  border-color: var(--maple-deep);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button--ghost:hover {
  background: transparent;
  border-color: var(--ink);
}

.button--light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.button--light:hover {
  background: #fff;
  border-color: #fff;
}

.button--danger {
  background: transparent;
  color: var(--bad);
  border-color: rgba(141, 42, 34, 0.4);
}

.button--danger:hover {
  background: rgba(141, 42, 34, 0.08);
  border-color: var(--bad);
}

.button--small {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.78rem;
}

.button--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.text-link:hover {
  color: var(--maple);
  border-color: var(--maple);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.6;
}

.tag--maple {
  background: var(--maple);
  border-color: var(--maple);
  color: var(--cream);
}

.tag--gold {
  border-color: rgba(168, 131, 74, 0.5);
  color: var(--gold);
}

.muted {
  color: var(--muted);
}

.small {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.form-actions--center {
  justify-content: center;
}

.article-list-space {
  height: 34px;
}

.about-note--flush {
  padding-top: 0;
}

.prose--page {
  max-width: 760px;
  padding: 52px 0 90px;
}

.prose--review {
  font-size: 1.02rem;
  line-height: 1.95;
}

.review-summary {
  margin: 14px 0 22px;
}

.table-wrap--spaced {
  margin-top: 18px;
}

.inline-form--gap {
  margin-left: 12px;
}

.code-inline {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: var(--paper-2);
  padding: 4px 8px;
}

.filter__count {
  margin-left: 6px;
  font-size: 0.66rem;
  color: var(--faint);
}

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.preview-banner > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-banner__text {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.preview-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 0 40px;
}

.preview-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.message-card--unread {
  border-left: 2px solid var(--maple);
  padding-left: 16px;
  background: rgba(251, 247, 238, 0.4);
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(61, 103, 75, 0.3);
  background: rgba(61, 103, 75, 0.08);
  color: var(--ok);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.flash__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--cream);
  font-size: 0.7rem;
}

.alert {
  padding: 13px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(141, 42, 34, 0.3);
  background: rgba(141, 42, 34, 0.07);
  color: var(--bad);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(27, 23, 20, 0.06);
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status--ok {
  background: rgba(61, 103, 75, 0.1);
  color: var(--ok);
}

.status--warn {
  background: rgba(148, 101, 27, 0.1);
  color: var(--warn);
}

.status--bad {
  background: rgba(141, 42, 34, 0.09);
  color: var(--bad);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--maple-deep);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.68rem;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.2rem;
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.byline .avatar {
  background: var(--cream);
}

/* --------------------------------------------------------------------------
   首页 · 开篇
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 78px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((100% - 0px) / 12) 100%;
  opacity: 0.14;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 56px;
  padding-bottom: 64px;
}

.hero__title {
  margin: 26px 0 28px;
  font-size: clamp(3.5rem, 7.4vw, 6.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__title em {
  font-style: normal;
  color: var(--maple);
}

.hero__lede {
  max-width: 34em;
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__art {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 440px);
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(251, 247, 238, 0.9) 0 40%, transparent 41%),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(155, 44, 36, 0.1) 58.2% 58.8%, transparent 59%),
    radial-gradient(circle at 50% 50%, transparent 0 74%, rgba(155, 44, 36, 0.18) 74.2% 74.7%, transparent 75%),
    linear-gradient(145deg, #efe4d1, #e4d4bc);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: fade 1.1s var(--ease) both;
}

.hero__art::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(27, 23, 20, 0.1);
}

.hero__leaf {
  width: 58%;
  fill: var(--maple);
  transform: rotate(-14deg) translateY(-2%);
  filter: drop-shadow(0 16px 22px rgba(109, 23, 18, 0.18));
}

.hero__leaf .leaf-stem {
  stroke: var(--maple);
}

.hero__vertical {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: var(--muted);
}

.hero__stamp {
  position: absolute;
  left: 7%;
  bottom: 10%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid var(--maple);
  color: var(--maple);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  writing-mode: vertical-rl;
  transform: rotate(-6deg);
  background: rgba(251, 247, 238, 0.55);
}

.hero__foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 0;
}

.hero__stat + .hero__stat {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero__stat strong {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--maple);
}

.hero__stat span {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   区块
   -------------------------------------------------------------------------- */

.section {
  padding: 92px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section--ink {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0;
}

.section--ink::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(251, 247, 238, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(251, 247, 238, 0.03), 0 0 0 120px rgba(251, 247, 238, 0.02);
  pointer-events: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 42px;
}

.section-head__title {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head__right {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 4px;
}

.section-head__note {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   首页 · 文章
   -------------------------------------------------------------------------- */

.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
}

.entry-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 40px;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.entry-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.entry-feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
}

.entry-feature__title {
  margin: 42px 0 18px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.entry-feature__title a:hover {
  color: var(--maple);
}

.entry-feature__summary {
  max-width: 36em;
  color: var(--ink-2);
  line-height: 1.9;
}

.entry-feature__foot {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.entry-feature__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--maple);
  letter-spacing: 0.04em;
}

.entry-feature__more svg {
  width: 16px;
  height: 16px;
}

.latest-side {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.entry-row:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-row__index {
  padding-top: 3px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.entry-row__title {
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.5;
}

.entry-row__title a:hover {
  color: var(--maple);
}

.entry-row__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
}

.entry-row__arrow {
  margin-top: 4px;
  color: var(--faint);
  transition: transform 0.25s, color 0.25s;
}

.entry-row__arrow svg {
  width: 20px;
  height: 20px;
}

.entry-row:hover .entry-row__arrow {
  color: var(--maple);
  transform: translateX(4px);
}

.entry-row:hover .entry-row__title {
  color: var(--maple);
}

.side-cta {
  margin-top: 24px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(251, 247, 238, 0.45);
}

.side-cta__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.side-cta p {
  margin: 8px 0 16px;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
}

/* 宣言区 */

.manifesto {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 56px;
  align-items: start;
}

.manifesto__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: rgba(251, 247, 238, 0.55);
  text-transform: uppercase;
}

.manifesto__quote {
  margin: 0;
  max-width: 18em;
  font-size: clamp(1.7rem, 3.05vw, 2.75rem);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.manifesto__quote em {
  font-style: normal;
  color: #df8d72;
}

.manifesto__text {
  max-width: 42em;
  margin-top: 30px;
  color: rgba(251, 247, 238, 0.72);
  font-size: 1rem;
  line-height: 2;
}

.manifesto__actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 36px;
}

.section--ink .text-link {
  color: var(--cream);
  border-color: rgba(251, 247, 238, 0.35);
}

.section--ink .text-link:hover {
  color: #df8d72;
  border-color: #df8d72;
}

/* 学社入口 */

.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.community__title {
  margin: 14px 0 22px;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.3;
}

.community__text {
  max-width: 34em;
  color: var(--ink-2);
  line-height: 1.95;
}

.community__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.community__figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.45);
}

.community__figure {
  padding: 30px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.community__figure:nth-child(2),
.community__figure:nth-child(4) {
  border-left: 1px solid var(--line);
}

.community__figure:nth-child(3),
.community__figure:nth-child(4) {
  border-top: 1px solid var(--line);
}

.community__figure strong {
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--maple);
}

.community__figure span {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   文章列表
   -------------------------------------------------------------------------- */

.page-head {
  padding: 64px 0 38px;
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  margin: 14px 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-head__lede {
  max-width: 44em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

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

.filter {
  padding: 6px 12px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: all 0.2s;
}

.filter:hover {
  color: var(--maple);
}

.filter.is-active {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(251, 247, 238, 0.6);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
}

.search-form input {
  width: 180px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.82rem;
  outline: none;
}

.search-form input::placeholder {
  color: var(--faint);
}

.search-form button {
  border: 0;
  background: transparent;
  padding: 6px;
  color: var(--muted);
}

.search-form button svg {
  width: 17px;
  height: 17px;
}

.search-form button:hover {
  color: var(--maple);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.35s var(--ease);
}

.article-card:hover {
  background: rgba(251, 247, 238, 0.7);
}

.article-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.article-card__title {
  margin: 28px 0 14px;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-card:hover .article-card__title {
  color: var(--maple);
}

.article-card__summary {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
}

.article-card__foot .arrow {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.25s, color 0.25s;
}

.article-card__foot .arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.article-card:hover .article-card__foot .arrow {
  color: var(--maple);
  transform: translateX(4px);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 46px 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.pagination__step {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.pagination__step:hover {
  color: var(--maple);
  border-color: var(--maple);
}

.pagination__step.is-disabled {
  color: var(--faint);
  border-color: transparent;
}

.pagination__count {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   文章阅读页
   -------------------------------------------------------------------------- */

.article-head {
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--maple);
}

.breadcrumb span {
  color: var(--faint);
}

.article-head__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.article-head__title {
  margin: 20px 0 22px;
  max-width: 18em;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article-head__summary {
  max-width: 46em;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--muted);
}

.article-head__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.article-head__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.article-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 720px) 170px;
  justify-content: center;
  gap: 48px;
  padding: 54px 0 80px;
}

.article-rail {
  position: relative;
}

.rail-sticky {
  position: sticky;
  top: 136px;
}

.toc__title,
.rail__title {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.toc a {
  display: block;
  padding: 5px 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.toc a:hover {
  color: var(--maple);
}

.toc a.is-sub {
  padding-left: 12px;
  font-size: 0.73rem;
}

.rail__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.rail__author .avatar--lg {
  width: 46px;
  height: 46px;
  font-size: 0.96rem;
}

.rail__author > div {
  min-width: 0;
}

.rail__author strong {
  overflow-wrap: break-word;
}

.rail__author strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
}

.rail__author span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--muted);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
  transition: all 0.2s;
}

.copy-button:hover {
  border-color: var(--maple);
  color: var(--maple);
}

.prose {
  font-size: 1.12rem;
  line-height: 2.05;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.prose > p {
  margin-bottom: 1.65em;
}

.prose > p:first-child {
  color: var(--ink);
  font-size: 1.2rem;
}

.prose h2 {
  margin: 2.4em 0 0.9em;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
  scroll-margin-top: 140px;
}

.prose h3 {
  margin: 2.1em 0 0.7em;
  font-size: 1.36rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  scroll-margin-top: 140px;
}

.prose h4 {
  margin: 1.8em 0 0.6em;
  font-size: 1.12rem;
  color: var(--ink);
}

.prose a {
  color: var(--maple);
  text-decoration: underline;
  text-decoration-color: rgba(155, 44, 36, 0.4);
  text-underline-offset: 4px;
}

.prose a:hover {
  text-decoration-color: var(--maple);
}

.prose blockquote {
  margin: 2em 0;
  padding: 6px 0 6px 28px;
  border-left: 3px solid var(--maple);
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--ink);
}

.prose blockquote p {
  margin: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.6em;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.5em 0;
  padding-left: 0.2em;
}

.prose li::marker {
  color: var(--maple);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 0.12em 0.36em;
  border-radius: 2px;
  color: var(--maple-deep);
}

.prose pre {
  margin: 2em 0;
  padding: 24px;
  background: #211c18;
  color: #f2eadc;
  overflow-x: auto;
  border-radius: 3px;
  font-size: 0.86rem;
  line-height: 1.75;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.prose hr {
  margin: 3em 0;
}

.prose img {
  margin: 2em 0;
  border: 1px solid var(--line);
}

.article-foot {
  margin-top: 4em;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
}

.article-foot__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-gate {
  max-width: 640px;
  margin: 70px auto;
  padding: 48px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
}

.article-gate__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--maple);
}

.article-gate__icon svg {
  width: 24px;
  height: 24px;
}

.article-gate h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.article-gate p {
  color: var(--muted);
  margin-bottom: 26px;
}

/* 评论 */

.comments {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 90px;
}

.comments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.comments__head h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.comments__count {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
}

.comments__flash {
  margin-top: 18px;
  margin-bottom: 0;
}

.comment-form {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.comment__name {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
}

.comment__time {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--faint);
}

.comment__body {
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.comment__actions {
  margin-top: 8px;
}

.comment-login {
  padding: 22px 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */

.field {
  margin-bottom: 20px;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
}

.field__req {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.field__input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(251, 247, 238, 0.55);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s;
}

.field__input:focus {
  outline: none;
  border-color: var(--maple);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(155, 44, 36, 0.08);
}

.field__textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.85;
}

.field__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field__hint {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--faint);
}

.field__error {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--bad);
}

.field--error .field__input {
  border-color: var(--bad);
  background: rgba(141, 42, 34, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.form-note {
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--faint);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--maple);
  flex-shrink: 0;
}

.check .text-link {
  display: inline;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  color: var(--maple);
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   登录 / 加入
   -------------------------------------------------------------------------- */

.auth-wrap {
  max-width: 1080px;
  margin: 56px auto 90px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: 48px;
  background: var(--ink);
  color: var(--cream);
}

.auth-aside::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -160px;
  border-radius: 50%;
  border: 1px solid rgba(251, 247, 238, 0.15);
  box-shadow: 0 0 0 60px rgba(251, 247, 238, 0.03), 0 0 0 120px rgba(251, 247, 238, 0.02);
}

.auth-aside__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.auth-aside__brand svg {
  width: 34px;
  height: 34px;
  fill: #df8d72;
}

.auth-aside__quote {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 1.75;
}

.auth-aside__quote span {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(251, 247, 238, 0.5);
}

.auth-aside__foot {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(251, 247, 238, 0.45);
}

.auth-main {
  padding: 54px 58px;
}

.auth-main__kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--maple);
  text-transform: uppercase;
}

.auth-main__title {
  margin: 12px 0 8px;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.auth-main__lede {
  margin-bottom: 30px;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--muted);
}

.auth-switch {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--maple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 38px;
}

.form-card__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-card__lede {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   关于 / 成员 / 联系
   -------------------------------------------------------------------------- */

.about-intro {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 64px;
  padding: 74px 0 64px;
  border-bottom: 1px solid var(--line);
}

.about-intro__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--maple);
}

.about-intro__lead {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.7;
  color: var(--ink);
}

.about-intro__lead em {
  font-style: normal;
  color: var(--maple);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
  margin: 64px 0 90px;
}

.about-column {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-column__num {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.about-column h2 {
  margin: 20px 0 14px;
  font-size: 1.35rem;
  font-weight: 600;
}

.about-column p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.about-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 90px;
}

.about-note h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.about-note p {
  color: var(--ink-2);
  line-height: 1.95;
  margin-bottom: 14px;
}

.about-quote {
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.6);
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--maple-deep);
}

.about-quote footer {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  margin: 52px 0 90px;
}

.member-card {
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.member-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-card__name {
  font-size: 1.14rem;
  font-weight: 600;
}

.member-card__role {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--maple);
}

.member-card__bio {
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
}

.member-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  padding: 64px 0 90px;
}

.contact-info h1 {
  margin: 14px 0 22px;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.contact-info p {
  color: var(--ink-2);
  line-height: 1.95;
  margin-bottom: 16px;
}

.contact-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.contact-list__item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.contact-list__item span:first-child {
  color: var(--muted);
}

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 38px;
}

/* --------------------------------------------------------------------------
   成员中心 / 管理后台
   -------------------------------------------------------------------------- */

.dash {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0 100px;
}

.dash-aside {
  align-self: start;
  position: sticky;
  top: 132px;
}

.dash-user {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.dash-user__name {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.dash-user__meta {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
}

.dash-nav {
  display: flex;
  flex-direction: column;
}

.dash-nav a {
  padding: 9px 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}

.dash-nav a:hover {
  color: var(--maple);
}

.dash-nav a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.dash-nav a.is-active::before {
  content: "—";
  margin-right: 8px;
  color: var(--maple);
}

.dash-nav__sep {
  margin: 14px 0 4px;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.dash-main {
  min-width: 0;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.dash-head h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.dash-head p {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  margin-bottom: 34px;
}

.stat {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.5);
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--maple);
}

.stat span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.panel {
  background: rgba(251, 247, 238, 0.6);
  border: 1px solid var(--line);
  padding: 26px;
  margin-bottom: 28px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.panel__head h2 {
  font-size: 1.12rem;
  font-weight: 600;
}

.panel__head a {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--maple);
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.8rem;
  white-space: nowrap;
}

.table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .title-cell {
  max-width: 360px;
  white-space: normal;
  font-family: var(--serif);
  font-size: 0.94rem;
  color: var(--ink);
}

.table .actions-cell {
  text-align: right;
}

.table .actions-cell .button {
  vertical-align: middle;
}

.inline-form {
  display: inline;
}

.quick-list {
  display: flex;
  flex-direction: column;
}

.quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.quick-item:last-child {
  border-bottom: 0;
}

.quick-item__main {
  min-width: 0;
}

.quick-item__title {
  font-size: 0.96rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-item__meta {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--faint);
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
  align-items: start;
}

.editor-main .field__textarea {
  min-height: 430px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.8;
}

.editor-side {
  position: sticky;
  top: 132px;
}

.editor-side .panel {
  margin-bottom: 18px;
}

.preview-box {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--cream);
  margin-top: 22px;
}

.preview-box .prose {
  font-size: 1rem;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.review-side {
  position: sticky;
  top: 132px;
}

.note-box {
  padding: 14px 16px;
  border-left: 2px solid var(--maple);
  background: rgba(155, 44, 36, 0.05);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.message-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.message-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
}

.message-card__body {
  margin: 12px 0;
  font-size: 0.96rem;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.message-card__foot {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
}

/* 成员公开页 */

.member-empty {
  margin: 60px 0 100px;
}

/* 空状态 */

.empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: rgba(251, 247, 238, 0.4);
  margin: 34px 0;
}

.empty__leaf svg {
  width: 32px;
  height: 32px;
  fill: var(--paper-3);
  margin-bottom: 14px;
}

.empty h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty p {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 0 24px;
  margin-top: 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.65fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}

.footer__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer__mark svg {
  width: 34px;
  height: 34px;
  fill: #df8d72;
}

.footer__line {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: rgba(251, 247, 238, 0.5);
}

.footer__note {
  margin-top: 24px;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(251, 247, 238, 0.62);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col h2 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(251, 247, 238, 0.4);
}

.footer__col a,
.footer__col p {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.85;
  color: rgba(251, 247, 238, 0.72);
}

.footer__col a:hover {
  color: #df8d72;
}

.footer__col--wide p {
  margin-bottom: 10px;
  color: rgba(251, 247, 238, 0.55);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 247, 238, 0.12);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(251, 247, 238, 0.38);
}

/* --------------------------------------------------------------------------
   动画与响应式
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1120px) {
  .article-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 40px;
    max-width: 980px;
    margin-inline: auto;
  }

  .article-rail--right {
    display: none;
  }

  .dash {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 38px;
  }
}

@media (max-width: 980px) {
  .masthead__inner {
    min-height: 76px;
  }

  .menu-toggle {
    display: flex;
  }

  .masthead__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 32px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -30px rgba(27, 23, 20, 0.4);
  }

  .masthead.is-open .masthead__menu {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
  }

  .nav__link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .account {
    padding: 18px 0 0;
    border-left: 0;
    gap: 20px;
  }

  .masthead__ticker-inner {
    font-size: 0.58rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero__art {
    width: min(78vw, 380px);
    margin: 0 auto;
  }

  .hero__title {
    font-size: clamp(3.2rem, 10vw, 5.2rem);
  }

  .latest-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .community {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-columns {
    grid-template-columns: 1fr;
  }

  .about-note {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dash {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dash-aside {
    position: static;
  }

  .dash-user {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }

  .dash-user__name {
    margin-top: 0;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .dash-nav a {
    padding: 7px 0;
  }

  .dash-nav__sep {
    display: none;
  }

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

  .editor-layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .editor-side,
  .review-side {
    position: static;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .auth-aside {
    min-height: 240px;
    padding: 32px;
  }

  .auth-aside__quote {
    font-size: 1.2rem;
  }

  .auth-main {
    padding: 38px 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .article-rail--left {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer__col--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 40px);
  }

  .hero {
    padding-top: 48px;
  }

  .hero__title {
    margin-top: 20px;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions {
    gap: 18px;
  }

  .hero__foot {
    grid-template-columns: 1fr;
  }

  .hero__stat {
    padding: 14px 0;
  }

  .hero__stat + .hero__stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 64px 0;
  }

  .section--ink {
    padding: 70px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
  }

  .section-head__right {
    padding-bottom: 0;
  }

  .entry-feature {
    min-height: 0;
    padding: 28px;
  }

  .entry-feature__title {
    margin-top: 30px;
  }

  .entry-feature__foot {
    margin-top: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: 0;
  }

  .page-head {
    padding-top: 44px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    width: 100%;
  }

  .article-head {
    padding-top: 40px;
  }

  .article-head__meta {
    gap: 12px;
  }

  .comments {
    padding-bottom: 60px;
  }

  .comment {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .community__figures {
    grid-template-columns: 1fr 1fr;
  }

  .community__figure {
    padding: 22px;
    min-height: 120px;
  }

  .footer {
    padding-top: 52px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .masthead__ticker-inner span:nth-child(2) {
    display: none;
  }

  .masthead__menu {
    padding-inline: 20px;
  }

  .form-card,
  .contact-form {
    padding: 26px;
  }

  .auth-main {
    padding: 30px 24px;
  }

  .auth-aside {
    display: none;
  }

  .auth-wrap {
    margin: 26px auto 60px;
  }

  .article-gate {
    padding: 32px 22px;
    margin: 44px auto;
  }

  .dash {
    padding-top: 38px;
  }

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

  .stat {
    padding: 16px;
  }

  .stat strong {
    font-size: 1.6rem;
  }

  .panel {
    padding: 20px;
  }

  .editor-main .field__textarea {
    min-height: 340px;
  }

  .article-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

@media print {
  .masthead,
  .footer,
  .comments,
  .article-rail,
  .notice-bar,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .article-head {
    padding: 0 0 20px;
  }

  .prose {
    max-width: none;
  }

  .prose a {
    color: #000;
  }
}
