/* ============================================================
   佛山小兑科技有限公司 官网样式
   纯静态 · 无外部依赖 · 响应式
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --ink: #0f1b2d;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg-alt: #f6f8fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 27, 45, .06);
  --shadow-md: 0 10px 30px rgba(15, 27, 45, .10);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, .16);
  --grad: linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
}

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

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

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 通用按钮 */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .42);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* 小标签（区块眉题） */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
}

.section-desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 占位内容提示样式 */
.placeholder-note {
  color: #94a3b8;
  font-size: .88em;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.brand-sub { font-size: 10px; letter-spacing: .16em; color: var(--ink-soft); }

.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color .2s;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a.active { color: var(--primary); font-weight: 700; }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta { flex-shrink: 0; padding: 9px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
  margin-left: auto;
}
.nav-toggle span {
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  padding: 158px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(6, 182, 212, .08), transparent),
    radial-gradient(ellipse 55% 55% at 10% 15%, rgba(37, 99, 235, .09), transparent);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 27, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 27, 45, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob-1 { width: 420px; height: 420px; background: rgba(37, 99, 235, .18); top: -120px; right: -100px; }
.blob-2 { width: 360px; height: 360px; background: rgba(6, 182, 212, .16); bottom: -140px; left: -120px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 22px;
  letter-spacing: .01em;
}
.hero .eyebrow { margin-bottom: 20px; }
.hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-trust li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.hero-art svg { width: 100%; height: auto; }
.float-a { animation: floatY 6s ease-in-out infinite; }
.float-b { animation: floatY 6s ease-in-out 1.4s infinite; }
.float-c { animation: floatY 6s ease-in-out 2.8s infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ 数据亮点 ============ */
.stats {
  background: var(--ink);
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  background: linear-gradient(120deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat-label {
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  margin-top: 6px;
  letter-spacing: .06em;
}

/* ============ 通用区块 ============ */
.section { padding: 96px 0; }
.alt-bg { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-head .section-desc { margin-top: 16px; }

/* ============ 关于我们 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 18px 0;
  text-align: justify;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .35);
}
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.value-icon svg { width: 22px; height: 22px; fill: var(--primary); }
.value-card h3 { font-size: 17px; margin-bottom: 6px; }
.value-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ============ 产品服务 ============ */
.services-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 46px 0 24px;
}
.services-sub:first-of-type { margin-top: 0; }
.services-sub span {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding-left: 15px;
  white-space: nowrap;
}
.services-sub span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--grad);
}
.services-sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.services-grid.grid-flex { grid-template-columns: repeat(auto-fit, minmax(192px, 1fr)); }
.services-grid.grid-flex .service-card { padding: 30px 22px; }
.services-grid.grid-flex .service-card p { font-size: 13.5px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}
.service-icon svg { width: 26px; height: 26px; color: #fff; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ 案例展示 ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.case-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.case-thumb span {
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  transition: transform .35s;
}
.case-card:hover .case-thumb span { transform: scale(1.1); }
.case-thumb-1 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.case-thumb-2 { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.case-thumb-3 { background: linear-gradient(135deg, #1e3a8a, #60a5fa); }
.case-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 120%, rgba(255, 255, 255, .22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px);
}
.case-body { padding: 22px 24px 26px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, .09);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.case-body h3 { font-size: 18px; margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--ink-soft); }

/* ============ 为什么选择我们 ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-item h3 {
  font-size: 16.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.why-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(37, 99, 235, .1);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item p { font-size: 13.5px; color: var(--ink-soft); }

/* ============ 联系我们 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.contact-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}
.contact-icon svg { width: 24px; height: 24px; color: #fff; }
.contact-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--ink-soft); }

.qr-placeholder {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.qr-placeholder svg { width: 44px; height: 44px; }

/* 真实微信二维码 */
.qr-box {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.qr-box img { width: 100%; height: 100%; object-fit: cover; }

/* 联系方式中的可点击链接 */
.contact-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
}
.contact-link:hover { text-decoration: underline; }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: 54px 0 30px;
  margin-top: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.footer-name { font-size: 18px; font-weight: 700; color: #fff; }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.footer-nav a { font-size: 14px; opacity: .75; transition: opacity .2s, color .2s; }
.footer-nav a:hover { opacity: 1; color: #60a5fa; }
.footer-line { height: 1px; background: rgba(255, 255, 255, .12); margin-bottom: 20px; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .68;
}
.footer-legal a { color: rgba(255, 255, 255, .68); }
.footer-legal a:hover { color: #60a5fa; }
.footer-beian { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.beian-ga { display: inline-flex; align-items: center; gap: 6px; }
.beian-ga svg { width: 14px; height: 14px; fill: currentColor; }

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 22px; height: 22px; }

/* ============ 滚动进场动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* 锚点定位时避开固定导航 */
section[id] { scroll-margin-top: 84px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid.grid-flex { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 18px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px 6px; font-size: 16px; }
  .site-nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { padding: 128px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .value-card { padding: 20px 16px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-legal { justify-content: center; text-align: center; }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-a, .float-b, .float-c { animation: none; }
}
