/* ==========================================================================
   兴商云门户 · 样式
   单文件，无外部依赖。改色只改下面的变量。
   ========================================================================== */

:root {
  --ink: #0a1b33;
  --ink-2: #10294a;
  --text: #1b2436;
  --muted: #5c6b82;
  --line: #e6ebf3;
  --bg: #ffffff;
  --tint: #f6f9fd;
  --primary: #2b6bff;
  --primary-d: #1a54e0;
  --green: #12c2a0;
  --radius: 16px;
  --wrap: 1120px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 54, .06), 0 4px 14px rgba(16, 30, 54, .05);
  --shadow-md: 0 8px 30px rgba(16, 30, 54, .10);
  --shadow-lg: 0 24px 60px rgba(10, 27, 51, .24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 12px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 107, 255, .28);
}
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 8px 24px rgba(43, 107, 255, .34); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: #f0f4fa; }

.btn-line { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }

.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-white:hover { background: #f7fafe; }

.btn-line-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-line-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 顶部导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.solid {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(16, 30, 54, .06);
}
/* 首屏深色底上，导航文字用白的 */
.nav.on-dark .brand-name,
.nav.on-dark .nav-links a,
.nav.on-dark .btn-ghost { color: #fff; }
.nav.on-dark .nav-links a:hover { color: #cfe0ff; }
.nav.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.nav.on-dark .brand-mark rect { opacity: .95; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--text); transition: color .18s ease; }
.nav-links a:hover { color: var(--primary); }

.nav-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 96px;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(43, 107, 255, .34), transparent 62%),
    radial-gradient(760px 520px at 8% 8%, rgba(18, 194, 160, .18), transparent 66%),
    linear-gradient(180deg, #08182c 0%, #0a1b33 46%, #0c2444 100%);
  color: #eaf0fb;
}
/* 细网格，增加质感 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 520px at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(900px 520px at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(43, 107, 255, .5), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px;
  color: #cddcf3;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 194, 160, .18);
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}
.hero h1 .hl {
  background: linear-gradient(96deg, #6f9dff, #12c2a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  margin-top: 22px;
  max-width: 33em;
  font-size: 16.5px;
  line-height: 1.8;
  color: #b9c9e2;
}

.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 14px;
  color: #9db1cf;
}
.hero-chips li { display: flex; align-items: center; gap: 7px; }
.hero-chips li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(18, 194, 160, .16);
  border: 1px solid rgba(18, 194, 160, .5);
  flex: none;
}

/* ---------- 首屏右侧：手机 + 浮动卡片 ---------- */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 470px;
}

.phone {
  position: relative;
  width: 268px;
  align-self: center;
  background: #fff;
  color: var(--text);
  border-radius: 30px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.2deg);
  border: 1px solid rgba(255, 255, 255, .5);
}
.phone::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 58px; height: 5px;
  border-radius: 4px;
  background: #e3e9f2;
}
.phone-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 2px 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.ph-title { font-weight: 600; color: var(--ink); font-size: 13.5px; }

.ph-card {
  background: #f6f9fd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.ph-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
}
.ph-row .muted { color: var(--muted); }
.ph-sep { height: 1px; background: var(--line); margin: 8px 0; }
.ph-total { font-weight: 700; }
.ph-total .price { color: #e8482c; font-size: 16px; }

.ph-pay {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(18, 194, 160, .1);
  color: #0b8f76;
  font-size: 12.5px;
  font-weight: 600;
}
.pay-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #12c2a0;
  box-shadow: 0 0 0 3px rgba(18, 194, 160, .2);
}

.ph-btn {
  margin-top: 12px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(96deg, #2b6bff, #1a54e0);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(43, 107, 255, .3);
}

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .8);
  animation: float 7s ease-in-out infinite;
}
.fc-1 { left: -6px; top: 46px; }
.fc-2 { right: -10px; bottom: 54px; animation-delay: -3.2s; }
.fc-label { font-size: 12px; color: var(--muted); }
.fc-num { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.fc-num small { font-size: 12px; font-weight: 600; color: var(--muted); }
.fc-sub { font-size: 11.5px; color: var(--muted); }
.fc-sub.up { color: #0b8f76; font-weight: 600; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- 数字条 ---------- */

.strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 26px;
  padding-bottom: 26px;
}
.strip-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.strip-item:last-child { border-right: 0; }
.strip-item b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.strip-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- 通用区块 ---------- */

.sec { padding: 92px 0; }
.sec-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 能力卡 ---------- */

.card {
  padding: 26px 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d3e0f5;
  box-shadow: var(--shadow-md);
}
.card h3 { font-size: 17.5px; font-weight: 700; margin: 16px 0 8px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.78; }

.ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ico svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-blue   { background: rgba(43, 107, 255, .1);  color: #2b6bff; }
.ico-green  { background: rgba(18, 194, 160, .12); color: #0b9c80; }
.ico-purple { background: rgba(124, 92, 255, .12); color: #6d4fe0; }
.ico-orange { background: rgba(255, 140, 44, .13); color: #d97612; }
.ico-cyan   { background: rgba(24, 168, 214, .12); color: #0e88ad; }
.ico-pink   { background: rgba(236, 78, 138, .11); color: #d03a72; }

/* ---------- 行业 ---------- */

.industries { gap: 16px; }
.ind {
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
.ind:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #d3e0f5; }
.ind-emoji { font-size: 26px; display: block; margin-bottom: 8px; }
.ind b { display: block; font-size: 15.5px; }
.ind i {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.ind-more { display: flex; flex-direction: column; justify-content: center; background: #fbfcff; border-style: dashed; }

/* ---------- 三步 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 30px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #2b6bff, #12c2a0);
  opacity: .85;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(43, 107, 255, .1);
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 顾客端小程序 ---------- */
/* 对应 index.html 里「顾客端小程序 · 暂时隐藏」那块注释，小程序发布后取消注释即生效 */

.app-inner { display: flex; align-items: center; gap: 64px; }
.app-copy { flex: 1 1 auto; max-width: 600px; }
.app-copy h2 {
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.32;
}
.app-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.app-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.app-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.app-qr {
  flex: none;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.app-qr img {
  display: block;
  width: 192px;
  height: 192px;
  border-radius: 12px;
  background: #fff;
}
.app-qr b { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 700; }
.app-qr span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* ---------- 收尾 CTA ---------- */

.cta {
  padding: 74px 0;
  background:
    radial-gradient(800px 400px at 84% 20%, rgba(43, 107, 255, .42), transparent 64%),
    linear-gradient(104deg, #0a1b33, #123a68);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.cta p { margin-top: 12px; color: #b9c9e2; font-size: 15.5px; }
.cta-acts { display: flex; gap: 12px; flex: none; }

/* ---------- 微信二维码弹层 ---------- */

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 27, 51, .64);
  animation: qrFade .18s ease;
}
.qr-modal[hidden] { display: none; }
@keyframes qrFade { from { opacity: 0; } to { opacity: 1; } }

.qr-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: 88vh;
  overflow: auto;
  padding: 24px 20px 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-box h3 { font-size: 17px; font-weight: 800; }
.qr-img {
  width: 210px;
  height: auto;
  margin: 14px auto 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.qr-tip { font-size: 14px; color: var(--muted); }
.qr-sub { margin-top: 4px; font-size: 12.5px; color: #93a1b5; }

.qr-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5fa;
  color: var(--muted);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.qr-x:hover { background: #e6edf6; color: var(--ink); }

body.qr-open { overflow: hidden; }

/* ---------- 页脚 ---------- */

.foot {
  padding: 56px 0 26px;
  background: #f8fafd;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 34px;
}
.foot-brand .brand-name { color: var(--ink); font-size: 17px; }
.foot-brand p { margin-top: 8px; font-size: 13.5px; }

.foot-cols { display: flex; gap: 64px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.foot-col a { transition: color .16s ease; }
.foot-col a:hover { color: var(--primary); }
.foot-qr {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease;
}
.foot-qr:hover { color: var(--primary); }
.foot-muted { font-size: 13px; }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.beian { transition: color .16s ease; }
.beian:hover { color: var(--primary); }

/* ---------- 滚动淡入 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 128px 0 84px; }
  .hero-art { min-height: auto; }
  .fc-1 { left: 4%; top: 6px; }
  .fc-2 { right: 4%; bottom: 6px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .app-inner { flex-direction: column; align-items: flex-start; gap: 36px; }
  .app-qr { align-self: center; }
  .foot-inner { flex-direction: column; gap: 30px; }
  .foot-cols { gap: 48px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 30, 54, .1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text) !important; }
  .nav-links a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .hide-sm { display: none; }

  .sec { padding: 68px 0; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item b { font-size: 22px; }

  .phone { width: 250px; transform: none; }
  .float-card { padding: 11px 13px; }
  .fc-num { font-size: 17px; }

  .cta-acts { flex-wrap: wrap; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .hero-chips { flex-direction: column; gap: 8px; }
  .float-card { display: none; }
}
