:root {
  --rail: 72px;
  --peach: #ff6b8a;
  --ink: #3b2430;
  --paper: #fff6f0;
  --cream: #ffe8d6;
  --mint: #7fd1c2;
  --lemon: #ffe36b;
  --grape: #c9b6ff;
  --tape: rgba(255, 236, 170, 0.72);
  --nav-shadow: 2px 2px 0 #3b2430;
  --sticker: 3px 5px 0 rgba(255, 107, 138, 0.35);
  --glass: inset 0 0 0 4px #fff, 0 14px 30px rgba(59, 36, 48, 0.18);
  --note: 0 1px 0 #fff8, 6px 10px 0 rgba(59, 36, 48, 0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  padding-left: var(--rail);
  background:
    radial-gradient(circle at 12% 18%, #ffd6e0 0 18%, transparent 19%),
    radial-gradient(circle at 88% 8%, #d9fff4 0 14%, transparent 15%),
    var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.qq-k {
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--peach);
}
h1, h2 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h1 em { display: block; font-style: normal; font-size: 0.48em; font-weight: 600; margin-top: 8px; color: #7a5562; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 10px; }
.lede, .hint { color: #7a5562; line-height: 1.8; max-width: 42em; }
.qq-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qq-btns a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--nav-shadow);
}
.qq-btns .a { background: var(--peach); color: #fff; }
.qq-btns .b { background: var(--lemon); }
.qq-btns .c { background: #fff; border: 2px solid var(--ink); }
.qq-btns .a:hover { transform: translate(-1px, -1px); }
.qq-btns .b:hover { transform: rotate(-2deg); }

.qq-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  background: #3b2430;
  color: #fff;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 0 16px;
}
.qq-mark {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  animation: qq-bob 3.2s ease-in-out infinite;
}
.qq-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.qq-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  min-height: 0;
}
.qq-rail-nav a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.22em;
  font-size: 13px;
  line-height: 1;
  padding: 4px 0;
  opacity: 0.88;
  white-space: nowrap;
}
.qq-rail-nav a:hover { color: var(--lemon); opacity: 1; }
.qq-dl {
  flex: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  background: var(--lemon);
  color: var(--ink);
  padding: 12px 6px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  box-shadow: var(--nav-shadow);
  white-space: nowrap;
}
.qq-dl:hover { filter: brightness(1.06); }

.qq-tape {
  overflow: hidden;
  background: var(--peach);
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-bottom: 3px solid var(--ink);
}
.qq-tape b { display: inline-block; padding: 8px 0; animation: qq-run 18s linear infinite; }

.qq-page { width: min(1160px, 100%); margin: 0 auto; padding: 28px 20px 80px; }

.qq-sheet {
  background: #fff; border: 3px solid var(--ink); border-radius: 28px 8px 28px 8px;
  padding: 36px 32px; box-shadow: 10px 12px 0 var(--grape);
  animation: qq-in 0.7s ease both;
}

.qq-vend { margin-top: 48px; }
.qq-machine {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 168px 168px;
  gap: 10px;
  background: #2a1a22;
  padding: 12px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 6px #ffd6e0, 0 18px 0 #7fd1c2;
}
.qq-cell {
  margin: 0; position: relative; overflow: hidden; border-radius: 8px;
  box-shadow: var(--glass); background: #111;
}
.qq-cell.big { grid-row: 1 / span 2; }
.qq-cell img { width: 100%; height: 100%; object-fit: cover; }
.qq-cell figcaption {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(255,255,255,.92); padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.qq-cell:hover { box-shadow: inset 0 0 0 4px var(--lemon), 0 16px 32px rgba(59,36,48,.22); }

.qq-desk { margin-top: 56px; }
.qq-blot {
  position: relative;
  min-height: 560px;
  background:
    repeating-linear-gradient(#fff 0 28px, #f3d7c8 28px 29px);
  border: 3px dashed #e39;
  border-radius: 4px 24px 4px 24px;
  padding: 28px;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.4);
}
.qq-desk-copy { max-width: 280px; }
.qq-polar {
  position: absolute; right: 8%; top: 40px; width: 188px;
  background: #fff; padding: 10px 10px 28px; transform: rotate(7deg);
  box-shadow: var(--note);
}
.qq-polar img { width: 100%; height: 188px; object-fit: cover; }
.qq-tape-bit {
  position: absolute; top: -10px; left: 50%; width: 70px; height: 22px;
  margin-left: -35px; background: var(--tape); transform: rotate(-4deg);
}
.qq-stk {
  position: absolute; width: 210px; padding: 16px;
  box-shadow: var(--sticker); border: 2px solid rgba(59,36,48,.12);
}
.qq-stk h3 { font-size: 16px; margin-bottom: 6px; }
.qq-stk p { font-size: 13px; line-height: 1.6; color: #5c3d48; }
.qq-stk.s1 { left: 34%; top: 36px; background: #fff; transform: rotate(-4deg); }
.qq-stk.s2 { right: 28%; top: 210px; background: var(--lemon); transform: rotate(5deg); animation: qq-bob 4s ease-in-out infinite; }
.qq-stk.s3 { left: 8%; bottom: 48px; background: var(--mint); transform: rotate(3deg); }
.qq-stk.s4 { right: 12%; bottom: 36px; background: var(--grape); transform: rotate(-6deg); }
.qq-stk:hover { z-index: 2; transform: rotate(0deg); }

.qq-pass { margin-top: 56px; }
.qq-chain { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; margin-top: 18px; }
.qq-note {
  width: 240px; background: #fff8c8; padding: 14px 16px;
  box-shadow: var(--note); transform: rotate(-2deg);
}
.qq-note:nth-child(even) { background: #ffe0ea; transform: rotate(2.5deg); margin-top: 28px; }
.qq-note.ask { background: #e8fff8; }
.qq-note time, .qq-note b { display: block; font-size: 12px; margin-bottom: 8px; color: var(--peach); }
.qq-note p { font-size: 14px; line-height: 1.7; }
.qq-note:hover { transform: rotate(0) translateY(-4px); }

.qq-slip-wrap { margin-top: 64px; display: grid; place-items: center; }
.qq-slip {
  width: min(420px, 100%); background: #fff; padding: 28px 24px 18px;
  box-shadow: 0 1px 0 #fff inset, 0 18px 0 #ff6b8a;
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, #f3f3f3 8px 9px);
}
.qq-slip h2 { text-align: center; }
.qq-slip .meta { text-align: center; color: #888; font-size: 12px; margin-bottom: 14px; }
.qq-row {
  display: flex; justify-content: space-between; border-bottom: 1px dashed #ccc;
  padding: 8px 0; font-size: 14px;
}
.qq-row:hover { background: #fff3f6; }
.qq-barcode {
  margin: 18px auto 0; height: 42px; width: 86%;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 5px, #111 5px 7px, transparent 7px 9px);
}
.qq-foot {
  text-align: center; padding: 24px; color: #7a5562; font-size: 13px;
}
.qq-foot a:hover { color: var(--peach); }

@keyframes qq-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes qq-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes qq-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; }
}
@media (max-width: 900px) {
  body { padding-left: 0; }
  .qq-rail {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 56px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
  }
  .qq-mark { animation: none; width: 40px; height: 40px; }
  .qq-rail-nav {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 14px;
  }
  .qq-rail-nav a,
  .qq-dl {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
    padding: 0;
  }
  .qq-dl { padding: 8px 12px; }
  .qq-machine { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; }
  .qq-cell.big { grid-column: 1 / -1; grid-row: auto; height: 220px; }
  .qq-blot { min-height: 0; display: grid; gap: 14px; }
  .qq-polar, .qq-stk { position: static; transform: none; width: auto; }
  .qq-stk.s2 { animation: none; }
  .qq-note { width: calc(50% - 10px); }
  .qq-note:nth-child(even) { margin-top: 0; }
}
@media (max-width: 560px) {
  .qq-note { width: 100%; }
  .qq-sheet { padding: 24px 18px; }
}
