@import url('https://fonts.googleapis.cn/css2?family=Bebas+Neue&display=swap');

:root {
  --ink: #14161c;
  --ink-2: #1d2029;
  --ink-3: #262a35;
  --gold: #c8a45c;
  --gold-light: #e3c98f;
  --orange: #e8772e;
  --text: #f5f1e8;
  --text-2: #a7a294;
  --line: rgba(200, 164, 92, .22);
  --line-strong: rgba(200, 164, 92, .45);
  --danger: #e05a4f;
  --ok: #5fb878;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 任何带 hidden 属性的元素强制隐藏（防止组件自身 display 声明盖过 UA 默认的 [hidden] 规则） */
[hidden] { display: none !important; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

@media (min-width: 600px) {
  body { background: #0c0d11; }
  .page { box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
}

/* ---------- 品牌栏 ---------- */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 10px;
  background: linear-gradient(180deg, rgba(200, 164, 92, .06), transparent);
}
.brand-logo { display: block; object-fit: contain; }
.brand-company { width: 34%; height: 26px; }
.brand-project { width: 38%; height: 72px; }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  margin: 6px 14px 0;
  padding: 30px 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(200, 164, 92, .16), transparent 60%),
    linear-gradient(160deg, #20232d 0%, #171920 70%);
  overflow: hidden;
  text-align: center;
}
.hero-court-lines { position: absolute; inset: 0; pointer-events: none; opacity: .05; }
.hero-court-lines::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 230px; height: 230px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--gold-light);
  border-radius: 50%;
}
.hero-court-lines::after {
  content: '';
  position: absolute;
  left: 50%; top: -10%;
  width: 2px; height: 120%;
  background: var(--gold-light);
}
.hero-badge {
  position: relative;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold-light);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 16px;
}
.hero-title { display: flex; align-items: baseline; justify-content: center; gap: 10px; position: relative; }
.title-yu {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-court { font-size: 30px; font-weight: 800; letter-spacing: 2px; color: var(--text); }
.hero-sub {
  position: relative;
  margin-top: 10px;
  font-size: 17px;
  letter-spacing: 6px;
  text-indent: 6px;
  color: var(--text);
  font-weight: 600;
}
.hero-tags { position: relative; display: flex; gap: 9px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}
.tag-gold { color: var(--gold); border-color: var(--line-strong); font-weight: 700; }
.tag-orange { color: #f2a06b; border-color: rgba(232, 119, 46, .45); font-weight: 700; }

/* ---------- 信息卡 ---------- */
.info-cards { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.info-ico {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(200, 164, 92, .12);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
.info-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.info-text em { display: block; font-style: normal; font-size: 11px; color: var(--text-2); margin-bottom: 1px; }

/* ---------- 报名卡 + Tab ---------- */
.signup-card { margin: 4px 14px 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs { position: relative; display: flex; border-bottom: 1px solid var(--line); }
.tab {
  flex: 1;
  background: none;
  border: 0;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: color .2s var(--ease);
  font-family: inherit;
}
.tab.active { color: var(--gold); }
.tab-indicator {
  position: absolute;
  bottom: 0; left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: translateX(0);
  transition: transform .22s var(--ease);
}
.tabs.team .tab-indicator { transform: translateX(0); }
.tabs.person .tab-indicator { transform: translateX(100%); }

/* ---------- 表单 ---------- */
.form { display: none; padding: 18px 16px 20px; flex-direction: column; gap: 14px; }
.form.active { display: flex; animation: fadeIn .18s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 12px; }
.label { font-size: 14px; color: var(--text); font-weight: 600; }
.label i { color: var(--gold); font-style: normal; margin-left: 3px; }

input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px; /* 防 iOS 聚焦缩放，不得小于 16px */
  font-family: inherit;
  padding: 0 13px;
  height: 46px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
textarea { height: auto; padding: 11px 13px; resize: none; }
input::placeholder, textarea::placeholder { color: #6c685e; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .14);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a45c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
select:invalid, select.has-placeholder { color: #6c685e; }
select option { background: var(--ink-2); color: var(--text); }
select option[value=''] { color: #6c685e; }

.field .err { font-size: 12px; color: var(--danger); min-height: 0; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { animation: shake .28s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.form-tip { font-size: 12px; color: var(--text-2); text-align: center; margin-top: -4px; }

/* ---------- 按钮 ---------- */
.btn-primary {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #201a0c;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s var(--ease), filter .18s var(--ease);
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }
.btn-ghost {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
}
.btn-ghost:active { transform: scale(.98); }

/* ---------- 底部 ---------- */
.footer { text-align: center; padding: 8px 24px 34px; }
.footer-prize { font-size: 15px; color: var(--text-2); margin-bottom: 10px; }
.footer-prize b {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--orange);
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0 2px;
}
.footer-note { font-size: 11px; color: #7b7668; line-height: 1.7; margin-bottom: 10px; }
.footer-host { font-size: 12px; color: var(--text-2); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  display: grid; place-items: center;
  padding: 30px;
  z-index: 100;
  animation: maskIn .18s var(--ease);
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 340px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 28px 22px 22px;
  text-align: center;
  animation: popIn .22s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-check {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(200, 164, 92, .14);
  border: 2px solid var(--gold);
  position: relative;
}
.modal-check::after {
  content: '';
  position: absolute;
  left: 21px; top: 15px;
  width: 16px; height: 26px;
  border: solid var(--gold);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}
.modal-check.warn { background: rgba(232, 119, 46, .12); border-color: var(--orange); }
.modal-check.warn::after {
  left: 29px; top: 16px; width: 0; height: 26px;
  border: 0;
  background: var(--orange);
  width: 3px;
  transform: none;
  border-radius: 2px;
}
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal-desc { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn-primary { height: 46px; font-size: 15px; letter-spacing: 1px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 70px;
  transform: translateX(-50%);
  background: rgba(20, 22, 28, .95);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  z-index: 200;
  max-width: 84%;
  text-align: center;
  animation: toastIn .2s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.fade-up { animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
