:root {
  --brand: #E8833A;
  --brand-dark: #C96A25;
  --brand-soft: #FDF3EC;
  --ink: #1A1A1A;
  --ink-2: #555555;
  --ink-3: #8A8A8A;
  --line: #EDEDED;
  --bg: #FFFFFF;
  --bg-soft: #FAF8F6;
  --radius: 12px;
  --wrap: 1140px;
  --gutter: 40px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand img { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: color 0.18s ease;
}

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

.nav-links a[data-spy].active { color: var(--ink); font-weight: 500; }

.nav-links a[data-spy].active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

body.nav-open { overflow: hidden; }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 主体区块 */
.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 80px 0; }

/* 单页阶段 */
.stage { scroll-margin-top: calc(var(--nav-h) + 16px); }

.stage-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--brand);
  margin-bottom: 18px;
}

.stage-label em {
  font-style: normal;
  color: #C4C4C4;
  font-variant-numeric: tabular-nums;
}

/* 二维码入口 */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
}

.qr-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
  padding: 18px;
}

.qr-box img { width: 100%; height: auto; }

.qr-text { text-align: center; }

.qr-item h3 { margin-top: 18px; margin-bottom: 6px; }

.qr-item p { font-size: 14px; line-height: 1.6; }

.qr-tip { margin-top: 24px; font-size: 13px; color: var(--ink-3); }

.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.group-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brand);
  flex-shrink: 0;
}

/* 入场动画 */
html.js .reveal { opacity: 0; }

html.js .reveal.is-in {
  animation: rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0ms) both;
}

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

/* 导航滚动层次 */
.nav { transition: box-shadow 0.3s ease, background 0.3s ease; }

body.scrolled .nav {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 8px 28px rgba(0, 0, 0, 0.055);
}

/* 悬停微交互（仅桌面指针设备） */
@media (hover: hover) and (pointer: fine) {
  .card {
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  }

  .card:hover {
    border-color: #DEDEDE;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
    transform: translateY(-3px);
  }

  .qr-item:hover .qr-box {
    border-color: #D6D6D6;
    transform: translateY(-3px);
  }

  .qr-box { transition: border-color 0.28s ease, transform 0.28s ease; }

  .btn {
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
                box-shadow 0.28s ease, transform 0.28s ease;
  }

  .btn--primary:hover {
    box-shadow: 0 8px 22px rgba(232, 131, 58, 0.24);
    transform: translateY(-1px);
  }

  .btn--ghost:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
  }
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brand);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.6px;
}

h2 {
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

p { color: var(--ink-2); }

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 640px;
}

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; }

/* 首屏 */
.hero { padding: 132px 0 112px; position: relative; overflow: hidden; }

.hero h1 { max-width: 780px; }

.hero .lead { margin-top: 24px; }

.hero-inner { position: relative; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost { border: 1px solid #DCDCDC; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* 网格 */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--bg);
}

.card p { font-size: 15px; line-height: 1.75; }

/* 卡片内文字链：给卡片一个明确的下一步出口 */
.card-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
}

.card-link::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s ease;
}

.card-link:hover::after { transform: translateX(3px); }

/* 卡片内邮箱：合作联系段的联系邮箱 */
.card-mail {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  word-break: break-all;
}

/* 企业微信二维码区块：扫码加好友，作为合作联系的首选即时入口 */
.wecom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
}

.wecom-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wecom-qr { width: 180px; height: 180px; }
.wecom-qr img { width: 100%; height: 100%; display: block; }

.wecom-text h3 { font-size: 18px; margin-bottom: 8px; }
.wecom-text p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.wecom-text .qr-tip { font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.card-num {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 16px;
}

/* 步骤 */
.steps {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.step { padding-top: 26px; border-top: 2px solid var(--ink); }
.step-idx { font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.step p { font-size: 15px; }

/* 列表 */
.list { list-style: none; }

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.list li strong { color: var(--ink); font-weight: 500; }

/* 正文页 */
.prose { max-width: 740px; }
.prose h2 { margin-top: 52px; margin-bottom: 16px; font-size: 22px; }
.prose h3 { margin-top: 32px; }
.prose p { margin-bottom: 16px; font-size: 15px; }
.prose .list li { margin-bottom: 10px; }
.prose .updated { font-size: 14px; color: var(--ink-3); margin-bottom: 32px; }

.page-head { padding-top: 84px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); }
.page-head p { margin-top: 14px; }

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-soft);
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

.footer-logo { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.footer-co { display: inline-flex; align-items: center; gap: 5px; }

.footer-sep { color: #C4C4C4; }

.footer-beian {
  justify-self: center;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-beian a { color: var(--ink-3); }
.footer-beian a:hover { color: var(--brand); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-links a { min-height: 28px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--brand); }

/* 触摸设备反馈 */
@media (hover: none) {
  .btn:active { opacity: 0.72; }
  .card:active { border-color: #D8D8D8; }
  .nav-links a:active { color: var(--brand); }
}

/* 平板 */
@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .nav-links { gap: 22px; font-size: 14px; }
  .section { padding: 84px 0; }
  .section--tight { padding: 68px 0; }
  .hero { padding: 104px 0 88px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
}

/* 手机 */
@media (max-width: 767px) {
  :root { --gutter: 20px; --nav-h: 60px; }

  body { font-size: 15px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 14px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    font-size: 16px;
  }

  body.nav-open .nav-links { display: flex; }

  .nav-links a {
    padding: 15px 0;
    min-height: 50px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-links a[data-spy].active { color: var(--brand); }

  .nav-links a[data-spy].active::after { display: none; }

  body.nav-open main::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--nav-h);
    z-index: 55;
    background: rgba(0, 0, 0, 0.24);
  }

  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }

  .section { padding: 56px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 56px 0 52px; }

  h1 { letter-spacing: -0.4px; line-height: 1.28; }
  h3 { font-size: 17px; }

  .lead { font-size: 16px; line-height: 1.8; }

  .section-head { margin-bottom: 36px; }
  .section-head p { margin-top: 12px; }

  .actions { flex-direction: column; gap: 12px; margin-top: 32px; }
  .btn { width: 100%; height: 50px; }

  .grid { grid-template-columns: 1fr; gap: 14px; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 24px 0 8px; }
  .step + .step { border-top-width: 1px; border-top-color: var(--line); }

  .qr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; }
  .qr-item { display: block; }
  .qr-box { padding: 5px; }
  .qr-text { margin-top: 10px; }
  .qr-item h3 { margin-top: 0; font-size: 14px; }
  .qr-item p { font-size: 12px; line-height: 1.45; }
  .qr-tip { margin-top: 20px; font-size: 12px; }

  .wecom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wecom-box { padding: 16px 12px; gap: 12px; }
  .wecom-qr { width: 120px; height: 120px; }
  .wecom-text h3 { font-size: 15px; margin-bottom: 6px; }
  .wecom-text p { font-size: 12px; line-height: 1.5; }

  .page-head { padding-top: 48px; padding-bottom: 32px; }
  .prose h2 { margin-top: 40px; font-size: 20px; }
  .prose h3 { margin-top: 26px; }

  .footer { padding: 24px 0 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .footer-bar { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .footer-legal { font-size: 12px; gap: 8px; }
  .footer-beian { justify-self: start; }
  .footer-links { justify-self: start; justify-content: flex-start; gap: 14px 24px; font-size: 14px; }
}

/* 窄屏 */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .card { padding: 24px 20px; }
  .btn { font-size: 14px; }
  .brand span { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1 !important; }
}
