/* 情绪垃圾分类站 · Emotional Waste Station
   Aesthetic: municipal waste station × warm paper bureaucracy × soft absurdism
*/

:root {
  --bg: #1a1f18;
  --bg-elevated: #232a20;
  --bg-panel: #2a3226;
  --paper: #f3efe4;
  --paper-dim: #e8e2d4;
  --ink: #1a1f18;
  --ink-soft: #3d4538;
  --muted: #8a9280;
  --line: rgba(243, 239, 228, 0.12);
  --line-strong: rgba(243, 239, 228, 0.22);

  --green: #5fad6b;
  --green-deep: #2d6b38;
  --green-glow: rgba(95, 173, 107, 0.35);
  --red: #e07a5f;
  --red-deep: #8b3a2a;
  --red-glow: rgba(224, 122, 95, 0.35);
  --blue: #6ba3c7;
  --blue-deep: #2a5570;
  --blue-glow: rgba(107, 163, 199, 0.35);
  --gray: #9aa091;
  --gray-deep: #4a4f45;
  --gray-glow: rgba(154, 160, 145, 0.3);

  --accent: #d4a574;
  --accent-soft: rgba(212, 165, 116, 0.2);

  --font-display: "Syne", "Noto Serif SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ambient */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.paper-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(95, 173, 107, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(224, 122, 95, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(107, 163, 199, 0.08), transparent 50%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(26, 31, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--paper);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.btn-primary:not(:disabled):hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(243, 239, 228, 0.15);
}

.btn-ghost {
  color: var(--paper);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(243, 239, 228, 0.04);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 0.9rem;
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--accent);
}

.meta-dot {
  opacity: 0.5;
}

.hero-title {
  margin: 0 0 1.25rem;
}

.title-en {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.title-zh {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-dim) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36em;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: rgba(243, 239, 228, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(42, 50, 38, 0.5);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.4;
}

.stat-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.85;
}

.ticker {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ticker-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.ticker p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(243, 239, 228, 0.9);
  transition: opacity 0.28s;
}

.ticker p.fade {
  opacity: 0;
}

/* sections */
.section {
  position: relative;
  z-index: 1;
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: 0.03em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32em;
}

/* bin legend */
.bin-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.legend-item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(35, 42, 32, 0.6);
}

.legend-swatch {
  flex-shrink: 0;
  width: 12px;
  border-radius: 99px;
  margin-top: 0.25rem;
  min-height: 48px;
}

.legend-green .legend-swatch { background: var(--green); box-shadow: 0 0 16px var(--green-glow); }
.legend-red .legend-swatch { background: var(--red); box-shadow: 0 0 16px var(--red-glow); }
.legend-blue .legend-swatch { background: var(--blue); box-shadow: 0 0 16px var(--blue-glow); }
.legend-gray .legend-swatch { background: var(--gray); box-shadow: 0 0 16px var(--gray-glow); }

.legend-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.legend-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* station panel */
.station-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, rgba(42, 50, 38, 0.9), rgba(26, 31, 24, 0.95));
  box-shadow: var(--shadow);
  transition: opacity 0.3s;
}

.station-panel.is-dimmed {
  opacity: 0.45;
  pointer-events: none;
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.5rem 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.panel-label:first-child {
  margin-top: 0;
}

.panel-label span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.7rem;
}

.emotion-input {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(26, 31, 24, 0.7);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.emotion-input::placeholder {
  color: rgba(138, 146, 128, 0.75);
}

.emotion-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-hint {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* bin cards */
.bin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.bin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s;
}

.bin-card:hover {
  transform: translateY(-3px);
}

.bin-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bin-lid {
  height: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: height 0.25s var(--ease);
}

.bin-green .bin-lid { background: var(--green); }
.bin-red .bin-lid { background: var(--red); }
.bin-blue .bin-lid { background: var(--blue); }
.bin-gray .bin-lid { background: var(--gray); }

.bin-card.is-selected {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--paper);
}

.bin-green.is-selected { box-shadow: 0 0 0 2px var(--green), 0 12px 32px var(--green-glow); }
.bin-red.is-selected { box-shadow: 0 0 0 2px var(--red), 0 12px 32px var(--red-glow); }
.bin-blue.is-selected { box-shadow: 0 0 0 2px var(--blue), 0 12px 32px var(--blue-glow); }
.bin-gray.is-selected { box-shadow: 0 0 0 2px var(--gray), 0 12px 32px var(--gray-glow); }

.bin-body {
  padding: 1rem 1rem 0.75rem;
  flex: 1;
}

.bin-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.bin-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.45rem;
  line-height: 1;
}

.bin-name {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bin-en {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bin-tag {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(243, 239, 228, 0.65);
}

.bin-foot {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.bin-select-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bin-card.is-selected .bin-select-hint {
  color: var(--paper);
}

.bin-green.is-selected .bin-select-hint { color: var(--green); }
.bin-red.is-selected .bin-select-hint { color: var(--red); }
.bin-blue.is-selected .bin-select-hint { color: var(--blue); }
.bin-gray.is-selected .bin-select-hint { color: var(--gray); }

/* bin detail */
.bin-detail {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  animation: fadeSlide 0.35s var(--ease);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.detail-icon {
  font-size: 1.8rem;
}

.detail-head h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
}

.detail-desc {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: rgba(243, 239, 228, 0.8);
}

.detail-accept {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-accept li {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.bin-detail-green { border-color: rgba(95, 173, 107, 0.35); }
.bin-detail-red { border-color: rgba(224, 122, 95, 0.35); }
.bin-detail-blue { border-color: rgba(107, 163, 199, 0.35); }
.bin-detail-gray { border-color: rgba(154, 160, 145, 0.35); }

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.submit-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 20em;
}

/* process stage */
.process-stage {
  margin-top: 2rem;
}

.process-machine {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  text-align: center;
  box-shadow: var(--shadow);
}

.machine-lights {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.machine-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}

.machine-lights i:nth-child(2) { animation-delay: 0.2s; }
.machine-lights i:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.process-green .machine-lights i { background: var(--green); }
.process-red .machine-lights i { background: var(--red); }
.process-blue .machine-lights i { background: var(--blue); }
.process-gray .machine-lights i { background: var(--gray); }

.process-bin-label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.process-bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  max-width: 90%;
  min-height: 70px;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px 8px 20px 20px;
  background: rgba(243, 239, 228, 0.08);
  border: 1px dashed var(--line-strong);
  transition: transform 0.5s var(--ease), opacity 0.5s;
}

.process-bag.is-dropping {
  transform: translateY(12px) scale(0.95);
  opacity: 0.7;
}

.process-bag.is-processing {
  transform: translateY(24px) scale(0.7);
  opacity: 0.2;
}

.bag-text {
  font-size: 0.85rem;
  color: rgba(243, 239, 228, 0.75);
  word-break: break-all;
}

.process-step {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.process-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(243, 239, 228, 0.1);
  overflow: hidden;
}

.process-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}

.process-green .process-bar span { background: var(--green); }
.process-red .process-bar span { background: var(--red); }
.process-blue .process-bar span { background: var(--blue); }
.process-gray .process-bar span { background: var(--gray); }

/* receipt */
.receipt-wrap {
  margin-top: 2.5rem;
  animation: fadeSlide 0.5s var(--ease);
}

.receipt-paper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px 4px 12px 12px;
  box-shadow:
    0 4px 0 var(--paper-dim),
    0 24px 48px rgba(0, 0, 0, 0.4);
}

.receipt-perforation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 8px 0, transparent 5px, var(--bg) 5.5px) 0 0 / 16px 12px repeat-x;
  transform: translateY(-6px);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(26, 31, 24, 0.2);
}

.receipt-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.receipt-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.receipt-stamp {
  position: absolute;
  top: 2.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  opacity: 0.15;
  transform: rotate(12deg);
  pointer-events: none;
}

.receipt-code {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: 1px dotted rgba(26, 31, 24, 0.12);
}

.receipt-row span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.receipt-row strong {
  font-weight: 500;
  text-align: right;
}

.receipt-emotion {
  margin: 1rem 0;
  padding: 0.85rem;
  background: rgba(26, 31, 24, 0.05);
  border-radius: 6px;
}

.receipt-emotion .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.receipt-emotion p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.receipt-title {
  margin: 1.15rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.receipt-body {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.receipt-tip {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ink);
  background: rgba(26, 31, 24, 0.04);
  margin-bottom: 1.25rem;
}

.receipt-green .receipt-tip { border-color: var(--green-deep); }
.receipt-red .receipt-tip { border-color: var(--red-deep); }
.receipt-blue .receipt-tip { border-color: var(--blue-deep); }
.receipt-gray .receipt-tip { border-color: var(--gray-deep); }

.tip-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
}

.receipt-tip p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.receipt-foot {
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(26, 31, 24, 0.2);
  margin-bottom: 1.25rem;
}

.receipt-foot p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.receipt-thanks {
  margin-top: 0.4rem !important;
  font-family: var(--font-serif) !important;
  font-size: 0.85rem !important;
  color: var(--ink) !important;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.receipt .btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.receipt .btn-primary:hover {
  background: #2a3226;
  box-shadow: none;
}

.receipt .btn-ghost {
  color: var(--ink);
  border-color: rgba(26, 31, 24, 0.25);
}

.receipt .btn-ghost:hover {
  background: rgba(26, 31, 24, 0.06);
  border-color: var(--ink);
}

/* guide */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.guide-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(35, 42, 32, 0.45);
}

.guide-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.guide-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.guide-card p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: rgba(243, 239, 228, 0.75);
  line-height: 1.65;
}

.guide-ex {
  margin: 0 !important;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  letter-spacing: 0.02em;
}

/* history */
.history-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(35, 42, 32, 0.4);
  border-left-width: 3px;
}

.bin-border-green { border-left-color: var(--green); }
.bin-border-red { border-left-color: var(--red); }
.bin-border-blue { border-left-color: var(--blue); }
.bin-border-gray { border-left-color: var(--gray); }

.h-icon {
  font-size: 1.2rem;
  line-height: 1.4;
}

.h-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.h-body strong {
  font-weight: 500;
  font-size: 0.92rem;
}

.h-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* manifesto */
.manifesto {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 1rem auto 3rem;
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.manifesto blockquote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(243, 239, 228, 0.9);
}

.manifesto-sign {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-inner p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-note {
  text-align: right;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* responsive */
@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .bin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bin-legend,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(26, 31, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .footer-note {
    text-align: left;
  }

  .title-zh {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

@media (max-width: 480px) {
  .bin-grid {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 1.25rem;
  }

  .receipt-paper {
    padding: 1.5rem 1.15rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bin-card,
  .process-bag,
  .btn {
    transition: none;
  }
  .machine-lights i {
    animation: none;
    opacity: 1;
  }
}
