/* ==========================================================================
   卡盟 KAMENG — 单页官网
   结构对齐参考站：珊瑚顶栏 + 渐变首屏 + 四色服务卡 + 六条优势 + 深色转化区 + 藏青页脚
   ========================================================================== */

:root {
  --coral: #d63c34;          /* 顶栏与小字强调（与白字对比 4.6:1） */
  --coral-bright: #ff6b6b;   /* 服务卡 1 */
  --teal: #4ecdc4;
  --yellow: #ffd93d;
  --purple: #a855f7;
  --orange: #ff9f43;
  --cyan: #22d3ee;

  --ink: #2d3436;
  --ink-strong: #14171a;
  --muted: #636e72;
  --line: #e9ecef;
  --bg: #f8f9fa;
  --white: #fff;
  --navy: #1a1a2e;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --header-h: 72px;
  --gutter: clamp(20px, 4vw, 32px);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--yellow);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--ink-strong);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 按钮 ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.btn .icon { transition: transform 0.22s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-yellow { background: var(--yellow); color: #241a00; }
.btn-yellow:hover { box-shadow: 0 12px 24px -12px rgba(255, 217, 61, 0.85); }

.btn-dark { background: #1b1e24; color: #fff; }
.btn-dark:hover { box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.6); }

.btn-teal { background: var(--teal); color: var(--ink-strong); }
.btn-teal:hover { box-shadow: 0 12px 24px -12px rgba(78, 205, 196, 0.85); }

.btn-sm {
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
}

/* 顶栏 ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--coral);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(20, 20, 30, 0.45); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}
.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}
.brand-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--yellow);
  color: #241a00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"] { color: #fff; }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.menu-btn .icon { width: 18px; height: 18px; }
.menu-btn .icon-close { display: none; }
body.menu-open .menu-btn .icon-menu { display: none; }
body.menu-open .menu-btn .icon-close { display: block; }

/* 移动端菜单 ------------------------------------------------------------ */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 24px var(--gutter) 40px;
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }

.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.mobile-nav nav a span {
  font-size: 12px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.08em;
}
.mobile-nav .btn { width: 100%; margin-top: 26px; }
.mobile-nav-meta {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* 首屏 ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(48px, 6vw, 76px);
  background: linear-gradient(135deg, #ff8a4c 0%, #f0564e 26%, #c4386e 62%, #7c3aed 100%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 56% 54% at 50% 50%, rgba(22, 8, 28, 0.14), rgba(22, 8, 28, 0) 72%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb--a {
  width: clamp(220px, 26vw, 340px);
  height: clamp(220px, 26vw, 340px);
  top: -12%;
  right: -6%;
  background: rgba(255, 255, 255, 0.16);
}
.hero-orb--b {
  width: clamp(280px, 34vw, 460px);
  height: clamp(280px, 34vw, 460px);
  bottom: -34%;
  left: -10%;
  background: rgba(78, 205, 196, 0.3);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero h1 .mark {
  display: inline-block;
  padding: 0 0.16em;
  border-radius: 14px;
  background: var(--yellow);
  color: #241a00;
  line-height: 1.2;
  transform: translateY(0.03em);
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.93);
}

.hero-actions {
  margin-top: clamp(26px, 3.2vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: clamp(34px, 4.4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
}
.hero-tags li {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
}
.hero-tags li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* 区块骨架 -------------------------------------------------------------- */
.section { padding: clamp(60px, 7.5vw, 100px) 0; }
.section--muted { background: var(--bg); }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(34px, 4.4vw, 54px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* 服务卡 ---------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 34px 24px 28px;
  border-radius: 18px;
  color: var(--ink-strong);
  text-align: center;
  box-shadow: 0 14px 30px -22px rgba(45, 52, 54, 0.65);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -24px rgba(45, 52, 54, 0.55);
}
.service-card--coral { background: var(--coral-bright); }
.service-card--teal { background: var(--teal); }
.service-card--yellow { background: var(--yellow); }
.service-card--purple { background: var(--purple); }

.service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-strong);
}
.service-icon .icon { width: 30px; height: 30px; }

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.service-card p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: 8px;
  font-size: 13.8px;
  line-height: 1.78;
  color: rgba(20, 23, 26, 0.8);
  text-wrap: pretty;
}
.service-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(20, 23, 26, 0.28);
  font-size: 13px;
  font-weight: 800;
  color: rgba(20, 23, 26, 0.92);
  text-decoration: none;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.service-link:hover { border-color: rgba(20, 23, 26, 0.7); gap: 9px; }
.service-link .icon { width: 14px; height: 14px; }

/* 优势 ------------------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 40px);
}
.feature {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.feature-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
}
.num-coral { background: var(--coral-bright); }
.num-teal { background: var(--teal); }
.num-yellow { background: var(--yellow); }
.num-purple { background: var(--purple); }
.num-orange { background: var(--orange); }
.num-cyan { background: var(--cyan); }

.feature h3 {
  font-size: 17.5px;
  font-weight: 900;
  color: var(--ink);
}
.feature p {
  margin-top: 6px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}

/* 流程 ------------------------------------------------------------------ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(214, 60, 52, 0.4) 0 8px, transparent 8px 16px);
}
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px var(--bg);
  color: var(--coral);
  font-size: 15px;
  font-weight: 900;
}
.step h3 {
  margin-top: 18px;
  font-size: 17.5px;
  font-weight: 900;
  color: var(--ink);
}
.step p {
  margin-top: 6px;
  max-width: 30ch;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}

/* FAQ ------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.is-open {
  border-color: #ffc9c6;
  box-shadow: 0 16px 32px -26px rgba(45, 52, 54, 0.6);
}
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-btn:hover { color: var(--coral); }

.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s ease;
}
.faq-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.is-open .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-panel-inner { overflow: hidden; visibility: hidden; transition: visibility 0.35s; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-item.is-open .faq-panel-inner { visibility: visible; }
.faq-panel p {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  text-wrap: pretty;
}

/* 转化区 ---------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 107, 107, 0.22), rgba(255, 107, 107, 0) 66%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.3;
}
.cta p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #b2bec3;
}
.cta-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-link {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.cta-link:hover { color: var(--yellow); }
.cta-meta {
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

/* 页脚 ------------------------------------------------------------------ */
.site-footer {
  padding: 64px 0 22px;
  background: var(--navy);
  color: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: #b2bec3;
  text-wrap: pretty;
}
.footer-col h3 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--yellow);
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a {
  font-size: 13.5px;
  color: #b2bec3;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #8892a0;
}
.to-top {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.to-top:hover { color: var(--yellow); border-color: var(--yellow); }

/* 动效 ------------------------------------------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-tag,
.hero h1,
.hero-sub,
.hero-actions,
.hero-tags {
  animation: rise 0.85s var(--ease) both;
}
.hero h1 { animation-delay: 0.06s; }
.hero-sub { animation-delay: 0.14s; }
.hero-actions { animation-delay: 0.22s; }
.hero-tags { animation-delay: 0.3s; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 响应式 ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .steps::before { display: none; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 680px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-tags li { font-size: 11px; }
  .hero-tags li + li::before { margin: 0 9px; }

  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-card { padding: 26px 20px 24px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .section-head p { font-size: 14.5px; }
  .faq-btn { padding: 16px 18px; font-size: 15px; }
  .faq-panel p { padding: 0 18px 18px; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 32px; }
  .to-top { margin-left: 0; }
}

@media (max-width: 430px) {
  .header-actions .btn-yellow { display: none; }
  .hero-tag { font-size: 12px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .cta-link { text-align: center; }
}

/* 降低动效偏好 ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}