/* Huamen factory application page */

:root {
  --ink: #111418;
  --ink-2: #1b2025;
  --ink-3: #262d33;
  --paper: #f6f3ec;
  --paper-2: #ede7da;
  --white: #ffffff;
  --line: rgba(17, 20, 24, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --gold: #b78a3e;
  --gold-soft: #d6b26c;
  --red: #b52b2b;
  --muted: #56636c;
  --muted-light: #c8c5bd;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
::selection { color: var(--white); background: var(--red); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.apply-page main {
  display: grid;
  grid-template-areas: "hero" "member" "benefits" "form" "process";
}
.apply-hero { grid-area: hero; }
.member-band { grid-area: member; }
.benefits-section { grid-area: benefits; }
.apply-form-section { grid-area: form; }
.process-section { grid-area: process; }
.apply-progress {
  position: fixed; z-index: 80; inset: 0 auto auto 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform-origin: left center; transform: scaleX(0); pointer-events: none;
}

.apply-header {
  position: fixed; z-index: 60; inset: 0 0 auto;
  color: var(--white);
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.9), rgba(11, 13, 16, 0.64));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.apply-header.scrolled {
  background: rgba(15, 18, 22, 0.97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  flex: 0 0 auto; border: 1px solid rgba(214, 178, 108, 0.78);
  color: var(--gold-soft); background: linear-gradient(135deg, rgba(183, 138, 62, 0.22), transparent 60%), var(--ink);
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28); pointer-events: none;
}
.brand-mark img {
  width: 32px; height: 32px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-name { min-width: 0; }
.brand-cn { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: 0.1em; white-space: nowrap; }
.brand-en { display: block; margin-top: 2px; font-family: var(--font-latin); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  position: relative; color: rgba(255, 255, 255, 0.92); font-size: 0.92rem;
  font-weight: 500; letter-spacing: 0.05em; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px;
  background: var(--gold-soft); transition: right 0.3s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-soft); }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.header-cta {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border: 1px solid rgba(214, 178, 108, 0.85); color: var(--gold-soft);
  font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.header-cta:hover { background: var(--gold-soft); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--white); cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle.open span { opacity: 0; }
.nav-toggle.open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-6px) rotate(-45deg); }

.apply-hero {
  position: relative; min-height: 92vh; display: grid; align-items: end;
  color: var(--white); overflow: hidden; background-color: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.56;
  transform: scale(1.02); animation: heroZoom 14s ease-out forwards;
}
.apply-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.92) 0%, rgba(7, 9, 12, 0.64) 52%, rgba(7, 9, 12, 0.3) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, 0.86) 0%, transparent 45%);
}
.hero-inner {
  position: relative; z-index: 2; width: min(1200px, 100% - 48px); margin: 0 auto;
  padding: 160px 0 80px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.5fr);
  gap: clamp(36px, 6vw, 96px); align-items: end;
}
.hero-kicker { margin-bottom: 20px; color: var(--gold-soft); font-family: var(--font-latin); font-size: 0.9rem; letter-spacing: 0.22em; text-transform: uppercase; }
.hero-title {
  margin: 0; font-family: var(--font-display); font-size: clamp(48px, 6vw, 78px);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.04em; text-wrap: balance;
}
.hero-sub { max-width: 600px; margin: 28px 0 0; color: rgba(255, 255, 255, 0.9); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; min-height: 50px;
  padding: 0 25px; border: 1px solid transparent; font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.04em; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold { color: var(--ink); background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost-light { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light { color: var(--gold-soft); border-color: rgba(214, 178, 108, 0.82); }
.btn-ghost-light:hover { background: rgba(214, 178, 108, 0.14); border-color: var(--gold-soft); }
.btn-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); }
.hero-note {
  align-self: end; padding: 20px 20px 16px 22px;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.68), rgba(7, 9, 12, 0.48));
  border-left: 1px solid rgba(214, 178, 108, 0.5);
  backdrop-filter: blur(6px);
}
.hero-note strong { display: block; color: var(--gold-soft); font-family: var(--font-display); font-size: 1.08rem; letter-spacing: 0.06em; }
.hero-note p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; line-height: 1.8; }

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.02); }
}

.member-band {
  position: relative; color: var(--white); background:
    linear-gradient(115deg, rgba(26, 20, 9, 0.98), rgba(48, 35, 15, 0.96) 58%, rgba(82, 54, 17, 0.94));
  border-top: 1px solid rgba(214, 178, 108, 0.35);
  border-bottom: 1px solid rgba(214, 178, 108, 0.35);
}
.member-band .wrap {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 28px; align-items: center;
  padding: 38px 0;
}
.member-seal {
  display: grid; place-items: center; width: 68px; height: 68px;
  border: 1px solid rgba(214, 178, 108, 0.72); color: var(--gold-soft);
  font-family: var(--font-display); font-size: 2rem; line-height: 1;
}
.member-seal img {
  width: 52px; height: 52px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.member-copy { min-width: 0; }
.member-copy .eyebrow, .eyebrow {
  display: block; margin-bottom: 10px; color: var(--gold); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.member-copy .eyebrow { color: var(--gold-soft); }
.member-copy h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.05em; }
.member-copy p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.94rem; line-height: 1.8; }
.member-cta .btn { min-height: 48px; padding: 0 20px; white-space: nowrap; }

.section { position: relative; padding: clamp(76px, 8vw, 120px) 0; overflow: hidden; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark { color: var(--white); background: #0d1014; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance;
}
.h2 .h2-latin, .h2-latin {
  display: block; margin-top: 12px; font-family: var(--font-latin); font-size: 0.42em;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.section-dark .h2-latin { color: var(--gold-soft); }

.benefit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.benefit-card { min-height: 270px; padding: 30px 30px 32px; background: var(--white); }
.benefit-card:hover { background: var(--paper-2); }
.benefit-index { display: block; color: var(--gold); font-family: var(--font-latin); font-size: 1.1rem; letter-spacing: 0.14em; }
.benefit-card h3 { margin: 42px 0 12px; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.8; }

.apply-layout {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(52px, 7vw, 110px); align-items: start;
}
.apply-copy { position: sticky; top: 110px; }
.apply-copy .eyebrow { margin-bottom: 16px; }
.apply-copy h2 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 4.3vw, 58px); font-weight: 600; line-height: 1.18; letter-spacing: -0.04em; }
.apply-copy > p { margin: 26px 0 0; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip > div { padding: 18px 12px 18px 0; }
.proof-strip > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.proof-strip strong { display: block; font-family: var(--font-latin); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--ink); }
.proof-strip span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.76rem; }
.apply-contact { display: grid; grid-template-columns: 70px 1fr; gap: 8px 12px; margin-top: 32px; color: var(--muted); font-size: 0.88rem; }
.apply-contact span { color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; }
.apply-contact a, .apply-contact b { color: var(--ink); font-weight: 600; }

.form-card {
  position: relative; padding: clamp(30px, 4vw, 50px); color: var(--ink);
  background:
    linear-gradient(180deg, rgba(214, 178, 108, 0.08), transparent 160px),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(17, 20, 24, 0.12);
}
.form-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold-soft), var(--red));
}
.form-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-seal {
  display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto;
  color: var(--gold); border: 1px solid rgba(183, 138, 62, 0.55);
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1;
}
.form-seal img { width: 42px; height: 42px; object-fit: contain; }
.form-heading h3 { margin: 0; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.04em; }
.form-heading p { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }
.form-heading p.is-referral { color: #8f6725; font-weight: 600; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; }
.field label i { color: var(--red); font-style: normal; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 0; outline: 0;
  background: var(--white); transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 138, 62, 0.14); }
.field input::placeholder { color: #77766f; }
.service-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.service-option {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0;
  padding: 0 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-option:hover { border-color: var(--gold); }
.service-option:has(input:checked) { border-color: var(--red); background: #fff4f1; }
.service-option input { width: 16px; height: 16px; accent-color: var(--red); }
.service-option span { font-size: 0.82rem; line-height: 1.35; }
.form-note { display: flex; gap: 9px; align-items: flex-start; margin: 6px 0 24px; color: #4f5a63; font-size: 0.82rem; line-height: 1.7; }
.form-note::before { content: "🔒"; flex: 0 0 auto; }
.form-error { margin: 0 0 16px; color: var(--red); font-size: 0.82rem; line-height: 1.7; }
.submit-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; overflow: hidden; border: 0; cursor: pointer;
  color: var(--white); background: var(--ink); font-weight: 700; letter-spacing: 0.08em;
  transition: background 0.3s ease, transform 0.3s ease;
}
.submit-btn:hover { background: var(--red); transform: translateY(-2px); }
.submit-btn .btn-loading { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: inline; }
.submit-btn:disabled { cursor: wait; opacity: 0.75; }
.agreement { margin: 14px 0 0; color: #77756f; font-size: 0.8rem; text-align: center; }

.form-success { padding: 48px 12px; text-align: center; }
.success-icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px;
  color: var(--white); background: var(--red); font-size: 1.8rem; font-weight: 700;
  border-radius: 50%;
}
.form-success h3 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.04em; }
.form-success p { margin: 16px 0 28px; color: var(--muted); line-height: 1.9; }

.process-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(183, 138, 62, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(255, 255, 255, 0.025) calc(20% - 1px) 20%);
}
.process-section > .wrap { position: relative; z-index: 1; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.process-grid article { min-height: 200px; padding: 26px 26px 26px 0; }
.process-grid article + article { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.process-grid b { display: block; color: var(--gold-soft); font-family: var(--font-latin); font-size: 1.1rem; letter-spacing: 0.12em; }
.process-grid h3 { margin: 36px 0 10px; font-family: var(--font-display); font-size: 1.12rem; }
.process-grid p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; line-height: 1.75; }

.site-footer { padding: 54px 0 28px; color: var(--white); background: #07090c; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding-bottom: 42px; }
.footer-top p { justify-self: end; max-width: 500px; margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 0.9rem; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a:hover { color: var(--gold-soft); }
.footer-bottom > span:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .apply-page main { grid-template-areas: "hero" "form" "member" "benefits" "process"; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-note { max-width: 520px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-copy { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .process-grid article:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .process-grid article:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .apply-page main { grid-template-areas: "form" "hero" "member" "benefits" "process"; }
  .apply-form-section { padding-top: 86px; }
  .apply-hero { min-height: 330px; }
  .hero-inner { padding: 104px 0 34px; gap: 0; }
  .hero-sub { margin-top: 16px; font-size: 14px; }
  .hero-note { display: none; }
  .hero-actions { margin-top: 22px; }
  .apply-layout { display: grid; grid-template-columns: 1fr; }
  .apply-copy { order: 2; }
  .form-card { order: 1; }
  .apply-header { min-height: 64px; }
  .header-inner { min-height: 64px; }
  .main-nav {
    position: fixed; z-index: 59; inset: 64px 0 0; display: flex; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 28px 22px 40px; overflow-y: auto;
    color: var(--white); background: #0c0f13;
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform 0.35s ease, opacity 0.2s ease, visibility 0.35s;
  }
  body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { width: 100%; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-inner { padding: 104px 0 34px; gap: 0; }
  .apply-hero { min-height: 330px; }
  .hero-title { font-size: clamp(42px, 12vw, 58px); }
  .hero-sub { font-size: 15px; }
  .member-band .wrap { grid-template-columns: 58px 1fr; padding: 30px 0; }
  .member-seal { width: 54px; height: 54px; font-size: 1.6rem; }
  .member-cta { grid-column: 1 / -1; }
  .member-cta .btn { width: 100%; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: auto; }
  .benefit-card h3 { margin-top: 24px; }
  .section-head { display: block; margin-bottom: 38px; }
  .section-head .eyebrow { margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .service-options { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip > div { padding: 16px 12px 16px 0; }
  .proof-strip > div:nth-child(2) { border-right: 0; }
  .proof-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .form-card { padding: 26px 20px 34px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article, .process-grid article + article { min-height: auto; padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .process-grid article:first-child { border-top: 0; }
  .process-grid h3 { margin-top: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-top p { justify-self: start; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom nav { flex-wrap: wrap; }
  .footer-bottom > span:last-child { text-align: left; }
}

@media (max-width: 420px) {
  .brand-cn { font-size: 1rem; }
  .brand-en { font-size: 0.66rem; letter-spacing: 0.16em; }
  .hero-title { font-size: 40px; }
  .hero-note { padding-left: 16px; }
  .proof-strip strong { font-size: 1.5rem; }
}
