/* ============================================================
   Serena 熙冉 — 全局样式
   规则怪谈风格 · 底部胶囊导航
   Noto Serif SC + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Noto+Serif+SC:wght@400;500;700&family=Schoolbell&display=swap');

:root {
  --font-title: "Noto Serif SC", "PingFang SC", "Noto Sans SC", serif;
  --font-body: "Inter", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;

  --bg: #FFFEFA;
  --ink: #1A1A1A;
  --accent: #3F51B5;
  --green: #B8E954;
  --pink: #C2185B;
  --dim: #8A8A8A;
  --transition: 0.5s cubic-bezier(.4, 0, .2, 1);
}

/* 跨页面原生过渡：支持的浏览器会在整页跳转时自动做首尾帧平滑过渡，
   不支持的浏览器直接忽略，不影响现有行为 */
@view-transition {
  navigation: auto;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  transition: background-color var(--transition), color var(--transition);
  animation: pageIn .4s ease both;
  min-height: 100vh;
  /* 全局极淡扫描线纹理（规则怪谈氛围） */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(63, 81, 181, 0.018) 3px,
      rgba(63, 81, 181, 0.018) 4px
    );
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ── 单栏页面布局 ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 120px;
  min-height: 100vh;
}

/* ── 站名（顶部文字 logo） ── */
.site-name {
  display: block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-decoration: none;
  margin-bottom: 48px;
  opacity: 0.4;
  letter-spacing: 0.08em;
}

/* ── 底部胶囊导航 ── */
.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(255, 254, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 26, 26, 0.10);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.bottom-nav a {
  font-family: var(--font-title);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--ink);
  opacity: 0.55;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.bottom-nav a:hover { opacity: 1; }
.bottom-nav a.active {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
  box-shadow: 0 0 12px rgba(63, 81, 181, 0.25);
}

/* ── 语言切换：固定在右上角，和底部导航保持相同的轻盈手账质感 ── */
.language-switcher {
  position: fixed;
  z-index: 600;
  top: 22px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-family: var(--font-title);
  font-size: .74rem;
}
.language-switcher button {
  padding: 2px 3px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  opacity: .42;
  cursor: pointer;
}
.language-switcher button:hover,
.language-switcher button.active { opacity: 1; }
html[lang="en"] .about-title {
  max-width: 24ch;
  margin: 4px auto 40px;
  white-space: pre-line;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.015em;
}
html[lang="en"] .page-about .about-hero { gap: 22px; margin-bottom: 24px; }
html[lang="en"] .page-about .about-hero-illus { max-width: 320px; }
html[lang="en"] .page-about .about-hero-intro {
  display: block;
  width: min(320px, 100%);
  max-width: 320px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
}
html[lang="en"] .page-about .about-hero-intro p {
  margin: 0;
}
html[lang="en"] .page-about .journal-text {
  /* Share the hero intro's 320px reading edge instead of inheriting the
     Chinese layout's illustration offset. */
  max-width: 320px;
  margin-left: 40px;
  padding-left: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
}
html[lang="en"] .page-about .journal-text p {
  margin: 0;
}
html[lang="en"] .page-about .journal-illus { left: -270px; }
html[lang="en"] .page-about .about-team-role { white-space: nowrap; }
html[lang="en"] .page-about .about-aside { color: rgba(26, 26, 26, .66); }
html[lang="en"] .page-about .about-edu {
  max-width: 320px;
  margin: 0 auto;
  padding-left: 0;
}
html[lang="en"] .page-about .about-edu-list {
  font-family: Georgia, "Times New Roman", serif;
}
html[lang="en"] .page-about .about-edu-list li { padding-left: 0; }
html[lang="en"] .page-about .about-edu-list li::before { display: none; }
@media (max-width: 600px) {
  .language-switcher { top: 14px; right: 16px; }
  html[lang="en"] .about-title { max-width: 16ch; font-size: 1.55rem; }
  html[lang="en"] .page-about .about-hero-intro,
  html[lang="en"] .page-about .journal-text { font-size: 16px; }
  html[lang="en"] .page-about .about-hero-intro { max-width: 300px; }
  html[lang="en"] .page-about .journal-text { max-width: 300px; margin-left: 0; }
  html[lang="en"] .page-about .about-edu { max-width: 300px; margin: 0 auto; }
}

/* ── 页脚 ── */
.site-footer {
  font-size: .8rem;
  opacity: .4;
  margin-top: 64px;
}
.icp-footer {
  font-size: .72rem;
  text-align: center;
  color: rgba(26, 26, 26, 0.34);
  margin: 56px 0 96px;
}
.icp-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.icp-footer .icp-separator {
  margin: 0 .55em;
  opacity: .55;
}
.icp-footer a:hover {
  color: rgba(63, 81, 181, 0.72);
  text-decoration: underline;
}
.icp-footer--fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 80;
  margin: 0;
  pointer-events: none;
}
.icp-footer--fixed a {
  pointer-events: auto;
}

/* ── 标签标注（档案风格小标签）── */
.file-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 10px;
  opacity: 0.7;
  margin-bottom: 32px;
}

/* ═══════════ 关于页 · 存在体概况（品牌蓝主题）═══════════ */
.page-about {
  --accent: #2B7FD8;
}

/* 标题：正文最上方的引言式大标题 */
.about-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.02em;
  margin: 4px 0 40px;
}

/* 开篇区块与正文共用同一栏宽，左右边界对齐，仅内部文字对齐方式不同 */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 24px;
}
.about-hero-illus {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.about-hero-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 400px;
  font-size: 1.08rem;
  line-height: 1.75;
  opacity: 0.85;
}
.about-hero-intro p { margin: 0; }

/* "My life Journey" 手绘感分节标题：打字机式逐字显现，循环播放 */
.about-journey-title {
  text-align: center;
  margin: 64px 0 20px;
}
.about-journey-text {
  display: inline-block;
  font-family: 'Schoolbell', cursive;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.9;
  padding-right: 4px;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  animation: handwriteReveal 5s steps(24, end) infinite;
}
@keyframes handwriteReveal {
  0%   { clip-path: inset(0 100% 0 0); }
  40%  { clip-path: inset(0 0% 0 0); }
  78%  { clip-path: inset(0 0% 0 0); }
  82%  { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

/* My life Journey 下方的引子插图 */
.journal-lead-illus {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 20px;
}

/* 正文：与开篇区块共享栏宽，改为左对齐，贴合参考网站的阅读节奏 */
.journal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  margin-bottom: 44px;
}
.journal-entry {
  width: 100%;
  max-width: 400px;
}
.journal-text {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.75;
  padding-left: 68px;
}
.journal-text p { margin: 0 0 14px; }
.journal-text p:last-child { margin-bottom: 0; }
.about-pair { display: flex; gap: 24px; flex-wrap: wrap; }

/* 语言学习插图：卧在左侧留白，纵向跨过上下两段，避免只贴在中间一段 */
.journal-entry--illus { position: relative; }
.journal-illus {
  position: absolute;
  top: 50%;
  left: -230px;
  width: 300px;
  height: auto;
  transform: translateY(-50%) rotate(-4deg);
  pointer-events: none;
}
.en-hand {
  font-family: 'Schoolbell', cursive;
  font-size: 1.12em;
  color: var(--accent);
}

/* 教育经历 */
.about-edu {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding-left: 68px;
}
.about-edu-head {
  font-family: var(--font-title);
  font-size: 0.8rem;
  opacity: 0.4;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.about-edu-head-en {
  font-family: 'Schoolbell', cursive;
  font-size: 1.35rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-right: 6px;
}
.about-edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.about-edu-list li { position: relative; padding-left: 18px; }
.about-edu-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ═══════════ 作品页 · 案件卷宗 ═══════════ */
.works-header-tag { margin-bottom: 28px; }

.case-file {
  position: relative;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.case-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.case-header:hover { background: rgba(63, 81, 181, 0.04); }
.case-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-id {
  font-family: var(--font-title);
  font-size: 0.72rem;
  opacity: 0.4;
  letter-spacing: 0.08em;
}
.case-name {
  font-family: var(--font-title);
  font-size: 1rem;
}
.case-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.case-tag {
  font-size: 0.72rem;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 999px;
  opacity: 0.6;
}
.case-tag.running-tag { border-color: var(--accent); color: var(--accent); opacity: 0.9; }
.case-tag.active-tag  { border-color: #B8E954; color: #5a7a00; }
.case-tag.archived-tag { opacity: 0.35; }
.case-tag.stalled-tag { border-color: var(--pink); color: var(--pink); opacity: 0.6; }
.case-chevron {
  font-size: 0.7rem;
  opacity: 0.3;
  transition: transform 0.3s ease;
}
.case-file.open .case-chevron { transform: rotate(180deg); }

.case-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-top: 0px solid rgba(26, 26, 26, 0.07);
}
.case-file.open .case-body {
  max-height: 300px;
  padding: 16px 20px;
  border-top-width: 1px;
}
.case-level {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-bottom: 8px;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
}
.case-summary {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* 扫描线 */
@keyframes scanLine {
  from { transform: translateY(0);    opacity: 0.6; }
  to   { transform: translateY(100%); opacity: 0;   }
}
.case-file.open::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanLine 0.5s ease forwards;
  pointer-events: none;
}

/* ═══════════ 信号追踪（品牌蓝 #2B7FD8，与存在体概况一致）═══════════ */
.signals-bg {
  --accent: #2B7FD8;
  background-image:
    linear-gradient(rgba(43, 127, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 127, 216, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* 顶部手写标题与三列文字之间多留一行呼吸感 */
.signals-bg .about-journey-title {
  margin-bottom: 64px;
}
/* 三列纯文字排版：彩色短横线 + 英文标题 + 条目，无卡片 */
.signal-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  padding-top: 16px;
}
@media (min-width: 601px) {
  .signal-pillars,
  .signal-sample-library {
    width: min(1080px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.signal-pillar-dash {
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--dash, var(--accent));
  border-radius: 2px;
}
.signal-pillar-title {
  margin: 0 0 26px;
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.signal-pillar-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.signal-pillar-item-title {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.signal-pillar-item-desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.65;
  opacity: 0.5;
}
.signal-sample-library {
  margin-top: 84px;
}
/* Talks is the bridge between working methods and visual evidence: two quiet
   editorial channels, intentionally distinct from both the pillars and gallery. */
.signal-journal {
  width: min(760px, 100%);
  margin: 100px auto 0;
}
.signal-journal-kicker {
  margin: 0 0 30px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
}
.signal-journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 68px;
}
.signal-channel { min-width: 0; }
.signal-channel-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.signal-channel-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.42rem;
  font-weight: 500;
}
.signal-channel-head span {
  color: var(--accent);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .13em;
}
.signal-channel-head > p {
  min-height: 74px;
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-size: .88rem;
  line-height: 1.85;
  opacity: .64;
}
.signal-entry-list,
.archive-list { list-style: none; margin: 26px 0 0; padding: 0; }
.signal-channel-more {
  display: inline-block;
  margin-top: 26px;
  color: var(--accent);
  font-family: var(--font-title);
  font-size: .82rem;
  text-decoration: none;
}
.signal-channel-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-archive .page { max-width: 720px; }
.archive-content { max-width: 560px; margin: 0 auto; }
.archive-back {
  display: inline-block;
  margin-bottom: 66px;
  color: rgba(26, 26, 26, .56);
  font-family: var(--font-title);
  font-size: .84rem;
  text-decoration: none;
}
.archive-back:hover { color: var(--accent); }
.archive-head > p:first-child {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
}
.archive-head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
}
.archive-head h1 span {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  vertical-align: middle;
}
.archive-head > p:last-child {
  max-width: 390px;
  margin: 20px 0 0;
  font-family: var(--font-title);
  font-size: .95rem;
  line-height: 1.9;
  opacity: .66;
}
html[lang="en"] .signal-channel-head > p,
html[lang="en"] .signal-channel-more,
html[lang="en"] .archive-back,
html[lang="en"] .archive-head,
html[lang="en"] .archive-list { font-family: Georgia, "Times New Roman", serif; }
html[lang="en"] .signal-channel-head span,
html[lang="en"] .archive-head h1 span { display: none; }
.signal-library-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}
.signal-library-head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.08rem, 2.6vw, 1.32rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--accent);
}
.signal-library-hint {
  margin: 10px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  opacity: 0.45;
}
/* 堆叠卡片陈列：图片即卡片（圆角 + 投影），后面露出两张叠影，点击翻下一张 */
.signal-sample-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 72px 48px;
}
.signal-sample-card {
  flex: 0 0 auto;
  width: calc(var(--w) * 1px);
}
.signal-stack {
  position: relative;
  width: 100%;
  aspect-ratio: var(--w) / var(--h);
  cursor: pointer;
}
.signal-stack .signal-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(26, 26, 26, 0.12);
  opacity: 0;
  transform: translateY(44px) scale(0.92);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* 卡片高、缩放会抵消位移，偏移量要够大叠影才露得出来 */
.signal-shot.pos-0 { z-index: 4; transform: translateY(0) scale(1); opacity: 1; }
.signal-shot.pos-1 { z-index: 3; transform: translateY(22px) scale(0.96); opacity: 0.8; }
.signal-shot.pos-2 { z-index: 2; transform: translateY(44px) scale(0.92); opacity: 0.6; }
.signal-shot.is-leaving { z-index: 5; transform: translateX(-120%) rotate(-5deg); opacity: 0; }
/* 展签：无框文字，居中放在卡片下方 */
.signal-sample-meta {
  margin: 46px 0 0;
  text-align: center;
}
.signal-sample-mark {
  font-family: var(--font-title);
  font-size: 0.92rem;
  color: var(--ink);
}
.signal-sample-count {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-left: 10px;
}
.signal-sample-meta p {
  margin: 7px 0 0;
  font-size: 0.74rem;
  line-height: 1.7;
  opacity: 0.55;
}
/* ═══════════ 接触协议 ═══════════ */
/* 容器整体在页面居中（参照 .about-edu 的做法），容器内文字左对齐 */
.contact-intro-text {
  max-width: 420px;
  margin: 48px auto 0;
  font-size: 1rem;
  opacity: 0.6;
  line-height: 1.7;
}

/* 片尾名单风格：分组标题 + 行内 role/value 排布 */
.credits-groups {
  max-width: 420px;
  margin: 0 auto;
}
.cr-group { margin-bottom: 50px; }
.cr-group:last-child { margin-bottom: 0; }
.cr-group-title {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-bottom: 22px;
}
.cr-list { list-style: none; margin: 0; padding: 0; }
.cr-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
}
.cr-role {
  flex: 0 0 128px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.cr-body { display: flex; flex-direction: column; flex: 0 1 auto; }
.cr-value {
  font-family: var(--font-title);
  font-size: 1.14rem;
  color: var(--ink);
  text-decoration: none;
}
a.cr-value { transition: color 0.2s ease; }
a.cr-value:hover { color: var(--accent); }
.cr-note {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.5;
}

/* ── 弹窗（首页保留）── */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.modal-box {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px; width: 100%;
  box-shadow: 6px 6px 0 rgba(0,0,0,.12);
  animation: popIn .25s ease both;
}
.modal-q {
  font-family: var(--font-title);
  font-size: 1.5rem; line-height: 1.3; margin: 0 0 24px;
}
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-btn {
  font-family: var(--font-body);
  font-size: 1rem; padding: 12px 16px;
  border: 1.5px solid var(--ink); border-radius: 10px;
  background: transparent; color: inherit; cursor: pointer;
  text-align: left;
  transition: background-color .2s ease, transform .1s ease;
}
.modal-btn:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.modal-btn:active { transform: translateY(1px); }
@keyframes popIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 600px) {
  .page { padding: 32px 20px 100px; }

  .signal-journal { width: 100%; margin-top: 74px; }
  .signal-journal-kicker { margin-bottom: 24px; }
  .signal-journal-grid { grid-template-columns: 1fr; gap: 48px; }
  .signal-channel-head > p { min-height: 0; }
  .archive-back { margin-bottom: 48px; }

  .icp-footer {
    color: rgba(26, 26, 26, 0.34);
  }

  .bottom-nav {
    bottom: 14px;
    padding: 6px 8px;
    gap: 2px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .bottom-nav a {
    font-size: 0.72rem;
    padding: 5px 11px;
  }

  .journal { gap: 34px; }
  .journal-text { font-size: 1rem; padding-left: 0; text-align: center; }
  .about-pair { justify-content: center; }
  .about-title { font-size: 1.28rem; }
  .about-hero-illus { max-width: 220px; }
  .journal-lead-illus { max-width: 280px; }
  .about-hero-intro { max-width: 300px; }
  .journal-entry { max-width: 300px; }
  .about-edu { max-width: 300px; padding-left: 0; text-align: center; }
  .about-edu-list li { padding-left: 0; }
  .about-edu-list li::before { display: none; }
  .about-journey-text { font-size: 1.5rem; }

  .journal-illus {
    position: static;
    display: block;
    width: 200px;
    margin: 0 auto 16px;
    transform: none;
  }

  .signal-sample-library {
    margin-top: 58px;
  }
  .signal-library-head {
    margin-bottom: 30px;
  }
  .signal-sample-grid {
    flex-direction: column;
    gap: 44px;
  }
  .signal-sample-card {
    width: min(330px, 86vw);
  }
  .signal-sample-meta {
    margin-top: 32px;
  }

  .signal-pillars { grid-template-columns: 1fr; gap: 36px; padding-top: 4px; }
  .signal-pillar-title { margin-bottom: 20px; }

  .cr-row { gap: 12px; }
  .cr-role { flex-basis: 96px; font-size: 0.6rem; }
  .cr-value { font-size: 0.92rem; word-break: break-word; }
}

/* Keep the English reading column left-aligned on small screens too. */
@media (max-width: 600px) {
  html[lang="en"] .page-about .about-hero-intro,
  html[lang="en"] .page-about .journal-text,
  html[lang="en"] .page-about .about-edu { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
