/* ====================================================
   峡州M.I.X 调酒大赛 — 公共样式
   设计稿宽度：430px，1rem = 设计稿 1px
   ==================================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* 以 430px 为设计稿基准，视口宽度 / 430 * 16 = 1rem 对应设计稿 1px */
  font-size: calc(100vw / 430 * 16);
}

@media (min-width: 430px) {
  html {
    font-size: 16px;
  }
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #085260;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Page wrapper ---- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, #34aebc 0%, #0d7a7a 40%, #085260 100%);
  background-size: 25rem 25rem, cover;
  overflow-x: hidden;
}

/* ---- Header ---- */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
}

.logo-seal {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.03125rem;
  flex-shrink: 0;
}

.logo-text .cn {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.125rem;
}

.logo-text .en {
  font-size: 0.5rem;
  letter-spacing: 0.125rem;
  opacity: 0.7;
  margin-top: 0.125rem;
}

.brand-row {
  display: flex;
  gap: 1.125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  width: 100%;
  justify-content: center;
}

.brand-item {
  text-align: center;
}

.brand-item .b-cn {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.0625rem;
}

.brand-item .b-en {
  font-size: 0.4375rem;
  letter-spacing: 0.0625rem;
  opacity: 0.65;
}

.brand-item .b-sub {
  font-size: 0.375rem;
  opacity: 0.5;
}

/* ---- Banner / Title ---- */
.banner {
  width: 100%;
  padding: 0.5rem 1.25rem 0.75rem;
}

.banner-title-cn {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.125rem;
  text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.35);
}

.banner-title-en {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.125rem;
  opacity: 0.85;
  margin-top: 0.3125rem;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---- Section heading ---- */
.section-heading {
  text-align: center;
  padding: 0.375rem 1.25rem 0.25rem;
  width: 100%;
}

.section-heading h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25rem;
  position: relative;
  display: inline-block;
}

.section-heading h2::before,
.section-heading h2::after {
  content: '—';
  margin: 0 0.5rem;
  opacity: 0.55;
}

.section-heading p {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-top: 0.375rem;
  line-height: 1.6;
}

/* ---- Intro text ---- */
.intro-text {
  width: 100%;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.9;
  opacity: 0.85;
}

/* ---- Form ---- */
.form-body {
  width: 100%;
  padding: 0.625rem 1.25rem;
  flex: 1;
}

.field-group {
  margin-bottom: 0.8125rem;
}

.row-2 {
  display: flex;
  gap: 0.75rem;
}

.row-2 .field-group {
  flex: 1;
}

.field-input,
.field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0.625rem;
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field-input:focus,
.field-textarea:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.17);
}

.field-textarea {
  resize: none;
  line-height: 1.65;
}

/* ---- Province / City cascading select ---- */
.field-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.11) 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='rgba(255,255,255,0.6)' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
  background-size: 0.75rem 0.5rem, auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.625rem;
  padding: 0.8125rem 2.25rem 0.8125rem 1rem;
  font-size: 0.9375rem;
  color: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.field-select:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background-color: rgba(255, 255, 255, 0.17);
}

/* placeholder state */
.field-select.unset {
  color: rgba(255, 255, 255, 0.42);
}

.field-select option {
  background: #0b6464;
  color: #fff;
}

/* ---- Upload boxes ---- */
.upload-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.upload-box {
  flex: 1;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-box input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 1.75rem;
  opacity: 0.7;
}

.upload-label {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.upload-box .preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.625rem;
}

/* ---- Checkbox ---- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
  align-items: center;
  justify-content: center;
}

.checkbox-row input[type=checkbox] {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
  accent-color: #3dd6d6;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.8125rem;
  opacity: 0.85;
  line-height: 1.6;
  cursor: pointer;
}

/* ---- Buttons ---- */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #3dd6d6 0%, #28b5b5 100%);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 2.5rem;
  padding: 0.875rem 0;
  cursor: pointer;
  letter-spacing: 0.25rem;
  box-shadow: 0 0.25rem 1.125rem rgba(0, 0, 0, 0.2);
  transition: opacity .2s, transform .1s;
}

.btn-primary:active {
  opacity: 0.82;
  transform: scale(0.98);
}

.btn-orange {
  background: linear-gradient(135deg, #f07030 0%, #e04f1a 100%);
}

.btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 2.5rem;
  padding: 0.875rem 0;
  cursor: pointer;
  letter-spacing: 0.25rem;
  transition: background .2s;
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.2);
}

.btn-row {
  display: flex;
  gap: 0.75rem;
}

.btn-row .btn-primary,
.btn-row .btn-secondary {
  flex: 1;
}

/* ---- Action area ---- */
.action-area {
  width: 100%;
  padding: 0.625rem 1.25rem 1.125rem;
}

/* ---- Error messages ---- */
.error-msg {
  color: #ffaaaa;
  font-size: 0.75rem;
  margin-top: 0.3125rem;
  padding-left: 0.25rem;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ---- Toast ---- */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.85);
  }
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 0.75rem 1.625rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.toast.show {
  animation: toast-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast.hide {
  animation: toast-out 0.22s ease-in forwards;
}

/* ---- Footer ---- */
.footer {
  width: 100%;
  padding: 0.625rem 1.25rem 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  opacity: 0.55;
}

.footer img {
  width: 14.25rem;
  margin-top: 0.4rem;
}

/* ---- Mentor block ---- */
.mentor-block {
  width: 100%;
  margin-bottom: 1.125rem;
}

.mentor-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.125rem;
  margin-bottom: 0.625rem;
  border-left: 3px solid #3dd6d6;
  padding-left: 0.5rem;
  opacity: 0.95;
}