:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #737782;
  --soft: #f5f6f8;
  --surface: rgba(255, 255, 255, 0.86);
  --solid: #ffffff;
  --line: rgba(17, 19, 24, 0.1);
  --blue: #2371ff;
  --cyan: #15b7d8;
  --green: #2fa560;
  --red: #d94b40;
  --gold: #d69b3f;
  --shadow: 0 22px 60px rgba(18, 24, 38, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef8f7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef8f7 0, #eef8f7 92px, rgba(238, 248, 247, 0.86) 132px, rgba(248, 250, 251, 0) 190px),
    linear-gradient(135deg, rgba(214, 155, 63, 0.14), transparent 28%),
    linear-gradient(225deg, rgba(21, 183, 216, 0.13), transparent 32%),
    linear-gradient(180deg, #fbfbfd 0%, var(--soft) 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: max(132px, calc(env(safe-area-inset-top) + 118px));
  background: linear-gradient(180deg, #eef8f7 0%, rgba(238, 248, 247, 0.95) 58%, rgba(238, 248, 247, 0) 100%);
  content: "";
  pointer-events: none;
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px 96px;
}

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: #101217;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  display: none;
}

.hero::before {
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.18) saturate(1.08) contrast(1.01);
  opacity: 0;
  animation: heroFade 8s infinite;
}

.hero-slide-a {
  object-position: center;
  opacity: 1;
}

.hero-slide-b {
  object-position: center;
  animation-delay: 4s;
}

@keyframes heroFade {
  0%,
  45% {
    opacity: 1;
  }

  50%,
  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24)),
    linear-gradient(90deg, rgba(112, 59, 15, 0.08), rgba(0, 191, 255, 0.08));
  z-index: 2;
}

.hero-divider {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  box-shadow: 0 0 34px rgba(21, 183, 216, 0.9);
  z-index: 3;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 16px 0;
}

.brand,
.nav-pill {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.brand-text {
  font-size: 14px;
  font-weight: 800;
}

.nav-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-content {
  position: absolute;
  top: 26px;
  right: 20px;
  bottom: auto;
  left: 20px;
}

.eyebrow,
.action-kicker,
.dialog-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 11.4vw, 52px);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  max-width: 100%;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.45;
  white-space: nowrap;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.theme-tags,
.hero-divider {
  display: none;
}

.action-panel {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.action-card {
  position: relative;
  display: flex;
  min-height: 246px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(21, 28, 45, 0.1);
  backdrop-filter: blur(22px);
}

.action-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(214, 155, 63, 0.19), transparent 56%);
  pointer-events: none;
}

.party::before {
  background: linear-gradient(135deg, rgba(21, 183, 216, 0.18), transparent 56%);
}

.help-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.08);
  color: rgba(17, 19, 24, 0.7);
  font-weight: 900;
}

.action-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
  place-items: center;
  border-radius: 16px;
  background: #111318;
  color: #fff;
}

.action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.action-title-stack {
  display: flex;
  width: 62px;
  flex-direction: column;
  align-items: center;
  margin: 0 0 8px;
}

.action-kicker {
  width: 100%;
  color: var(--muted);
  text-align: center;
}

.action-card h2 {
  width: 100%;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.action-card p:not(.action-kicker) {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.action-link,
.submit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.action-card > .action-link {
  width: min(100%, 150px);
  margin: auto auto 0;
}

.booking > .action-link {
  margin-bottom: 24px;
}

.party .action-link {
  background: #111318;
}

.split-actions {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: auto;
}

.split-actions .action-link,
.split-actions .ghost-link {
  width: 100%;
  margin: 0 auto;
}

.ghost-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.quick-info {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.info-item,
.form-card,
.match-card,
.party-intro,
.player-card,
.wechat-card,
.notify-card,
.feature-story,
.game-choice-group {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--solid);
  box-shadow: 0 8px 26px rgba(21, 28, 45, 0.06);
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.info-item strong {
  flex: 0 0 auto;
  font-size: 15px;
}

.info-item span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.gallery-section,
.content-section,
.notify-section,
.form-section,
.party-page,
.pool-section {
  margin-top: 28px;
}

.section-head {
  padding: 0 4px 10px;
}

.section-head .eyebrow {
  color: var(--blue);
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.form-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f8fa;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  text-align: left;
}

input[type="datetime-local"] {
  text-align: left;
}

input[type="datetime-local"]::-webkit-date-and-time-value {
  min-width: 100%;
  text-align: left;
}

input[type="datetime-local"]::-webkit-datetime-edit {
  text-align: left;
}

input[type="file"] {
  padding: 13px 14px;
  line-height: 1.4;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  border-color: rgba(35, 113, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(35, 113, 255, 0.1);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-help {
  margin: -2px 0 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(35, 113, 255, 0.08);
  color: #4c5563;
  font-size: 12px;
  line-height: 1.6;
}

.sub-form-title {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.sub-form-title.inline {
  margin: 0;
  padding: 0;
  border: 0;
}

.game-choice-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(35, 113, 255, 0.1), rgba(255, 255, 255, 0.92) 82%);
  box-shadow: none;
}

.game-choice-note {
  margin: -6px 0 0;
  color: #5d6674;
  font-size: 12px;
  line-height: 1.55;
}

.game-choice-section {
  display: grid;
  gap: 8px;
}

.game-choice-section strong {
  color: #293241;
  font-size: 13px;
}

.game-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-chip {
  position: relative;
  display: inline-flex;
  gap: 0;
}

.game-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.game-chip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(35, 113, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #2f5a9d;
  font-size: 12px;
  font-weight: 900;
}

.game-chip input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(35, 113, 255, 0.22);
}

.photo-rail {
  display: grid;
  grid-auto-columns: 78%;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.photo-rail figure {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #111318;
  scroll-snap-align: start;
  box-shadow: 0 12px 34px rgba(21, 28, 45, 0.1);
}

.photo-rail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.photo-rail figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.feature-story {
  overflow: hidden;
}

.feature-story img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.feature-copy {
  padding: 18px;
}

.feature-story .eyebrow {
  color: var(--cyan);
}

.feature-story h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.feature-story p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.game-recommend-rail {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.game-recommend-card {
  min-height: 198px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(35, 113, 255, 0.12), rgba(255, 255, 255, 0.96) 76%);
  scroll-snap-align: start;
}

.game-recommend-card span {
  display: block;
  min-height: 16px;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.game-recommend-card strong {
  display: block;
  min-height: 24px;
  margin-bottom: 10px;
  font-size: 18px;
}

.game-recommend-card ol {
  counter-reset: game-rank;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #343944;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
}

.game-recommend-card li {
  counter-increment: game-rank;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
  min-width: 0;
}

.game-recommend-card li::before {
  content: counter(game-rank) ".";
  text-align: left;
}

.game-recommend-card.compact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(145deg, rgba(21, 183, 216, 0.13), rgba(255, 255, 255, 0.96) 76%);
}

.game-recommend-card.compact p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.notify-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.notify-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.notify-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.party-intro {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin-bottom: 12px;
}

.party-intro img {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
}

.party-intro strong,
.wechat-card strong,
.player-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.party-intro span,
.wechat-card span,
.player-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.party-form {
  margin-bottom: 0;
}

.match-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 26px rgba(21, 28, 45, 0.06);
}

.player-card {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-color: rgba(17, 19, 24, 0.08);
}

.player-card div {
  min-width: 0;
}

.player-card span,
.player-card time {
  display: block;
}

.player-card time {
  margin-top: 4px;
  color: rgba(17, 19, 24, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.player-male {
  background: linear-gradient(145deg, #eef6ff 0%, #ffffff 78%);
}

.player-female {
  background: linear-gradient(145deg, #fff0f6 0%, #ffffff 78%);
}

.player-private {
  background: linear-gradient(145deg, #f4f3ff 0%, #ffffff 78%);
}

.chat-button {
  width: 100%;
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.08);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.wechat-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-top: 12px;
}

.qr-frame {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 6px #fff;
}

.wechat-card img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.contact-dialog img {
  object-fit: contain;
}

.floating-contact {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  min-width: 72px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #111318;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.service-dialog,
.contact-dialog,
.chat-dialog {
  width: min(calc(100% - 28px), 390px);
  border: 0;
  border-radius: 26px;
  padding: 26px 22px 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.service-dialog::backdrop,
.contact-dialog::backdrop,
.chat-dialog::backdrop {
  background: rgba(8, 10, 14, 0.45);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.08);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.dialog-kicker {
  color: var(--blue);
}

.service-dialog h2,
.contact-dialog h2,
.chat-dialog h2 {
  margin-bottom: 10px;
  font-size: 25px;
}

.service-dialog p:last-child,
.contact-dialog p,
.chat-dialog p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-dialog img {
  display: block;
  width: min(100%, 230px);
  height: auto;
  margin: 14px auto 16px;
}

.contact-dialog .action-link {
  display: flex;
  width: min(100%, 260px);
  margin: 0 auto;
  text-align: center;
}

.secondary-phone {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chat-window {
  min-height: 82px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f7f8fa;
}

.chat-window p {
  display: inline-block;
  max-width: 84%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(20, 26, 40, 0.06);
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .action-card {
    min-height: 258px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .action-card h2 {
    font-size: 25px;
  }

  .action-link,
  .ghost-link {
    font-size: 12px;
  }
}

@media (min-width: 760px) {
  .app-shell {
    width: min(100%, 980px);
    padding: 22px 22px 110px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    right: 38px;
    bottom: 42px;
    left: 38px;
  }

  .hero-copy {
    max-width: 430px;
    font-size: 20px;
  }

  .action-card {
    min-height: 250px;
    padding: 24px;
  }

  .action-panel {
    margin-top: 14px;
  }

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

  .form-section,
  .party-page,
  .pool-section,
  .notify-section,
  .content-section,
  .gallery-section {
    width: min(100%, 660px);
    margin-right: auto;
    margin-left: auto;
  }

  .photo-rail {
    grid-auto-columns: 42%;
  }

  .feature-story {
    display: grid;
    grid-template-columns: 0.92fr 1fr;
    align-items: stretch;
  }

  .feature-story img {
    height: 100%;
    min-height: 260px;
  }
}
