:root {
  --cream: #fff6e4;
  --paper: #fffdf7;
  --ink: #1f1a3d;
  --muted: #746f87;
  --orange: #ff7a1a;
  --yellow: #ffd23f;
  --mint: #3ddc97;
  --pink: #ff6fa5;
  --blue: #4d9dff;
  --purple: #8b6bff;
  --red: #e5484d;
  --fun: "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --soft-shadow: 3px 3px 0 var(--ink);
  --radius: 22px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(31, 26, 61, .09) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 8px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--yellow);
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0;
  background: rgba(255, 246, 228, .93);
  border-bottom: 3px solid transparent;
  backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s;
}

.site-header.stuck {
  border-color: var(--ink);
  box-shadow: 0 4px 0 rgba(31, 26, 61, .08);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 14px;
  background: var(--orange);
  box-shadow: var(--soft-shadow);
  font-size: 23px;
  transform: rotate(-4deg);
  animation: wobble 3s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
  font-family: var(--fun);
  font-weight: 400;
}

.brand-copy b {
  font-size: 24px;
  letter-spacing: 1px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.main-nav a {
  padding: 7px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 11px 5px 6px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  font-weight: 900;
}

.account-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.account-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav {
  display: none;
}

#app {
  min-height: 70vh;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page {
  padding: 34px 0 70px;
  animation: page-in .32s ease both;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1,
.page-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
}

.page-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 4px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: 34px;
  min-height: 480px;
  padding: 42px;
  overflow: hidden;
  border: var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -110px;
  width: 360px;
  height: 360px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  opacity: .8;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -2px;
  font-family: var(--fun);
  font-weight: 400;
}

.hero h1 .accent {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  paint-order: stroke fill;
}

.hero-line {
  display: inline-block;
  color: var(--ink);
  white-space: nowrap;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  animation: char-drop .7s var(--bounce) forwards;
}

.hero-lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 310px;
  display: grid;
  place-items: center;
}

.hero-bag {
  width: 220px;
  height: 245px;
  position: relative;
  display: grid;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 38px 38px 54px 54px;
  background: var(--orange);
  box-shadow: 10px 10px 0 var(--ink);
  font-size: 100px;
  transform: rotate(3deg);
  animation: float 3.2s ease-in-out infinite;
}

.hero-bag::before {
  content: "";
  position: absolute;
  top: -50px;
  width: 100px;
  height: 70px;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 55px 55px 0 0;
}

.mascot-button {
  position: relative;
  z-index: 3;
  width: 205px;
  border: 0;
  background: transparent;
  filter: drop-shadow(4px 7px 0 rgba(31, 26, 61, .2));
  animation: mascot-hop 1.8s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.mascot-button svg {
  width: 100%;
  overflow: visible;
}

.mascot-button .eye {
  animation: blink 4s infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.mascot-shadow {
  position: absolute;
  left: 50%;
  top: calc(50% + 92px);
  z-index: 1;
  width: 130px;
  height: 17px;
  margin-left: -65px;
  border-radius: 50%;
  background: rgba(31, 26, 61, .22);
  animation: mascot-shadow 1.8s ease-in-out infinite;
}

.hero-sticker {
  position: absolute;
  z-index: 4;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  font-size: 27px;
  animation: float-sticker 4s ease-in-out infinite;
}

.hero-sticker.food {
  left: 15%;
  top: 4%;
  background: var(--pink);
}

.hero-sticker.drink {
  right: 13%;
  top: 12%;
  background: var(--mint);
  animation-delay: -1.3s;
}

.hero-sticker.box {
  right: 7%;
  bottom: 15%;
  background: var(--blue);
  animation-delay: -2.4s;
}

.floating-note {
  position: absolute;
  padding: 9px 14px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  font-weight: 900;
}

.floating-note.one {
  left: 0;
  top: 14px;
  transform: rotate(-7deg);
}

.floating-note.two {
  right: 0;
  bottom: 12px;
  background: var(--mint);
  transform: rotate(6deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stat-card {
  padding: 13px 15px;
  border: var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.stat-card strong {
  display: block;
  font-size: 27px;
  line-height: 1.1;
  white-space: nowrap;
}

.stat-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0;
}

.quick-card {
  padding: 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quick-card .icon {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

.quick-card b {
  display: block;
  font-size: 17px;
}

.quick-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  padding: 22px;
  border: var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .93);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 24px;
}

.section-head p,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 20px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: var(--soft-shadow);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .16s var(--bounce), box-shadow .16s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-mint {
  background: var(--mint);
}

.btn-white {
  background: var(--paper);
}

.btn-danger {
  background: #ffe1e1;
  color: #a51d22;
}

.btn-sm {
  min-height: 35px;
  padding: 6px 13px;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn[disabled] {
  opacity: .58;
  pointer-events: none;
}

.text-link {
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.college-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.college-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  transition: transform .18s var(--bounce);
}

.college-card:hover {
  transform: translateY(-3px) rotate(-.5deg);
}

.college-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border: var(--line);
  border-radius: 50%;
  background: var(--college-color, var(--yellow));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 1px 1px 0 var(--ink);
}

.college-info {
  min-width: 0;
  flex: 1;
}

.college-info b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 10.5px;
  font-weight: 900;
}

.chip-hot {
  background: var(--yellow);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.segmented {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  overflow-x: auto;
}

.segmented button,
.segmented a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.segmented .active {
  background: var(--ink);
  color: var(--yellow);
}

.filter-select {
  min-height: 40px;
  padding: 7px 34px 7px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.order-card {
  position: relative;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s var(--bounce), box-shadow .18s;
  animation: order-in .48s var(--bounce) both;
  animation-delay: calc(var(--order-index, 0) * 45ms);
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 7px 8px 0 var(--ink);
}

.order-card.is-taken {
  background: #f4f0e6;
}

.order-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.type-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.type-food {
  background: var(--pink);
}

.type-pkg {
  background: var(--blue);
  color: #fff;
}

.status-open {
  background: var(--yellow);
}

.status-taken {
  background: var(--blue);
  color: #fff;
}

.status-picked_up {
  background: var(--purple);
  color: #fff;
}

.status-delivered {
  background: var(--pink);
}

.status-completed {
  background: var(--mint);
}

.status-cancelled {
  background: #ddd8ce;
}

.status-pending_payment {
  background: #fff0bb;
}

.status-disputed {
  background: #ffb4b4;
}

.order-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 900;
}

.route-line .arrow {
  color: var(--orange);
}

.order-note {
  min-height: 21px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.private-line {
  margin: -3px 0 10px;
  padding: 7px 9px;
  border: 2px dashed rgba(31, 26, 61, .45);
  border-radius: 10px;
  background: #fff8cf;
  font-size: 12px;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 2px dashed rgba(31, 26, 61, .22);
}

.price {
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px var(--ink);
}

.price small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  -webkit-text-stroke: 0;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.stamp {
  position: absolute;
  right: 16px;
  top: 45px;
  padding: 2px 10px;
  border: 3px solid var(--red);
  border-radius: 7px;
  background: rgba(255, 255, 255, .62);
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
  transform: rotate(-12deg);
  animation: stamp-in .42s var(--bounce) both;
}

.after-hero {
  margin-top: 26px;
}

.road {
  position: relative;
  height: 64px;
  overflow: hidden;
  border: var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--ink);
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 68px);
  animation: lane 1s linear infinite;
}

.rider {
  position: absolute;
  bottom: 11px;
  z-index: 2;
  font-size: 38px;
  animation: ride 12s linear infinite;
}

.rider.second {
  bottom: 7px;
  font-size: 30px;
  animation-duration: 18s;
  animation-delay: -8s;
}

.ticker {
  overflow: hidden;
  padding: 9px 0;
  border: var(--line);
  border-radius: 0 0 18px 18px;
  background: var(--orange);
  color: #fff;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  min-width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker-track > span {
  display: inline-block;
  padding-right: 34px;
  font-family: var(--fun);
  font-size: 16px;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.empty-state,
.error-panel,
.loading-panel {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .7);
  text-align: center;
}

.empty-state .emoji {
  font-size: 46px;
}

.empty-state h3,
.error-panel h2 {
  font-size: 21px;
}

.empty-state p,
.error-panel p {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
}

.loading-panel {
  border-style: solid;
  border-color: var(--ink);
  font-weight: 900;
}

.spinner {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 3px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skeleton {
  height: 190px;
  border: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eee8d9 25%, #fffdf7 50%, #eee8d9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  align-items: start;
  gap: 22px;
}

.form-card {
  padding: 24px;
  border: var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-section + .form-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px dashed rgba(31, 26, 61, .22);
}

.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.form-section-title h2 {
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  margin-bottom: 15px;
}

.form-grid .field {
  margin-bottom: 0;
}

.field > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
}

.field label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: var(--line);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  transition: box-shadow .16s, transform .16s;
}

textarea.input {
  min-height: 105px;
  resize: vertical;
}

.input:focus,
.filter-select:focus {
  box-shadow: 3px 3px 0 var(--orange);
  transform: translate(-1px, -1px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border: var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  background: var(--choice-color, var(--yellow));
  box-shadow: var(--soft-shadow);
  transform: rotate(-.5deg);
}

.choice .choice-icon {
  font-size: 27px;
}

.choice b {
  display: block;
  font-size: 15px;
}

.choice small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.quick-chips button,
.tip-chips button {
  padding: 5px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
}

.tip-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tip-chips button.active {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.form-error {
  min-height: 20px;
  margin: 10px 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.summary-card {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: var(--line);
  border-radius: 25px;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
}

.summary-card h2 {
  font-size: 21px;
}

.summary-price {
  margin: 17px 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.summary-list {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 12px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-list span {
  color: rgba(31, 26, 61, .7);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  align-items: stretch;
  gap: 24px;
  padding: 38px 0 80px;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 34px;
  overflow: hidden;
  border: var(--line);
  border-radius: 32px;
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
}

.auth-story h1 {
  max-width: 450px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.03;
}

.auth-story p {
  max-width: 440px;
  margin-top: 15px;
  color: rgba(31, 26, 61, .72);
}

.auth-mascot {
  align-self: center;
  font-size: 120px;
  filter: drop-shadow(7px 7px 0 rgba(31, 26, 61, .28));
  animation: float 3s ease-in-out infinite;
}

.auth-card {
  align-self: center;
  width: 100%;
  padding: 30px;
  border: var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.auth-tabs {
  display: flex;
  padding: 4px;
  margin-bottom: 20px;
  border: var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.auth-tabs button {
  flex: 1;
  min-height: 37px;
  border-radius: 999px;
  font-weight: 900;
}

.auth-tabs button.active {
  background: var(--ink);
  color: var(--yellow);
}

.auth-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.skip-login[hidden] {
  display: none;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
  align-items: start;
  gap: 20px;
}

.detail-main {
  padding: 24px;
  border: var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.detail-route {
  margin: 8px 0 15px;
  font-size: 18px;
  font-weight: 900;
}

.detail-section {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 2px dashed rgba(31, 26, 61, .22);
}

.detail-section h2 {
  margin-bottom: 8px;
  font-size: 17px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 15px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  border-left: 2px dashed rgba(31, 26, 61, .3);
}

.timeline-item {
  position: relative;
  color: var(--muted);
  font-size: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #ddd8ce;
}

.timeline-item.done {
  color: var(--ink);
  font-weight: 800;
}

.timeline-item.done::before {
  background: var(--mint);
}

.side-card {
  padding: 20px;
  border: var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.side-card + .side-card {
  margin-top: 16px;
}

.side-card h2 {
  margin-bottom: 11px;
  font-size: 18px;
}

.action-stack {
  display: grid;
  gap: 9px;
}

.action-stack .btn {
  width: 100%;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.profile-identity {
  padding: 28px 20px;
  border: var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 44px;
  box-shadow: var(--soft-shadow);
}

.profile-identity h1 {
  font-size: 23px;
}

.profile-identity p {
  color: var(--muted);
  font-size: 12px;
}

.profile-links {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.profile-links a,
.profile-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--cream);
  font-size: 13px;
  font-weight: 900;
}

.wallet-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: var(--line);
  border-radius: 30px;
  background: var(--mint);
  box-shadow: 8px 8px 0 var(--ink);
}

.wallet-hero::after {
  content: "¥";
  position: absolute;
  right: 25px;
  bottom: -48px;
  color: rgba(31, 26, 61, .12);
  font-size: 180px;
  font-weight: 900;
}

.wallet-balance {
  position: relative;
  z-index: 1;
  margin: 10px 0 20px;
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 900;
  line-height: 1;
}

.wallet-withdraw {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 330px;
}

.wallet-withdraw .input {
  flex: 1;
}

.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px dashed rgba(31, 26, 61, .18);
  font-size: 13px;
}

.transaction-row:last-child {
  border-bottom: 0;
}

.transaction-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.transaction-row strong {
  color: #168653;
  white-space: nowrap;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.footer-note {
  margin-top: 45px;
  padding: 20px 0 10px;
  border-top: 2px dashed rgba(31, 26, 61, .2);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 120;
  max-width: min(92vw, 520px);
  padding: 10px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -70px);
  transition: opacity .2s, transform .3s var(--bounce);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confetti {
  position: fixed;
  z-index: 130;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  pointer-events: none;
}

.mobile-only {
  display: none;
}

body[data-page="login"] .main-nav,
body[data-page="login"] .publish-link,
body[data-page="login"] .account-button,
body[data-page="login"] .bottom-nav {
  display: none;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes char-drop {
  from { opacity: 0; transform: translateY(-42px) rotate(-10deg) scale(.7); }
  to { opacity: 1; transform: none; }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@keyframes mascot-hop {
  0%, 100% { transform: translateY(0) scale(1.03, .97); }
  50% { transform: translateY(-22px) scale(.98, 1.03); }
}

@keyframes mascot-shadow {
  0%, 100% { transform: scale(1); opacity: .22; }
  50% { transform: scale(.7); opacity: .12; }
}

@keyframes blink {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(.1); }
}

@keyframes float-sticker {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-13px) rotate(5deg); }
}

@keyframes order-in {
  from { opacity: 0; transform: translateY(24px) scale(.96) rotate(1deg); }
  to { opacity: 1; transform: none; }
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-12deg) scale(2.4); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}

@keyframes lane {
  to { transform: translateX(-68px); }
}

@keyframes ride {
  from { left: 100%; }
  to { left: -70px; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px;
  }

  .hero-art {
    min-height: 240px;
  }

  .mascot-button {
    width: 175px;
  }

  .hero-bag {
    width: 170px;
    height: 190px;
    font-size: 72px;
  }

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

  .form-layout,
  .order-detail-grid,
  .auth-page,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .auth-story {
    min-height: 280px;
  }

  .auth-mascot {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 7px 0;
  }

  .header-inner,
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    font-size: 19px;
    border-radius: 12px;
  }

  .brand-copy b {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .publish-link {
    display: none;
  }

  .account-name {
    display: none;
  }

  .account-button {
    padding: 4px;
  }

  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    min-height: 61px;
    padding: 5px 7px;
    border: var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 247, .96);
    box-shadow: 4px 4px 0 var(--ink);
    backdrop-filter: blur(10px);
  }

  .bottom-nav a,
  .bottom-nav button {
    display: grid;
    place-items: center;
    gap: 1px;
    min-width: 0;
    padding: 3px;
    border-radius: 14px;
    color: var(--muted);
  }

  .bottom-nav a > span,
  .bottom-nav button > span {
    font-size: 21px;
    line-height: 1;
  }

  .bottom-nav small {
    font-size: 9px;
    font-weight: 900;
  }

  .bottom-nav a.active,
  .bottom-nav button.active {
    color: var(--ink);
    background: var(--yellow);
  }

  .bottom-nav .bottom-publish {
    align-self: center;
    width: 54px;
    height: 54px;
    justify-self: center;
    border: var(--line);
    border-radius: 18px;
    background: var(--orange);
    color: #fff;
    box-shadow: 3px 3px 0 var(--ink);
    transform: translateY(-12px) rotate(-3deg);
  }

  .bottom-nav .bottom-publish > span {
    font-size: 28px;
  }

  .page {
    padding: 20px 0 45px;
  }

  .hero {
    padding: 23px 19px 18px;
    border-radius: 26px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .hero h1 {
    font-size: clamp(38px, 12.4vw, 52px);
    letter-spacing: -1px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-art {
    min-height: 220px;
  }

  .mascot-button {
    width: 155px;
  }

  .hero-sticker {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .road {
    height: 54px;
  }

  .ticker-track > span {
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .stats-grid {
    gap: 7px;
  }

  .stat-card {
    padding: 9px 8px;
  }

  .stat-card strong {
    font-size: 20px;
  }

  .stat-card span {
    font-size: 9px;
    white-space: nowrap;
  }

  .quick-strip {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 24px 0;
  }

  .quick-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .quick-card .icon {
    margin: 0;
    font-size: 25px;
  }

  .college-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .college-card {
    padding: 11px;
  }

  .feed-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .order-card {
    padding: 14px;
    border-radius: 19px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .order-footer {
    align-items: flex-end;
  }

  .order-actions {
    max-width: 72%;
  }

  .order-actions .btn {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .form-card,
  .detail-main {
    padding: 17px;
    border-radius: 21px;
  }

  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding-top: 18px;
  }

  .auth-story {
    min-height: 180px;
    padding: 24px;
  }

  .auth-story h1 {
    font-size: 40px;
  }

  .auth-card {
    padding: 20px;
    border-radius: 23px;
  }

  .wallet-withdraw {
    max-width: none;
  }

  .summary-card {
    box-shadow: 4px 4px 0 var(--ink);
  }

  .footer-note {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
