/* ==========================================================================
   知音口琴社 · 社娘「菌菌」个人网站
   设计语言：水彩植物志 / 亚麻纸感 / 柔和治愈
   配色取自菌菌角色本身（嫩绿裙 · 亚麻白 · 樱花粉 · 菌盖赭红）
   ========================================================================== */

/* ---------- 自托管字体 ----------
   字体已按本页实际用到的字符子集化（约 560 字），随站点一起部署。
   不依赖 Google Fonts CDN —— 部署到国内云服务商也能稳定加载。
   若日后新增大量文案导致缺字，重新生成子集即可，见 README「字体维护」。
   ------------------------------------------------------------------ */
@font-face {
  font-family: "MaShanZheng";
  src: url("../fonts/MaShanZheng.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NotoSerifSC";
  src: url("../fonts/NotoSerifSC.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NotoSansSC";
  src: url("../fonts/NotoSansSC.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色：菌菌的裙子绿 */
  --green-900: #2f3d2c;
  --green-700: #4a6141;
  --green-500: #6f8a5c;
  --green-300: #a8bf95;
  --green-100: #dbe6cf;
  --green-50:  #eef3e7;

  /* 辅色：菌盖 / 徽章赭红 */
  --red-700: #8f4438;
  --red-500: #b8665a;
  --red-300: #e0a89e;
  --red-100: #f5ddd8;

  /* 点缀：樱花粉 */
  --pink-500: #d98a9e;
  --pink-300: #efb8c6;
  --pink-100: #fbe7ec;

  /* 纸感底色：亚麻白 */
  --paper:      #faf8f3;
  --paper-warm: #f4f0e6;
  --paper-card: #ffffff;

  /* 文字 */
  --ink-900: #2a2721;
  --ink-700: #4a453b;
  --ink-500: #7a7365;
  --ink-300: #a89f8f;

  /* 描边与投影 */
  --line:        #e5dfd2;
  --line-soft:   #efe9dd;
  --shadow-sm: 0 1px 2px rgba(74, 69, 59, .05), 0 2px 8px rgba(74, 69, 59, .04);
  --shadow-md: 0 4px 12px rgba(74, 69, 59, .07), 0 12px 32px rgba(74, 69, 59, .06);
  --shadow-lg: 0 8px 24px rgba(74, 69, 59, .09), 0 24px 64px rgba(74, 69, 59, .08);

  /* 字体 */
  /* 自托管子集字体优先，系统字体兜底（含 Linux / 老设备） */
  --font-display: "MaShanZheng", "Ma Shan Zheng", "STKaiti", "KaiTi", "楷体", serif;
  --font-sans:    "NotoSansSC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
                  "WenQuanYi Micro Hei", system-ui, sans-serif;
  --font-serif:   "NotoSerifSC", "Songti SC", "SimSun", "WenQuanYi Zen Hei", Georgia, serif;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* 节奏 */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --maxw: 1200px;

  /* 动效 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.85;
  color: var(--ink-700);
  background-color: var(--paper);
  /* 纸纹：极淡的噪点，营造手绘纸感 */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(217, 138, 158, .05), transparent 45%),
    radial-gradient(circle at 85% 8%,  rgba(168, 191, 149, .07), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(224, 168, 158, .05), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-decoration: none; transition: color .2s var(--ease-soft); }
a:hover { color: var(--red-500); }

/* 可见焦点环 —— 无障碍要求 */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 版心 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, .82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-900);
  letter-spacing: .01em;
  flex-shrink: 0;
}
.nav__brand:hover { color: var(--green-700); }
.nav__brand img {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1px solid var(--line);
}
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-sub {
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--ink-300);
  text-transform: uppercase;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: .5rem .95rem;
  font-size: .92rem;
  color: var(--ink-700);
  border-radius: var(--r-full);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--green-700); background: var(--green-50); }
.nav__link[aria-current="page"] {
  color: var(--green-900);
  font-weight: 600;
  background: var(--green-100);
}

/* 汉堡按钮 —— 移动端 */
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink-700);
  transition: background-color .2s, transform .1s;
}
.nav__toggle:active { transform: scale(.94); }
.nav__toggle svg { width: 20px; height: 20px; }

/* ==========================================================================
   Hero —— 使用「主页图」超宽横幅
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--paper) 100%);
}

.hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 488;
  max-height: 62vh;
  overflow: hidden;
}
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* 轻微的呼吸感缩放 */
  animation: heroDrift 24s var(--ease-soft) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.00); }
  to   { transform: scale(1.035); }
}

/* 底部渐隐，让插画与文字自然衔接 */
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250,248,243,0) 55%,
    rgba(250,248,243,.65) 82%,
    var(--paper) 100%
  );
  pointer-events: none;
}

.hero__body {
  position: relative;
  margin-top: clamp(-5rem, -8vw, -2.5rem);
  padding-bottom: var(--section-y);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .35rem .85rem;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--green-700);
  background: rgba(219, 230, 207, .7);
  border: 1px solid var(--green-300);
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .45; transform: scale(.75); }
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.5rem + 5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .02em;
  color: var(--green-900);
}
.hero__title em {
  font-style: normal;
  color: var(--red-500);
}

.hero__sub {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  line-height: 1.9;
  color: var(--ink-500);
}

/* 菌菌的自我介绍 —— 以她的第一人称呈现 */
.hero__intro {
  margin: 1.6rem 0 0;
  max-width: 54ch;
}
.hero__intro p {
  margin: 0 0 .9rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem);
  line-height: 2;
  color: var(--ink-700);
}
/* 结尾那句欢迎语，用书法体强调，像她亲口说的 */
.hero__intro-em {
  margin-top: 1.2rem !important;
  padding-left: 1.15rem;
  border-left: 3px solid var(--pink-300);
  font-family: var(--font-display) !important;
  font-size: clamp(1.15rem, 1.05rem + .6vw, 1.5rem) !important;
  line-height: 1.85 !important;
  color: var(--red-500) !important;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

/* 菌菌立绘 —— 透明底，靠投影和光圈托住，不加边框 */
.hero__mascot {
  position: relative;
  width: clamp(170px, 24vw, 290px);
  flex-shrink: 0;
}
/* 立绘底部的柔和光晕，避免角色"飘"在纸面上 */
.hero__mascot::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -4%;
  width: 78%; height: 16%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(111, 138, 92, .26), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.hero__mascot img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 14px 26px rgba(74, 69, 59, .18));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50%      { transform: translateY(-14px) rotate(.6deg); }
}
/* 樱花小点点缀 */
.hero__mascot::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 11px; height: 11px;
  top: 6%; right: 2%;
  border-radius: 50%;
  background: var(--pink-300);
  opacity: .7;
  box-shadow:
    -18px 26px 0 -3px var(--pink-300),
    14px 40px 0 -4px var(--green-300);
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease-out),
              background-color .22s,
              border-color .22s,
              color .22s,
              box-shadow .22s;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--green-900);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--paper-card);
  border-color: var(--green-300);
  color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

/* ==========================================================================
   通用区块
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-warm); }

/* 相邻区块间距收敛：避免两个 padding 叠加出大片空白 */
.section--tint + .section,
.section + .section { padding-top: clamp(3rem, 6vw, 5.5rem); }

.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.section__kicker {
  display: block;
  margin-bottom: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pink-500);
}

.section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink-900);
}

.section__desc {
  margin: .9rem 0 0;
  max-width: 60ch;
  color: var(--ink-500);
  font-size: 1rem;
}

/* ---------- 滚动入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ==========================================================================
   关于 / 社团简介
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.prose p {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 2.05;
  color: var(--ink-700);
}
.prose p:last-child { margin-bottom: 0; }

/* 首段首字下沉 */
.prose--lede > p:first-of-type::first-letter {
  float: left;
  margin: .18em .12em 0 0;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: .82;
  color: var(--red-500);
}

.prose strong { color: var(--green-700); font-weight: 600; }

/* 引言块 */
.pullquote {
  margin: 2.2rem 0;
  padding: 1.5rem 0 1.5rem 1.6rem;
  border-left: 3px solid var(--green-300);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.95;
  color: var(--green-900);
}

/* 侧栏：形象卡 */
.profile-card {
  position: sticky;
  top: 92px;
  padding: 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.profile-card img {
  width: 100%;
  border-radius: var(--r-md);
  margin-bottom: 1.1rem;
}
.profile-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem 1rem;
  font-size: .87rem;
}
.profile-card dt { color: var(--ink-300); white-space: nowrap; }
.profile-card dd { margin: 0; color: var(--ink-700); font-weight: 500; }

/* 数据统计 —— 2 列网格，第三个数字跨两列，避免出现空格子 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.6rem;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat {
  padding: 1.25rem .8rem;
  background: var(--paper-card);
  text-align: center;
}
/* 奇数个统计项：最后一个横跨整行，布局不留空洞 */
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.3rem);
  line-height: 1;
  color: var(--red-500);
}
.stat__label {
  display: block;
  margin-top: .45rem;
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--ink-500);
}

/* 特色标签 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.8rem;
  padding: 0; list-style: none;
}
.tags li {
  padding: .34rem .85rem;
  font-size: .81rem;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-full);
}

/* ==========================================================================
   四季画廊
   ========================================================================== */
.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.season {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--paper-card);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.season:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.season__media { overflow: hidden; aspect-ratio: 3 / 2; }
.season__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.season:hover .season__media img { transform: scale(1.06); }

.season__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.15rem 1.1rem;
}
.season__name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-900);
}
.season__note {
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--ink-300);
  text-transform: uppercase;
}

/* ==========================================================================
   联系
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact__list {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .9rem;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .95rem;
}
.contact__list svg {
  width: 19px; height: 19px;
  margin-top: .32rem;
  flex-shrink: 0;
  color: var(--green-500);
}
.contact__list b { color: var(--ink-900); font-weight: 600; }

.qr {
  padding: 1.15rem;
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  /* 轻微倾斜，像贴在墙上的照片 */
  transform: rotate(-1.6deg);
  transition: transform .45s var(--ease-out);
}
.qr:hover { transform: rotate(0deg) translateY(-4px); }
.qr img {
  width: clamp(170px, 26vw, 220px);
  border-radius: var(--r-sm);
}
.qr figcaption {
  margin-top: .8rem;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--ink-500);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  padding: 3rem var(--gutter) 2.4rem;
  background: var(--green-900);
  color: var(--green-100);
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}
.footer__brand img {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
}
.footer p {
  margin: .3rem 0;
  font-size: .82rem;
  line-height: 1.9;
  color: rgba(219, 230, 207, .68);
}
.footer__rule {
  width: 40px; height: 2px;
  margin: 1.3rem auto;
  background: rgba(168, 191, 149, .4);
  border-radius: 2px;
}

/* ==========================================================================
   响应式
   ========================================================================== */

/* 平板 */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .profile-card { position: static; }
  .qr { justify-self: center; }
  .contact__grid { justify-items: start; }
}

/* 移动端 */
@media (max-width: 720px) {
  /* 移动端由「栏目」抽屉统一接管导航，隐藏旧折叠按钮与内联菜单 */
  .nav__toggle { display: none; }
  .nav__menu-desktop { display: none; }
  .drawer__only-mobile { display: block; }

  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
    background: rgba(250, 248, 243, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    /* 收起状态 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease-soft),
                transform .25s var(--ease-soft),
                visibility .25s;
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__link { padding: .8rem .9rem; border-radius: var(--r-sm); }

  .hero__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero__mascot { order: -1; width: clamp(130px, 40vw, 180px); }
  .hero__sub,
  .hero__intro { margin-inline: auto; text-align: left; }
  .hero__actions { justify-content: center; }
  .hero__art { aspect-ratio: 16 / 9; max-height: 46vh; }
  .hero__body { margin-top: clamp(-2.5rem, -6vw, -1.5rem); }

  .contact__grid { justify-items: center; }
  .contact__list { width: 100%; }
}

/* 小屏 */
@media (max-width: 420px) {
  .hero__title { font-size: 2.35rem; }
  .btn { padding: .75rem 1.3rem; font-size: .88rem; }
  .nav__brand-text { display: none; }
}

/* ==========================================================================
   无障碍：尊重「减少动态效果」偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 打印 */
@media print {
  .nav, .footer__rule { display: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   栏目触发按钮（常驻右上角 · 三条横线）
   ========================================================================== */
.nav__menu-desktop { margin-left: auto; }   /* 桌面端：内联菜单与栏目按钮靠右 */

.nav__cols {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 42px;
  padding: 0 1.05rem;
  margin-left: .6rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink-700);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .2s, border-color .2s, transform .1s, color .2s;
}
.nav__cols:hover {
  background: var(--green-50);
  border-color: var(--green-300);
  color: var(--green-700);
}
.nav__cols:active { transform: scale(.97); }
.nav__cols svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav__cols[aria-expanded="true"] {
  background: var(--green-100);
  border-color: var(--green-300);
  color: var(--green-900);
}

/* ==========================================================================
/* ==========================================================================
   背景音乐按钮
   圆形 · 播放态=三角 / 暂停态=双竖线 · 播放时外圈呼吸光晕
   全部视觉状态由 .is-playing 一个类驱动，与音频的 play / pause 事件绑定
   ========================================================================== */
.nav__music {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: .6rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-700);
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;                 /* 关键：光晕要扩散到按钮之外，写了 hidden 会被裁成内阴影 */
  box-shadow: var(--shadow-sm);      /* 略给厚度，避免和旁边按钮一样扁平 */
  transition: background-color .2s, border-color .2s, box-shadow .25s, transform .12s, color .2s;
}
.nav__music:hover {                                        /* 颜色反馈 */
  border-color: var(--green-300);
  color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(168, 191, 149, .16), 0 2px 10px rgba(74, 69, 59, .07);
}
.nav__music:active { transform: scale(.9); }               /* 缩放反馈 */
.nav__music:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }
/* 播放态：不用大块绿底，改为白底 + 绿色细描边 + 淡绿光晕，在纸感底色上更轻 */
.nav__music.is-playing {
  border-color: var(--green-300);
  color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(168, 191, 149, .2), 0 2px 10px rgba(111, 138, 92, .16);
}

/* --- 图标：任意时刻只渲染一个（display 互斥，不用 hidden 属性，避免跨浏览器差异），
       切入瞬间带一次弹入，保留点击手感 --- */
.nav__music__ico {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  pointer-events: none;
}
/* 图标按「点下去会发生什么」来选，不是按「现在在干嘛」：
   正在播放 → 露出暂停符号（点了就停）；已暂停 → 露出播放符号（点了就播）。
   早期版本这里接反了，于是播放中显示的是三角，看着像「还没在放」。 */
.nav__music.is-playing        .nav__music__ico--pause { display: block; }
.nav__music:not(.is-playing) .nav__music__ico--play  { display: block; }
.nav__music.is-playing .nav__music__ico--pause,
.nav__music:not(.is-playing) .nav__music__ico--play {
  animation: musicIcoIn .22s cubic-bezier(.34, 1.5, .64, 1) both;
}
@keyframes musicIcoIn {
  from { transform: scale(.45); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* --- 呼吸光晕：两圈极细描边交替向外扩散并淡出。
       这是播客 / 直播站点表达「正在播出」最通用的语言，干净现代、存在感低。
       透明度在 65% 就降到 0，所以看起来是「扩散后消散」，不会撞到旁边的栏目按钮。 --- */
.nav__music__halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  pointer-events: none;
}
.nav__music__halo i {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  border: 1px solid var(--green-300);
  opacity: 0;
}
.nav__music.is-playing .nav__music__halo i {
  animation: musicHalo 2.9s cubic-bezier(.2, .62, .28, 1) infinite;
}
.nav__music.is-playing .nav__music__halo i:nth-child(2) { animation-delay: 1.45s; }
@keyframes musicHalo {
  0%   { transform: scale(.86); opacity: .5; }
  65%  { opacity: 0; }
  100% { transform: scale(1.62); opacity: 0; }
}

/* 系统开启「减少动态效果」时：不扩散；播放态由按钮自身的绿色描边与光晕表达，依然可读 */
@media (prefers-reduced-motion: reduce) {
  .nav__music__halo i { animation: none !important; }
}

/* ==========================================================================
   栏目抽屉（右侧滑出）
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  transition: visibility .3s;
}
.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border-left: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .36s var(--ease-out);
  will-change: transform;
}
.drawer.is-open .drawer__panel { transform: none; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(42, 39, 33, .40);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.drawer__close {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color .2s, transform .1s;
}
.drawer__close:active { transform: scale(.94); }
.drawer__close svg { width: 18px; height: 18px; }

.drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: .9rem .85rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.drawer__group {
  margin: 1.1rem .4rem .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-500);
}
.drawer__group:first-child { margin-top: .3rem; }

.drawer__link {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .7rem .85rem;
  border-radius: var(--r-md);
  color: var(--ink-900);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.drawer__link:hover { background: var(--green-50); color: var(--green-700); }
.drawer__name {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
}
.drawer__desc {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-500);
}
.drawer__badge {
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--red-700);
  background: var(--red-100);
  padding: .12rem .5rem;
  border-radius: var(--r-full);
}
.drawer__link.is-soon { opacity: .72; cursor: default; }
.drawer__link.is-soon:hover { background: transparent; color: var(--ink-900); }

/* 桌面端隐藏「导航」分组（内联菜单已展示），移动端在媒体查询里显示 */
.drawer__only-mobile { display: none; }

body.drawer-open { overflow: hidden; }

@media (max-width: 420px) {
  .nav__cols-label { display: none; }
  .nav__cols { padding: 0; width: 42px; justify-content: center; margin-left: .4rem; }
}

@media print {
  .drawer, .drawer-overlay { display: none !important; }
}

/* ==========================================================================
   栏目页通用组件（入门手册 / 琴种选择 复用）
   ========================================================================== */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red-500);
  margin-bottom: .4rem;
}
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--green-50);
  color: var(--green-700);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-900);
}
.card__text {
  margin: 0 0 1rem;
  font-size: .92rem;
  line-height: 1.85;
  color: var(--ink-500);
}
/* 底部动作区对齐：正文长短不一，按钮统一贴到卡片底部，
   同一行三张卡片的按钮就落在同一条水平线上 */
.card > .btn { margin-top: auto; }
/* 按钮后面还有一行小字时，小字跟着按钮走，不再单独吸底（否则空档被均分、按钮又对不齐） */
.card > .btn + .card__meta { margin-top: .7rem; }
.card__meta {
  margin-top: auto;
  font-size: .78rem;
  color: var(--ink-300);
}
.card--link { color: inherit; text-decoration: none; }
.card--link:hover { color: inherit; }

/* 对比表 */
.compare {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper-card);
  box-shadow: var(--shadow-sm);
  font-size: .9rem;
}
.compare th, .compare td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.compare thead th {
  background: var(--green-50);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--green-900);
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
  background: var(--paper-warm);
}
.compare td { color: var(--ink-700); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--green-700); font-weight: 600; }
.compare .no  { color: var(--ink-300); }

/* 栏目页头图 */
.page-hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 12% 0%, rgba(217,138,158,.10), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(168,191,149,.14), transparent 40%),
    linear-gradient(180deg, var(--green-50) 0%, var(--paper) 100%);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.page-hero__mascot { width: clamp(120px, 18vw, 220px); flex-shrink: 0; }
.page-hero__mascot img { filter: drop-shadow(0 12px 22px rgba(74,69,59,.16)); }

/* 提示条 */
.note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--pink-300);
  background: var(--pink-100);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .92rem;
  color: var(--ink-700);
  line-height: 1.8;
}
.note b { color: var(--red-700); }

/* 栏目内页脚上方的小导航 */
.subnav {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem;
}
.subnav a {
  padding: .45rem 1rem; font-size: .85rem;
  border: 1px solid var(--line); border-radius: var(--r-full);
  color: var(--ink-700); transition: background-color .2s, color .2s;
}
.subnav a:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-300); }

@media (max-width: 720px) {
  .page-hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .page-hero__mascot { order: -1; }
}

/* ==========================================================================
   留言区（首页）
   留言通过 mailto: 投递到社团邮箱 —— 纯静态站没有服务端，
   这是唯一不依赖后端、也不需要用户注册的诚实做法。
   ========================================================================== */
.section__head--center {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}
.section__head--center .section__desc { margin-inline: auto; }

.gb {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* 给不知道写什么的人一点抓手，比空输入框更容易迈出第一步 */
.gb__tips {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0 0 1rem;
  padding: .9rem 1.25rem;
  list-style: none;
  text-align: left;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-700);
}
.gb__tips li { position: relative; padding-left: 1.1rem; }
.gb__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-300);
}

/* ---- 站内输入框：写完点一下就寄走，页面不跳转 ---- */
.gb__text {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  padding: .9rem 1rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  resize: vertical;
  transition: border-color .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}
.gb__text::placeholder { color: var(--ink-300); }
.gb__text:focus {
  outline: none;
  border-color: var(--green-300);
  box-shadow: 0 0 0 3px var(--green-50);
}

.gb__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
}
.gb__count {
  font-size: .82rem;
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
}
.gb__count--warn { color: var(--green-700); font-weight: 600; }

.gb__send { flex: none; padding-inline: 1.75rem; }
.gb__send[disabled] { opacity: .6; cursor: default; }

/* 寄失败时把退路摆到眼前，别让人干瞪眼 */
.gb__err {
  margin: .75rem 0 0;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--ink-700);
}

/* 寄出后原地换成这张小卡，给一个明确的「完事了」信号 */
.gb__done {
  padding: 1.5rem 1rem;
  text-align: center;
  animation: gb-pop .32s var(--ease-soft) both;
}
.gb__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .75rem;
  color: #fff;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 6px 18px -6px var(--green-500);
}
.gb__done-icon svg { width: 1.5rem; height: 1.5rem; }
.gb__done-title { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--green-700); }
.gb__done-sub { margin: .4rem 0 1.1rem; font-size: .86rem; color: var(--ink-300); }
.gb__again {
  padding: .3rem 1rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--green-700);
  background: transparent;
  border: 1px solid var(--green-300);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .16s var(--ease-soft);
}
.gb__again:hover { background: var(--green-50); }

@keyframes gb-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.gb__hint { margin: .875rem 0 0; font-size: .82rem; color: var(--ink-300); }
/* 当天额度用尽：稍微加重一点，让人一眼看出是「今天没了」而不是坏了 */
.gb__hint--out { color: var(--green-700); font-weight: 500; }

/* 输入框禁用态 */
.gb__text:disabled { opacity: .55; cursor: not-allowed; resize: none; }

/* 问卷页打不开时的退路，做成很轻的一条，不抢主体视线 */
.gb__alt {
  margin: 1.25rem 0 0;
  padding-top: .875rem;
  border-top: 1px dashed var(--line);
  font-size: .8rem;
  color: var(--ink-300);
}
.gb__mail { font-weight: 600; }
.gb__copy {
  margin-left: .4rem;
  padding: .12rem .6rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--green-700);
  background: transparent;
  border: 1px solid var(--green-300);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .16s var(--ease-soft);
}
.gb__copy:hover { background: var(--paper-card); }

@media (max-width: 560px) {
  .gb__meta { flex-direction: column; align-items: stretch; }
  .gb__count { order: 2; text-align: center; }
  .gb__send { order: 1; width: 100%; justify-content: center; }
}
