:root {
  --navy: #001e40;
  --navy-deep: #001b3c;
  --text: #43474f;
  --red: #b7102a;
  --red-warn: #ba1a1a;
  --red-warn-text: #93000a;
  --blue-soft: #e7eeff;
  --blue-tint: #f0f3ff;
  --warn-bg: #ffdad6;
  --success-bg: #e8f5e9;
  --success-border: #4caf50;
  --success-text: #2e7d32;
  --border: #c3c6d1;
  --placeholder: #6b7280;
  --page-bg: #f9f9ff;
  --white: #ffffff;
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  background: var(--page-bg);
  min-height: 100vh;
}

/* —— 通用标题与正文 —— */
.section-pad {
  padding: 32px 16px;
}

.page-title {
  color: var(--navy);
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.64px;
  margin-bottom: 16px;
}

.body-text {
  color: var(--text);
  font-size: 18px;
  line-height: 28px;
}

.body-text + .body-text {
  margin-top: 16px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 32px 0 0;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 0 16px 48px;
}

/* —— 带左边线与序号的区块 —— */
.block {
  position: relative;
  border-left: 3px solid var(--navy);
  padding-left: 20px;
}

.block-num {
  position: absolute;
  right: 0;
  top: -5px;
  color: var(--navy-deep);
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  opacity: 0.2;
  pointer-events: none;
}

.block-title {
  color: var(--navy);
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  margin-bottom: 24px;
}

.block-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* —— 活动概述 —— */
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 16px;
}

.info-card .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-card .icon img {
  width: 18px;
  height: 18px;
}

.info-label {
  color: var(--navy-deep);
  font-size: 14px;
  line-height: 20px;
  opacity: 0.7;
}

.info-value {
  color: var(--navy-deep);
  font-size: 18px;
  line-height: 28px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
}

.meta-row .icon-cal {
  width: 18px;
  height: 20px;
  flex-shrink: 0;
}

.meta-row .icon-cal img {
  width: 18px;
  height: 20px;
}

.meta-row .icon-loc {
  width: 16px;
  height: 20px;
  flex-shrink: 0;
}

.meta-row .icon-loc img {
  width: 16px;
  height: 20px;
}

.meta-label {
  color: var(--navy-deep);
  font-size: 16px;
  line-height: 24px;
}

.meta-value {
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
}

/* —— 参赛规则 —— */
.req-box {
  background: rgba(0, 51, 102, 0.1);
  border: 1px solid rgba(0, 30, 64, 0.1);
  border-radius: 8px;
  padding: 17px;
}

.req-title {
  color: var(--navy);
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 8px;
}

.req-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
}

.req-list li + li {
  margin-top: 4px;
}

.group-title {
  color: var(--navy);
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 12px;
}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 12px;
}

.group-item.is-dark {
  background: var(--navy);
}

.group-name {
  color: var(--navy-deep);
  font-size: 16px;
  line-height: 24px;
}

.group-limit {
  color: var(--red);
  font-size: 12px;
  line-height: 18px;
  opacity: 0.8;
}

.group-date {
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.group-item.is-dark .group-name {
  color: var(--white);
}

.group-item.is-dark .group-limit {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.group-item.is-dark .group-date {
  color: var(--white);
}

.rules-extra {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* —— 安全须知 —— */
.warn-box {
  display: flex;
  gap: 16px;
  background: var(--warn-bg);
  border-left: 7px solid var(--red-warn);
  border-radius: 12px;
  padding: 20px;
}

.warn-icon {
  width: 27px;
  height: 24px;
  flex-shrink: 0;
}

.warn-icon img {
  width: 27px;
  height: 24px;
}

.warn-title {
  color: var(--red-warn);
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 4px;
}

.warn-text {
  color: var(--red-warn-text);
  font-size: 16px;
  line-height: 24px;
}

.tip-card {
  background: var(--blue-tint);
  border-radius: 8px;
  padding: 16px;
}

.tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tip-icon-eq {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.tip-icon-eq img {
  width: 12px;
  height: 12px;
}

.tip-icon-bh {
  width: 13px;
  height: 9px;
  flex-shrink: 0;
}

.tip-icon-bh img {
  width: 13px;
  height: 9px;
}

.tip-title {
  color: var(--navy-deep);
  font-size: 16px;
  line-height: 24px;
}

.tip-text {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

/* —— 报名方案 —— */
.plan-card {
  background: var(--blue-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-time {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-clock {
  width: 42px;
  height: 51px;
  flex-shrink: 0;
}

.plan-clock img {
  width: 42px;
  height: 51px;
}

.plan-time-label {
  color: var(--navy-deep);
  font-size: 14px;
  line-height: 20px;
  opacity: 0.7;
}

.plan-time-value {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.free-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 8px;
  padding: 10px 16px;
}

.free-banner .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.free-banner .icon img {
  width: 18px;
  height: 18px;
}

.free-banner p {
  color: var(--success-text);
  font-size: 14px;
  line-height: 20px;
}

.plan-note-title {
  color: var(--navy);
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 12px;
}

.plan-steps {
  list-style: decimal;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.plan-steps li + li {
  margin-top: 8px;
}

/* —— 报名表单 —— */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: var(--navy);
  font-size: 16px;
  line-height: 24px;
}

.field input,
.field select {
  width: 100%;
  height: 49px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 17px;
  font-size: 16px;
  font-family: inherit;
  color: var(--navy-deep);
  background: var(--white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder {
  color: var(--placeholder);
}

.field input:focus,
.field select:focus {
  border-color: var(--navy);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 40px;
  color: var(--navy-deep);
}

.select-wrap select:invalid {
  color: var(--navy-deep);
}

.select-arrow {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-arrow img {
  width: 10px;
  height: 6px;
}

.captcha-wrap {
  display: flex;
  align-items: stretch;
  height: 49px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.captcha-wrap:focus-within {
  border-color: var(--navy);
}

.captcha-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
}

.captcha-wrap input:focus {
  border: none !important;
  outline: none;
}

.captcha-img {
  width: 110px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
  object-fit: cover;
  background: #f5f7fa;
}

.form-actions {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
  font-family: inherit;
  line-height: 28px;
  cursor: pointer;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit:active {
  opacity: 0.9;
}

.form-agree {
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.form-contact {
  margin-top: 24px;
  padding-top: 33px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-badge {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-badge img {
  width: 10px;
  height: 10px;
}

.contact-label {
  color: var(--navy-deep);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.6;
}

.contact-phones {
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.contact-phones a {
  display: block;
}

.contact-tag {
  color: var(--red);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

/* —— 页脚 —— */
.footer {
  background: var(--navy);
  padding: 48px 16px;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 20px;
}

.footer p + p {
  margin-top: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 30, 64, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 403px) {
  body {
    background: #e8ecf4;
  }

  .page {
    box-shadow: 0 0 40px rgba(0, 30, 64, 0.08);
  }
}
