:root {
  color-scheme: dark;
  --bg: #08100e;
  --panel: #101b18;
  --line: rgba(255,255,255,.14);
  --text: #f5f7ef;
  --muted: #a9b5aa;
  --gold: #f1c75b;
  --green: #24b36b;
  --red: #d94b42;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(36,179,107,.28), transparent 32rem),
    linear-gradient(135deg, #08100e 0%, #141715 52%, #22110f 100%);
  min-height: 100vh;
}

button, input, select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  max-width: 760px;
}

.lead {
  color: #d9dfd7;
  font-size: 20px;
  line-height: 1.75;
  max-width: 700px;
  margin: 24px 0 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary, .ghost, .composer button, .staff-chat-head button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.primary {
  color: #11160f;
  background: linear-gradient(135deg, var(--gold), #ffe79a);
}

.ghost {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.poster {
  position: relative;
  min-height: 600px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(217,75,66,.72), transparent 38%),
    linear-gradient(25deg, rgba(36,179,107,.7), transparent 42%),
    linear-gradient(145deg, #13251f 0%, #09100e 55%, #2b1710 100%);
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
  padding: 28px;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 70px 28px 28px;
  border: 2px solid rgba(245,247,239,.36);
  border-radius: 50% 50% 42% 42%;
}

.poster-ring {
  position: absolute;
  width: 250px;
  aspect-ratio: 1;
  right: -62px;
  top: 80px;
  border: 28px solid rgba(241,199,91,.42);
  border-radius: 50%;
}

.poster-top, .poster-foot {
  position: relative;
  z-index: 1;
  color: #fff7d9;
  font-weight: 900;
}

.poster-top {
  font-size: 15px;
}

.poster-ball {
  position: absolute;
  left: 36px;
  top: 128px;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #101511;
  font-size: 32px;
  font-weight: 1000;
  background:
    linear-gradient(90deg, transparent 46%, rgba(0,0,0,.12) 47% 53%, transparent 54%),
    linear-gradient(#fff, #d7f0df);
}

.commission {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 86px;
  z-index: 1;
}

.commission span {
  display: block;
  color: #dfe9df;
  font-size: 28px;
  font-weight: 900;
}

.commission strong {
  display: block;
  color: var(--gold);
  font-size: clamp(106px, 18vw, 156px);
  line-height: .9;
  letter-spacing: 0;
}

.poster-foot {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.24);
}

.brand-band, .info-grid {
  margin-top: 28px;
}

.brand-band h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.brands {
  display: grid;
  grid-template-columns: repeat(9, minmax(74px, 1fr));
  gap: 10px;
}

.brands span, .info-grid article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.065);
  border-radius: 8px;
}

.brands span {
  min-height: 52px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-grid article {
  padding: 22px;
}

.info-grid h3 {
  margin: 0 0 10px;
  color: var(--gold);
}

.info-grid p {
  margin: 0;
  color: #d7ded5;
  line-height: 1.7;
}

.float-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  color: #11160f;
  font-weight: 900;
  background: var(--gold);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.chat-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end;
  padding: 18px;
  background: rgba(0,0,0,.38);
}

.chat-shell.standalone {
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(36,179,107,.24), transparent 30rem),
    linear-gradient(135deg, #08100e 0%, #141715 54%, #22110f 100%);
}

.chat-card {
  width: min(420px, 100%);
  height: min(680px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1715;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.chat-head, .staff-chat-head, .session-list header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-head small, .staff-chat-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  font-size: 24px;
}

.join {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.join .primary {
  grid-column: 1 / -1;
  width: 100%;
}

input, select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 0 12px;
}

select option {
  color: #101511;
}

.messages {
  padding: 16px;
  overflow: auto;
}

.msg {
  max-width: 82%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.msg.staff, .msg.visitor.self {
  margin-left: auto;
  background: rgba(241,199,91,.18);
  border: 1px solid rgba(241,199,91,.35);
}

.msg.system {
  max-width: 100%;
  text-align: center;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
}

.msg img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

.msg small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.emoji-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.emoji-row button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: 19px;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.file-btn, .composer button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #101511;
  background: #dfe6d7;
  font-weight: 900;
}

.composer button {
  background: var(--gold);
}

.staff-page {
  background: #0c1110;
}

.staff-layout {
  height: 100vh;
  display: grid;
  grid-template-columns: 340px 1fr;
}

.session-list, .staff-chat {
  min-height: 0;
  border-right: 1px solid var(--line);
}

.session-list {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0f1715;
}

.session-list h1 {
  font-size: 22px;
}

#sessions {
  overflow: auto;
  padding: 10px;
}

.session-item {
  width: 100%;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.session-item.active {
  border-color: rgba(241,199,91,.7);
}

.session-item strong, .session-item small {
  display: block;
}

.session-item small {
  color: var(--muted);
  margin-top: 4px;
}

.staff-chat {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.staff-chat-head button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.staff-messages {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

@media (max-width: 860px) {
  .site {
    width: min(100% - 22px, 680px);
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .poster {
    min-height: 460px;
  }

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

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

  .chat-shell {
    place-items: stretch;
    padding: 0;
  }

  .chat-card {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .staff-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 58vh;
  }

  .session-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
