:root {
  --paper: #f5f0e6;
  --paper-deep: #ece3d4;
  --surface: #fffdf8;
  --ink: #1c2922;
  --muted: #748078;
  --line: rgba(35, 55, 45, 0.12);
  --green: #286149;
  --green-dark: #173e2f;
  --green-soft: #dfeadf;
  --orange: #e9794f;
  --orange-soft: #f8e0d2;
  --yellow: #e9b94b;
  --shadow: 0 18px 48px rgba(38, 43, 35, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: #dce3d9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 252, 232, 0.9), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(117, 147, 124, 0.44), transparent 32%),
    #dce3d9;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.page-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(56px, 10vw, 150px);
  padding: 28px;
}

.preview-side {
  width: min(430px, 34vw);
  padding-bottom: 30px;
}

.preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.preview-kicker::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--orange);
}

.preview-side h1 {
  margin: 24px 0 20px;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.preview-side p {
  max-width: 380px;
  margin: 0;
  color: #536058;
  font-size: 16px;
  line-height: 1.9;
}

.preview-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0;
  font-size: 13px;
  font-weight: 700;
}

.preview-flow i {
  width: 28px;
  height: 1px;
  background: rgba(40, 97, 73, 0.35);
}

.preview-flow i::after {
  display: block;
  width: 4px;
  height: 4px;
  margin: 1px 0 0 calc(100% - 4px);
  content: "";
  border-radius: 50%;
  background: var(--green);
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid rgba(40, 97, 73, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.admin-link:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
  transform: translateY(-2px);
}

.preview-side small {
  display: block;
  margin-top: 18px;
  color: #718077;
  font-size: 12px;
}

.phone-shell {
  width: 460px;
  height: min(920px, calc(100vh - 56px));
  min-height: 700px;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: 42px;
  background: var(--paper);
  box-shadow:
    0 40px 90px rgba(33, 46, 37, 0.22),
    0 8px 28px rgba(33, 46, 37, 0.1);
}

.app {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.25), transparent 230px),
    var(--paper);
}

.topbar {
  position: relative;
  z-index: 5;
  min-height: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 23px 15px;
}

.campus-switcher {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.campus-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--green-dark);
  color: #f9e7bd;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  box-shadow: 0 7px 16px rgba(23, 62, 47, 0.2);
}

.campus-switcher-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.campus-switcher-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.campus-switcher-copy strong {
  display: flex;
  max-width: 220px;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin-top: 3px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campus-switcher-copy b {
  color: var(--green);
  font-family: sans-serif;
  font-size: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--green-dark);
  color: #f9e7bd;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  box-shadow: 0 7px 16px rgba(23, 62, 47, 0.2);
}

.brand-name {
  font-family: "STSong", "Songti SC", serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.75);
  font-size: 12px;
  font-weight: 700;
}

.avatar-mini {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: #934327;
  font-size: 12px;
}

.back-button {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  font-size: 20px;
}

.page-title-wrap {
  padding: 2px 0;
}

.page-eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.page-title {
  margin: 4px 0 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.15;
}

.main {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 20px calc(118px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}

.main::-webkit-scrollbar {
  display: none;
}

.content-page {
  animation: page-in 0.28s ease both;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(233, 185, 75, 0.44), transparent 34%),
    linear-gradient(145deg, #1d4f3a, #17372a);
  box-shadow: 0 20px 34px rgba(23, 62, 47, 0.22);
  color: white;
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-card::before {
  width: 240px;
  height: 240px;
  right: -86px;
  bottom: -124px;
}

.hero-card::after {
  width: 170px;
  height: 170px;
  right: -56px;
  bottom: -90px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5dfab;
  font-size: 11px;
  font-weight: 700;
}

.hero-tag::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #e9b94b;
  box-shadow: 0 0 0 4px rgba(233, 185, 75, 0.13);
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 18px 0 8px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.7;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background 0.15s ease;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active {
  transform: scale(0.98);
}

.primary-button {
  border: 1px solid var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.primary-button.light {
  border-color: #f2d48f;
  background: #f2d48f;
  color: var(--green-dark);
}

.primary-button.block,
.secondary-button.block,
.ghost-button.block {
  width: 100%;
}

.secondary-button {
  border: 1px solid rgba(40, 97, 73, 0.2);
  background: var(--green-soft);
  color: var(--green-dark);
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.danger-button {
  border: 1px solid rgba(180, 65, 42, 0.15);
  background: #f8e0d2;
  color: #9d4329;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.button-icon {
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-actions .primary-button {
  flex: 1;
}

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

.stat-card {
  padding: 16px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.72);
}

.stat-value {
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  font-weight: 800;
}

.stat-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.section {
  margin-top: 28px;
}

.campus-book-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.campus-book-row {
  display: grid;
  width: 100%;
  grid-template-columns: 24px 42px minmax(0, 1fr) auto 8px;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

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

.campus-book-row:active {
  background: var(--green-soft);
}

.rank-number {
  color: #a0aaa3;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}

.campus-book-row:nth-child(-n + 3) .rank-number {
  color: var(--orange);
}

.campus-book-cover {
  display: grid;
  width: 42px;
  height: 55px;
  place-items: end center;
  overflow: hidden;
  padding: 5px;
  border-radius: 4px 7px 7px 4px;
  color: white;
  font-family: "STSong", "Songti SC", serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.campus-book-main {
  min-width: 0;
}

.campus-book-main strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campus-book-main small {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campus-book-main em {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #99462d;
  font-style: normal;
  font-weight: 800;
}

.campus-book-offer {
  flex: 0 0 auto;
  text-align: right;
}

.campus-book-offer small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.campus-book-offer strong {
  display: block;
  margin-top: 3px;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 17px;
}

.campus-book-arrow {
  color: #a7afa9;
  font-size: 17px;
}

.campus-price-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.campus-impact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(40, 97, 73, 0.12);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(223, 234, 223, 0.88), var(--surface));
}

.campus-impact-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--orange-soft);
  color: #934327;
  font-size: 19px;
}

.campus-impact strong,
.campus-impact span {
  display: block;
}

.campus-impact strong {
  font-size: 12px;
}

.campus-impact span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

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

.section-head h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.text-link {
  border: none;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 17px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.step {
  position: relative;
  text-align: center;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 13px;
  right: -7px;
  width: 14px;
  height: 1px;
  content: "";
  background: var(--line);
}

.step-dot {
  display: grid;
  width: 27px;
  height: 27px;
  margin: 0 auto 7px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.step span {
  color: #5d6b62;
  font-size: 10px;
  font-weight: 700;
}

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

.book-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.book-cover {
  position: relative;
  display: flex;
  height: 132px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px;
  color: white;
}

.book-cover::before,
.book-cover::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.book-cover::before {
  width: 84px;
  height: 84px;
  right: -32px;
  bottom: -29px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.book-cover::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 13px;
  background: rgba(255, 255, 255, 0.16);
}

.tone-green {
  background: linear-gradient(145deg, #386951, #163c2e);
}

.tone-ink {
  background: linear-gradient(145deg, #313c3b, #101714);
}

.tone-ochre {
  background: linear-gradient(145deg, #c98e3f, #785124);
}

.tone-coral {
  background: linear-gradient(145deg, #db7658, #8f3f31);
}

.tone-red {
  background: linear-gradient(145deg, #9f4739, #54231d);
}

.tone-blue {
  background: linear-gradient(145deg, #57718c, #293a50);
}

.tone-sand {
  background: linear-gradient(145deg, #9f8c65, #5f5137);
}

.tone-slate {
  background: linear-gradient(145deg, #63736e, #303d39);
}

.book-cover-kicker {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.book-cover-title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  padding-left: 4px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.book-info {
  padding: 12px 13px 14px;
}

.book-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.price {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 800;
}

.price small {
  font-family: inherit;
  font-size: 10px;
}

.muted-price {
  color: var(--muted);
  font-size: 10px;
  text-decoration: line-through;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card-pad {
  padding: 18px;
}

.scanner-card {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 28px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 20%, rgba(233, 185, 75, 0.16), transparent 38%),
    var(--green-dark);
  color: white;
}

.sell-campus-context {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.sell-campus-pin {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}

.sell-campus-context > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.sell-campus-context strong,
.sell-campus-context small {
  display: block;
}

.sell-campus-context strong {
  font-size: 11px;
}

.sell-campus-context small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.sell-campus-context button {
  padding: 6px 9px;
  border: 1px solid rgba(40, 97, 73, 0.16);
  border-radius: 9px;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.scanner-frame {
  position: relative;
  display: grid;
  width: 168px;
  height: 104px;
  margin: 4px auto 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.scanner-frame::before,
.scanner-frame::after {
  position: absolute;
  width: 28px;
  height: 28px;
  content: "";
  border-color: #e9b94b;
}

.scanner-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 15px 0 0;
}

.scanner-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-radius: 0 0 15px;
}

.barcode-lines {
  width: 114px;
  height: 46px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.82) 0 2px,
    transparent 2px 5px,
    rgba(255, 255, 255, 0.5) 5px 7px,
    transparent 7px 11px
  );
  opacity: 0.9;
}

.scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #e9b94b;
  box-shadow: 0 0 9px #e9b94b;
  animation: scan 2.2s ease-in-out infinite;
}

.scanner-frame-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

@keyframes scan {
  0%,
  100% {
    top: 27px;
    opacity: 0.4;
  }
  50% {
    top: 77px;
    opacity: 1;
  }
}

.scanner-title {
  margin: 0;
  text-align: center;
  font-family: "STSong", "Songti SC", serif;
  font-size: 23px;
}

.scanner-copy {
  margin: 8px auto 20px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 11px;
  line-height: 1.65;
}

.scanner-camera-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -4px auto 12px;
  padding: 0 19px;
  border: 1px solid rgba(240, 210, 140, 0.38);
  border-radius: 999px;
  background: rgba(240, 210, 140, 0.1);
  color: #f0d28c;
  font-size: 11px;
  font-weight: 800;
}

.scanner-camera-button span {
  font-size: 16px;
}

.isbn-form {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.isbn-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  padding: 0 11px;
  font-size: 13px;
}

.isbn-form input::placeholder {
  color: rgba(255, 255, 255, 0.43);
}

.isbn-form .primary-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 11px;
}

.sample-isbns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.sample-isbns button {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.condition-panel {
  margin-top: 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.condition-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.condition-option {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.65);
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}

.condition-option.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.quote-card {
  margin-top: 16px;
  padding: 19px;
  border: 1px solid rgba(40, 97, 73, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(125deg, rgba(223, 234, 223, 0.76), rgba(255, 253, 248, 0.84));
  animation: page-in 0.25s ease both;
}

.quote-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.quote-book-title {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 19px;
  line-height: 1.35;
}

.quote-author {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.quote-campus-tag {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(40, 97, 73, 0.09);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.quote-price {
  flex: 0 0 auto;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
}

.quote-price small {
  font-size: 12px;
}

.quote-note {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.54);
  color: #69766d;
  font-size: 10px;
  line-height: 1.6;
}

.cart-list {
  display: grid;
  gap: 9px;
}

.cart-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.mini-cover {
  display: grid;
  width: 40px;
  height: 54px;
  place-items: end center;
  overflow: hidden;
  padding: 5px;
  border-radius: 4px 7px 7px 4px;
  color: white;
  font-family: "STSong", "Songti SC", serif;
  font-size: 8px;
  line-height: 1.15;
  text-align: center;
}

.cart-item-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.cart-item-price {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 800;
}

.remove-link {
  display: block;
  margin: 5px 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a87868;
  font-size: 9px;
}

.empty-card {
  padding: 34px 20px;
  border: 1px dashed rgba(35, 55, 45, 0.2);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  font-size: 22px;
}

.empty-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.empty-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.floating-cart {
  position: sticky;
  z-index: 3;
  bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  padding: 11px 12px 11px 16px;
  border-radius: 17px;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(28, 41, 34, 0.22);
  color: white;
}

.cart-total-label {
  color: rgba(255, 255, 255, 0.57);
  font-size: 9px;
}

.cart-total {
  margin-top: 3px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 800;
}

.floating-cart .primary-button {
  min-height: 40px;
  border-color: #f1d38d;
  background: #f1d38d;
  color: var(--green-dark);
}

.form-card {
  padding: 20px;
}

.checkout-campus {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -3px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
}

.checkout-campus strong {
  color: var(--green-dark);
  font-size: 10px;
}

.checkout-campus small {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
}

.form-section-title {
  margin: 0 0 16px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 18px;
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fbf8f1;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.18s ease;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
  padding: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.summary-line:last-child {
  margin-bottom: 0;
}

.summary-line strong {
  color: var(--ink);
}

.summary-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.summary-total span:last-child {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 22px;
}

.accordion-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: #7d4a36;
  font-size: 10px;
  line-height: 1.65;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.order-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
}

.status-pill.orange {
  background: var(--orange-soft);
  color: #8f4228;
}

.order-body {
  padding: 15px;
}

.order-book-titles {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.order-amount {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
}

.timeline {
  position: relative;
  margin: 8px 0 0 7px;
  padding-left: 21px;
}

.timeline::before {
  position: absolute;
  top: 7px;
  bottom: 12px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(40, 97, 73, 0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: 17px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 3px;
  left: -25px;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(40, 97, 73, 0.25);
}

.timeline-message {
  font-size: 11px;
  font-weight: 700;
}

.timeline-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.inspection-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.mini-cover.placeholder {
  width: 38px;
  height: 50px;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 10%, rgba(233, 185, 75, 0.25), transparent 35%),
    var(--ink);
  color: white;
}

.wallet-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -75px;
  bottom: -85px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.wallet-label {
  color: rgba(255, 255, 255, 0.57);
  font-size: 11px;
}

.wallet-balance {
  margin: 12px 0 22px;
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
}

.wallet-balance small {
  margin-right: 4px;
  font-size: 17px;
}

.ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-item:last-child {
  border-bottom: 0;
}

.ledger-title {
  font-size: 12px;
  font-weight: 700;
}

.ledger-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.ledger-amount {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 800;
}

.ledger-amount.negative {
  color: var(--orange);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 21px;
}

.profile-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50% 50% 50% 18%;
  background: linear-gradient(145deg, #f0c47a, #e57d52);
  color: white;
  font-family: "STSong", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
}

.profile-name {
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  font-weight: 800;
}

.profile-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.menu-card {
  overflow: hidden;
}

.menu-item {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--paper-deep);
  font-size: 14px;
}

.menu-label {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
}

.menu-arrow {
  color: #a2aaa5;
}

.search-bar {
  display: flex;
  height: 45px;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.search-bar span {
  color: var(--muted);
  font-size: 15px;
}

.search-bar input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.category-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.category-tab.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.shop-card .book-cover {
  height: 145px;
}

.shop-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.buy-link {
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
}

.bottom-nav {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: calc(13px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 68px;
  padding: 7px 6px 8px;
  border: 1px solid rgba(35, 55, 45, 0.09);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 12px 32px rgba(29, 47, 37, 0.13);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #8b968f;
}

.nav-item::before {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.nav-item span {
  font-size: 9px;
  font-weight: 700;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.nav-icon {
  height: 21px;
  font-size: 17px;
  line-height: 21px;
}

.loading-screen {
  display: grid;
  min-height: 60vh;
  place-items: center;
  align-content: center;
  color: var(--muted);
  font-size: 11px;
}

.loading-mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 18px 18px 18px 5px;
  background: var(--green-dark);
  color: #f1d38d;
  font-family: "STSong", "Songti SC", serif;
  font-size: 28px;
  animation: breathe 1.3s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(0.96);
    opacity: 0.75;
  }
}

.toast {
  position: absolute;
  z-index: 30;
  right: 50%;
  bottom: 96px;
  max-width: 310px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(20, 30, 25, 0.92);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.18);
  color: white;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition: 0.22s ease;
}

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

.modal-layer {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: rgba(15, 26, 20, 0.42);
  backdrop-filter: blur(3px);
}

.modal-layer[hidden] {
  display: none;
}

.modal {
  width: 100%;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  animation: modal-in 0.22s ease both;
}

.scanner-modal {
  position: relative;
  padding-top: 18px;
}

.campus-modal {
  position: relative;
  max-height: min(720px, calc(100vh - 42px));
  overflow-y: auto;
  padding-top: 23px;
}

.campus-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.campus-modal-head h3 {
  margin: 5px 0 0;
}

.modal-close.inline {
  position: static;
  flex: 0 0 auto;
}

.campus-search {
  display: flex;
  height: 43px;
  align-items: center;
  gap: 9px;
  margin: 8px 0 13px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf8f1;
}

.campus-search span {
  color: var(--muted);
  font-size: 15px;
}

.campus-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.campus-option-list {
  display: grid;
  gap: 7px;
}

.campus-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.campus-option.active {
  border-color: rgba(40, 97, 73, 0.28);
  background: var(--green-soft);
}

.campus-option-mark {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--green-dark);
  font-family: "STSong", "Songti SC", serif;
  font-size: 14px;
  font-weight: 800;
}

.campus-option.active .campus-option-mark {
  background: var(--green);
  color: white;
}

.campus-option-copy {
  min-width: 0;
  flex: 1;
}

.campus-option-copy strong,
.campus-option-copy small {
  display: block;
}

.campus-option-copy strong {
  font-size: 11px;
}

.campus-option-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.campus-option-check {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.campus-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.campus-modal-note {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: #7d4a36;
  font-size: 9px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 41, 34, 0.08);
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}

.scan-video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 45%, rgba(233, 185, 75, 0.12), transparent 45%),
    #101915;
}

.scan-video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-video-corners {
  position: absolute;
  inset: 22% 12%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow:
    -2px -2px 0 #e9b94b,
    2px -2px 0 #e9b94b,
    -2px 2px 0 #e9b94b,
    2px 2px 0 #e9b94b;
}

.scan-video-line {
  position: absolute;
  top: 35%;
  right: 13%;
  left: 13%;
  height: 1px;
  background: #e9b94b;
  box-shadow: 0 0 10px #e9b94b;
  animation: video-scan 2.1s ease-in-out infinite;
}

@keyframes video-scan {
  0%,
  100% {
    top: 28%;
    opacity: 0.45;
  }
  50% {
    top: 72%;
    opacity: 1;
  }
}

.scanner-modal h3 {
  text-align: center;
}

.scanner-modal p {
  margin-bottom: 18px;
  text-align: center;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.modal h3 {
  margin: 0 0 8px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 22px;
}

.modal p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-deep);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  animation: shimmer 1.2s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 940px) {
  .page-layout {
    padding: 0;
  }

  .preview-side {
    display: none;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    min-height: 640px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  @supports (height: 100dvh) {
    .phone-shell {
      height: 100dvh;
    }
  }
}

@media (max-width: 380px) {
  .main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .topbar-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-title {
    font-size: 29px;
  }

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

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