:root {
  --cream-50: #fffdf9;
  --cream-100: #fff8f1;
  --cream-150: #fff2e6;
  --apricot-100: #ffe7d3;
  --apricot-200: #f8d2b0;
  --apricot-300: #efbc8b;
  --apricot-400: #e29f68;
  --apricot-500: #cf8251;
  --tea-700: #6f594a;
  --tea-500: #9a806f;
  --olive-300: #d5dfc8;
  --olive-500: #98a684;
  --coral-soft: #efb294;
  --panel: rgba(255, 252, 247, 0.9);
  --panel-strong: rgba(255, 247, 238, 0.98);
  --line: rgba(207, 162, 120, 0.2);
  --line-strong: rgba(207, 130, 81, 0.34);
  --text-main: #655244;
  --text-soft: #9a816f;
  --text-faint: #b7a18f;
  --success: #89a26e;
  --danger: #cb7f63;
  --shadow-soft: 0 14px 36px rgba(212, 165, 123, 0.12);
  --shadow-main: 0 24px 64px rgba(212, 165, 123, 0.16);
  --shadow-accent: 0 16px 34px rgba(207, 130, 81, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 229, 203, 0.88), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(255, 242, 220, 0.84), transparent 20%),
    radial-gradient(circle at 52% 92%, rgba(222, 233, 210, 0.42), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #fff8f2 38%, #fffefb 100%);
  font-family: "PingFang SC", "SF Pro Display", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(226, 207, 189, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 207, 189, 0.22) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 74%);
}

body::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.82), transparent 14%),
    radial-gradient(circle at 72% 28%, rgba(255, 236, 220, 0.42), transparent 15%);
}

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

.hidden {
  display: none !important;
}

.eyebrow,
.section-kicker,
.page-pretitle {
  color: var(--apricot-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: 48px 22px;
  overflow: hidden;
}

.auth-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  border-radius: 999px;
  opacity: 0.72;
  filter: blur(12px);
}

.petal-a {
  top: 48px;
  left: -38px;
  width: 290px;
  height: 290px;
  background: rgba(248, 210, 176, 0.46);
}

.petal-b {
  top: 110px;
  right: 6%;
  width: 250px;
  height: 250px;
  background: rgba(255, 239, 211, 0.52);
}

.petal-c {
  bottom: 12%;
  left: 14%;
  width: 220px;
  height: 220px;
  background: rgba(237, 205, 174, 0.24);
}

.petal-d {
  bottom: 8%;
  right: 18%;
  width: 210px;
  height: 210px;
  background: rgba(205, 220, 188, 0.26);
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.auth-copy,
.auth-panel,
.workspace-sidebar,
.top-shell,
.panel-shell {
  animation: float-up 0.72s ease both;
}

.auth-copy {
  padding: 12px 8px;
}

.hero-title {
  margin: 14px 0 16px;
  max-width: 720px;
  font-size: clamp(2.9rem, 5.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--tea-700);
}

.hero-copy,
.auth-note-copy,
.auth-panel-copy,
.sidebar-summary,
.sidebar-note-copy,
.page-subtitle,
.section-note,
.message-line,
.metric-note,
.detail-copy,
.detail-empty,
.profile-phone,
.timeline-meta,
.rank-value,
.feature-card p {
  color: var(--text-soft);
}

.auth-feature-list,
.profile-grid,
.detail-grid,
.detail-chip-row,
.top-actions,
.metric-grid,
.welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feature-card,
.auth-note,
.sidebar-card,
.metric-shell,
.profile-stat,
.detail-card,
.rank-item,
.timeline-item,
.student-pill {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.auth-feature-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.feature-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-weight: 700;
  color: #fffdf9;
  background: linear-gradient(145deg, #efbf8f 0%, #d58a59 100%);
  box-shadow: var(--shadow-accent);
}

.feature-card h2,
.auth-note-title,
.sidebar-card-title,
.detail-block-title {
  color: var(--tea-700);
}

.feature-card h2 {
  margin: 2px 0 8px;
  font-size: 1.16rem;
}

.auth-note,
.sidebar-card {
  padding: 22px 24px;
}

.auth-panel,
.sidebar-card,
.top-shell,
.panel-shell {
  border: 1px solid rgba(212, 171, 136, 0.18);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(18px);
}

.auth-panel {
  border-radius: calc(var(--radius-xl) + 4px);
}

.auth-panel-body {
  padding: 34px;
}

.auth-panel-head,
.profile-head,
.detail-hero,
.rank-head,
.timeline-head,
.top-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-panel-title,
.section-title,
.page-title,
.brand-title {
  color: var(--tea-700);
  letter-spacing: -0.02em;
}

.auth-panel-title {
  margin: 10px 0 6px;
  font-size: 2rem;
  font-weight: 700;
}

.page-title {
  margin: 10px 0 8px;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  font-weight: 800;
}

.section-title {
  margin: 10px 0 8px;
  font-size: 1.52rem;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-block {
  display: grid;
  gap: 10px;
}

.form-label {
  font-weight: 600;
  color: var(--tea-700);
}

.input-shell,
.form-control {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  border: 1px solid rgba(214, 181, 151, 0.42) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

.input-shell:focus,
.form-control:focus {
  border-color: rgba(207, 130, 81, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(232, 175, 130, 0.14) !important;
}

.input-shell::placeholder,
.form-control::placeholder {
  color: rgba(154, 128, 113, 0.54);
}

.status-chip,
.info-badge,
.login-tag-row span,
.user-pill,
.mini-chip,
.btn {
  border-radius: 999px;
}

.status-chip,
.info-badge,
.login-tag-row span,
.user-pill,
.mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 194, 172, 0.42);
}

.status-chip {
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(137, 162, 110, 0.14);
}

.btn {
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn:focus {
  box-shadow: 0 0 0 4px rgba(232, 175, 130, 0.15) !important;
}

.btn-warm {
  color: #fffdf9;
  border: none;
  background: linear-gradient(135deg, #ebb085 0%, #cf8251 100%);
  box-shadow: var(--shadow-accent);
}

.btn-warm:hover,
.btn-warm:focus {
  color: #fffdf9;
  filter: brightness(1.03);
}

.btn-soft-action {
  color: var(--tea-700);
  border: 1px solid rgba(214, 181, 151, 0.48);
  background: rgba(255, 255, 255, 0.78);
}

.btn-ghost-action {
  color: var(--tea-500);
  border: 1px dashed rgba(214, 181, 151, 0.62);
  background: transparent;
}

.login-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 298px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.workspace-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-seal,
.profile-avatar,
.detail-icon,
.entity-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-seal {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(145deg, #efc692 0%, #d48a59 100%);
  color: #fffdf9;
  font-size: 1.4rem;
  box-shadow: var(--shadow-accent);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 1.48rem;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.sidebar-link {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(219, 192, 170, 0.34);
  color: var(--tea-700);
  transition: transform 0.2s ease, background 0.2s ease;
}

.sidebar-link:hover {
  transform: translateX(2px);
  background: rgba(255, 246, 238, 0.96);
}

.workspace-main {
  min-width: 0;
}

.top-shell,
.panel-shell {
  border-radius: var(--radius-xl);
}

.top-shell {
  position: sticky;
  top: 14px;
  z-index: 20;
  padding: 22px 26px;
  margin-bottom: 24px;
}

.top-copy {
  max-width: 720px;
}

.top-actions {
  justify-content: flex-end;
}

.dashboard-section {
  margin-bottom: 26px;
  scroll-margin-top: 120px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
}

.welcome-panel {
  grid-column: 1 / 2;
}

.profile-shell {
  grid-column: 2 / 3;
}

.metric-grid,
.rank-shell {
  grid-column: 1 / -1;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: 24px;
}

.panel-header,
.panel-body,
.panel-footer {
  padding: 24px 26px;
}

.panel-header {
  border-bottom: 1px solid rgba(227, 203, 182, 0.24);
}

.panel-footer {
  border-top: 1px solid rgba(227, 203, 182, 0.24);
}

.welcome-body {
  display: grid;
  gap: 18px;
}

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

.metric-shell {
  padding: 18px 18px 16px;
}

.metric-label {
  color: var(--apricot-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  color: var(--tea-700);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-shell .panel-body {
  display: grid;
  gap: 18px;
}

.profile-avatar,
.detail-icon {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(242, 206, 166, 0.84), rgba(207, 130, 81, 0.88));
  color: #fffdf9;
  box-shadow: var(--shadow-accent);
  font-size: 1.48rem;
}

.detail-icon.neutral {
  background: linear-gradient(145deg, rgba(208, 223, 193, 0.92), rgba(236, 199, 164, 0.82));
}

.profile-name,
.detail-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--tea-700);
}

.profile-grid,
.detail-grid {
  gap: 12px;
}

.profile-stat,
.detail-card {
  flex: 1 1 calc(50% - 12px);
  min-width: 145px;
  padding: 16px 18px;
}

.profile-stat span,
.detail-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.profile-stat strong,
.detail-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.14rem;
  color: var(--tea-700);
}

.rank-list,
.timeline-list,
.pill-list {
  display: grid;
  gap: 12px;
}

.rank-item,
.timeline-item {
  padding: 16px 18px;
}

.rank-label {
  color: var(--tea-700);
  font-weight: 700;
}

.rank-bar-track {
  width: 100%;
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(244, 223, 204, 0.62);
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d99266 0%, #efc489 100%);
}

.pill-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.student-pill {
  padding: 16px;
}

.student-pill strong,
.student-pill span {
  display: block;
}

.student-pill span {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.detail-block {
  margin-top: 20px;
}

.detail-empty {
  padding: 24px 26px 28px;
}

.table-wrap {
  padding: 0 12px 12px;
  overflow-x: auto;
}

.warm-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.warm-table thead th {
  border-bottom: none;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.warm-table tbody tr {
  transition: transform 0.2s ease;
}

.warm-table tbody tr:hover {
  transform: translateY(-1px);
}

.warm-table tbody tr td {
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(227, 202, 182, 0.3);
  border-bottom: 1px solid rgba(227, 202, 182, 0.3);
  color: var(--text-main);
  vertical-align: middle;
}

.warm-table tbody tr td:first-child {
  border-left: 1px solid rgba(227, 202, 182, 0.3);
  border-radius: 18px 0 0 18px;
}

.warm-table tbody tr td:last-child {
  border-right: 1px solid rgba(227, 202, 182, 0.3);
  border-radius: 0 18px 18px 0;
}

.warm-table tbody tr.is-selected td {
  background: rgba(255, 246, 237, 0.96);
  border-color: rgba(207, 130, 81, 0.38);
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entity-avatar {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(243, 203, 164, 0.84), rgba(207, 130, 81, 0.88));
  color: #fffdf9;
  box-shadow: var(--shadow-accent);
}

.entity-main {
  display: grid;
  gap: 4px;
}

.entity-main strong {
  font-size: 0.98rem;
}

.entity-main span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.warning-text {
  color: var(--danger);
  font-weight: 700;
}

.safe-text {
  color: var(--success);
  font-weight: 700;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.type-consume {
  background: rgba(240, 210, 182, 0.38);
  color: #b97a3e;
}

.type-recharge {
  background: rgba(214, 225, 202, 0.38);
  color: #728961;
}

.type-refund {
  background: rgba(244, 225, 214, 0.64);
  color: #c18469;
}

.message-line {
  min-height: 24px;
  font-size: 0.95rem;
}

.message-line.success {
  color: var(--success);
}

.message-line.error {
  color: var(--danger);
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .auth-layout,
  .workspace-shell,
  .overview-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .profile-shell,
  .welcome-panel,
  .metric-grid,
  .rank-shell {
    grid-column: auto;
  }

  .workspace-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .auth-shell,
  .workspace-shell {
    padding: 18px;
  }

  .auth-panel-body,
  .panel-header,
  .panel-body,
  .panel-footer,
  .top-shell,
  .sidebar-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .profile-stat,
  .detail-card {
    flex-basis: 100%;
    min-width: 100%;
  }

  .warm-table {
    min-width: 680px;
  }
}
