:root {
  color-scheme: light;
  --blue-950: #061d69;
  --cyan: #28e7ef;
  --text: #f5fbff;
  --muted: rgba(245, 251, 255, 0.74);
  --line: rgba(102, 218, 255, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #04164f;
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 100%, #075edc 0, #082d8d 30%, #061d69 72%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.phone-stage,
.home-stage {
  width: min(100%, 750px);
  margin: 0 auto;
}

.home-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #062778;
}

.home-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 750px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 42px 40px;
  align-content: start;
}

.home-title {
  display: block;
  width: 100%;
  height: auto;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "register register"
    "schedule talent"
    "schedule center"
    "live contact";
  gap: 12px;
}

.home-link {
  display: block;
  min-width: 0;
  border-radius: 18px;
}

.home-link img {
  display: block;
  width: 100%;
  height: auto;
}

.home-register {
  grid-area: register;
}

.home-schedule {
  grid-area: schedule;
}

.home-talent {
  grid-area: talent;
}

.home-center {
  grid-area: center;
}

.home-live {
  grid-area: live;
}

.home-contact {
  grid-area: contact;
}

.home-link:focus-visible,
.map-actions a:focus-visible,
.center-card a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.image-stack {
  background: var(--blue-950);
}

.image-stack img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-location {
  background-color: #06246f;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.location-inner {
  width: min(100% - 56px, 600px);
  margin: 0 auto;
  padding: 40px 0 58px;
  text-align: center;
}

.location-inner h1 {
  margin: 0 0 38px;
  color: #a9f8ff;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(82, 236, 255, 0.9);
}

.location-inner h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 28px;
  margin: 20px 0 8px;
  padding: 0 18px;
  border: 1px solid rgba(159, 237, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(90deg, #dffcff, #f7ffff 42%, #b5f5ff);
  color: #0d55c5;
  font-size: 14px;
  font-weight: 800;
}

.location-inner h3 {
  margin: 14px 0 5px;
  color: var(--cyan);
  font-size: 13px;
}

.location-inner p {
  margin: 0 auto 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
}

.map-actions {
  display: grid;
  gap: 14px;
  justify-content: center;
  margin: 20px 0 24px;
}

.map-actions a {
  display: block;
  width: min(330px, 64vw);
}

.map-actions img {
  display: block;
  width: 100%;
  height: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: min(88vw, 360px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 14px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-panel {
  width: min(100% - 28px, 720px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.login-card,
.config-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.login-card h1,
.config-card h1 {
  margin: 0 0 18px;
  font-size: 22px;
}

.admin-panel form {
  display: grid;
  gap: 14px;
}

.admin-panel label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.admin-panel input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #071744;
}

.admin-panel button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #27d9e5;
  color: #052066;
  cursor: pointer;
  font-weight: 700;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
}

.admin-actions button:last-child {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.config-card pre {
  overflow: auto;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.6;
}

.is-hidden {
  display: none;
}

.center-page {
  min-height: 100vh;
  padding: 42px 20px;
  background:
    linear-gradient(rgba(5, 26, 90, 0.72), rgba(5, 26, 90, 0.92)),
    radial-gradient(circle at 50% 0, #0a5ee2, #061d69 62%);
}

.center-card {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  min-height: calc(100vh - 84px);
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.center-card h1 {
  margin: 0;
  font-size: 28px;
}

.center-card p {
  margin: 0;
  color: var(--muted);
}

.center-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: #27d9e5;
  color: #052066;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 420px) {
  .home-panel {
    padding: 18px 22px 32px;
  }

  .home-grid {
    gap: 10px;
  }
}

@media (min-width: 751px) {
  body {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.28)),
      radial-gradient(circle at 50% 100%, #075edc 0, #082d8d 32%, #061d69 74%);
  }

  .home-stage,
  .phone-stage {
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.24);
  }
}
