/* ============================================================
   玖若信息官网  ·  Design Tokens
   ============================================================ */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #60A5FA;
  --color-accent: #EA580C;
  --color-accent-dark: #C2410C;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #1E293B;
  --color-text-muted: #475569;
  --color-border: #E2E8F0;
  --color-muted: #E9EFF8;
  --color-dark: #0F172A;
  --color-dark-2: #1E293B;

  /* 字体策略：仅使用操作系统自带字体（PingFang SC / Segoe UI 等，随系统授权，网页调用无版权争议）
     与开源免费可商用字体（Noto Sans SC，SIL OFL 协议）；已移除「微软雅黑」（商业使用需方正授权） */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .68, .35, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; letter-spacing: .01em; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, .45); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
}
.logo-text { font-size: 19px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 10px; font-weight: 500; letter-spacing: .18em; color: var(--color-text-muted); }
.logo-text.light, .logo-text.light small { color: #fff; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--color-primary); background: rgba(37, 99, 235, .08); }
.nav-links a.active { color: var(--color-primary); background: rgba(37, 99, 235, .1); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.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;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #BFDBFE, transparent 70%);
  top: -140px; right: -80px;
}
.blob-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #FED7AA, transparent 70%);
  bottom: -160px; left: -120px;
  opacity: .4;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  border: 1px solid rgba(37, 99, 235, .2);
  color: var(--color-primary-dark);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light) 60%, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 4vw, 48px);
}
.hero-stats dt { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--color-primary); }
.hero-stats dd { font-size: 13.5px; color: var(--color-text-muted); margin-top: 2px; }

/* Hero 视觉：手机模型 */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.glass {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .8);
}
.phone-mock {
  width: 250px;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
.phone-notch {
  width: 90px; height: 20px;
  margin: 2px auto 10px;
  background: var(--color-dark);
  border-radius: 999px;
}
.phone-screen {
  background: linear-gradient(180deg, #EFF6FF, #fff);
  border-radius: 30px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 420px;
}
.app-header { height: 26px; border-radius: 8px; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); }
.app-banner { height: 110px; border-radius: 14px; background: linear-gradient(120deg, #3B82F6, #93C5FD); }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-card { height: 74px; border-radius: 12px; background: #DBEAFE; }
.app-card:nth-child(2) { background: #FFEDD5; }
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-item { height: 40px; border-radius: 10px; background: #F1F5F9; }

.float-chip {
  position: absolute;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.chip-1 { top: 12%; left: -4%; animation: floatY 5s ease-in-out infinite .4s; color: var(--color-primary-dark); }
.chip-2 { top: 42%; right: -6%; animation: floatY 7s ease-in-out infinite .9s; }
.chip-3 { bottom: 12%; left: 2%; animation: floatY 6s ease-in-out infinite 1.4s; color: var(--color-accent-dark); }

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

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 104px 0; }
.section-muted { background: linear-gradient(180deg, #fff, var(--color-muted)); }
.section-dark { background: linear-gradient(150deg, var(--color-dark), var(--color-dark-2)); color: #E2E8F0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: var(--color-primary-dark);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-tag.light { background: rgba(96, 165, 250, .15); color: #93C5FD; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--color-text-muted); font-size: 16.5px; }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, .35);
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--icon-bg, #E8F0FE);
  color: var(--icon-color, var(--color-primary));
  margin-bottom: 22px;
  transition: transform .3s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 19.5px; margin-bottom: 10px; }
.service-card > p { font-size: 14.5px; color: var(--color-text-muted); margin-bottom: 18px; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; }
.service-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: .55;
}

/* ============================================================
   Cases
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.case-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-cover {
  height: 180px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(255, 255, 255, .92);
}
.case-emoji-icon svg { width: 56px; height: 56px; }
.case-body { padding: 24px 26px 28px; }
.case-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(37, 99, 235, .1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.case-body h3 { font-size: 19px; margin-bottom: 8px; }
.case-body > p { font-size: 14.5px; color: var(--color-text-muted); margin-bottom: 18px; }
.case-metrics { display: flex; gap: 10px; flex-wrap: wrap; }
.case-metrics span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ============================================================
   Process
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-list li {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.process-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .3);
}
.step-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
  margin-bottom: 16px;
}
.process-list h3 { font-size: 18px; margin-bottom: 8px; }
.process-list p { font-size: 14.5px; color: var(--color-text-muted); }

/* ============================================================
   About
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { font-size: clamp(26px, 3.2vw, 36px); color: #fff; margin-bottom: 22px; }
.about-text p { color: #94A3B8; margin-bottom: 16px; font-size: 16px; }
.about-values { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-values li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #E2E8F0; }
.about-values svg { width: 22px; height: 22px; color: #4ADE80; flex-shrink: 0; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.glass-dark {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.about-card {
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s var(--ease), background .3s;
}
.about-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .1); }
.about-card strong { font-size: 32px; font-weight: 800; color: #fff; }
.about-card span { font-size: 14px; color: #94A3B8; }
.about-card:nth-child(2) { transform: translateY(20px); }
.about-card:nth-child(4) { transform: translateY(20px); }
.about-card:nth-child(2):hover, .about-card:nth-child(4):hover { transform: translateY(15px); }

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(37, 99, 235, .1);
  color: var(--color-primary);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.contact-item p { font-size: 14.5px; color: var(--color-text-muted); }

.contact-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group label i { color: #DC2626; font-style: normal; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-group input.error { border-color: #DC2626; background: #FEF2F2; }
.form-tip { margin-top: 14px; font-size: 14px; text-align: center; min-height: 22px; }
.form-tip.success { color: #16A34A; }
.form-tip.error { color: #DC2626; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--color-dark); color: #94A3B8; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 18px; }
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--color-primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ============================================================
   Back to top
   ============================================================ */
.back-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  display: grid; place-items: center;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--color-primary-dark); }
.back-top svg { width: 22px; height: 22px; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-card:nth-child(2), .about-card:nth-child(4) { transform: none; }
  .about-card:nth-child(2):hover, .about-card:nth-child(4):hover { transform: translateY(-5px); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }

  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; margin-top: 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding: 76px 0; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .services-grid, .cases-grid, .process-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .float-chip { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
