:root {
  --bg: #f2eddc;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(64, 79, 66, 0.14);
  --text: #273629;
  --muted: #667264;
  --green: #0f5f57;
  --gold: #b98938;
  --gold-soft: rgba(185, 137, 56, 0.16);
  --shadow: 0 20px 44px rgba(44, 49, 42, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(180deg, #f5f0e5 0%, var(--bg) 25%, #efe8d6 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
}

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

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

.page-shell {
  width: min(100%, 640px);
  margin: 0 auto;
  min-height: 100vh;
  overflow: clip;
}

.design-panel,
.support-panel {
  background: #f4efdf;
}

.design-panel__image {
  width: 100%;
  height: auto;
  display: block;
}

.support-panel {
  padding-top: 5%;
  /* 底部给表单溢出留空间 */
  /* padding-bottom: 5%; */
}

.support-panel h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.support-panel h1::before,
.support-panel h1::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--green-soft);
}

.form-panel {
  position: relative;
  margin: 0;
  max-width: 500px;
  margin-inline: auto;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(64, 79, 66, 0.1);
  background:
    radial-gradient(circle at left top, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.66) 42%, rgba(240, 250, 241, 0.8) 100%);
  box-shadow: 0 14px 34px rgba(44, 49, 42, 0.06);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform: scale(0.93);
  transform-origin: top center;
}

.form-panel::before,
.form-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -16% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 108, 90, 0.18), rgba(20, 108, 90, 0.08) 52%, transparent 70%);
  pointer-events: none;
}

.form-panel::after {
  inset: auto auto -28% -12%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(185, 137, 56, 0.12), rgba(185, 137, 56, 0.06) 52%, transparent 72%);
}


.form-panel h2 {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(1.22rem, 5vw, 1.6rem);
  line-height: 1.15;
  color: var(--text);
}

.form-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.form-error,
.form-success {
  border-radius: 16px;
  padding: 7px 11px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.form-error__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  flex: none;
}

.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #047857;
}

.field {
  display: grid;
  gap: 3px;
}

.field span {
  color: var(--green);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.field--captcha {
  gap: 5px;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 5px;
  align-items: center;
}

.captcha-refresh {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.captcha-img {
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(64, 79, 66, 0.14);
  background: #fff;
}

.captcha-refresh:hover .captcha-img,
.captcha-refresh:active .captcha-img {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(15, 95, 87, 0.06);
}

.captcha-refresh:focus-visible {
  outline: 2px solid rgba(15, 95, 87, 0.35);
  outline-offset: 3px;
  border-radius: 14px;
}

input,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(64, 79, 66, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 66px;
}

input:focus,
textarea:focus {
  border-color: rgba(15, 95, 87, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 95, 87, 0.08);
}

.submit-btn,
.bottom-bar__cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold), #9a6a24);
  color: #fffaf0;
  box-shadow: 0 16px 28px rgba(154, 106, 36, 0.18);
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  padding-block: 10px;
}

.submit-btn:hover,
.bottom-bar__cta:hover {
  transform: translateY(-1px);
}

.bottom-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
  z-index: 10;
}

.bottom-bar__cta {
  width: min(100%, 420px);
  pointer-events: auto;
}

.bottom-bar.is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.bottom-bar {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

@media (min-width: 700px) {
  .page-shell {
    width: 640px;
    margin: 0 auto;
  }
  .support-panel__overlay {
    top: 25%;
  }
}

@media (max-width: 699px) {

  .form-panel {
    transform: scale(0.9);
  }
    /* .support-panel {
        padding-bottom: 16%;
    } */
}
