:root {
  --ink: #12141a;
  --paper: #f6f1e8;
  --mute: #8a8378;
  --line: rgba(255, 244, 226, 0.12);
  --gold: #e8b86d;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--paper);
  background: #0c0d11;
}

body.hub-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 8% -10%, rgba(232, 184, 109, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(79, 140, 168, 0.14), transparent 48%),
    radial-gradient(ellipse 40% 30% at 70% 110%, rgba(196, 92, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #14161c 0%, #0c0d11 55%);
}

.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px 0;
}

.hub-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
}

.hub-mark svg { display: block; }

.hub-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-user__meta {
  text-align: right;
}

.hub-user__name {
  font-size: 14px;
  font-weight: 600;
}

.hub-user__role {
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}

.hub-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1a140c;
  background: linear-gradient(145deg, #f3d29a, #c9893a);
}

.hub-out {
  border: 1px solid var(--line);
  background: transparent;
  color: #d7d0c4;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hub-out:hover { border-color: rgba(232, 184, 109, 0.45); color: #fff; }

.hub-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-ver {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232, 184, 109, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
}

.hub-switch a {
  color: #d7d0c4;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}

.hub-switch a:hover { border-color: rgba(232, 184, 109, 0.45); color: #fff; }

.enter-body.theme-orca {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(94, 200, 216, 0.18), transparent 55%),
    #0c0d11;
}
.enter-body.theme-angel {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(240, 163, 180, 0.16), transparent 55%),
    #0c0d11;
}
.enter-body.theme-office {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(240, 138, 75, 0.16), transparent 55%),
    #0c0d11;
}

.hub-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 32px 72px;
}

.hub-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hub-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hub-sub {
  margin: 16px 0 32px;
  color: #b8b0a4;
  font-size: 15px;
}

.hub-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 22px;
  align-items: start;
}

.hub-stage.is-solo {
  grid-template-columns: 1fr;
}

.zone-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 184, 109, 0.85);
}

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

.hub-doors.doors-n7 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hub-doors.doors-n7 .door:nth-child(1),
.hub-doors.doors-n7 .door:nth-child(2),
.hub-doors.doors-n7 .door:nth-child(6),
.hub-doors.doors-n7 .door:nth-child(7) {
  grid-column: span 3;
}

.hub-doors.doors-n7 .door:nth-child(3),
.hub-doors.doors-n7 .door:nth-child(4),
.hub-doors.doors-n7 .door:nth-child(5) {
  grid-column: span 2;
}

.door {
  position: relative;
  display: block;
  min-height: 176px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.door:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.door::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 150px;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.door > * { position: relative; z-index: 1; }

.door-oa {
  background: linear-gradient(160deg, #3a2a1c 0%, #1c1612 70%);
}
.door-oa::after { background: #e8b86d; }

.door-orca {
  background: linear-gradient(160deg, #16343f 0%, #101820 70%);
}
.door-orca::after { background: #5ec8d8; }

.door-biz {
  background: linear-gradient(160deg, #1c2740 0%, #12151c 70%);
}
.door-biz::after { background: #7b93e8; }

.door-settle {
  background: linear-gradient(160deg, #322818 0%, #16130f 70%);
}
.door-settle::after { background: #d4a24a; }

.door-office {
  background: linear-gradient(160deg, #3a2218 0%, #18110e 70%);
}
.door-office::after { background: #f08a4b; }

.door-tutor {
  background: linear-gradient(160deg, #1c3328 0%, #121816 70%);
}
.door-tutor::after { background: #6fbf88; }

.door-badmin {
  background: linear-gradient(160deg, #2a2240 0%, #16141c 70%);
}
.door-badmin::after { background: #9b86e3; }

.door__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.door__name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.door__blurb {
  margin: 0;
  color: rgba(246, 241, 232, 0.62);
  font-size: 13px;
  line-height: 1.5;
  padding-right: 36px;
}

.door__go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.door:hover .door__go { background: rgba(255, 255, 255, 0.2); }

.ext-dock {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(155, 183, 201, 0.14);
  border-radius: 18px;
  padding: 16px 12px 14px;
  position: sticky;
  top: 20px;
}

.ext-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8aa7b8;
}

.ext-lead {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #7d8894;
}

.ext-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #d5dde4;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 8px;
  border: 1px solid transparent;
}

.ext-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(155, 183, 201, 0.2);
}

.ext-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.ext-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ext-name {
  font-size: 13px;
  font-weight: 600;
}

.ext-blurb {
  font-size: 11px;
  color: #7d8894;
}

.ext-tag {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8aa7b8;
  border: 1px solid rgba(155, 183, 201, 0.28);
  border-radius: 999px;
  padding: 2px 6px;
}

.hub-empty {
  padding: 48px 8px;
  color: var(--mute);
}

.enter-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: var(--font);
  color: var(--paper);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(232, 184, 109, 0.16), transparent 55%),
    #0c0d11;
}

.enter-card {
  width: min(520px, calc(100% - 40px));
  padding: 40px 36px;
  border-radius: 24px;
  background: #17191f;
  border: 1px solid rgba(255, 244, 226, 0.08);
}

.enter-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}

.enter-card h1 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.enter-card p {
  margin: 0 0 28px;
  color: #b8b0a4;
  line-height: 1.65;
}

.enter-actions {
  display: flex;
  gap: 12px;
}

.enter-actions a,
.enter-actions button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
}

.enter-back {
  background: transparent;
  color: #d7d0c4;
  border: 1px solid rgba(255, 244, 226, 0.16) !important;
}

.enter-ok {
  background: #e8b86d;
  color: #1a140c;
  font-weight: 650;
}

@media (max-width: 960px) {
  .hub-stage { grid-template-columns: 1fr; }
  .ext-dock {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
  .ext-kicker,
  .ext-lead { grid-column: 1 / -1; }
  .ext-item { margin-top: 0; }
}

@media (max-width: 900px) {
  .hub-doors,
  .hub-doors.doors-n7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-doors.doors-n7 .door { grid-column: span 1; }
}

@media (max-width: 760px) {
  .hub-top { padding: 18px 20px 0; }
  .hub-main { padding: 36px 20px 64px; }
  .hub-doors,
  .hub-doors.doors-n7 { grid-template-columns: 1fr; }
  .hub-user__meta { display: none; }
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feat-card {
  border-radius: 22px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #1c1e26 0%, #13141a 72%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.feat-card.is-off {
  opacity: 0.62;
  background: linear-gradient(160deg, #17181d 0%, #101115 72%);
}

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

.feat-ver {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.feat-status {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(232, 184, 109, 0.4);
  color: var(--gold);
}

.feat-status.is-wait {
  border-color: rgba(255, 255, 255, 0.16);
  color: #8a8378;
}

.feat-lead {
  margin: 0 0 18px;
  color: #b8b0a4;
  font-size: 14px;
  line-height: 1.6;
}

.feat-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.feat-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #e8e2d6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.feat-card.is-off .feat-list li::before {
  background: #6d6a64;
}

.feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.feat-chip {
  font-size: 12px;
  color: #d7d0c4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}

.feat-chip.is-ext {
  color: #8aa7b8;
  border-color: rgba(155, 183, 201, 0.28);
}

.feat-go,
.feat-wait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  align-self: flex-start;
}

.feat-go {
  background: #e8b86d;
  color: #1a140c;
}

.feat-go:hover { filter: brightness(1.06); }

.feat-wait {
  background: transparent;
  color: #8a8378;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
}
