:root {
  --bg: #211d18;
  --panel: #302a23;
  --panel-soft: #3a332b;
  --paper: #fffdf9;
  --ink: #201c18;
  --text: #f8f4ec;
  --muted: #c9c0b3;
  --gold: #d6b06a;
  --gold-line: rgba(214, 176, 106, 0.42);
  --purple: #762b92;
  --danger: #ffb3ad;
  --success: #b7e4c7;
  --radius: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 8% 5%, rgba(118, 43, 146, 0.24), transparent 30%), var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.cooperation-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(33, 29, 24, 0.92);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 240px; height: 58px; object-fit: contain; object-position: left center; }
.back-link { padding: 10px 16px; border: 1px solid var(--gold-line); border-radius: 999px; color: var(--gold); font-size: 14px; }

.cooperation-main {
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(560px, 1.24fr);
  gap: clamp(28px, 4vw, 64px);
  min-height: calc(100vh - 78px);
  padding: clamp(38px, 5vw, 76px) clamp(18px, 4vw, 64px);
}

.cooperation-intro { display: grid; align-content: start; gap: 30px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; letter-spacing: 0.12em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(38px, 4.2vw, 68px); line-height: 1.08; }
h2 { margin-bottom: 10px; font-size: clamp(30px, 3vw, 46px); }
.intro-text, .form-heading p, .submit-row p { color: var(--muted); line-height: 1.8; }

.contact-list { display: grid; gap: 12px; }
.contact-list article { padding: 22px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.045); }
.contact-list span { display: block; margin-bottom: 10px; color: var(--gold); font-size: 13px; }
.contact-list a, .contact-list strong { font-size: clamp(18px, 2vw, 27px); font-weight: 400; line-height: 1.45; }

.intro-note { position: relative; min-height: 250px; overflow: hidden; border-radius: var(--radius); }
.intro-note::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(20, 16, 12, 0.9)); content: ""; }
.intro-note img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.intro-note div { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; }
.intro-note span { color: var(--gold); font-size: 13px; }
.intro-note p { margin: 8px 0 0; color: var(--text); line-height: 1.65; }

.form-panel { align-self: start; padding: clamp(24px, 3vw, 42px); border: 1px solid var(--gold-line); border-radius: 22px; background: linear-gradient(145deg, var(--panel), var(--panel-soft)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26); }
.form-heading { margin-bottom: 28px; }
.form-heading p:last-child { margin-bottom: 0; }
.lead-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lead-form label { display: grid; gap: 8px; }
.lead-form label > span { color: var(--text); font-size: 14px; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; border: 1px solid transparent; border-radius: 10px; background: var(--paper); color: var(--ink); }
.lead-form input, .lead-form select { min-height: 50px; padding: 0 14px; }
.lead-form textarea { min-height: 112px; resize: vertical; padding: 14px; line-height: 1.65; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--gold); outline: 3px solid rgba(214, 176, 106, 0.18); }
.lead-form [aria-invalid="true"] { border-color: var(--danger); }
.lead-form small { min-height: 18px; color: var(--danger); font-size: 12px; }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 8px; }
.submit-row p { max-width: 460px; margin-bottom: 0; font-size: 13px; }
.submit-row button { display: inline-flex; min-width: 170px; min-height: 50px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold), #f2d69e); color: var(--ink); cursor: pointer; }
.submit-row button:focus-visible, .back-link:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.submit-row button:disabled { cursor: wait; opacity: 0.72; }
.loading-dot { display: none; width: 15px; height: 15px; border: 2px solid rgba(32, 28, 24, 0.26); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.is-submitting .loading-dot { display: block; }
.form-status { min-height: 24px; margin: 0; color: var(--success); font-size: 14px; }
.form-status.is-error { color: var(--danger); }

.site-footer { display: flex; justify-content: space-between; gap: 28px; padding: 28px clamp(18px, 4vw, 64px); border-top: 1px solid var(--gold-line); background: #17130f; color: var(--muted); font-size: 13px; }
.site-footer strong, .site-footer span { display: block; margin-bottom: 7px; font-weight: 400; }
.records { text-align: right; }
.records a { color: var(--gold); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .cooperation-main { grid-template-columns: 1fr; }
  .cooperation-intro { grid-template-columns: 1fr 1fr; }
  .cooperation-intro > div:first-child { grid-column: 1 / -1; }
  .intro-note { min-height: 100%; }
}

@media (max-width: 720px) {
  .brand span { display: none; }
  .brand-logo { width: 184px; height: 46px; }
  .cooperation-main { padding-top: 34px; }
  .cooperation-intro, .form-grid { grid-template-columns: 1fr; }
  .intro-note { min-height: 240px; }
  .submit-row, .site-footer { align-items: stretch; flex-direction: column; }
  .submit-row button { width: 100%; }
  .records { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
