/* 鑫鑫卡密 — homepage */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&family=Sora:wght@500;600;700&display=swap");

:root {
  --ink: #12161c;
  --ink-soft: #3a4450;
  --muted: #6a7380;
  --line: rgba(18, 22, 28, 0.1);
  --paper: #eef1f4;
  --surface: #ffffff;
  --accent: #c45c26;
  --accent-deep: #9e4518;
  --navy: #1a2740;
  --hero-veil: linear-gradient(
    115deg,
    rgba(18, 22, 28, 0.88) 0%,
    rgba(26, 39, 64, 0.72) 42%,
    rgba(26, 39, 64, 0.35) 100%
  );
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-home {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8ecf1 0%, var(--paper) 28%, #f6f7f9 100%);
  overflow-x: hidden;
}

.sp-home * {
  box-sizing: border-box;
}

.sp-home a {
  text-decoration: none;
  color: inherit;
}

.sp-wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* —— Hero: asymmetric split —— */
.sp-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  color: #f4f6f8;
  isolation: isolate;
  overflow: hidden;
}

.sp-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.sp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  animation: sp-ken 26s var(--ease) infinite alternate;
}

.sp-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-veil);
}

.sp-hero__inner {
  grid-column: 1;
  align-self: end;
  width: min(560px, calc(100% - 48px));
  margin: 0 0 0 max(24px, calc((100vw - var(--max)) / 2));
  padding: 72px 0 80px;
  animation: sp-rise 0.9s var(--ease) both;
}

.sp-hero__aside {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  width: min(320px, calc(100% - 48px));
  margin: 0 max(24px, calc((100vw - var(--max)) / 2)) 80px 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: sp-rise 1.1s var(--ease) 0.12s both;
}

.sp-hero__aside p {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.55);
}

.sp-hero__aside strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.sp-hero__aside span {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(244, 246, 248, 0.7);
}

.sp-brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
}

.sp-brand em {
  font-style: normal;
  color: var(--accent);
}

.sp-hero__lead {
  max-width: 18em;
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(244, 246, 248, 0.95);
}

.sp-hero__sub {
  max-width: 30em;
  margin: 0 0 34px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(244, 246, 248, 0.68);
  font-weight: 400;
}

.sp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sp-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(196, 92, 38, 0.35);
}

.sp-btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  color: #fff;
}

.sp-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sp-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@keyframes sp-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, 0.8%, 0); }
}

@keyframes sp-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.sp-sec {
  padding: 88px 0;
}

.sp-sec--tight {
  padding: 64px 0;
}

.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.sp-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.sp-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.sp-desc {
  margin: 0;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.sp-head {
  margin-bottom: 44px;
}

.sp-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.sp-head--split .sp-more {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.sp-head--split .sp-more:hover {
  color: var(--accent-deep);
}

/* —— Flow: vertical timeline-ish row —— */
.sp-flow {
  background: var(--navy);
  color: #f4f6f8;
}

.sp-flow .sp-kicker { color: #e8a87c; }
.sp-flow .sp-kicker::before { background: #e8a87c; }
.sp-flow .sp-title { color: #f4f6f8; }
.sp-flow .sp-desc { color: rgba(244, 246, 248, 0.62); }

.sp-flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.sp-flow__list li {
  position: relative;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  counter-increment: step;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sp-flow__list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 168, 124, 0.4);
}

.sp-flow__list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8a87c;
  letter-spacing: -0.02em;
}

.sp-flow__list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.sp-flow__list p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(244, 246, 248, 0.58);
}

/* —— Catalog: horizontal rows —— */
.sp-catalog__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.sp-card:hover {
  border-color: rgba(196, 92, 38, 0.35);
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(18, 22, 28, 0.07);
}

.sp-card__visual {
  height: 72px;
  width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #f0ebe6 0%, #f7f4f1 100%);
}

.sp-card__visual img {
  max-width: 64px;
  max-height: 48px;
  object-fit: contain;
}

.sp-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sp-card__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.sp-card__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.sp-card__rate {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.sp-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(26, 39, 64, 0.06);
  transition: background 0.25s, color 0.25s;
}

.sp-card:hover .sp-card__link {
  background: var(--accent);
  color: #fff;
}

/* —— Trust split (image right) —— */
.sp-trust {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.sp-trust--flip .sp-trust__media {
  order: 2;
}

.sp-trust__media {
  position: relative;
  min-height: 400px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(18, 22, 28, 0.12);
}

.sp-trust__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(18, 22, 28, 0.35));
  pointer-events: none;
}

.sp-trust__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.sp-trust__points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-trust__points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.sp-trust__points li::before {
  content: attr(data-n);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  padding-top: 2px;
}

.sp-trust__points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.sp-trust__points span {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* —— FAQ —— */
.sp-faq {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sp-faq__list {
  margin: 0;
  padding: 0;
  max-width: 780px;
}

.sp-faq__list details {
  border-bottom: 1px solid var(--line);
}

.sp-faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: 1.02rem;
  font-weight: 600;
  position: relative;
}

.sp-faq__list summary::-webkit-details-marker {
  display: none;
}

.sp-faq__list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.sp-faq__list details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.sp-faq__list p {
  margin: 0 0 20px;
  padding-right: 36px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

/* —— Closing band —— */
.sp-band {
  position: relative;
  padding: 96px 0;
  color: #f4f6f8;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.sp-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.sp-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.sp-band__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(18, 22, 28, 0.9), rgba(26, 39, 64, 0.78));
}

.sp-band .sp-kicker {
  justify-content: center;
  color: #e8a87c;
}

.sp-band .sp-kicker::before {
  background: #e8a87c;
}

.sp-band .sp-title {
  color: #f4f6f8;
}

.sp-band .sp-desc {
  color: rgba(244, 246, 248, 0.68);
  margin: 0 auto 28px;
}

.sp-band .sp-btn--primary {
  box-shadow: 0 12px 32px rgba(196, 92, 38, 0.4);
}

/* —— Reveal —— */
.sp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.sp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .sp-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px;
  }

  .sp-hero__inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 28px;
  }

  .sp-hero__aside {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 40px;
    justify-self: stretch;
  }

  .sp-flow__list {
    grid-template-columns: 1fr 1fr;
  }

  .sp-trust,
  .sp-trust--flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sp-trust--flip .sp-trust__media {
    order: 0;
  }

  .sp-trust__media,
  .sp-trust__media img {
    min-height: 260px;
  }

  .sp-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-card {
    grid-template-columns: 72px 1fr;
    gap: 14px;
  }

  .sp-card__link {
    grid-column: 2;
    justify-self: start;
  }

  .sp-card__visual {
    width: 72px;
    height: 64px;
  }
}

@media (max-width: 640px) {
  .sp-sec {
    padding: 56px 0;
  }

  .sp-wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .sp-flow__list {
    grid-template-columns: 1fr;
  }

  .sp-cta {
    width: 100%;
  }

  .sp-btn {
    flex: 1;
  }

  .sp-band {
    text-align: left;
  }

  .sp-band .sp-kicker {
    justify-content: flex-start;
  }

  .sp-band .sp-desc {
    margin-left: 0;
  }
}
