/* 引导页：门厅、滚动条、三件事、机器预览 */

body.landing { background: var(--paper); }

/* ---------- 门厅 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(28px, 6vw, 64px);
  padding-bottom: clamp(26px, 5vw, 54px);
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--red);
  background: var(--red-soft);
  border: 2px solid rgba(200, 22, 30, .25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(52px, 9.5vw, 104px);
  line-height: .94;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--red);
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: .04em;
  height: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12' viewBox='0 0 140 12'%3E%3Cpath d='M2 8c12-6 22-6 34 0s22 6 34 0 22-6 34 0 22 6 34 0' fill='none' stroke='%23C8161E' stroke-width='3' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") repeat-x center/140px 12px;
  z-index: -1;
}
.hero__lead {
  font-size: clamp(14.5px, 1.9vw, 17px);
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 24px;
}
.hero__facts {
  list-style: none;
  display: flex;
  gap: clamp(16px, 4vw, 38px);
  padding: 18px 0 0;
  margin: 0;
  border-top: 2px dashed var(--paper-4);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.hero__facts span { font-size: 11.5px; color: var(--ink-3); font-weight: 800; margin-top: 3px; }

/* 门 + 团子 */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(300px, 42vw, 460px);
  isolation: isolate;
}
.door {
  position: relative;
  width: min(268px, 56vw);
  aspect-ratio: 0.7;
  border: 3px solid var(--line);
  border-radius: 140px 140px 12px 12px;
  background: linear-gradient(180deg, #F6EEE2, #EFE0CE);
  box-shadow: 8px 10px 0 rgba(43, 33, 27, .13), inset 0 0 0 10px rgba(255, 251, 245, .5);
  transform: rotate(-2deg);
  overflow: hidden;
}
.door__light {
  position: absolute;
  inset: 14px;
  border-radius: 140px 140px 6px 6px;
  background:
    radial-gradient(120% 80% at 50% 100%, #FFF3D6, #FFD65A 45%, #FDA535 100%);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .55);
  animation: doorGlow 5s ease-in-out infinite;
}
.door__panel {
  position: absolute;
  left: 14px; right: 14px;
  border: 2px solid rgba(43, 33, 27, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .22);
}
.door__panel--a { top: 26%; height: 22%; }
.door__panel--b { top: 56%; height: 26%; }
.door__knob {
  position: absolute;
  right: 26px;
  top: 52%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFD65A;
  border: 2.5px solid #8A5E0A;
  box-shadow: 0 2px 0 rgba(43, 33, 27, .18);
}
@keyframes doorGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.hero__tuan {
  position: absolute;
  bottom: 5%;
  width: min(196px, 42vw);
  filter: drop-shadow(0 12px 18px rgba(43, 33, 27, .18));
  animation: float 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.hero__art::after {
  content: "";
  position: absolute;
  bottom: 4.2%;
  width: min(150px, 32vw);
  height: 14px;
  border-radius: 50%;
  background: rgba(43, 33, 27, .13);
  filter: blur(3px);
  z-index: -1;
}
.hero__sticker {
  position: absolute;
  width: clamp(58px, 9vw, 92px);
  filter: drop-shadow(0 6px 8px rgba(43, 33, 27, .12));
}
.hero__sticker--a { top: 4%; right: 2%; animation: drift 7s ease-in-out infinite; }
.hero__sticker--b { bottom: 16%; left: 0%; animation: drift 9s ease-in-out infinite reverse; }
.hero__tape { top: -10px; left: 24%; transform: rotate(-8deg); }
.hero__sign {
  position: absolute;
  right: 0;
  bottom: 6%;
  writing-mode: vertical-rl;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 900;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 999px;
  padding: 12px 5px;
  background: rgba(255, 251, 245, .85);
  transform: rotate(4deg);
}

/* ---------- 滚动条 ---------- */
.ticker {
  overflow: hidden;
  border-top: 2.5px solid var(--line);
  border-bottom: 2.5px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 0;
  transform: rotate(-.5deg) scale(1.02);
  margin: 6px 0 0;
}
.ticker__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ticker__track i { color: var(--yellow); font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- 三件事 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding-top: clamp(34px, 6vw, 64px);
}
.fact {
  position: relative;
  border: 2.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.fact:nth-child(2) { transform: rotate(.6deg); }
.fact:nth-child(3) { transform: rotate(-.5deg); }
.fact__n {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--red);
}
.fact h3 { font-size: clamp(16px, 2vw, 19px); margin: 8px 0 8px; }
.fact p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 预览 ---------- */
.preview { padding-top: clamp(46px, 8vw, 90px); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-head h2 { font-size: clamp(24px, 4.4vw, 38px); margin-top: 6px; }
.sec-head__more {
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
}
.sec-head__more:hover { color: var(--red); border-color: var(--red); }

.preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.pv {
  border: 2.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  display: flex;
  flex-direction: column;
}
.pv:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 8px 10px 0 rgba(43, 33, 27, .14); }
.pv__art {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(90% 70% at 50% 110%, var(--wash), transparent 70%),
    linear-gradient(180deg, #FFFDF8, var(--wash));
  border-bottom: 2.5px solid var(--line);
  overflow: hidden;
}
.pv__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(43, 33, 27, .09) 1px, transparent 1.2px);
  background-size: 16px 16px;
  opacity: .5;
}
.pv__art img {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  filter: drop-shadow(0 8px 10px rgba(43, 33, 27, .14));
  transition: transform .3s var(--bounce);
  z-index: 2;
}
.pv:hover .pv__art img { transform: translate(-50%, -54%) rotate(calc(var(--rot, 0deg) * .5)) scale(1.04); }
.pv__no {
  position: absolute;
  top: 10px; left: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.pv__tag {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--line);
}
.pv__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pv__body h3 { font-size: 17px; }
.pv__body p { font-size: 12.5px; color: var(--ink-2); flex: 1; }
.pv__go { font-size: 12px; font-weight: 900; color: var(--red); margin-top: 4px; }

/* ---------- 一句话 ---------- */
.quiet { padding-top: clamp(50px, 9vw, 96px); }
.quiet__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  border: 2.5px dashed var(--line);
  border-radius: var(--r-xl);
  background: var(--paper-2);
  padding: clamp(20px, 4vw, 34px);
}
.quiet__box img { width: clamp(64px, 10vw, 96px); height: auto; flex: 0 0 auto; }
.quiet__box p { font-size: clamp(15px, 2.2vw, 19px); font-weight: 800; line-height: 1.75; }
.quiet__box span {
  position: absolute;
  right: clamp(16px, 3vw, 28px);
  bottom: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 800;
}

.linklike {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1.5px solid rgba(43, 33, 27, .25);
}

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* 夜间（开灯按钮） */
body[data-night="1"] {
  --paper: #221A15;
  --paper-2: #2B211B;
  --paper-3: #332821;
  --paper-4: #3E322A;
  --ink: #F6EBDD;
  --ink-2: #D8C8B8;
  --ink-3: #A9998A;
  --line: #F6EBDD;
  --red-soft: #4A1C18;
  --shadow: 4px 5px 0 rgba(0, 0, 0, .35);
  --shadow-sm: 2px 3px 0 rgba(0, 0, 0, .35);
}
body[data-night="1"] .ticker { background: var(--paper-3); color: var(--ink); }
body[data-night="1"] .fact,
body[data-night="1"] .pv { background: var(--paper-2); }
body[data-night="1"] .pv__art { background: linear-gradient(180deg, #2B211B, var(--wash)); }
body[data-night="1"] .hero__tuan { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
body[data-night="1"] .door { background: linear-gradient(180deg, #3A2C24, #2B211B); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 300px; }
  .hero__sign { right: 4%; }
  .facts { grid-template-columns: 1fr; }
  .preview__grid { grid-template-columns: repeat(2, 1fr); }
  .quiet__box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(46px, 16vw, 64px); }
  .preview__grid { grid-template-columns: 1fr; }
  .hero__facts { gap: 14px; }
  .preview .pv:nth-child(n + 4) { display: none; }
  .topbar__nav .btn { display: none; }
  .br-wide { display: none; }
}
