/* ============================================================
   流韵星河 · 官网样式
   纸本水墨：宣纸暖白为底，墨色为骨，朱砂为神，淡金为辅。
   全部装饰由 CSS 渐变与内联 SVG 绘制，不依赖外部图片与字体。
   ============================================================ */

:root {
  /* 纸与墨 */
  --paper: #f6efe1;
  --paper-2: #fbf5e9;
  --paper-3: #ece1cd;
  --ink: #1f1b16;
  --ink-2: #4a4238;
  --ink-3: #766c5d;
  --ink-4: #9a9080;

  /* 朱砂、描金、黛青 */
  --cinnabar: #8f3129;
  --cinnabar-deep: #76251f;
  --gold: #b08a4a;
  --dai: #35485b;

  --line: rgba(31, 27, 22, 0.13);
  --line-soft: rgba(31, 27, 22, 0.07);

  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong",
    "SimSun", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none; /* 隐藏主滚动条，页面仍可正常滚动，顶部有阅读进度条 */
}

html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
em, i { font-style: normal; }
::selection { background: rgba(143, 49, 41, 0.18); }

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

/* ---------- 纸面 ---------- */
.paper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
}

.paper__fiber {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.paper__wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.paper__wash--1 {
  width: 58vw;
  height: 58vw;
  left: -14vw;
  top: -8vh;
  background: radial-gradient(circle, rgba(176, 138, 74, 0.1), transparent 66%);
}

.paper__wash--2 {
  width: 52vw;
  height: 52vw;
  right: -12vw;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(53, 72, 91, 0.07), transparent 68%);
}

/* 两团淡墨极缓地洇开又收拢，只在偏好动效时开启 */
@media (prefers-reduced-motion: no-preference) {
  .paper__wash--1 { animation: wash-drift-a 34s ease-in-out infinite alternate; }
  .paper__wash--2 { animation: wash-drift-b 46s ease-in-out infinite alternate; }
  @keyframes wash-drift-a {
    to { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
  }
  @keyframes wash-drift-b {
    to { transform: translate3d(-3vw, -2vh, 0) scale(1.08); }
  }
}

/* ---------- 通用排印 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--cinnabar);
  line-height: 1.4;
}

.eyebrow__mark {
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  flex: none;
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 43px);
  line-height: 1.45;
  letter-spacing: 0.045em;
  color: var(--ink);
}

.section__sub {
  max-width: 46em;
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
}

.lede {
  max-width: 34em;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--ink-2);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: rgba(246, 239, 225, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.is-stuck {
  background: rgba(246, 239, 225, 0.94);
  border-bottom-color: var(--line-soft);
}

.nav__prog {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--p, 0%);
  background: linear-gradient(90deg, rgba(143, 49, 41, 0.5), var(--cinnabar));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__seal {
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  background: var(--cinnabar);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand__seal i { display: block; }

/* 印章落纸：首屏一枚小小落印，只演一次 */
@media (prefers-reduced-motion: no-preference) {
  .brand__seal { animation: seal-stamp 0.75s cubic-bezier(0.2, 0.8, 0.3, 1.12) both; }
  @keyframes seal-stamp {
    0% { opacity: 0; transform: scale(1.5) rotate(-11deg); }
    55% { opacity: 1; }
    100% { opacity: 1; transform: scale(1) rotate(-2deg); }
  }
}

.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.brand__tag {
  padding-left: 12px;
  border-left: 1px solid rgba(43, 38, 33, 0.22);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

@media (max-width: 680px) {
  .brand__tag { display: none; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  margin: 0 auto;
}

/* 宽屏下按整条导航栏居中，而非在品牌与按钮之间的剩余空间居中 */
@media (min-width: 941px) {
  .nav__menu {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }
  /* 菜单脱离文档流后，右侧按钮靠自动外边距压回最右 */
  .nav__side { margin-left: auto; }
}

.nav__menu a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  transition: color 0.25s ease;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cinnabar);
  transition: right 0.35s var(--ease);
}

.nav__menu a:hover,
.nav__menu a.is-active { color: var(--cinnabar); }

.nav__menu a:hover span,
.nav__menu a.is-active span { color: var(--cinnabar); }

.nav__menu a:hover::after,
.nav__menu a.is-active::after { right: 0; }

.nav__side { flex: none; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
  border: 1px solid rgba(143, 49, 41, 0.42);
  border-radius: 3px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav__cta:hover {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-2);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink-2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  /* 底部留白略大于顶部（含导航高度），把内容整体抬向视觉中心 */
  padding: calc(var(--nav-h) + 44px) var(--pad) clamp(96px, 12vh, 150px);
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__moon {
  position: absolute;
  top: clamp(96px, 15vh, 180px);
  right: clamp(40px, 12vw, 200px);
  width: clamp(110px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffdf6 0%, #f8f0de 52%, #ecdfc6 100%);
  box-shadow:
    0 0 90px 10px rgba(255, 250, 236, 0.85),
    inset -14px -10px 34px rgba(176, 138, 74, 0.16);
  opacity: 0.9;
  will-change: transform;
}

/* 淡月轻轻起伏、呼吸般明暗 */
@media (prefers-reduced-motion: no-preference) {
  .hero__moon { animation: moon-breathe 12s ease-in-out infinite; }
  @keyframes moon-breathe {
    50% {
      transform: translateY(7px);
      opacity: 0.94;
      box-shadow:
        0 0 112px 18px rgba(255, 250, 236, 0.95),
        inset -14px -10px 34px rgba(176, 138, 74, 0.2);
    }
  }
}

.hero__stars {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(160, 122, 62, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(53, 72, 91, 0.4) 0 1px, transparent 1.5px);
  background-size: 240px 210px, 340px 300px;
  background-position: 18px 32px, 90px 140px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 82%);
}

.hero__mist {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 34vh;
  background:
    linear-gradient(180deg, rgba(246, 239, 225, 0) 0%, rgba(246, 239, 225, 0.72) 66%, var(--paper) 100%),
    radial-gradient(60% 100% at 20% 100%, rgba(246, 239, 225, 0.9), transparent 70%);
}

/* 山间雾气横向缓移，幅度极小，只让画面活一点 */
@media (prefers-reduced-motion: no-preference) {
  .hero__mist { animation: mist-drift 22s ease-in-out infinite alternate; }
  @keyframes mist-drift {
    from { transform: translateX(-1.4%); }
    to { transform: translateX(1.4%); }
  }
}

.hero__mountains {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(180px, 36vh, 360px);
  opacity: 0.92;
  transform: translateY(calc(var(--sy, 0) * 0.035px));
  will-change: transform;
}

.hero__mountains .m3 { fill: #ece2d0; }
.hero__mountains .m2 { fill: #e1d4bc; }
.hero__mountains .m1 { fill: #d5c5a9; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* 右栏宽度由招募笺决定，避免宽屏下左空档 */
  align-items: center;
  gap: clamp(28px, 3.5vw, 56px);
  width: 100%;
  min-width: 0; /* 作为 flex 子项时允许收缩，否则窄屏会被内容撑宽而裁切 */
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__vertical {
  position: absolute;
  top: 50%;
  left: calc(-1 * clamp(22px, 3.4vw, 52px));
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  padding-top: 34px;
}

.hero__vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--cinnabar);
  transform: rotate(45deg);
}

.display {
  display: grid;
  gap: 0.04em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.32;
  letter-spacing: 0.055em;
  color: var(--ink);
}

.display__line { display: block; }

.display__line--em {
  position: relative;
  color: var(--cinnabar);
  letter-spacing: 0.1em;
}

/* 首屏文字分层入场：两行大标题依次浮现 */
.js .hero__copy .display__line {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .hero__copy .display__line:nth-child(1) { transition-delay: 0.2s; }
.js .hero__copy .display__line:nth-child(2) { transition-delay: 0.32s; }

.js .hero__copy.is-visible .display__line {
  opacity: 1;
  transform: none;
}

/* 首屏痛点钩子 / 信任背书 / 行动召唤 */
.hero__hook {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
  color: var(--ink-2);
}

.hero__proof {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.hero__proof b {
  margin: 0 2px;
  font-size: 17px;
  color: var(--cinnabar);
}

.hero__proof.is-fallback { font-size: 15px; }

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

@media (max-width: 680px) {
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- 招募笺 ---------- */
.hero__stage {
  display: flex;
  justify-content: flex-end;
}

.letter {
  position: relative;
  width: 500px;
  max-width: 100%;
  padding: 32px 34px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 40%),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow:
    0 30px 70px -34px rgba(31, 27, 22, 0.45),
    0 2px 6px -4px rgba(31, 27, 22, 0.2);
  transform: rotate(1.1deg);
}

.letter::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(143, 49, 41, 0.1);
  pointer-events: none;
}

@keyframes letter-float {
  50% { transform: rotate(1.1deg) translateY(-7px); }
}

@media (prefers-reduced-motion: no-preference) {
  .letter { animation: letter-float 9s ease-in-out infinite; }
}

.letter__seal {
  position: absolute;
  top: 18px;
  right: -12px;
  width: 28px;
  padding: 9px 0;
  background: var(--cinnabar);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  border-radius: 2px;
  transform: rotate(3deg);
  box-shadow:
    0 10px 22px -12px rgba(118, 37, 31, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.letter__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.letter__head p {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.letter__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

.letter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.letter__tags span::after {
  content: "·";
  margin: 0 9px;
  color: var(--gold);
}

.letter__tags span:last-child::after { content: ""; margin: 0; }

.letter__roles {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.letter__roles li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "role need action";
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.letter__roles .role {
  grid-area: role;
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.letter__roles .need {
  grid-area: need;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  align-self: center;
}

.letter__roles em {
  grid-area: action;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
}

.letter__roles em.is-done { color: var(--ink-4); }

.letter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.letter__stamp {
  display: grid;
  place-content: center;
  width: 32px;
  height: 42px;
  background: rgba(143, 49, 41, 0.92);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  /* 贴住首屏底部而非 hero 底部：内容撑高时也不会被挤出视口 */
  top: calc(100vh - 96px);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.4em;
  color: var(--ink-3);
}

.scroll-hint__line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, var(--ink-4));
}

/* 一滴墨自线上缓缓落下，提示「往下展卷」 */
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint__line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -16px;
    width: 1px;
    height: 16px;
    background: linear-gradient(180deg, transparent, var(--cinnabar));
    animation: scroll-drop 2.8s ease-in-out infinite;
  }
  @keyframes scroll-drop {
    0% { transform: translateY(0); opacity: 0; }
    25% { opacity: 0.85; }
    75% { transform: translateY(56px); opacity: 0.85; }
    100% { transform: translateY(56px); opacity: 0; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__stars { animation: star-breathe 7s ease-in-out infinite; }
  @keyframes star-breathe {
    50% { opacity: 0.32; }
  }
}

/* ---------- 角色长卷 ---------- */
.crafts {
  overflow: hidden;
  padding: 16px 0;
  background: rgba(239, 231, 216, 0.5);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.crafts__reel {
  display: flex;
  width: max-content;
}

.crafts__group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
}

.crafts__group span {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  white-space: nowrap;
}

.crafts__group i { color: rgba(176, 138, 74, 0.7); }

@media (prefers-reduced-motion: no-preference) {
  .crafts__reel { animation: craft-reel 46s linear infinite; }
  @keyframes craft-reel {
    to { transform: translateX(-50%); }
  }
  .crafts:hover .crafts__reel { animation-play-state: paused; }
}

/* ---------- 章节 ---------- */
.section {
  padding: clamp(48px, 5.5vw, 76px) max(var(--pad), calc((100% - var(--maxw)) / 2));
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.chapter {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.chapter__body .eyebrow { margin-bottom: 16px; }

.chapter--inline { margin-bottom: 18px; }

/* ---------- 卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
}

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

.card {
  position: relative;
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, var(--paper-2), rgba(251, 247, 239, 0.6));
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

/* 悬停时一角淡朱砂似墨洇开，静态时不可见 */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 92% at 10% 0%, rgba(143, 49, 41, 0.075), transparent 62%);
  opacity: 0;
  transform: scale(0.86);
  transform-origin: 10% 0%;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}

.card > * { position: relative; z-index: 1; }

.card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 49, 41, 0.26);
  box-shadow: 0 20px 44px -34px rgba(31, 27, 22, 0.6);
}

.card__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--cinnabar);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 16px;
  border-radius: 2px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 18px -10px rgba(143, 49, 41, 0.65);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.card:hover .card__mark {
  transform: rotate(2deg) translateY(-3px);
  box-shadow: 0 14px 22px -10px rgba(143, 49, 41, 0.7);
}

.card h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* ---------- 流程 ---------- */
.section--flow {
  background: rgba(239, 231, 216, 0.34);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
}

.flow__no {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.flow__step h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.flow__step p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* ---------- 团队 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.ticks {
  margin-top: 28px;
}

.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  transform: rotate(45deg);
}

.ledger {
  position: relative;
  padding: 32px 30px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 26px 60px -40px rgba(31, 27, 22, 0.5);
}

.ledger::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(143, 49, 41, 0.1);
  pointer-events: none;
}

.ledger__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ledger__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-2);
}

.ledger__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.ledger__head p {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.ledger__bio {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

.ledger__meta {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.ledger__meta span {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.ledger__meta b {
  display: block;
  min-width: 2.4em;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ledger__notice {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  background: rgba(143, 49, 41, 0.05);
  border-left: 2px solid var(--cinnabar);
}

.ledger__notice .dot {
  position: relative;
  width: 5px;
  height: 5px;
  margin-top: 9px;
  flex: none;
  background: var(--cinnabar);
  border-radius: 50%;
}

/* 置顶公告前的朱点缓缓荡开一圈涟漪 */
@media (prefers-reduced-motion: no-preference) {
  .ledger__notice .dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(143, 49, 41, 0.45);
    border-radius: 50%;
    animation: dot-ping 2.8s ease-out infinite;
  }
  @keyframes dot-ping {
    0% { transform: scale(0.55); opacity: 0.9; }
    70%, 100% { transform: scale(1.7); opacity: 0; }
  }
}

.ledger__notice p {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.ledger__tags {
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.ledger__tags i {
  margin: 0 6px;
  color: rgba(176, 138, 74, 0.7);
}

/* ---------- 优秀社团与项目 ---------- */
.featured {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
}

/* 精选区与下载区衔接处收窄：两节默认内边距叠加近 300px，空隙过大 */
#featured { padding-top: clamp(26px, 3vw, 44px); padding-bottom: clamp(44px, 5vw, 72px); }
#download { padding-top: clamp(44px, 5vw, 72px); }

/* 团队（用户评价）与精选区衔接：两节留白相加仍偏大，单独收窄 */
#team { padding-bottom: clamp(26px, 3vw, 44px); }

.featured__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.featured__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.featured__placeholder {
  grid-column: 1 / -1;
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* 社团卡 */
.studio-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-card__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-2);
}

.studio-card__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-card__head h4 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.studio-card__head p {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.cert-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 0 5px;
  vertical-align: 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.cert-badge--yellow { color: var(--gold); }
.cert-badge--red { color: var(--cinnabar); }

.studio-card__bio {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 项目卡 */
.work-card__cover {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  margin: -6px -6px 14px;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(110% 85% at 24% 12%, rgba(255, 255, 255, 0.65), transparent 60%),
    linear-gradient(150deg, #d9cbb4, #b9a684);
}

.work-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card h4 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.work-card__meta {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.work-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.work-card__foot b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
}

/* ---------- 星河有约 ---------- */
.section--invite { padding-bottom: clamp(56px, 7vw, 96px); }

.invite {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 66px);
  background: linear-gradient(160deg, var(--paper-2), #f4ecdb);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.invite::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(143, 49, 41, 0.13);
  pointer-events: none;
}

.invite__watermark {
  position: absolute;
  right: 14%;
  bottom: -0.22em;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(150px, 22vw, 260px);
  line-height: 1;
  color: rgba(143, 49, 41, 0.05);
  user-select: none;
  pointer-events: none;
}

/* 大幅「约」字极缓地沉浮，像水底的倒影 */
@media (prefers-reduced-motion: no-preference) {
  .invite__watermark { animation: watermark-rise 16s ease-in-out infinite; }
  @keyframes watermark-rise {
    50% { transform: translateY(-12px); }
  }
}

.invite__copy {
  position: relative;
  z-index: 1;
}

.invite__copy .eyebrow { margin-bottom: 16px; }
.invite__copy .lede { margin-top: 16px; }

.invite__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background: var(--cinnabar);
  color: #fdf8ef;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.14em;
  border: 1px solid var(--cinnabar-deep);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 14px 28px -18px rgba(118, 37, 31, 0.9);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

/* 次按钮：先下滑看看 */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(43, 38, 33, 0.35);
}

.btn--ghost:hover { background: rgba(43, 38, 33, 0.06); color: #fdf8ef; }

.btn:hover {
  background: var(--cinnabar-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -18px rgba(118, 37, 31, 0.95);
}

.btn:active { transform: translateY(0); }

.invite__hint {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.qr {
  position: relative;
  z-index: 1;
  text-align: center;
}

.qr__frame {
  position: relative;
  width: min(190px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.qr__img {
  width: 100%;
  height: auto;
  padding: 8px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 22px 46px -32px rgba(31, 27, 22, 0.7);
}

/* 一道极淡的朱砂扫描光自上而下掠过码面，提示「可扫」 */
@media (prefers-reduced-motion: no-preference) {
  .qr__frame::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 8px;
    height: 34px;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(143, 49, 41, 0) 0%,
      rgba(143, 49, 41, 0.12) 72%,
      rgba(143, 49, 41, 0.42) 100%);
    animation: qr-scan 4.6s ease-in-out infinite;
  }
  @keyframes qr-scan {
    0%, 8% { top: 8px; opacity: 0; }
    16% { opacity: 0.9; }
    54% { top: calc(100% - 42px); opacity: 0.9; }
    68%, 100% { top: calc(100% - 42px); opacity: 0; }
  }
}

.qr__caption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
}

.qr__fallback { display: none; }

.qr.is-empty .qr__frame { display: none; }
.qr.is-empty .qr__img { display: none; }
.qr.is-empty .qr__fallback { display: block; }

.qr__steps {
  text-align: left;
  border-top: 1px solid var(--line-soft);
}

.qr__steps li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-2);
}

.qr__steps b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
}

.qr__steps em { color: var(--ink); font-weight: 500; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  padding: clamp(46px, 6vw, 72px) max(var(--pad), calc((100% - var(--maxw)) / 2)) 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer__brand .brand__name { font-size: 18px; }

.footer__motto {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.footer__ver {
  margin-top: 9px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.footer__col h4 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.26em;
  color: var(--ink);
}

.footer__col a,
.footer__col .footer__line {
  display: block;
  font-size: 13px;
  line-height: 2.35;
  color: var(--ink-2);
  transition: color 0.25s ease;
}

.footer__col a:hover { color: var(--cinnabar); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ---------- 入场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__vertical { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
}

@media (max-width: 940px) {
  .nav__side { display: none; }
  .nav__toggle { display: flex; }
  /* 平板起改为双列，避免三列卡片过窄 */
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 首屏内容变高后，固定在视口底部的滚动提示会压住招募笺 */
  .scroll-hint { display: none; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(80vw, 320px);
    height: calc(100vh - var(--nav-h));
    margin: 0;
    padding: 24px 26px;
    overflow-y: auto;
    background: var(--paper-2);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform 0.42s var(--ease);
  }

  /* 遮罩只在抽屉展开时出现：若常驻，离屏元素的 100vmax 阴影会漏到页面上 */
  .nav__menu.is-open {
    transform: none;
    box-shadow: -24px 0 60px -30px rgba(31, 27, 22, 0.5), 0 0 0 100vmax rgba(31, 27, 22, 0.22);
  }

  .nav__menu a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }

  .nav__menu a::after { display: none; }

  .hero {
    padding-top: calc(var(--nav-h) + 46px);
    padding-bottom: 140px;
    min-height: 0;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .hero__stage { justify-content: center; }

  .letter { transform: rotate(0); width: min(100%, 440px); }

  @keyframes letter-float {
    50% { transform: translateY(-7px); }
  }

  .hero__moon {
    top: 90px;
    right: 8vw;
    opacity: 0.7;
  }

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

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

  .qr { justify-self: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --nav-h: 64px; }

  .brand__name { font-size: 17px; }
  .brand__seal { width: 30px; height: 30px; font-size: 11px; }

  .nav__toggle { width: 44px; height: 44px; }

  /* 印章改为内收，避免贴住手机屏幕右缘 */
  .letter__seal { right: 8px; }

  .hero { padding-bottom: 120px; }
  .hero__moon { width: 96px; top: 84px; right: 6vw; }
  .hero__stars { opacity: 0.35; }

  .display { font-size: clamp(34px, 10vw, 46px); }

  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .invite { padding: 28px 22px 34px; }
  .invite__watermark { right: 4%; }
  /* 手机上主按钮改为通栏，方便拇指点击 */
  .invite__actions .btn { width: 100%; }
  .invite__hint { width: 100%; text-align: center; }

  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__brand { grid-column: auto; }

  .scroll-hint { display: none; }
}

/* ---------- 无动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .letter { animation: none; }
  .crafts__reel { animation: none; flex-wrap: wrap; width: 100%; }
  .crafts__group:nth-child(2) { display: none; }
  .hero__stars { animation: none; }
  .hero__verse span { animation: none; }
  .paper__wash--1,
  .paper__wash--2,
  .brand__seal,
  .hero__moon,
  .hero__mist,
  .invite__watermark { animation: none; }
  .scroll-hint__line::after,
  .qr__frame::after,
  .ledger__notice .dot::after { display: none; }
  .js .hero__copy .display__line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
