:root {
  /* Inspired by youthful campus greens and clear-sky tones from modern Nanchang Normal University-style visuals. */
  --mint: #d7f3df;
  --mint-deep: #6bc48a;
  --cream: #fffdf6;
  --brown: #4a9c6a;
  --brown-soft: #7dcf94;
  --forest: #2f8f62;
  --forest-deep: #236f4d;
  --white: rgba(255, 255, 255, 0.9);
  --line: rgba(74, 156, 106, 0.12);
  --text: #285242;
  --muted: #6d8b7f;
  --shadow: 0 18px 44px rgba(66, 122, 91, 0.12);
  --shadow-soft: 0 12px 26px rgba(66, 122, 91, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 240, 205, 0.9), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(214, 241, 255, 0.75), transparent 24%),
    linear-gradient(180deg, #fffef8 0%, #f3fff7 50%, #edf9ff 100%);
}

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

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

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

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 250, 0.92);
  border-bottom: 1px solid rgba(74, 156, 106, 0.09);
  box-shadow: 0 8px 24px rgba(74, 156, 106, 0.06);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: #fff;
}

.brand h1,
.brand-title {
  margin: 0;
  color: var(--forest-deep);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(199, 232, 211, 0.28);
  color: var(--forest);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--brown);
  background: linear-gradient(135deg, #ffffff 0%, #f7f4e9 100%);
  transform: translateY(-1px);
}

.user-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  align-self: flex-end;
  max-width: 100%;
}

.identity-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(139, 87, 42, 0.1);
  color: var(--forest-deep);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  text-align: right;
}

.logout-link {
  color: var(--brown);
  font-weight: 600;
}

.bind-btn,
.modal-submit,
.modal-cancel {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bind-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-soft) 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(139, 87, 42, 0.18);
}

.bind-btn:hover,
.modal-submit:hover,
.modal-cancel:hover {
  transform: translateY(-1px) scale(1.01);
}

.page-main {
  padding: 30px 0 46px;
}

.hero,
.card,
.panel,
.table-box,
.form-box,
.quote-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  padding: 34px;
  margin-bottom: 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -120px -130px auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 232, 211, 0.55), transparent 68%);
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(199, 232, 211, 0.5);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h2,
.section-title,
.card h3,
.panel h3,
.table-box h3,
.quote-box h3 {
  margin: 0 0 12px;
  color: var(--forest-deep);
}

.hero h2 {
  font-size: 40px;
  line-height: 1.25;
  max-width: 12ch;
}

.hero p,
.card p,
.panel p,
.item p,
.quote-box p {
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn-light:hover {
  transform: translateY(-1px);
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--forest) 0%, var(--mint-deep) 100%);
  box-shadow: 0 12px 24px rgba(63, 111, 86, 0.18);
}

.btn-light {
  color: var(--brown);
  background: #fffdf5;
  border: 1px solid rgba(139, 87, 42, 0.16);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-avatar {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(246,249,241,0.98) 100%);
  border-radius: 24px;
}

.hero-avatar img {
  width: 100%;
  border-radius: 24px;
}

.hero-note {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(199, 232, 211, 0.4), rgba(253, 252, 241, 0.95));
}

.hero-note ul,
.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,250,244,0.88) 100%);
  border: 1px solid rgba(63, 111, 86, 0.08);
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  color: var(--brown);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

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

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

.card,
.panel,
.table-box,
.form-box,
.quote-box {
  padding: 22px;
}

.card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(70, 88, 66, 0.15);
  border-color: rgba(139, 87, 42, 0.16);
}

.category-link {
  display: block;
}

.category-link .enter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--brown);
  font-weight: 700;
}

.category-link .enter-link::after {
  content: ">";
  font-size: 16px;
}

.book-total {
  color: var(--brown);
  font-weight: 700;
}

.book-page-header {
  margin-bottom: 20px;
}

.book-page-header p {
  max-width: 720px;
}

.book-shell {
  margin-top: 24px;
}

.book-shell-head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.book-back {
  justify-self: start;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--brown);
  background: #fffdf5;
  border: 1px solid rgba(139, 87, 42, 0.16);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.book-back:hover {
  transform: translateY(-1px);
}

.book-shell-table {
  overflow-x: auto;
}

.publish-qr-shell {
  margin-top: 24px;
}

.publish-qr-shell .qr-box {
  min-height: 100%;
}

.book-table-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.feature-card img,
.card img.feature-icon {
  width: 94px;
  height: 94px;
  margin-bottom: 18px;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.feature-card:hover img,
.card:hover img.feature-icon {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.campus-banner {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 232, 211, 0.34);
  color: var(--forest);
  font-size: 13px;
}

.list,
.steps,
.timeline {
  display: grid;
  gap: 14px;
}

.item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 111, 86, 0.08);
  box-shadow: var(--shadow-soft);
}

.item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest-deep);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
  border-radius: 18px;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #efefe7;
}

th {
  background: #f6f7ef;
  color: var(--brown);
}

tr:last-child td {
  border-bottom: 0;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--forest-deep);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(63, 111, 86, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(139, 87, 42, 0.5);
  box-shadow: 0 0 0 4px rgba(199, 232, 211, 0.4);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.quote-box {
  background: linear-gradient(145deg, rgba(63, 111, 86, 0.96), rgba(116, 152, 126, 0.9));
  color: #fff;
}

.quote-box h3 {
  color: #fff;
}

.quote-box p,
.quote-box li {
  color: rgba(255, 255, 255, 0.88);
}

.qr-box {
  text-align: center;
}

.qr-box h3 {
  margin-bottom: 12px;
}

.qr-box p {
  max-width: 540px;
  margin: 0 auto;
}

.qr-code-card {
  margin: 20px auto 6px;
  max-width: 340px;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,249,241,0.95) 100%);
  box-shadow: var(--shadow-soft);
}

.qr-placeholder img {
  width: min(100%, 260px);
}

.qr-tip {
  margin-top: 14px;
  font-size: 14px;
}

.submission-summary p {
  margin: 0 0 12px;
}

.submission-summary strong {
  color: #fff;
}

.real-qr {
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.footer {
  padding: 12px 0 34px;
  text-align: center;
  color: var(--muted);
}

.footer strong {
  color: var(--brown);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(36, 48, 40, 0.42);
  z-index: 40;
}

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

.modal-card {
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: #fffef9;
  border: 1px solid rgba(139, 87, 42, 0.12);
  box-shadow: 0 28px 60px rgba(40, 74, 56, 0.18);
}

.modal-card h3 {
  margin: 0 0 10px;
  color: var(--forest-deep);
}

.modal-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.modal-submit {
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--mint-deep) 100%);
  color: #fff;
}

.modal-cancel {
  padding: 11px 18px;
  background: #f3f6ee;
  color: var(--brown);
}

@media (max-width: 1024px) {
  .topbar-inner,
  .hero,
  .grid-3,
  .grid-2,
  .stats,
  .field-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-end;
  }

  .nav,
  .user-toolbar {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .brand {
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 24px;
  }

  .hero {
    padding: 24px 18px;
  }

  .hero h2 {
    font-size: 31px;
  }

  .topbar-actions,
  .user-toolbar {
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .identity-chip,
  .bind-btn {
    width: 100%;
    text-align: center;
  }
}
