:root {
  --bg: #f4f6fb;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --panel-soft: rgba(247, 249, 252, 0.72);
  --ink: #101828;
  --muted: #637083;
  --line: rgba(205, 214, 226, 0.72);
  --blue: #1473e6;
  --green: #0f8b6f;
  --red: #d94f45;
  --yellow: #b77a12;
  --violet: #6750d8;
  --glass: rgba(255, 255, 255, 0.58);
  --shadow: 0 18px 52px rgba(20, 32, 48, 0.12);
  --font: "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(69, 139, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(33, 198, 163, 0.18), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #eef3fb 48%, #f7f1e8 100%);
  font-family: var(--font);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  left: 18vw;
  top: 12vh;
  background: #b8d7ff;
}

body::after {
  right: 5vw;
  bottom: 8vh;
  background: #ffd9ae;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(13, 20, 33, 0.82);
  backdrop-filter: blur(28px);
  color: #edf4ff;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.app-brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1c84c, #ffffff);
  color: #111923;
  font-weight: 800;
}

.app-brand strong {
  font-size: 1rem;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b8c4d6;
  text-align: left;
}

.nav-item span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.nav-item em {
  font-style: normal;
}

.nav-item.is-active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.site-link {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #edf4ff;
  text-decoration: none;
  text-align: center;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

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

.kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.7rem;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

h3 {
  font-size: 0.98rem;
}

.session-card,
.auth-panel,
.panel,
.metric-card,
.item-card,
.fund-card,
.creator-row,
.toast {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow);
}

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

.session-card small,
.subtle,
.field-note,
.item-meta,
.wallet-time {
  color: var(--muted);
  font-size: 0.86rem;
}

.session-card strong {
  display: block;
  margin-top: 3px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.auth-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 14px;
  margin-bottom: 18px;
}

.compact-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 160px auto;
  gap: 12px;
  align-items: end;
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 0.84rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.primary-action,
.text-button,
.quick-login button,
.segmented button,
.mini-button {
  border: 0;
  border-radius: 8px;
}

.primary-action {
  min-height: 38px;
  padding: 9px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.text-button {
  padding: 7px 10px;
  background: var(--panel-soft);
  color: var(--blue);
}

.quick-login {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-login button,
.mini-button {
  min-height: 34px;
  padding: 7px 10px;
  background: #e8eef6;
  color: #223044;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: 360px;
  padding: 12px 14px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

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

.metric-card {
  padding: 14px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
}

.two-column,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.stack-list,
.card-grid,
.creator-board {
  display: grid;
  gap: 12px;
}

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

.item-card {
  overflow: hidden;
  background: var(--panel);
}

.fund-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  background: var(--panel);
}

.item-image {
  height: 128px;
  background-size: cover;
  background-position: center;
}

.fund-cover {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.fund-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.item-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.item-title-row h3 {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8eef6;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.recruiting {
  background: #e6f5f0;
  color: var(--green);
}

.badge.production {
  background: #eef2ff;
  color: var(--violet);
}

.badge.launching {
  background: #fff3d7;
  color: var(--yellow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.8rem;
}

.fund-progress {
  height: 9px;
  border-radius: 99px;
  background: #e7edf4;
  overflow: hidden;
}

.fund-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.wide-field {
  grid-column: 1 / -1;
}

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

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.segmented button {
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
}

.segmented button.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 32, 48, 0.08);
}

.creator-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
}

.creator-photo {
  width: 92px;
  height: 72px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.creator-row h3 {
  margin-bottom: 5px;
}

.creator-row p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
}

.check-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.wallet-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.wallet-entry strong.credit {
  color: var(--green);
}

.wallet-entry strong.debit {
  color: var(--red);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 16px;
}

.risk-list {
  display: grid;
  gap: 10px;
}

.risk-list p {
  margin: 0;
  padding: 12px;
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  background: #fff9e8;
  color: #5b461f;
  line-height: 1.6;
}

.points-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff, #f8fbff);
}

.points-hero span {
  color: var(--muted);
  font-size: 0.86rem;
}

.points-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
}

.task-entry {
  align-items: start;
}

.task-entry .tag-list {
  margin-top: 8px;
}

.ledger-list {
  margin-top: 14px;
}

.node-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.node-bars span {
  padding: 5px 7px;
  border-radius: 6px;
  background: #eaf1ff;
  color: #25436d;
  font-size: 0.78rem;
  font-weight: 700;
}

.vertical-actions {
  flex-direction: column;
  align-items: stretch;
}

.bluebook-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #143a66, #0c7a8a 58%, #1f8f68);
}

.bluebook-hero h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.bluebook-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(247, 251, 255, 0.84);
  line-height: 1.7;
}

.bluebook-hero .kicker {
  color: #f1c84c;
}

.bluebook-hero .primary-action {
  flex: 0 0 auto;
  background: #f1c84c;
  color: #112030;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(26px) saturate(160%);
}

.glass-button {
  background: rgba(255, 255, 255, 0.46);
  color: #10233d;
}

.gk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.82), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(39, 132, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(231, 241, 255, 0.56));
  backdrop-filter: blur(34px) saturate(180%);
  box-shadow: 0 28px 80px rgba(22, 43, 74, 0.14);
}

.gk-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -35% 26%;
  height: 230px;
  border-radius: 999px;
  background: rgba(91, 141, 255, 0.18);
  filter: blur(28px);
}

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

.gk-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.gk-hero-copy p:not(.kicker) {
  max-width: 760px;
  color: #435268;
  font-size: 1rem;
  line-height: 1.8;
}

.gk-mascot-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(90deg, rgba(20, 115, 230, 0.08) 0 1px, transparent 1px 42px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.gk-mascot-stage img {
  position: relative;
  z-index: 1;
  width: min(86%, 300px);
  border-radius: 28px;
  filter: drop-shadow(0 24px 32px rgba(28, 37, 52, 0.2));
  animation: gkFloat 5s ease-in-out infinite;
}

.gk-orbit-card {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  color: #26364c;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.gk-pose-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 32px rgba(26, 42, 68, 0.1);
}

.gk-pose-image {
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(236, 243, 255, 0.52)),
    linear-gradient(135deg, rgba(20, 115, 230, 0.12), rgba(255, 201, 104, 0.12));
}

.gk-pose-image img {
  width: 76%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 24px;
  transition: transform 0.25s ease;
}

.gk-pose-card:hover img {
  transform: scale(1.04);
}

.pose-tilt-left .gk-pose-image img {
  transform: rotate(-7deg) translateX(-4px);
}

.pose-tilt-right .gk-pose-image img {
  transform: rotate(7deg) translateX(4px);
}

.pose-code .gk-pose-image img {
  transform: scale(0.92) translateY(8px);
  filter: saturate(1.08) hue-rotate(5deg);
}

.gk-vault-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(241, 247, 255, 0.58)),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(20, 115, 230, 0.045) 26px 27px);
}

.gk-vault-percent {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #101828;
  color: #fff;
  font-weight: 800;
}

.gk-task-panel {
  margin-top: 16px;
}

.gk-task-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38)),
    radial-gradient(circle at 100% 0%, rgba(241, 200, 76, 0.2), transparent 34%);
}

@keyframes gkFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .app-brand strong,
  .nav-item em,
  .site-link {
    display: none;
  }

  .sidebar {
    padding: 14px;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .compact-form,
  .two-column,
  .split-layout,
  .admin-grid,
  .gk-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .side-nav {
    display: flex;
  }

  .workspace {
    padding: 16px;
  }

  .workspace-top,
  .auth-panel,
  .panel-heading,
  .creator-row,
  .points-hero,
  .bluebook-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-panel {
    display: grid;
  }

  .metric-grid,
  .card-grid,
  .gk-pose-grid,
  .share-fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .creator-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .creator-photo {
    width: 100%;
    height: 140px;
  }
}
