/* 邻舍展示页 · 传媒漫画风。来源见 docs/design-system.md。 */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('../assets/fonts/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('../assets/fonts/HarmonyOS_Sans_SC_Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --media-ink: #272329;
  --media-light: #fff8ed;
  --media-paper: #fffdf7;
  --bg: #f0ece8;
  --card: var(--media-paper);
  --sunken: #e8e1d7;
  --ink: #383137;
  --ink-bright: var(--media-ink);
  --muted: #70636a;
  --line: #cdc2bd;
  --line-strong: #a99b96;
  --outline: var(--media-ink);
  --accent: #e07b6c;
  --accent-hover: #a34838;
  --accent-light: #f0b4a5;
  --accent-2:#e7b579;
  --fun-orange: #dca06c;
  --fun-pink: #db9195;
  --fun-teal: #91b6a5;
  --fun-purple: #b2a2bd;
  --fun-blue: #96b2c8;
  --fun-gold: #e1bf73;
  --fun-violet: #b2a2bd;
  --shadow-hard: 9px 9px 0 var(--outline);
  --shadow-hard-sm: 5px 5px 0 var(--outline);
  --dur: .3s;
  --ease: cubic-bezier(.22,1,.36,1);
  --dot: #27232919;
  --display-bg: var(--media-ink);
  --letter-ink: #554a43;
  --letter-accent: #a34838;
  --comic-yellow: #f6d36b;
  --comic-dot: #27232999;
  --hero-surface: var(--accent);
  --hero-copy-ink: var(--media-ink);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #221e28;
  --card: #302a34;
  --media-paper: #302a34;
  --sunken: #27212c;
  --ink: #e6dedf;
  --ink-bright: #fff8ed;
  --muted: #bcb0b9;
  --line: #554b58;
  --line-strong: #8f818f;
  --outline: #a49aa9;
  --accent: #ff8c79;
  --accent-hover: #ffad9b;
  --accent-light: #d29e94;
  --dot: #fff8ed14;
  --display-bg: #17141b;
  --shadow-hard: 9px 9px 0 #100e13;
  --shadow-hard-sm: 5px 5px 0 #100e13;
  --comic-dot: #fff8ed66;
  --hero-surface: #422e39;
  --hero-copy-ink: var(--media-light);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'HarmonyOS Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: var(--media-ink);
}

.wrap {
  width: 100%;
  max-width: 1240px;
  padding: 0 40px;
  margin: auto;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 110;
  padding: 10px 18px;
  background: var(--card);
  border: 2px solid var(--outline);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* 共用静态控件，延续 MediaGameButton 的描边、硬阴影、44px 热区。 */
.btn,.bgm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 3px solid var(--outline);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink-bright);
  box-shadow: var(--shadow-hard-sm);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),opacity var(--dur);
}

.btn.primary {
  background: var(--accent);
  color: var(--media-ink);
}

.btn:hover,.bgm-btn:hover {
  transform: translate(-2px,-3px);
}

.btn:active,.bgm-btn:active {
  transform: translate(4px,4px);
  box-shadow: none;
}

.btn:disabled {
  cursor: wait;
  opacity: .6;
  transform: none;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  background: var(--media-ink);
  border-bottom: 4px solid var(--media-ink);
  color: var(--media-light);
}

.topnav.scrolled {
  box-shadow: 0 4px 0 var(--outline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 900;
  color: var(--media-light);
  letter-spacing: -.5px;
}

.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.repo-link { font-family: monospace; }
.reading-progress {
  position: absolute;
  inset: auto 0 -4px;
  height: 4px;
  background: var(--comic-yellow);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.links {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}

.links a {
  position: relative;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur);
}

.links a:hover::after,.links a.on::after {
  transform: scaleX(1);
}

.nav-tools {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.nav-tools .btn,.nav-tools .bgm-btn {
  padding: 8px 11px;
  font-size: 12px;
}

.disc {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle,var(--accent) 0 3px,var(--media-ink) 3px 6px,var(--accent) 6px 7px,var(--media-ink) 7px);
  flex-shrink: 0;
}

.playing .disc {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }

}

/* 刊头首屏。 */
.hero {
  position: relative;
  padding-top: 26px;
  overflow: hidden;
  background: var(--hero-surface);
}

.edition-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 700 11px/1.6 monospace;
  letter-spacing: .1em;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--media-ink);
  color: var(--hero-copy-ink);
  font-size: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 46px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 68px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 28px;
  padding: 5px 10px;
  background: var(--comic-yellow);
  border: 3px solid var(--media-ink);
  color: var(--media-ink);
  font-size: 12px;
  font-weight: 700;
  transform: none;
  box-shadow: 4px 4px 0 var(--media-ink);
}

.hero h1 {
  font-size: clamp(50px, 5.9vw, 84px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.04em;
  color: var(--media-light);
  -webkit-text-stroke: 2px var(--media-ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--media-ink);
}

.hero h1 .hl {
  display: inline-block;
  margin-top: 2px;
  color: var(--comic-yellow);
  -webkit-text-stroke: 3px var(--media-ink);
  text-shadow: 6px 6px 0 var(--media-ink);
  transform: none;
  font-size: 1.24em;
  line-height: 1.3;
}

.hero .sub {
  max-width: 31em;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  position: relative;
  background: var(--card);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--media-ink);
  padding: 15px 18px;
}

.hero .sub b {
  color: var(--ink);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  margin-top: 24px;
  font-weight: 700;
  color: var(--hero-copy-ink);
}

.hero-index>span {
  color: var(--hero-copy-ink);
}

.hero-index a {
  border-bottom: 2px solid currentColor;
}

.hero-shots {
  height: 545px;
  position: relative;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard);
  transform: none;
  background: var(--card);
}

.hero-shots::before {
  content: 'LINSHE.EXE';
  position: absolute;
  top: 18px;
  right: auto;
  font: 900 42px/1 sans-serif;
  letter-spacing: .08em;
  color: var(--muted);
  font-size: 18px;
  opacity: .6;
  left: 18px;
}

.shot,.sticker {
  border: 3px solid var(--outline);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--card);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shots .shot {
  position: absolute;
  transition: transform var(--dur) var(--ease);
}

.hero-shots .shot:hover {
  transform: translateY(-4px);
  z-index: 5;
}

.shot.main-vn {
  width: 103%;
  right: -2%;
  top: 58px;
  transform: none;
  z-index: 3;
}

.shot.main-vn img {
  aspect-ratio: 900/563;
}

.shot.main-moments {
  width: 47%;
  left: -3%;
  bottom: -12px;
  transform: none;
  z-index: 4;
}

.shot.main-moments img {
  aspect-ratio: 620/760;
  object-position: top;
}

.shot.main-standing {
  width: 32%;
  right: 4%;
  bottom: -12px;
  transform: none;
  z-index: 4;
}

.shot.main-standing img {
  aspect-ratio: 1/2;
}

.cap {
  position: absolute;
  z-index: 6;
  padding: 6px 12px;
  background: var(--comic-yellow);
  color: var(--media-ink);
  border: 3px solid var(--media-ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-hard-sm);
}

.cap-1 {
  left: 12px;
  top: 40px;
  transform: none;
}

.cap-2 {
  left: 2%;
  bottom: -26px;
  transform: none;
}

.ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 16px 20px;
  background: var(--display-bg);
  color: var(--media-light);
  border-top: 4px solid var(--media-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  border-bottom: 4px solid var(--media-ink);
}

.ticker b {
  color: var(--comic-yellow);
  font-size: 28px;
}

/* 照相馆保留完整取景界面，横幅与竖幅截图共用一个稳定的展示区域。 */
.studio-spread {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.studio-spread .sec-head { margin-bottom: 0; }
.studio-prints {
  min-inline-size: 0;
  padding: 12px;
  background: var(--card);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-prints label.btn { position: relative; min-height: 44px; padding: 6px 14px; }
.studio-prints label:has(:checked) { background: var(--comic-yellow); color: var(--media-ink); }
.studio-prints label:has(:focus-visible) { outline: 3px solid var(--accent-hover); outline-offset: 3px; }
.studio-prints input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.studio-screen {
  position: relative;
  width: 100%;
  margin-top: 6px;
  aspect-ratio: 1662 / 1080;
  background: var(--display-bg);
}
.studio-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur), visibility 0s var(--dur);
}
.studio-prints:has([value="solo"]:checked) .solo,
.studio-prints:has([value="duo"]:checked) .duo,
.studio-prints:has([value="finish"]:checked) .finish {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  z-index: 1;
}
.studio-slide img { width: 100%; height: 100%; object-fit: contain; }
.studio-slide, .game-shelf a { cursor: zoom-in; }

.game-feature { margin-bottom: 52px; }
.game-feature h3 { color: var(--ink-bright); font-size: clamp(24px, 3vw, 38px); margin-bottom: 18px; }
.game-shelf { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.game-shelf article { background: var(--card); border: 3px solid var(--outline); box-shadow: var(--shadow-hard-sm); }
.game-shelf img { width: 100%; height: auto; border-bottom: 3px solid var(--outline); }
.game-shelf article > div { padding: 16px 22px 22px; }
.game-shelf h4 { font-size: 22px; color: var(--ink-bright); margin-bottom: 4px; }
.game-shelf p { font-size: 16px; color: var(--ink); }

@media (max-width: 900px) {
  .studio-spread { grid-template-columns: 1fr; }
  .studio-spread h2 br { display: none; }
}
@media (max-width: 640px) {
  .studio-prints { padding: 8px; gap: 6px; }
  .studio-prints label.btn { flex: 1; padding: 5px 3px; font-size: 13px; }
  .game-shelf { grid-template-columns: 1fr; gap: 24px; }
}

/* 章节与纸面。 */
section {
  position: relative;
}

.sec {
  padding: 88px 0;
  border-bottom: 3px solid var(--outline);
  isolation: isolate;
}

.sec-head {
  max-width: 940px;
  margin-bottom: 52px;
}

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.kicker .no {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 7px;
  background: var(--accent);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
  transform: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--media-ink);
}

.kicker .mod,.eyebrow,.note-index {
  font: 700 11px/1.6 monospace;
  letter-spacing: .12em;
  color: var(--muted);
}

.sec-head h2 {
  font-size: clamp(32px, 4.25vw, 57px);
  line-height: 1.6;
  letter-spacing: -.05em;
  color: var(--ink-bright);
  font-weight: 900;
}

.sec-head h2 em {
  font-style: normal;
  color: var(--media-ink);
  display: inline-block;
  max-width: 100%;
  background: var(--comic-yellow);
  padding: 0 .18em;
  border: 3px solid var(--media-ink);
  box-shadow: 6px 6px 0 var(--media-ink);
  transform: none;
  line-height: 1.3;
  vertical-align: baseline;
  margin: 0 8px 12px 0;
}

.sec-head p {
  margin-top: 25px;
  color: var(--muted);
  font-size: 15px;
  max-width: 48em;
}

.new-label {
  padding: 1px 8px;
  border: 2px solid var(--media-ink);
  color: var(--media-ink);
  background: var(--comic-yellow);
  font-size: 11px;
  transform: none;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease),transform var(--dur) var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.about {
  background: var(--sunken);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 21px;
  line-height: 1.65;
  color: var(--ink-bright);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.about-text b {
  color: var(--ink);
}

.about-quote {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  margin-top: 24px;
  background: var(--card);
  font-size: 16px;
}

.about-quote .who {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  padding: 24px 22px;
  border: 3px solid var(--outline);
  background: var(--card);
  box-shadow: var(--shadow-hard-sm);
  position: relative;
}

.stat .num {
  font-size: 48px;
  color: var(--ink-bright);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.04em;
}

.stat .num small {
  font-size: 14px;
  margin-left: 6px;
}

.stat .lab {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.stat:first-child {
  background: var(--accent);
}

.stat:first-child .num,.stat:first-child .lab {
  color: var(--media-ink);
}

/* 聊天。 */
.chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.chat-feats {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.feat {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feat .ico {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--comic-yellow);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
  transform: none;
  color: var(--media-ink);
}

.feat h4 {
  font-size: 17px;
  color: var(--ink-bright);
}

.feat p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.phone {
  max-width: 440px;
  margin: auto;
  border: 4px solid var(--outline);
  background: var(--card);
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.phone-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--accent);
  color: var(--media-ink);
  border-bottom: 3px solid var(--outline);
}

.ph-av {
  width: 42px;
  height: 42px;
  border: 2px solid var(--media-ink);
  border-radius: 50%;
  object-fit: cover;
}

.ph-name {
  font-size: 15px;
  font-weight: 700;
}

.ph-fav {
  display: block;
  font-size: 11px;
}

.ph-topic {
  font-size: 11px;
  margin-left: auto;
  max-width: 110px;
}

.phone-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
  min-height: 450px;
  background: var(--sunken);
}

.day-sep {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin: 3px 0;
}

.msg {
  display: flex;
  gap: 9px;
  max-width: 92%;
  opacity: 0;
  transform: translateY(8px);
}

.msg.pop {
  animation: msgin var(--dur) var(--ease) forwards;
}

@keyframes msgin {
  to {
    opacity: 1;
    transform: none;
  }

}

.msg .m-av {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--outline);
}

.bubble {
  font-size: 13px;
  line-height: 1.7;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 0 8px 8px;
  box-shadow: 2px 2px 0 var(--line);
}

.msg.me {
  align-self: flex-end;
}

.msg.me .bubble {
  background: var(--accent);
  color: var(--media-ink);
}

.chat-foot {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 2px solid var(--outline);
}

.fake-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: var(--sunken);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.send {
  display: grid;
  place-items: center;
  width: 38px;
  background: var(--accent);
  color: var(--media-ink);
  border: 1px solid var(--outline);
}

.chat-src {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}

.mini-shot {
  width: 110px;
  height: 120px;
  overflow: hidden;
  border: 2px solid var(--outline);
  transform: none;
}

.mini-shot img {
  width: 100%;
}

.group-banner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 54px;
  align-items: center;
  margin-top: 60px;
}

.group-banner .shot img {
  aspect-ratio: 1.1;
  object-position: top left;
}

/* 沉浸对话功能示意。 */
#galgame {
  background: var(--card);
}

.galgame-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.vn-demo {
  height: 570px;
  position: relative;
  border: 4px solid var(--outline);
  box-shadow: none;
  overflow: hidden;
  background: var(--sunken);
}

.demo-caption {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--outline);
  padding: 4px 8px;
  font-size: 10px;
}

.vn-setting {
  position: absolute;
  left: 25px;
  top: 90px;
  font: 900 40px/1.1 sans-serif;
  color: var(--media-ink);
  writing-mode: vertical-rl;
  letter-spacing: -.03em;
  background: var(--comic-yellow);
  padding: 14px 8px;
  border: 3px solid var(--media-ink);
  transform: none;
  font-size: 42px;
}

.vn-portrait {
  position: absolute;
  height: 100%;
  width: 65%;
  right: 1%;
  top: 0;
  object-fit: cover;
  object-position: 50% 0%;
  border-left: 2px solid var(--outline);
  border-right: 2px solid var(--outline);
}

.vn-dialogue {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px 22px;
  background: var(--card);
  border: 3px solid var(--outline);
  box-shadow: 7px 7px 0 var(--media-ink);
}

.vn-name {
  font-size: 18px;
  color: var(--accent-hover);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.vn-name span {
  float: right;
  font: 11px/2 monospace;
  color: var(--muted);
}

.vn-dialogue p {
  min-height: 70px;
  margin: 14px 0;
  font-size: 15px;
  transition: opacity var(--dur);
}

.vn-dialogue .btn {
  display: flex;
  margin-left: auto;
  font-size: 12px;
  padding: 8px 12px;
}

.feature-notes article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-notes h3 {
  font-size: 20px;
  margin: 8px 0;
  color: var(--ink-bright);
}

.feature-notes p {
  font-size: 14px;
  color: var(--muted);
}

.source-note {
  font-size: 11px!important;
  line-height: 1.8;
  margin-top: 22px;
}

/* 传媒：珊瑚与墨色双栏刊头。 */
.media-section {
  background: var(--sunken);
}

.media-masthead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-hard);
}

.media-masthead>div:first-child {
  background: var(--accent);
  color: var(--media-ink);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}

.media-masthead>div:first-child::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 180px;
  height: 16px;
  transform: skewX(-30deg);
  background: repeating-linear-gradient(90deg,var(--media-ink) 0 9px,transparent 9px 16px);
}

.media-masthead .eyebrow {
  color: var(--media-ink);
}

.media-masthead h2 {
  font-size: clamp(74px, 8vw, 114px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.09em;
  transform: none;
  margin: 20px 0 24px;
}

.media-masthead h2 span {
  display: inline-block;
  margin-left: 12px;
  color: var(--media-light);
  -webkit-text-stroke: 3px var(--media-ink);
  text-shadow: 5px 5px 0 var(--media-ink);
}

.media-masthead p {
  font-size: 13px;
  font-weight: 700;
}

.media-intro {
  background: var(--display-bg);
  color: var(--media-light);
  padding: 30px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.media-intro p {
  max-width: 70%;
  font-size: 14px;
  line-height: 1.9;
}

.media-intro a {
  font-size: 12px;
  color: var(--accent);
  margin-top: 15px;
}

.edition-stamp {
  position: absolute;
  right: 28px;
  top: 24px;
  background: var(--comic-yellow);
  color: var(--media-ink);
  border: 3px solid var(--media-ink);
  box-shadow: 6px 6px 0 var(--accent);
  font-weight: 900;
  font-size: 22px;
  padding: 10px 12px;
  line-height: 1.3;
  transform: none;
}

.media-console {
  margin-top: 26px;
  border: 3px solid var(--outline);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

.media-tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  padding: 22px;
  border-bottom: 3px solid var(--outline);
  background: var(--display-bg);
}

.media-tab {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  font-size: 16px;
}

.media-tab span {
  font: 11px monospace;
  letter-spacing: .05em;
}

.media-tab[aria-selected='true'] {
  background: var(--comic-yellow);
  color: var(--media-ink);
  transform: none;
}

.media-preview {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  min-height: 320px;
  transition: opacity var(--dur),transform var(--dur);
}

.media-preview.is-swapping {
  opacity: 0;
  transform: translateY(5px);
}

.media-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 2px solid var(--outline);
}

.media-preview h3 {
  font-size: 30px;
  line-height: 1.45;
  color: var(--ink-bright);
  margin: 12px 0;
  font-weight: 900;
}

.media-preview p {
  font-size: 14px;
  color: var(--muted);
}

.media-preview ul {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.media-preview li {
  font-size: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.media-preview li::before {
  content: '↗';
  margin-right: 10px;
  color: var(--accent-hover);
}

.media-footnote {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.media-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-top: 40px;
}

.media-benefits article {
  border-top: 5px solid var(--outline);
  padding-top: 20px;
}

.media-benefits .icon {
  color: var(--accent-hover);
}

.media-benefits h3 {
  font-size: 17px;
  margin: 10px 0;
}

.media-benefits p {
  font-size: 13px;
  color: var(--muted);
}

/* 朋友圈、奇遇与世界。 */
.moments-layout {
  position: relative;
}

.moment-stream {
  columns: 2;
  column-gap: 24px;
}

.mcard {
  break-inside: avoid;
  background: var(--card);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
  padding: 22px;
  margin-bottom: 24px;
}

.m-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mcard .m-av {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid var(--outline);
  border-radius: 50%;
}

.m-name {
  font-size: 15px;
  font-weight: 700;
}

.m-time {
  font-size: 11px;
  color: var(--muted);
}

.m-text {
  font-size: 14px;
  margin-bottom: 14px;
}

.m-img {
  border: 1px solid var(--outline);
  overflow: hidden;
}

.m-img img {
  width: 100%;
}

.m-acts {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 16px;
}

.m-acts span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.m-acts .icon {
  width: 16px;
  height: 16px;
}

.moments-side {
  position: absolute;
  right: -12px;
  bottom: -20px;
  width: 180px;
  transform: none;
}

.cap-line {
  font-size: 10px;
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}

#events {
  background: var(--card);
}

.event-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-hard);
  background: var(--sunken);
}

.ev-img {
  position: relative;
  min-height: 430px;
}

.ev-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 12px;
  background: var(--comic-yellow);
  color: var(--media-ink);
  border: 3px solid var(--media-ink);
  font-size: 14px;
  font-weight: 700;
  transform: none;
}

.ev-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.ev-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.4;
}

.ev-owner {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.ev-desc {
  font-size: 14px;
  line-height: 1.95;
  margin-top: 20px;
}

.ev-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--outline);
  font-size: 11px;
  background: var(--card);
}

.chip.hot {
  background: var(--accent);
  color: var(--media-ink);
}

.tag-rain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.tr-tag {
  padding: 7px 14px;
  border: 3px solid var(--outline);
  background: var(--card);
  box-shadow: var(--shadow-hard-sm);
  font-size: 14px;
  font-weight: 700;
}

.tr-tag .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--accent);
}

#town {
  height: 240vh;
  border-top: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
}

.town-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.town-bg,.town-bg img,.town-bg .shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.town-bg img {
  object-fit: cover;
}

.town-bg .shade {
  background: linear-gradient(180deg,#272329bb,#27232911 60%,#27232999);
}

.town-head {
  position: absolute;
  top: 16vh;
  left: 8%;
  right: 8%;
  z-index: 4;
  text-align: center;
  color: var(--media-light);
}

.town-head .kicker .mod {
  color: var(--media-light);
}

.town-head h2 {
  font-size: clamp(28px,4vw,48px);
  line-height: 1.3;
  text-shadow: 3px 3px 0 var(--media-ink);
}

.town-head h2 em {
  font-style: normal;
  color: var(--accent-light);
}

.town-head p {
  font-size: 14px;
  max-width: 650px;
  margin: 15px auto;
  text-shadow: 1px 1px 2px var(--media-ink);
}

.town-zoom {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 5;
  width: min(820px,80vw);
  border: 3px solid var(--media-ink);
  box-shadow: 8px 8px 0 var(--media-ink);
  transform: translate(-50%,-50%);
  opacity: 0;
}

.town-zoom img {
  width: 100%;
}

.town-note {
  position: absolute;
  z-index: 6;
  padding: 10px 16px;
  border: 2px solid var(--outline);
  background: var(--card);
  box-shadow: var(--shadow-hard-sm);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
}

.town-note small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.town-steps {
  position: absolute;
  bottom: 5vh;
  left: 15%;
  right: 15%;
  z-index: 7;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.town-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border: 2px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
  font-size: 12px;
  opacity: .7;
  transition: opacity var(--dur);
}

.town-step .n {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--sunken);
  font-weight: 700;
}

.town-step.lit {
  opacity: 1;
}

.town-step.lit .n {
  background: var(--accent);
  color: var(--media-ink);
}

.town-bgm {
  position: absolute;
  bottom: 18px;
  right: 20px;
  z-index: 8;
  font-size: 11px;
}

/* 日程、相册与更多功能。 */
.sched-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.timeline {
  position: relative;
  border-left: 2px solid var(--line-strong);
  padding-left: 24px;
  margin: 25px 0 0 10px;
}

.tl-item {
  position: relative;
  padding: 0 0 17px 4px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--dur),transform var(--dur);
}

.tl-item.in {
  opacity: 1;
  transform: none;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--outline);
  background: var(--card);
  transform: rotate(45deg);
}

.tl-item.now::before {
  background: var(--accent);
}

.tl-item .t {
  font: 700 12px monospace;
  color: var(--accent-hover);
}

.tl-item .a {
  font-size: 14px;
  margin-top: 4px;
}

.tl-item.now .a {
  font-weight: 700;
}

.sched-side .shot img {
  aspect-ratio: 1.65;
  object-position: top left;
}

.cap-note {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0;
  text-align: center;
}

#gallery {
  background: var(--sunken);
}

.gal-shot {
  margin-bottom: 30px;
}

.gal-shot img {
  aspect-ratio: 2.5;
  object-position: top left;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.gal-cell {
  position: relative;
  aspect-ratio: 3/4;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
  background: var(--card);
  overflow: hidden;
  transition: transform var(--dur);
}

.gal-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-cell:hover {
  transform: translateY(-4px);
}

.g-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--media-ink);
  color: var(--media-light);
  padding: 7px 10px;
  font-size: 11px;
}

.hscroll {
  display: flex;
  gap: 22px;
  padding: 6px 40px 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-color: var(--accent) var(--sunken);
  scrollbar-width: thin;
  touch-action: pan-x pan-y pinch-zoom;
}

.hscroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hcard {
  flex: 0 0 300px;
  scroll-snap-align: start;
  scroll-margin-left: 40px;
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
  background: var(--card);
  user-select: none;
  overflow: hidden;
}

.hc-img {
  height: 190px;
  position: relative;
  border-bottom: 2px solid var(--outline);
  background: var(--sunken);
  overflow: hidden;
}

.hc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hc-symbol {
  display: grid;
  place-items: center;
  background: var(--sunken);
  color: var(--media-ink);
  background-color: var(--comic-yellow);
}

.hc-symbol .icon {
  width: 86px;
  height: 86px;
  stroke-width: 1.7;
  transform: none;
}

.hc-symbol::after {
  content: 'LINSHE / DAILY LIFE';
  position: absolute;
  bottom: 12px;
  font: 10px monospace;
  letter-spacing: .12em;
  color: var(--media-ink);
  font-weight: 700;
}

.hc-body {
  padding: 20px;
}

.hc-body h4 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 17px;
  line-height: 1.5;
}

.taglet {
  padding: 2px 6px;
  border: 1px solid var(--media-ink);
  color: var(--media-ink);
  font: 10px monospace;
}

.hc-body p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.paper-quote {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 20px;
  text-align: center;
  color: var(--letter-ink);
}

.paper-quote strong {
  font-size: 14px;
  color: var(--letter-accent);
}

.paper-quote span {
  font-size: 11px;
  margin-top: 8px;
}

.hint-drag {
  margin-top: 18px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

/* 视频与邻居墙。 */
#video {
  background: var(--card);
}

.video-card {
  position: relative;
  background: var(--media-ink);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  overflow: hidden;
}

.video-card img,.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border: 0;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 80px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 3px solid var(--media-ink);
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--media-ink);
  transition: transform var(--dur);
}

.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--media-ink);
  margin-left: 5px;
}

.video-card:hover .play-btn {
  transform: translate(-50%,-50%);
}

.bv {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 4px 12px;
  background: var(--media-ink);
  color: var(--media-light);
  font-size: 11px;
}

.finale {
  padding-bottom: 0;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 16px;
  margin-top: 40px;
}

.sample-card {
  background: var(--card);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard-sm);
}

.sc-img {
  aspect-ratio: 1/2;
  overflow: hidden;
  border-bottom: 2px solid var(--outline);
}

.sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sc-meta {
  padding: 12px;
}

.sc-name {
  font-size: 14px;
  font-weight: 700;
}

.sc-tag {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

.sample-note {
  margin: 28px auto 0;
  max-width: 700px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.finale-end {
  padding: 76px 24px 62px;
  text-align: center;
}
.finale-logo {
  margin: 0 auto 16px;
  object-fit: contain;
}

.finale-end .big {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.6;
  font-weight: 900;
  color: var(--ink-bright);
}

.finale-end em {
  font-style: normal;
  color: var(--media-ink);
  background: var(--comic-yellow);
  padding: 2px 10px;
  box-shadow: 5px 5px 0 var(--media-ink);
  display: inline-block;
  border: 3px solid var(--media-ink);
  margin: 0 0 12px;
}

.finale-end p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 24px;
  border-top: 2px solid var(--outline);
  background: var(--display-bg);
  color: var(--media-light);
  font-size: 11px;
  text-align: center;
  line-height: 2;
}

.heart {
  color: var(--accent);
}

/* 网点只贴着直边框的右侧与下侧，硬投影外再露出一圈印刷网点。
   clip-path 裁去面板本身的区域，正文和图像内部不会被纹理覆盖。 */
.comic-frame {
  --frame-offset: 22px;
  --frame-solid: 9px;
  position: relative;
  isolation: isolate;
}

.comic-frame::after {
  content: '';
  position: absolute;
  inset: calc(var(--frame-offset) - 3px) calc(-3px - var(--frame-offset)) calc(-3px - var(--frame-offset)) calc(var(--frame-offset) - 3px);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, var(--comic-dot) 1px, transparent 1.3px) 0 0 / 5px 5px;
  clip-path: polygon(
    calc(100% - var(--frame-offset) + var(--frame-solid)) 0,
    100% 0, 100% 100%, 0 100%,
    0 calc(100% - var(--frame-offset) + var(--frame-solid)),
    calc(100% - var(--frame-offset) + var(--frame-solid)) calc(100% - var(--frame-offset) + var(--frame-solid))
  );
}

.shot.comic-frame, .hcard.comic-frame, .gal-cell.comic-frame, .video-card.comic-frame { overflow: visible; }
.sec-head em.comic-frame, .stat.comic-frame, .sample-card.comic-frame, .gal-cell.comic-frame, .hcard.comic-frame, .finale-end em.comic-frame {
  --frame-offset: 16px;
  --frame-solid: 6px;
}
.phone-frame { max-width: 440px; margin: auto; box-shadow: var(--shadow-hard); }
.vn-frame { min-width: 0; box-shadow: var(--shadow-hard); }
.hero-copy { position: relative; z-index: 2; }
.hero-line { display: block; }
.hero-label {
  position: absolute;
  top: -28px;
  right: -10px;
  z-index: 7;
  padding: 12px 16px;
  border: 3px solid var(--media-ink);
  background: var(--comic-yellow);
  box-shadow: 5px 5px 0 var(--media-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--media-ink);
  --frame-offset: 14px;
  --frame-solid: 5px;
}
.kicker .mod { background: var(--media-ink); color: var(--media-light); padding: 6px 12px; }
.stat:nth-child(2) { background: var(--comic-yellow); }
.stat:nth-child(2) .num, .stat:nth-child(2) .lab { color: var(--media-ink); }
.mcard .m-top { margin: -22px -22px 18px; padding: 16px 22px; background: var(--sunken); border-bottom: 3px solid var(--outline); }
.mcard:nth-child(2n) { box-shadow: 7px 7px 0 var(--accent); }
.sample-card .sc-meta { border-top: 3px solid var(--outline); }
.sc-img { border-bottom: 0; }
.finale-end { margin-top: 34px; border-top: 3px solid var(--outline); }

/* 响应式保持漫画语言；窄屏导航横向可达。 */
@media(min-width:1600px) {
  .hero-grid {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .hero-shots {
    height: 550px;
  }

}

@media(max-width:1150px) {
  .topnav {
    gap: 14px;
    padding: 12px 22px;
  }

  .links a {
    padding-left: 7px;
    padding-right: 7px;
  }

  .nav-tools .bgm-label {
    display: none;
  }

  .hero-grid {
    gap: 26px;
  }

  .hero-shots {
    height: 430px;
  }

  .galgame-layout {
    gap: 32px;
  }

  .sample-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .sc-img {
    aspect-ratio: 2/3;
  }

  .town-note {
    display: none;
  }

}

@media(max-width:900px) {
  .topnav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 22px 0;
  }

  .brand {
    font-size: 16px;
  }

  .nav-tools {
    margin-left: auto;
  }

  .links {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
    scrollbar-width: none;
  }

  .links a {
    padding: 10px;
    font-size: 12px;
  }

  .nav-tools .bgm-label {
    display: inline;
  }

  html {
    scroll-padding-top: 140px;
  }

  .wrap {
    padding: 0 28px;
  }

  .hero-grid {
    padding-top: 34px;
    padding-bottom: 48px;
    gap: 26px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-shots {
    height: 390px;
  }

  .hero-badge {
    font-size: 10px;
  }

  .hero .sub {
    font-size: 14px;
  }

  .hero-index {
    gap: 10px;
  }

  .hero-cta .btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .ticker {
    gap: 18px;
    font-size: 11px;
  }

  .ticker span:last-child,.ticker b:last-of-type {
    display: none;
  }

  .about-grid,.chat-grid,.sched-grid {
    gap: 36px;
  }

  .stats {
    gap: 12px;
  }

  .stat {
    padding: 16px;
  }

  .stat .num {
    font-size: 28px;
  }

  .group-banner {
    gap: 30px;
  }

  .galgame-layout {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .vn-dialogue {
    left: 12px;
    right: 12px;
    padding: 14px;
  }

  .vn-setting {
    font-size: 30px;
  }

  .media-masthead>div:first-child,.media-intro {
    padding: 26px;
  }

  .edition-stamp {
    right: 18px;
    top: 20px;
    font-size: 15px;
  }

  .media-intro p {
    max-width: 80%;
    font-size: 12px;
  }

  .media-preview {
    gap: 25px;
    padding: 24px;
  }

  .media-preview h3 {
    font-size: 23px;
  }

  .media-benefits {
    gap: 20px;
  }

  .moments-side {
    display: none;
  }

  .event-hero {
    grid-template-columns: 1fr 1.1fr;
  }

  .ev-body {
    padding: 25px;
  }

  .ev-title {
    font-size: 23px;
  }

  .gal-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .town-head {
    top: 19vh;
  }

  .town-steps {
    left: 4%;
    right: 4%;
    bottom: 10vh;
  }

  .town-step {
    padding: 8px;
    font-size: 11px;
  }

  .town-bgm {
    bottom: 15px;
  }

  .town-zoom {
    width: 90vw;
  }

}

@media(max-width:640px) {
  .wrap {
    padding: 0 20px;
  }

  .topnav {
    padding: 8px 16px 0;
  }

  .nav-tools {
    gap: 8px;
  }

  .nav-tools .btn,.nav-tools .bgm-btn {
    padding: 8px;
  }

  .nav-tools .bgm-label {
    display: none;
  }

  .theme-btn .icon {
    width: 18px;
    height: 18px;
  }

  .brand {
    gap: 8px;
  }

  .hero {
    padding-top: 18px;
  }

  .edition-line {
    font-size: 9px;
    letter-spacing: 0;
    gap: 10px;
    align-items: center;
  }

  .edition-line>span:last-child {
    max-width: 125px;
    text-align: right;
  }

  .hero-grid {
    display: block;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero-badge {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(42px,10.6vw,64px);
  }

  .hero h1 br:last-of-type {
    display: none;
  }

  .hero h1 .hl {
    margin-left: 8px;
    -webkit-text-stroke: 1.5px var(--media-ink);
    text-shadow: 3px 3px 0 var(--media-ink);
  }

  .hero .sub {
    font-size: 14px;
    margin: 24px 0;
  }

  .hero-cta {
    gap: 12px;
  }

  .hero-cta .btn {
    padding: 12px;
    font-size: 12px;
  }

  .hero-shots {
    height: 350px;
    margin-top: 32px;
  }

  .shot.main-vn {
    width: 90%;
  }

  .shot.main-moments {
    width: 40%;
  }

  .shot.main-standing {
    width: 23%;
    right: 10%;
    bottom: 0;
  }

  .hero-index {
    font-size: 10px;
  }

  .ticker {
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .ticker b {
    font-size: 14px;
  }

  .sec {
    padding: 58px 0;
  }

  .sec-head {
    margin-bottom: 30px;
  }

  .sec-head h2 {
    font-size: 30px;
  }

  .sec-head p {
    font-size: 14px;
  }

  .kicker {
    gap: 10px;
    margin-bottom: 18px;
  }

  .kicker .mod {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .kicker .no {
    height: 30px;
    min-width: 30px;
    font-size: 11px;
  }

  .about-grid,.chat-grid,.group-banner,.sched-grid,.galgame-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text h3 {
    font-size: 20px;
  }

  .about-text p {
    font-size: 14px;
  }

  .stats {
    gap: 16px;
  }

  .stat {
    padding: 20px;
  }

  .stat .num {
    font-size: 32px;
  }

  .chat-feats {
    margin-top: 0;
    gap: 4px;
  }

  .phone {
    width: 100%;
  }

  .group-banner {
    margin-top: 40px;
  }

  .group-banner .shot img {
    aspect-ratio: 1;
  }

  .chat-src {
    margin-top: 18px;
  }

  .vn-demo {
    height: 550px;
  }

  .vn-dialogue {
    padding: 17px;
  }

  .vn-dialogue p {
    font-size: 14px;
  }

  .feature-notes article:first-child {
    padding-top: 0;
  }

  .media-masthead {
    grid-template-columns: 1fr;
  }

  .media-masthead>div:first-child {
    padding: 26px;
  }

  .media-masthead h2 {
    font-size: 66px;
  }

  .media-intro {
    min-height: 170px;
    padding: 25px;
  }

  .media-intro p {
    font-size: 13px;
    max-width: 78%;
  }

  .edition-stamp {
    font-size: 18px;
    right: 22px;
    top: 26px;
  }

  .media-console {
    margin-top: 22px;
  }

  .media-tabs {
    padding: 13px;
    gap: 10px;
  }

  .media-tab {
    padding: 10px 8px;
    font-size: 12px;
    gap: 6px;
    min-height: 64px;
  }

  .media-tab span {
    font-size: 8px;
    letter-spacing: 0;
  }

  .media-preview {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 22px;
    min-height: 550px;
    align-content: start;
  }

  .media-preview img {
    aspect-ratio: 16/9;
  }

  .media-preview h3 {
    font-size: 24px;
  }

  .media-footnote {
    padding: 12px 18px;
    flex-direction: column;
    font-size: 10px;
    gap: 4px;
  }

  .media-benefits {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
  }

  .media-benefits article {
    position: relative;
    padding-left: 40px;
  }

  .media-benefits .icon {
    position: absolute;
    left: 0;
    top: 22px;
  }

  .media-benefits h3 {
    margin-top: 0;
  }

  .media-benefits p {
    font-size: 14px;
  }

  .moment-stream {
    columns: 1;
  }

  .mcard {
    padding: 18px;
  }

  .m-text {
    font-size: 14px;
  }

  .event-hero {
    grid-template-columns: 1fr;
  }

  .ev-img {
    min-height: 290px;
  }

  .ev-body {
    padding: 25px;
  }

  .ev-desc {
    font-size: 14px;
  }

  .tag-rain {
    gap: 15px;
    margin-top: 30px;
  }

  .tr-tag {
    font-size: 10px;
    padding: 6px 10px;
  }

  .town-head {
    top: 20vh;
    left: 5%;
    right: 5%;
  }

  .town-head h2 {
    font-size: 28px;
  }

  .town-head p {
    font-size: 12px;
  }

  .town-head .kicker {
    margin-bottom: 14px;
  }

  .town-zoom {
    top: 59%;
    width: 92vw;
  }

  .town-steps {
    bottom: 9vh;
    gap: 8px;
    flex-wrap: wrap;
  }

  .town-step {
    font-size: 10px;
    padding: 7px;
  }

  .town-bgm {
    font-size: 10px;
    padding: 7px 10px;
    right: 16px;
    bottom: 16px;
  }

  .gal-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
  }

  .gal-shot img {
    aspect-ratio: 1.7;
  }

  .hscroll {
    padding: 6px 20px 24px;
    gap: 18px;
  }

  .hcard {
    flex-basis: min(290px,84vw);
    scroll-margin-left: 20px;
  }

  .sample-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
  }

  .sc-img {
    aspect-ratio: 1/1.65;
  }

  .sample-note {
    font-size: 12px;
  }

  .finale {
    padding-bottom: 0;
  }

  .finale-end {
    padding: 55px 20px;
  }

  .finale-end .big {
    font-size: 26px;
  }

  .finale-end .btn {
    font-size: 12px;
    padding: 11px 14px;
  }

  .footer {
    font-size: 10px;
    padding: 22px 18px;
  }

  .play-btn {
    width: 60px;
    height: 50px;
  }

  .bv {
    font-size: 9px;
    left: 10px;
    bottom: 10px;
  }

}

@media(max-width:380px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero h1 .hl {
    margin-left: 3px;
  }

  .edition-line>span:first-child {
    max-width: 160px;
  }

  .hero-shots {
    height: 310px;
  }

  .media-tab {
    padding: 8px 5px;
  }

  .vn-demo {
    height: 510px;
  }

  .theme-btn span {
    display: none;
  }

}

@media(max-height:520px) and (orientation:landscape) {
  .town-head {
    top: 30%;
  }

  .town-head p {
    display: none;
  }

  .town-head h2 {
    font-size: 25px;
  }

  .town-head .kicker {
    display: none;
  }

  .town-zoom {
    width: 54vw;
    top: 58%;
  }

  .town-steps {
    bottom: 4%;
    left: 4%;
    right: 25%;
  }

  .town-step {
    font-size: 9px;
    padding: 4px;
  }

}

/* 窄屏保持大字与直边框，缩小边框外的网点阴影。 */
@media (max-width: 1150px) {
  .hero h1 { font-size: clamp(46px, 5.8vw, 68px); }
  .hero-shots { height: 470px; }
  .stat .num { font-size: 38px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 34px; }
  .hero h1 { font-size: 45px; }
  .hero-shots { height: 410px; }
  .hero-badge { font-size: 10px; padding: 5px 8px; }
  .hero .sub { padding: 12px; font-size: 13px; }
  .hero-cta .btn { font-size: 11px; }
  .stat { padding: 18px 14px; }
  .stat .num { font-size: 30px; }
  .sec-head h2 { font-size: 43px; }
  .media-masthead h2 { font-size: 76px; }
  .media-preview h3 { font-size: 24px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(44px, 11.2vw, 65px); line-height: 1.12; text-shadow: 3px 3px 0 var(--media-ink); }
  .hero h1 .hl { font-size: 1.25em; margin-left: 0; margin-top: 10px; -webkit-text-stroke: 2px var(--media-ink); text-shadow: 4px 4px 0 var(--media-ink); }
  .hero-grid { padding-top: 30px; padding-bottom: 54px; }
  .hero-badge { font-size: 10px; margin-bottom: 25px; }
  .hero .sub { margin-top: 28px; padding: 13px; font-size: 14px; }
  .hero-shots { width: calc(100% - 16px); margin: 56px auto 0; height: 350px; box-shadow: 8px 8px 0 var(--media-ink); }
  .shot.main-vn { width: 102%; top: 44px; right: -1%; }
  .shot.main-moments { width: 45%; left: -3%; bottom: -10px; }
  .shot.main-standing { width: 31%; bottom: -16px; right: 7%; }
  .cap-1 { top: 16px; right: auto; left: 10px; font-size: 10px; padding: 4px 7px; }
  .cap-2 { bottom: -23px; left: 4%; font-size: 10px; padding: 4px 7px; }
  .hero-index { font-size: 10px; }
  .ticker { gap: 10px; padding: 13px 10px; font-size: 10px; }
  .ticker b { font-size: 18px; }
  .sec-head h2 { font-size: 32px; line-height: 1.6; }
  .sec-head h2 em { border-width: 2px; box-shadow: 4px 4px 0 var(--media-ink); }
  .sec-head { margin-bottom: 34px; }
  .sec-head p { margin-top: 24px; }
  .kicker .mod { padding: 5px 8px; font-size: 9px; }
  .kicker .no { height: 36px; min-width: 36px; font-size: 14px; }
  .stat { padding: 18px 14px; }
  .stat .num { font-size: 33px; }
  .stat .num small { margin-left: 2px; font-size: 12px; }
  .vn-setting { font-size: 31px; padding: 12px 5px; left: 13px; }
  .media-masthead h2 { font-size: clamp(66px, 19vw, 88px); }
  .media-masthead>div:first-child { padding: 26px 22px; }
  .media-preview h3 { font-size: 26px; }
  .edition-stamp { font-size: 19px; padding: 10px 13px; right: 20px; }
  .media-tab { padding: 10px 5px; }
  .mcard .m-top { margin: -18px -18px 16px; padding: 14px 18px; }
  .ev-title { font-size: 29px; }
  .tr-tag { font-size: 11px; }
  .finale-end .big { font-size: 30px; line-height: 1.8; }
  .finale-end em { display: inline-block; padding: 0 8px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 40px; }
  .hero-badge { font-size: 9px; }
  .hero-cta .btn { font-size: 11px; padding: 10px; }
  .hero-shots { height: 310px; }
  .sec-head h2 { font-size: 29px; }
  .stat .num { font-size: 27px; }
  .media-masthead h2 { font-size: 62px; }
  .media-tab { font-size: 11px; padding: 10px 4px; }
  .media-tab span { font-size: 7px; }
}

@media (max-width: 640px) {
  .comic-frame { --frame-offset: 14px; --frame-solid: 8px; }
  .sec-head em.comic-frame, .stat.comic-frame, .sample-card.comic-frame, .gal-cell.comic-frame, .hcard.comic-frame, .finale-end em.comic-frame {
    --frame-offset: 12px;
    --frame-solid: 5px;
  }
  .hero-label { top: -28px; right: 0; padding: 8px 12px; font-size: 16px; }
  .hero-shots::before { display: none; }
  .media-intro p { max-width: calc(100% - 86px); }
  .media-masthead h2 { letter-spacing: -.08em; }
}

/* 阅读动效沿用纸张、印章和相机快门。原生滚动负责控制阅读速度。 */
.film-enabled::after {
  content: '';
  display: block;
  height: var(--film-run, 0px);
}
.film-enabled .album-window {
  position: sticky;
  top: clamp(100px, 24vh, 220px);
  overflow: hidden;
  background: var(--display-bg);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow-hard);
}
.film-enabled .album-window::before, .film-enabled .album-window::after {
  content: '';
  display: block;
  height: 8px;
  margin: 10px 12px;
  background: repeating-linear-gradient(90deg, var(--media-light) 0 12px, transparent 12px 32px);
}
.film-enabled .gal-grid {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 12px;
  transform: translateX(var(--film-offset, 0px));
}
.film-enabled .gal-cell {
  width: clamp(200px, min(22vw, 40vh), 310px);
  flex: none;
  border-color: var(--media-light);
}
.film-enabled .gal-cell::after { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span {
    animation: headline-rise 480ms var(--ease) backwards;
  }
  .hero h1 > span:nth-child(2) { animation-delay: 80ms; }
  .hero h1 > span:nth-child(3) { animation-delay: 150ms; }
  .hero-shots { --hero-scroll: 0; --travel: clamp(30px, 8vw, 100px); }
  .hero-shots .main-vn, .hero-shots .cap-1 {
    translate: 0 calc(var(--hero-scroll) * var(--travel) * .45);
  }
  .hero-shots .main-moments, .hero-shots .cap-2 {
    translate: calc(var(--hero-scroll) * var(--travel) * -.16) calc(var(--hero-scroll) * var(--travel) * -.4);
  }
  .hero-shots .main-standing {
    translate: calc(var(--hero-scroll) * var(--travel) * .18) calc(var(--hero-scroll) * var(--travel) * -.85);
  }

  .studio-screen { overflow: hidden; }
  .studio-screen::before, .studio-screen::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0 0 49%;
    pointer-events: none;
    background: var(--display-bg);
    border-bottom: 3px solid var(--comic-yellow);
    transform-origin: top;
    transition: transform 650ms var(--ease);
  }
  .studio-screen::after {
    inset: 49% 0 0;
    border: 0;
    border-top: 3px solid var(--comic-yellow);
    transform-origin: bottom;
  }
  .studio-prints.in .studio-screen::before, .studio-prints.in .studio-screen::after,
  .studio-prints:focus-within .studio-screen::before, .studio-prints:focus-within .studio-screen::after {
    transform: scaleY(0);
  }
  .media-masthead.in .edition-stamp, .finale-logo.in {
    animation: paper-stamp 480ms var(--ease) both;
  }
  .game-shelf article.reveal {
    transform: translateY(40px);
    transition: transform 530ms var(--ease), opacity var(--dur);
  }
  .game-shelf article.in { transform: none; }
  .game-shelf article:nth-child(2) { transition-delay: 90ms; }
  .gal-cell.reveal {
    transform: translateY(26px) scale(.97);
    transition: transform 460ms var(--ease), opacity 360ms ease-out;
  }
  .gal-cell.in { transform: none; }
  .gal-cell:nth-child(3n+2) { transition-delay: 55ms; }
  .gal-cell:nth-child(3n) { transition-delay: 110ms; }
  .timeline::before {
    content: '';
    position: absolute;
    inset: 6px auto 0 -2px;
    width: 2px;
    background: var(--accent-hover);
    transform: scaleY(var(--day-progress, 0));
    transform-origin: top;
  }
}
@keyframes headline-rise {
  from { opacity: 0; transform: translateY(.35em); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes paper-stamp {
  0% { opacity: 0; transform: translateY(-12px) scale(1.18); }
  62% { opacity: 1; transform: scale(.96); }
  100% { transform: 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;
    scroll-behavior: auto!important;
  }

  .reveal,.msg,.tl-item {
    opacity: 1;
    transform: none;
  }

  #town {
    height: 110vh;
  }

  .town-zoom {
    opacity: 1;
    transform: translate(-50%,-50%);
  }

  .town-step {
    opacity: 1;
  }

}
