/* ============================================================
   上海蔚枫信息技术有限公司 — 公司主页样式（经典版）
   深色工业风 · 单一主色 · 简约大气
   选中态使用毛玻璃（backdrop-filter）
   ============================================================ */

:root {
  --bg: #060913;
  --bg-soft: #0a101f;
  --bg-card: rgba(255, 255, 255, 0.028);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eefb;
  --muted: #93a1b8;
  --muted-2: #64748b;
  --accent: #2f6bef;            /* 主色：工业蓝 */
  --accent-bright: #8fb3ff;     /* 深底上的文字/描边用亮蓝 */
  --accent-soft: rgba(47, 107, 239, 0.12);
  --glass-bg: rgba(143, 179, 255, 0.10);
  --glass-border: rgba(143, 179, 255, 0.32);
  --radius: 18px;
  --nav-h: 72px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(47, 107, 239, 0.45); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
b { color: #cfe0ff; font-weight: 600; }

/* ---------- 通用组件 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 107, 239, 0.32);
}
.btn-primary:hover {
  background: #2459c9;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 107, 239, 0.42);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

.section {
  position: relative;
  padding: 110px 0;
}
.section-alt {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(47, 107, 239, 0.06), transparent 60%),
    var(--bg-soft);
}

.section-head { margin-bottom: 56px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.grad-text { color: var(--accent-bright); }

/* 毛玻璃卡片图标 */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: none;
}
.card-icon svg { width: 26px; height: 26px; }

/* 滚动浮现动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   顶部导航
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 9, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; color: var(--accent-bright); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.brand-text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links > a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent-bright);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero 首屏
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow-1 {
  width: 560px; height: 560px;
  right: -120px; top: -160px;
  background: rgba(47, 107, 239, 0.15);
}
.hero-glow-2 {
  width: 480px; height: 480px;
  left: -140px; bottom: -180px;
  background: rgba(47, 107, 239, 0.09);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: #bcd3f5;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 16, 31, 0.55);
  backdrop-filter: blur(6px);
  margin-bottom: 30px;
}
.hero-badge i { color: var(--accent-bright); font-style: normal; }

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(5, 8, 16, 0.85);
}
.hero-title span { display: block; }

.hero-sub {
  max-width: 640px;
  margin-top: 26px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  text-shadow: 0 2px 18px rgba(5, 8, 16, 0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3.4vw, 44px);
  margin-top: 66px;
}
.hero-meta .meta-item { display: flex; flex-direction: column; }
.hero-meta strong {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--accent-bright);
}
.hero-meta span, .hero-meta small { font-size: 13px; color: var(--muted-2); letter-spacing: 0.08em; }
.hero-meta i { width: 1px; height: 34px; background: var(--border); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 9px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent-bright);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   关于蔚枫
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.about-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: #c3d2ea;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(-45deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 239, 0.45);
  background: var(--bg-card-hover);
}
.stat-card strong {
  display: block;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-bright);
}
.stat-card strong i { font-style: normal; font-size: 22px; margin-left: 2px; }
.stat-card small { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ============================================================
   核心业务
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 34px 26px 30px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 20% 0%, rgba(47, 107, 239, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 107, 239, 0.45);
  background: var(--bg-card-hover);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card h3 { font-size: 19px; margin-top: 22px; font-weight: 700; }
.service-card .en {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  margin: 6px 0 14px;
}
.service-card p:last-child { font-size: 14px; color: var(--muted); }

/* 服务流程 */
.process {
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 30px clamp(20px, 4vw, 48px);
}
.process-step { text-align: center; }
.process-step i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}
.process-step h4 { font-size: 15.5px; font-weight: 600; margin-top: 6px; letter-spacing: 0.04em; }
.process-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  min-width: 12px;
}

/* ============================================================
   产品矩阵
   ============================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.chip {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
/* 选中态：毛玻璃 */
.chip.active {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: #fff;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 4px 18px rgba(47, 107, 239, 0.18);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px 24px 24px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease,
    box-shadow 0.35s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 107, 239, 0.45);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.product-card.hide { display: none; }
.product-card .card-icon { width: 46px; height: 46px; border-radius: 12px; }
.product-card .card-icon svg { width: 23px; height: 23px; }
.product-card h3 {
  margin-top: 20px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-card h3 span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.product-card p { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.product-card em {
  position: absolute;
  top: 18px; right: 18px;
  font-style: normal;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ============================================================
   客户与案例
   ============================================================ */

.marquee {
  overflow: hidden;
  padding: 8px 0 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  gap: 22px;
  padding-right: 22px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.client-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 210px;
  padding: 22px 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.client-chip:hover { border-color: rgba(47, 107, 239, 0.4); background: var(--bg-card-hover); }
.client-chip strong { font-size: 21px; font-weight: 700; letter-spacing: 0.08em; }
.client-chip span { font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted-2); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.industry-card:hover { transform: translateY(-4px); border-color: rgba(47, 107, 239, 0.45); }
.industry-card h3 { font-size: 17px; margin-bottom: 12px; }
.industry-card h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.industry-card p { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   联系我们
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(47, 107, 239, 0.4); }
.contact-card h3 { font-size: 16.5px; margin-top: 18px; }
.contact-card p { font-size: 14px; color: var(--muted); }
.contact-card small { font-size: 12.5px; color: var(--muted-2); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 52px);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-band h3 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 700; }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  background: #050810;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 20px; font-size: 13.5px; color: var(--muted-2); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 14.5px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: #c3d2ea;
}
.footer-col a, .footer-col span { font-size: 13.5px; color: var(--muted-2); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 返回顶部 */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 16, 31, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.back-top svg { width: 18px; height: 18px; }

/* 版本切换 */
.version-switch {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 95;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 16, 31, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.version-switch a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.version-switch a:hover { color: var(--text); }
.version-switch a.active {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

@media (max-width: 1080px) {
  .service-grid, .product-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100vh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px;
    background: rgba(6, 9, 19, 0.96);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav-links.open { transform: none; }
  .nav-links > a { font-size: 17px; padding: 10px 0; }
  .nav-links .btn { margin-top: 14px; }

  .hero-meta i { display: none; }
  .hero-meta { gap: 26px; }

  .about-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .process { flex-wrap: wrap; justify-content: flex-start; gap: 18px; }
  .process-line { display: none; }
  .cta-band { text-align: left; }

  .stats-grid { gap: 14px; }
  .stat-card { padding: 22px 20px; }
  .stat-card strong { font-size: 34px; }

  .version-switch { left: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  .service-grid, .product-grid, .industry-grid { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
}

/* 无动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue span { animation: none; }
}
