/* =========================================================
   闲掌柜 XZG365 官网
   Brand: Navy #0A224E · Gold #C9A87C
   ========================================================= */

:root {
  --navy: #0A224E;
  --navy-deep: #061533;
  --navy-soft: #163A6B;
  --gold: #C9A87C;
  --gold-soft: #E2C9A6;
  --ink: #1C2430;
  --muted: #6B7485;
  --line: #E6EAF0;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B8956A 100%);
  color: var(--navy-deep);
  box-shadow: 0 10px 28px rgba(201, 168, 124, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 168, 124, 0.38);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
}

/* ---- Header ---- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(6, 21, 51, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 124, 0.18);
  box-shadow: 0 8px 28px rgba(6, 21, 51, 0.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroKenBurns 18s var(--ease) infinite alternate;
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 21, 51, 0.92) 8%, rgba(10, 34, 78, 0.72) 48%, rgba(6, 21, 51, 0.45) 100%),
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(201, 168, 124, 0.18), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: max(24px, calc((100% - 1120px) / 2));
  margin-right: 24px;
  width: auto;
}

.hero-brand {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@keyframes heroKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--muted);
  font-size: 16px;
}

.section-head-light .section-title,
.section-head-light .section-desc {
  color: rgba(255, 255, 255, 0.92);
}

.section-head-light .section-desc {
  color: rgba(255, 255, 255, 0.68);
}

/* Features — editorial rows, not cards */
.features {
  background: var(--bg);
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.feature-row:hover {
  background: rgba(10, 34, 78, 0.03);
}

.feature-index {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
}

.feature-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-body > p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 54em;
}

.feature-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.feature-body li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink);
}

.feature-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Flow */
.flow {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 168, 124, 0.12), transparent 50%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #0C274F 100%);
  color: #fff;
}

.flow-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: flow;
}

.flow-track li {
  position: relative;
  padding: 28px 20px 8px 0;
  counter-increment: flow;
}

.flow-track li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 14px;
}

.flow-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: 12px;
  width: calc(100% - 48px);
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 124, 0.55), transparent);
}

.flow-track strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.flow-track span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* Why */
.why {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 48px;
  align-items: start;
}

.why .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
  padding-top: 8px;
}

.why-point h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.why-point p {
  color: var(--muted);
  font-size: 15px;
}

/* CTA band */
.cta-band {
  padding: 64px 0;
  background: linear-gradient(90deg, #0A224E, #122C5C);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}

.cta-band-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  margin-bottom: 8px;
}

.cta-band-inner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Contact */
.contact {
  background: var(--bg);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.contact-form label span i {
  color: #C45C5C;
  font-style: normal;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.18);
}

.form-tip {
  min-height: 1.4em;
  font-size: 13px;
  color: var(--muted);
}

.form-tip.is-ok {
  color: #2F6B4F;
}

.form-tip.is-err {
  color: #B42318;
}

.contact-aside {
  padding-top: 8px;
}

.contact-aside h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-aside dl {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-aside dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-aside dd {
  font-size: 15px;
  color: var(--ink);
}

.contact-aside a:hover {
  color: var(--navy-soft);
}

.contact-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 28px;
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gold-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- Motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-duration: 0.9s;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .why-grid,
  .contact-panel,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .why .section-head {
    position: static;
    margin-bottom: 36px;
  }

  .flow-track li:not(:last-child)::after {
    display: none;
  }

  .flow-track {
    gap: 24px;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(6, 21, 51, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    border-bottom: 1px solid rgba(201, 168, 124, 0.15);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    align-items: center;
    padding-bottom: 56px;
  }

  .hero-content {
    margin-left: 16px;
    margin-right: 16px;
  }

  .feature-row {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .why-points,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media-img { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
