/* hga030.win — 按皇冠体育界面配色。联系方式只改 /js/config.js */

:root {
  --nav: #3f271c;
  --tg: #1877ad;
  --tg-deep: #125f8c;
  --wa: #178a44;
  --cream: #ffffff;
  --cream-2: #efeae3;
  --card: #ffffff;
  --line: #e6dfd4;
  --gold: #c9a24a;
  --gold-2: #e4c36a;
  --gold-deep: #8c6a28;
  --red: #d23c3c;
  --text: #3a2e26;
  --muted: #7a6e62;
  --max: 520px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.splash-active {
  overflow: hidden;
}

html.skip-splash .splash {
  display: none !important;
}

html.skip-splash body.splash-active {
  overflow: auto;
}

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

img,
svg {
  display: block;
}

button,
input {
  font-family: inherit;
}

/* ---------- 开屏 ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(520px 280px at 50% 38%, rgba(201, 162, 74, 0.32), transparent 68%),
    linear-gradient(165deg, #5c3d2c 0%, #3f271c 52%, #2c1b14 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 340px;
  height: 180px;
  border-radius: 50%;
  background: rgba(228, 195, 106, 0.28);
  filter: blur(30px);
}

.splash-inner {
  position: relative;
  text-align: center;
  color: #f8f3ea;
  padding: 1rem;
}

.splash-logo {
  width: min(210px, 58vw);
  height: auto;
  margin: 0 auto 0.2rem;
  animation: crownIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.splash-title {
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: fadeUp 0.45s ease 0.06s both;
}

.splash-slogan {
  margin-top: 0.55rem;
  color: rgba(248, 243, 234, 0.9);
  font-size: 1rem;
  letter-spacing: 0.12em;
  animation: fadeUp 0.45s ease 0.14s both;
}

.splash-bar {
  width: 148px;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.splash-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #fff4d2 70%, var(--gold-2));
  animation: load 1.55s ease forwards;
}

@keyframes crownIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes load {
  to { width: 100%; }
}

/* ---------- 页头：logo 和标语同一块深棕 ---------- */
.mast {
  color: #f6efe4;
  background:
    radial-gradient(520px 200px at 18% 0%, rgba(228, 195, 106, 0.2), transparent 58%),
    linear-gradient(180deg, #5a3a28 0%, #3f271c 58%, #3a241b 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 1rem 0.2rem;
  padding-top: calc(0.72rem + env(safe-area-inset-top, 0px));
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 34px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text span {
  display: block;
  margin-top: 0.02rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 195, 106, 0.55);
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7c56a;
  box-shadow: 0 0 8px rgba(231, 197, 106, 0.8);
}

.board-head {
  padding: 0.35rem 1rem 1.15rem;
  text-align: center;
  background: transparent;
}

.board-head h1 {
  color: #f3e2b8;
  font-size: clamp(1.02rem, 4.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.wrap {
  width: min(100% - 1.25rem, var(--max));
  margin: 0 auto;
  padding: 0.9rem 0 1.8rem;
  padding-bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px));
}

.auto-banner {
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #5c4518;
  background: #f8efd2;
  border: 1px solid #e0c98a;
  border-radius: 8px;
}

.auto-banner a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
}

/* ---------- 开户表单 ---------- */
.open-form {
  padding: 0.95rem 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(74, 50, 40, 0.06);
}

.sheet-title {
  margin: 0 0 0.55rem;
  padding: 0.62rem 0.7rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.sheet-skip {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.form-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.field {
  display: block;
  margin-bottom: 0.7rem;
}

.field span {
  display: block;
  margin-bottom: 0.32rem;
  color: #5c4a3c;
  font-size: 0.82rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  background: #fffcf8;
  border: 1px solid #ddd4c8;
  border-radius: 8px;
  outline: none;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.22);
}

.field.is-invalid input {
  border-color: var(--red);
}

.form-status {
  min-height: 1.3rem;
  margin: 0.15rem 0 0.65rem;
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--red);
}

.crypto-pick,
.contact-pick {
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
}

.crypto-pick legend {
  width: 100%;
  margin-bottom: 0.4rem;
  color: #5c4a3c;
  font-size: 0.82rem;
  font-weight: 700;
}

.pick-crypto { color: var(--nav); }

.pick-crypto.is-on {
  background: var(--nav);
  border-color: var(--nav);
  color: #f3e2b8;
}

.crypto-pick.is-invalid .pick {
  border-color: var(--red);
}

.contact-pick legend {
  margin-bottom: 0.4rem;
  color: #5c4a3c;
  font-size: 0.82rem;
  font-weight: 700;
}

.pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.55rem 0.4rem;
  border: 2px solid #ddd4c8;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pick-tg,
.pick-wa {
  color: #fff;
  border-color: transparent;
}

.pick-tg {
  background: linear-gradient(180deg, var(--tg) 0%, var(--tg-deep) 100%);
}

.pick-wa {
  background: var(--wa);
}

.pick-tg.is-on,
.pick-wa.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold);
}

.ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.8rem;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.send .ico-wa { display: none; }

.send-tg { background: linear-gradient(180deg, var(--tg) 0%, var(--tg-deep) 100%); }

.send-wa { background: var(--wa); }

.send-wa .ico-tg { display: none; }
.send-wa .ico-wa { display: block; }

.send:active {
  transform: translateY(1px);
}

.send:focus-visible,
.field input:focus-visible,
.pick:focus-within,
.line-card:focus-visible,
.svc:focus-visible,
.channel:focus-visible,
.easy-link:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- 易记域名 ---------- */
.easy {
  margin-top: 0.9rem;
  padding: 0.7rem 0.75rem 0.65rem;
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  border-radius: 12px;
}

.easy-label {
  margin-bottom: 0.15rem;
  padding: 0.15rem 0.4rem 0.35rem;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.easy-plate {
  background: transparent;
  border-radius: 8px;
}

.easy-stage {
  display: grid;
  gap: 0.4rem;
}

.easy-link {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
}

.easy-role,
.easy-host {
  color: #fff;
}

.easy-role {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.easy-host {
  font-size: 1.05rem;
}

.easy-link.is-main {
  padding: 0.72rem 0.6rem;
  background: rgba(255, 255, 255, 0.16);
}

.easy-link.is-main .easy-host {
  font-size: 1.28rem;
}

.lines {
  margin-top: 0.95rem;
}

.lines h2 {
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: var(--nav);
  color: #f8f3ea;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.line-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.line-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--nav);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 12px rgba(74, 50, 40, 0.05);
}

.line-card:active {
  background: #f8efd2;
}

.service {
  scroll-margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 86px;
  padding: 0.75rem 0.45rem;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.svc .ico {
  width: 1.5rem;
  height: 1.5rem;
}

.svc-tg {
  background: linear-gradient(180deg, var(--tg) 0%, var(--tg-deep) 100%);
}

.svc-wa {
  background: linear-gradient(180deg, #1f9a4e 0%, var(--wa) 100%);
}

.channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  text-align: center;
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
  background: linear-gradient(180deg, var(--tg) 0%, var(--tg-deep) 100%);
  border-radius: 8px;
}

.channel span {
  min-width: 0;
}

.footer {
  margin-top: 1.1rem;
  text-align: center;
  color: #8d8174;
  font-size: 0.75rem;
}

.disclaimer {
  max-width: 26rem;
  margin: 0.35rem auto 0;
  line-height: 1.6;
  text-wrap: balance;
}

.copy-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
}

@media (min-width: 800px) {
  .board-head h1 {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    display: none !important;
  }

  body.splash-active {
    overflow: auto;
  }

  .splash-logo,
  .splash-title,
  .splash-slogan,
  .splash-bar span {
    animation: none;
    transition: none;
  }
}
