/* ── Hollow · module styles: shredder, drift, capsule ─────────────── */

/* ═══ shared composer ═════════════════════════════════════════════ */

.mod-sec { padding-bottom: 40px; }

.switch {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 100px;
  background: transparent; cursor: pointer; color: var(--text-2); font-size: 13.5px;
  transition: all .2s var(--ease);
}
.switch:hover { border-color: var(--line-2); color: var(--text); }
.switch .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transition: background .2s, box-shadow .2s; }
.switch.on .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.switch.on { color: var(--text); border-color: var(--line-2); }

.hint { font-size: 13px; color: var(--text-3); margin-top: 18px; line-height: 1.65; }

/* 投放策略选择（即焚 / 保存 / 可选） */
.mode-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px;
}
.mode-bar .mopt {
  height: 40px; padding: 0 18px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 13.5px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s var(--ease);
}
.mode-bar .mopt:hover { border-color: var(--line-2); color: var(--text); }
.mode-bar .mopt.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.mode-bar .mopt .ic { font-size: 15px; }
.mode-bar .mopt .sub { font-size: 11px; color: var(--text-3); opacity: .85; }
.mode-bar .mopt.on .sub { color: var(--accent); }

.attach {
  margin-top: 30px; padding: 26px 28px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap;
}
.attach p { font-size: 14.5px; color: var(--text-2); max-width: 460px; }

/* ── outcome overlay ─────────────────────────────────────────────── */

.outcome {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 30px;
  background: rgba(246, 248, 251, .94); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.outcome.on { opacity: 1; visibility: visible; }
.outcome-in { max-width: 560px; text-align: center; }
.outcome-t {
  font-family: var(--serif); font-size: clamp(40px, 7vw, 74px); line-height: 1.02;
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease-out) .1s, transform .8s var(--ease-out) .1s;
}
.outcome-p {
  font-size: 16.5px; color: var(--text-2); line-height: 1.7; margin-top: 22px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--ease-out) .32s, transform .8s var(--ease-out) .32s;
}
.outcome-b {
  margin-top: 34px; opacity: 0;
  transition: opacity .7s var(--ease-out) .6s;
}
.outcome.on .outcome-t, .outcome.on .outcome-p, .outcome.on .outcome-b { opacity: 1; transform: none; }
.outcome-rule {
  width: 0; height: 1px; background: var(--line-2); margin: 30px auto 0;
  transition: width 1s var(--ease-out) .5s;
}
.outcome.on .outcome-rule { width: 120px; }
.outcome-stat { font-size: 12.5px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 22px; }

/* ═══ 1 · the shredder ════════════════════════════════════════════ */

.machine { max-width: 780px; margin: 0 auto; position: relative; }

.feed { position: relative; }
.feed.eating { animation: feedShake .3s var(--ease); }
@keyframes feedShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); } 75% { transform: translateX(2px); }
}

.sheet {
  position: relative; z-index: 2;
  min-height: 208px;
  padding: 30px 32px;
  border-radius: 4px;
  background: #f3f0e9;
  color: #1c1a17;
  font-family: var(--serif);
  font-size: 21px; line-height: 1.62;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .08) inset;
  outline: none;
  word-break: break-word;
  white-space: pre-wrap;
  transition: visibility .1s linear;
  caret-color: var(--accent);
}
.sheet:empty::before {
  content: attr(data-ph);
  color: #a5a096;
  pointer-events: none;
}
.sheet::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 4px;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(28, 26, 23, .045) 33px 34px);
  background-position: 0 30px;
}
.sheet.gone { visibility: hidden; }

.strips { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; }
.strip { position: absolute; left: 0; overflow: hidden; will-change: transform, opacity; }
.strip-in {
  position: absolute; left: 0;
  background: #f3f0e9; color: #1c1a17;
  font-family: var(--serif); font-size: 21px; line-height: 1.62;
  padding: 30px 32px;
  white-space: pre-wrap; word-break: break-word;
  box-sizing: border-box;
}

.slot {
  position: relative; z-index: 5;
  height: 40px; margin: 18px auto 0;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #23262f, #14161d 55%, #0d0f15);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .07) inset;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.machine.active .slot {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 1px var(--accent) inset, 0 0 42px var(--accent-soft);
}
.slot-mouth {
  width: calc(100% - 52px); height: 7px; border-radius: 100px;
  background: #05060a;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .9) inset, 0 1px 0 rgba(255, 255, 255, .1);
}
.teeth {
  position: absolute; inset: 22px 20px auto 20px; height: 12px;
  display: flex; gap: 3px; overflow: hidden;
}
.teeth i {
  flex: 1 1 0; height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04));
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.tray {
  position: relative; z-index: 1; height: 162px;
  border: 1px solid rgba(255, 255, 255, .07); border-top: 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #0c0e14, #070809);
  overflow: hidden;
}
.tray::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, .055), transparent 72%);
}

.bin {
  max-width: 780px; margin: 26px auto 0; padding: 14px 18px;  border-radius: var(--r-md); border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12.5px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase;
}

/* ═══ 2 · drift ═══════════════════════════════════════════════════ */

.sky-sec {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #04060e 0%, #070b1a 42%, #060911 72%, #04060c 100%);
  margin-top: -64px; padding-top: 64px;
  color: #e9ebf2;
}
/* 深色星空内的文字覆盖（页面整体是浅色主题） */
.sky-sec .kicker { color: #b0bcff; }
.sky-sec .h1, .sky-sec .h2 { color: #f2f4fb; }
.sky-sec .lede { color: #a7b0c8; }
.sky-sec .dim { color: #6b7490; }
.sky-sec .write { color: #e9ebf2; }
.sky-sec .write::placeholder { color: rgba(190, 200, 225, .45); }
.sky-sec .sos-note { border-color: rgba(255, 122, 102, .35); background: rgba(255, 122, 102, .1); color: #f0c4ba; }
.sky-sec .sos-note a { color: #ffb39c; }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.sky-inner { position: relative; z-index: 3; }

.drift-stage { position: relative; max-width: 680px; margin: 0 auto; }

.drift-composer {
  max-width: 680px; margin: 0 auto; position: relative; z-index: 4;  padding: 30px; border-radius: var(--r-xl);
  background: rgba(12, 16, 30, .62);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.drift-composer.sent { opacity: 0; transform: translateY(-16px) scale(.98); pointer-events: none; }

.write {
  width: 100%; min-height: 196px; resize: none;
  background: transparent; border: 0; outline: none;
  font-family: var(--serif); font-size: 19px; line-height: 1.7;
  color: var(--text); padding: 4px 0;
}
.write::placeholder { color: rgba(155, 161, 180, .45); }

.sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(110, 139, 255, 0) 0%, rgba(70, 100, 220, .14) 55%, rgba(30, 45, 110, .3) 100%);
}
.sea::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 180, 255, .45), transparent);
}

/* bottle */
.bottle {
  position: absolute; left: 50%; top: 66px; z-index: 4;
  width: 62px; margin-left: -31px;
  opacity: 0; pointer-events: none;
  transform-origin: 50% 100%;
}
.bottle.on { opacity: 1; }
.bottle-neck {
  width: 18px; height: 26px; margin: 0 auto; border-radius: 6px 6px 0 0;
  background: linear-gradient(100deg, rgba(190, 215, 255, .3), rgba(190, 215, 255, .08));
  border: 1px solid rgba(190, 215, 255, .4); border-bottom: 0;
}
.bottle-cork {
  width: 22px; height: 12px; margin: 0 auto -3px; border-radius: 4px;
  background: linear-gradient(100deg, #b98b5a, #7d5a34);
}
.bottle-body {
  width: 62px; height: 108px; border-radius: 12px 12px 20px 20px;
  background: linear-gradient(100deg, rgba(190, 215, 255, .26), rgba(120, 160, 240, .07));
  border: 1px solid rgba(190, 215, 255, .38);
  box-shadow: inset 0 0 22px rgba(150, 190, 255, .18), 0 0 34px rgba(110, 139, 255, .22);
  position: relative; overflow: hidden;
}
.bottle-note {
  position: absolute; left: 8px; right: 8px; top: 26px;
  font-family: var(--serif); font-size: 9px; line-height: 1.1; color: rgba(230, 240, 255, .72);
  overflow: hidden; max-height: 62px; text-align: center;
}

/* star wall */
.wall-sec { position: relative; z-index: 4; padding: 100px 0 110px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 34px; }
.wall-card {
  padding: 22px; border-radius: var(--r-md);
  background: rgba(12, 16, 30, .6); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
  cursor: pointer; position: relative;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.wall-card:hover { transform: translateY(-4px); border-color: rgba(110, 139, 255, .45); background: rgba(16, 22, 42, .8); }
.wall-card::before {
  content: ''; position: absolute; top: 14px; right: 14px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #b3c6ff; box-shadow: 0 0 10px 2px rgba(179, 198, 255, .7);
}
.wall-card .txt {
  font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.wall-card .meta { margin-top: 14px; font-size: 11.5px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.wall-card.open .txt { -webkit-line-clamp: unset; }

/* ═══ 3 · capsule ═════════════════════════════════════════════════ */

.cap-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 44px; align-items: start; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: 1fr; gap: 36px; } }

.stationery {
  position: relative; border-radius: var(--r-lg);
  background: #f3f0e9; color: #1c1a17;
  padding: 34px 34px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  transform-origin: 50% 100%;
}
.stationery .dear { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }
.cap-write {
  font-family: var(--serif); font-size: 19px; line-height: 1.78; color: #1c1a17;
  min-height: 190px; outline: none; caret-color: var(--accent); word-break: break-word; white-space: pre-wrap;
}
.cap-write:empty::before { content: attr(data-ph); color: #a5a096; }
.stationery .sign { margin-top: 20px; font-family: var(--serif); font-size: 15px; color: #7c776d; text-align: right; }

.env-stage {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 30px;
  background: rgba(5, 6, 10, .82); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.env-stage.on { opacity: 1; visibility: visible; }
.persp { perspective: 1400px; }
.env {
  position: relative; width: 340px; height: 224px;
  transform-style: preserve-3d;
  transform: rotateX(6deg);
}
.env-back, .env-front {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(160deg, #efe9dd, #ded5c5);
}
.env-back { box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.env-front {
  z-index: 4; clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(160deg, #e7dfd1, #d3c8b6);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.env-flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 46%;
  z-index: 5; transform-origin: top center;
  transform: rotateX(-176deg);
  background: linear-gradient(180deg, #f2ece0, #e2d9c9);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 1.05s cubic-bezier(.6, 0, .35, 1);
  backface-visibility: hidden;
}
.env.closing .env-flap { transform: rotateX(0deg); }
.env-slip {
  position: absolute; left: 24px; right: 24px; top: 30px; z-index: 2;
  padding: 16px 18px; border-radius: 3px;
  background: #fbf8f1; color: #2a2723;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  max-height: 120px; overflow: hidden;
  transition: transform .85s cubic-bezier(.6, 0, .35, 1), opacity .5s;
}
.env.closing .env-slip { transform: translateY(52px) scale(.94); opacity: .25; }
.env-seal {
  position: absolute; left: 50%; top: 44%; z-index: 6;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #c9503c, #8e2f22 70%);
  color: #ffe7df; font-family: var(--serif); font-size: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4), inset 0 -2px 8px rgba(0, 0, 0, .35);
  transform: scale(0) rotate(-40deg); opacity: 0;
  transition: transform .5s cubic-bezier(.34, 1.7, .5, 1), opacity .3s;
}
.env.sealed .env-seal { transform: scale(1) rotate(0); opacity: 1; }
.env.shut { animation: envAway 1s var(--ease-out) forwards; }
@keyframes envAway {
  0% { transform: rotateX(6deg) scale(1); opacity: 1; }
  45% { transform: rotateX(6deg) scale(1.03); opacity: 1; }
  100% { transform: rotateX(6deg) scale(.7) translateY(-90px); opacity: 0; }
}

.panel {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm); padding: 26px;
}
.panel + .panel { margin-top: 18px; }
.panel-lbl { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 14px; }

.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); cursor: pointer; transition: all .2s var(--ease); }
.opt + .opt { margin-top: 10px; }
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt input { display: none; }
.opt-mark { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .2s; }
.opt.on .opt-mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.opt b { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 3px; }
.opt span { font-size: 13px; color: var(--text-2); line-height: 1.55; }

.cap-list { display: grid; gap: 12px; margin-top: 22px; }
.cap-item {
  display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2);
}
.cap-item .t { font-size: 14.5px; color: var(--text); max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-item .d { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.cap-when { font-size: 13px; color: var(--accent-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cap-when b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 26px; }
.gal-card {
  padding: 24px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gal-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gal-card .txt { font-family: var(--serif); font-size: 16px; line-height: 1.62; }
.gal-card .meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 640px) {
  .sheet { padding: 22px 20px; font-size: 18px; min-height: 170px; }
  .strip-in { padding: 22px 20px; font-size: 18px; }
  .stationery { padding: 24px 22px; }
  .env { width: 280px; height: 190px; }
}
