/* ============================================================
   kangleling.cn — 康乐龄 operator franchise landing
   Brand: sage #6B7F6B · cream #FAF7F0 · terracotta #C17B4E
   Mobile-first, CN eldercare, premium health-tech
   ============================================================ */

/* ---------- Self-hosted Inter (GFW-safe — replaces Google Fonts) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS Custom Properties (Brand Tokens) ---------- */
:root {
  /* Brand palette */
  --sage:         #6B7F6B;
  --sage-dark:    #4F6050;
  --sage-light:   #8FA08F;
  --cream:        #FAF7F0;
  --cream-dark:   #F0EBE0;
  --terracotta:   #C17B4E;
  --terracotta-dark: #A3632F;
  --terracotta-light: #F5E5D6;

  /* Neutrals */
  --text:         #1C1F1C;
  --text-muted:   #5A6357;
  --text-light:   #8A9487;
  --white:        #FFFFFF;

  /* Surfaces */
  --bg:           var(--white);
  --bg-cream:     var(--cream);
  --bg-sage-tint: #EEF2EE;
  --bg-trust:     #2C3B2C;

  /* Borders */
  --border:       #DFE5DE;
  --border-strong:#C4CEC3;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(44,59,44,0.06);
  --shadow:       0 2px 12px rgba(44,59,44,0.09);
  --shadow-card:  0 4px 28px rgba(44,59,44,0.12);
  --shadow-lg:    0 8px 48px rgba(44,59,44,0.16);

  /* Shape */
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  /* Transitions */
  --ease:         0.2s ease;
}

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

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

html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei',
    'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Section wrapper variants ---------- */
section {
  padding: 80px 0;
}

.section-white    { background: var(--white); }
.section-cream    { background: var(--cream); }
.section-sage-light { background: var(--bg-sage-tint); }
.section-trust    { background: var(--bg-trust); }
.section-apply    { background: var(--sage-dark); }

/* ---------- Section header ---------- */
.section-header {
  margin-bottom: 52px;
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: rgba(107,127,107,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.section-label--light {
  color: rgba(250,247,240,0.7);
  background: rgba(250,247,240,0.1);
}

.section-heading {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 640px;
}

.section-heading--light {
  color: var(--cream);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.85;
}

/* ---------- Utility text ---------- */
.text-sage        { color: var(--sage); }
.text-terracotta  { color: var(--terracotta); }
.text-muted       { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,127,107,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 28px;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.btn-secondary:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: rgba(107,127,107,0.05);
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
============================================================ */
#top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,240,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

#top-nav.nav--scrolled {
  box-shadow: 0 2px 16px rgba(44,59,44,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.nav-logo-cn {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.nav-logo-en {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', system-ui, sans-serif;
}

.nav-links {
  display: none;
  gap: 28px;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-cta {
  background: var(--sage);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--ease);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.nav-links a.nav-cta:hover {
  background: var(--sage-dark);
}

/* Mobile CTA */
.nav-cta-mobile {
  display: none;
  background: var(--sage);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  min-height: 38px;
  align-items: center;
  transition: background var(--ease);
}

.nav-cta-mobile:hover {
  background: var(--sage-dark);
}

@media (max-width: 639px) {
  .nav-cta-mobile { display: flex; }
  .nav-links       { display: none; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(150deg, var(--cream) 0%, var(--white) 55%, #EEF2EE 100%);
  padding: 80px 0 68px;
  position: relative;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-orb--1 {
  top: -140px;
  right: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(107,127,107,0.07) 0%, transparent 70%);
}

.hero-bg-orb--2 {
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(193,123,78,0.06) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta-light);
  border: 1px solid rgba(193,123,78,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta-dark);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.35); }
}

.hero-title {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 780px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.85;
}

/* Hero stat badges */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 36px;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}

.hero-stat {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 20px;
}

.hero-stat-num {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: var(--sage-dark);
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
}

.hero-stat-plus,
.hero-stat-pct {
  font-size: 0.62em;
  font-weight: 700;
  vertical-align: super;
  color: var(--terracotta);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 479px) {
  .hero {
    padding: 56px 0 48px;
  }
  .hero-stats {
    padding: 16px 20px;
    gap: 0;
  }
  .hero-stat-divider {
    margin: 0 12px;
  }
  .hero-badge {
    font-size: 12px;
  }
}

/* ============================================================
   SECTION 2: 加盟优势 — Benefits grid
============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 560px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}

.benefit-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--sage-light);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.benefit-icon--sage {
  background: rgba(107,127,107,0.12);
  color: var(--sage-dark);
}

.benefit-icon--terracotta {
  background: rgba(193,123,78,0.12);
  color: var(--terracotta);
}

.benefit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 559px) {
  .benefit-card {
    padding: 22px 20px;
  }
}

/* ============================================================
   SECTION 3: 加盟流程 — Timeline
============================================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-family: 'Inter', system-ui, sans-serif;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(107,127,107,0.3);
}

.timeline-step--last {
  background: var(--terracotta);
  box-shadow: 0 2px 12px rgba(193,123,78,0.3);
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, var(--sage-light), var(--border));
  margin: 4px 0;
}

.timeline-content {
  padding: 4px 0 40px;
}

.timeline-item:last-child .timeline-content {
  padding-bottom: 0;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.timeline-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-dark);
  background: rgba(107,127,107,0.1);
  padding: 3px 10px;
  border-radius: 4px;
}

.timeline-tag--accent {
  color: var(--terracotta-dark);
  background: var(--terracotta-light);
}

@media (max-width: 479px) {
  .timeline-item {
    gap: 16px;
  }
  .timeline-step {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* ============================================================
   SECTION 4: 盈利模式 — Profit table
============================================================ */
.profit-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.profit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  min-width: 460px;
}

.profit-table thead tr {
  background: var(--sage);
}

.profit-table thead th {
  padding: 14px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.profit-table thead th:first-child {
  text-align: left;
  border-radius: var(--radius) 0 0 0;
}

.profit-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.profit-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.profit-table tbody tr:last-child {
  border-bottom: none;
}

.profit-table tbody tr:hover {
  background: rgba(107,127,107,0.04);
}

.profit-table td {
  padding: 13px 20px;
  text-align: center;
  color: var(--text-muted);
}

.profit-label {
  text-align: left !important;
  font-weight: 600;
  color: var(--text) !important;
}

.profit-highlight {
  background: rgba(107,127,107,0.07);
  color: var(--sage-dark) !important;
  font-weight: 600;
}

.profit-row-net td {
  background: rgba(107,127,107,0.05);
  font-weight: 700;
}

.profit-net-highlight {
  color: var(--sage-dark) !important;
  font-weight: 800 !important;
  font-size: 15px;
}

.profit-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.profit-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-light);
}

/* ============================================================
   SECTION 5: 运营支持体系 — Support grid
============================================================ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 560px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support-block {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.support-block:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--sage-light);
}

.support-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(107,127,107,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  margin-bottom: 20px;
}

.support-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

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

.support-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}

.support-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  margin-top: 7px;
}

@media (max-width: 559px) {
  .support-block {
    padding: 24px 20px;
  }
}

/* ============================================================
   SECTION 6: 品牌背书 — Trust badges
============================================================ */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(250,247,240,0.12);
  border-radius: var(--radius);
  background: rgba(250,247,240,0.05);
  padding: 28px 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
}

.trust-badge-divider {
  width: 1px;
  height: 48px;
  background: rgba(250,247,240,0.15);
}

.trust-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(107,127,107,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,247,240,0.8);
  flex-shrink: 0;
}

.trust-badge-text {}

.trust-badge-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}

.trust-badge-sub {
  font-size: 12px;
  color: rgba(250,247,240,0.55);
}

@media (max-width: 767px) {
  .trust-badges {
    flex-direction: column;
    gap: 4px;
  }
  .trust-badge-divider {
    width: 60%;
    height: 1px;
    background: rgba(250,247,240,0.12);
  }
  .trust-badge {
    padding: 12px 16px;
  }
}

/* ============================================================
   SECTION 7: FAQ accordion
============================================================ */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.faq-item[open] {
  border-color: var(--sage-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background var(--ease);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover {
  background: rgba(107,127,107,0.04);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--sage);
  transition: transform var(--ease);
  display: flex;
  align-items: center;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  padding-top: 16px;
}

@media (max-width: 479px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }
  .faq-answer {
    padding: 0 18px 16px;
  }
}

/* ============================================================
   SECTION 8: Apply form
============================================================ */
.apply-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

@media (min-width: 800px) {
  .apply-inner {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.apply-heading {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.apply-sub {
  font-size: 15px;
  color: rgba(250,247,240,0.65);
  line-height: 1.85;
  margin-bottom: 28px;
}

.apply-contact {
  margin-bottom: 28px;
}

.apply-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(250,247,240,0.6);
}

.apply-contact-item a {
  color: rgba(250,247,240,0.85);
  transition: color var(--ease);
}

.apply-contact-item a:hover {
  color: var(--cream);
}

.apply-contact-item svg {
  color: var(--sage-light);
  flex-shrink: 0;
}

.apply-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apply-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(250,247,240,0.6);
}

.apply-trust-item svg {
  color: var(--sage-light);
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: rgba(250,247,240,0.06);
  border: 1px solid rgba(250,247,240,0.12);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 479px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(250,247,240,0.65);
  margin-bottom: 7px;
}

.form-required {
  color: var(--terracotta);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(250,247,240,0.07);
  border: 1px solid rgba(250,247,240,0.14);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--cream);
  font-family: inherit;
  transition: border-color var(--ease), background var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(250,247,240,0.28);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sage-light);
  background: rgba(250,247,240,0.1);
}

.form-select {
  background-image: 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(250,247,240,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  color: rgba(250,247,240,0.7);
}

.form-select option {
  background: var(--sage-dark);
  color: var(--cream);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-textarea--short {
  min-height: 72px;
}

/* PIPL consent */
.form-consent {
  margin-bottom: 18px;
}

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(250,247,240,0.5);
  line-height: 1.7;
}

.form-consent-check {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.form-link {
  color: rgba(250,247,240,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease);
}

.form-link:hover {
  color: var(--cream);
}

/* Submit button */
.form-submit {
  width: 100%;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 28px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  margin-top: 4px;
}

.form-submit:hover:not(:disabled) {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,123,78,0.35);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-submit-arrow {
  flex-shrink: 0;
}

.form-disclaimer {
  font-size: 11px;
  color: rgba(250,247,240,0.3);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* Form messages */
.form-message {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  padding: 0;
}

.form-message--success {
  background: rgba(107,127,107,0.15);
  border: 1px solid rgba(107,127,107,0.35);
  color: #b8d4b8;
  padding: 12px 16px;
}

.form-message--error {
  background: rgba(193,123,78,0.12);
  border: 1px solid rgba(193,123,78,0.3);
  color: #e8b090;
  padding: 12px 16px;
}

@media (max-width: 767px) {
  .form-card {
    padding: 24px 20px;
  }
  .section-apply {
    padding: 60px 0;
  }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #111814;
  padding: 52px 0 28px;
  border-top: 1px solid rgba(107,127,107,0.15);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250,247,240,0.06);
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: auto 1fr auto auto;
    align-items: start;
    gap: 40px;
  }
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.footer-logo-cn {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.footer-logo-en {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.35);
  font-family: 'Inter', system-ui, sans-serif;
}

.footer-brand-desc {
  font-size: 12px;
  color: rgba(250,247,240,0.35);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* WeChat QR placeholder */
.footer-wechat {}

.footer-qr-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px dashed rgba(250,247,240,0.18);
  border-radius: var(--radius-sm);
  color: rgba(250,247,240,0.3);
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color var(--ease);
}

.footer-qr-placeholder:hover {
  border-color: rgba(107,127,107,0.4);
}

/* Footer nav */
.footer-links-group {}

.footer-links-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.28);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(250,247,240,0.45);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: rgba(250,247,240,0.85);
}

/* Social */
.footer-social-group {}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(250,247,240,0.06);
  border: 1px solid rgba(250,247,240,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,247,240,0.45);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.footer-social-btn:hover {
  background: rgba(107,127,107,0.2);
  color: rgba(250,247,240,0.85);
  border-color: rgba(107,127,107,0.35);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: rgba(250,247,240,0.22);
  font-family: 'Inter', system-ui, sans-serif;
}

.footer-icp a {
  font-size: 12px;
  color: rgba(250,247,240,0.22);
  transition: color var(--ease);
}

.footer-icp a:hover {
  color: rgba(250,247,240,0.5);
}

.footer-entity {
  font-size: 11px;
  color: rgba(250,247,240,0.18);
  font-family: 'Inter', system-ui, sans-serif;
}

@media (max-width: 479px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .footer-top {
    gap: 28px;
  }
}

/* ============================================================
   RESPONSIVE — Global overrides @ 768px
============================================================ */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .hero-stats {
    max-width: 100%;
    padding: 16px 16px;
  }

  .hero-stat-divider {
    margin: 0 10px;
  }

  .profit-table-wrap {
    border-radius: var(--radius-sm);
  }

  .trust-badges {
    padding: 20px 16px;
  }

  .apply-inner {
    gap: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  section {
    padding: 48px 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0;
  }

  .hero-stat-divider {
    width: 80%;
    height: 1px;
    margin: 8px auto;
  }

  .hero-stat {
    align-items: center;
    text-align: center;
    padding: 10px 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ACCESSIBILITY — Minimum tap targets & focus rings
============================================================ */
.btn-primary,
.btn-secondary,
.form-submit,
.nav-cta-mobile,
.footer-social-btn {
  min-height: 44px;
}

.nav-links a.nav-cta {
  min-height: 36px;
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}
