/* ============================================================
   重庆灵怡智能科技 — 共享样式 (nationrel 风格改版)
   多页共用：index / about / services / cases / contact
   纯 CSS 实现，无框架依赖
   ============================================================ */

/* ============================================================
   Layer 1: Design Tokens
   ============================================================ */
:root {
  /* Primary blues */
  --blue-900: #1E3A8A;
  --blue-800: #1E40AF;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-200: #BFDBFE;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  /* Accent */
  --cyan-400:  #22D3EE;
  --cyan-300:  #67E8F9;
  --indigo-500: #6366F1;
  --indigo-400: #818CF8;
  --purple:    #7C3AED;
  --green-400: #34D399;

  /* Dark surfaces (nav / footer / dark sections) */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-tertiary:  #94A3B8;

  /* Surfaces */
  --surface:      #FFFFFF;
  --surface-alt:  #EFF6FF;
  --surface-gray: #F8FAFC;

  /* Borders */
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, var(--blue-600), var(--blue-500));
  --grad-nav:         linear-gradient(135deg, var(--slate-800), var(--blue-900), var(--slate-800));
  --grad-hero:        linear-gradient(180deg, var(--slate-900) 0%, var(--blue-900) 50%, var(--slate-800) 100%);
  --grad-hero-overlay:linear-gradient(135deg, rgba(30,58,138,.85), rgba(30,64,175,.75), rgba(49,46,129,.8));
  --grad-cta:         linear-gradient(135deg, var(--slate-900), var(--blue-900));
  --grad-icon:        linear-gradient(135deg, var(--blue-500), var(--cyan-400));

  /* Shadows — nationrel-style, blue-tinted */
  --shadow-sm:    0 1px 2px rgba(15,23,42,.06);
  --shadow-md:    0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.06);
  --shadow-lg:    0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.06);
  --shadow-xl:    0 20px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.08);
  --shadow-2xl:   0 25px 50px -12px rgba(15,23,42,.25);
  --shadow-blue:  0 8px 25px rgba(37,99,235,.25);
  --shadow-blue-lg: 0 16px 40px rgba(37,99,235,.3);
  --shadow-blue-nav: 0 4px 20px rgba(30,58,138,.5);

  /* Radii — nationrel rounded-xl/2xl centered */
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Layout */
  --maxw:        1280px;
  --nav-h:       68px;
  --nav-top-h:   34px;
}

/* ============================================================
   Layer 2: Reset
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text-secondary);
  background: var(--surface);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   Layer 3: Layout Helpers
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.bg-alt  { background: var(--surface-alt); }
.bg-gray { background: var(--surface-gray); }
.bg-dark { background: var(--grad-cta); color: var(--slate-300); }
section { padding: 96px 0; }
.center { text-align: center; }
.mesh { position: relative; }
.mesh > * { position: relative; z-index: 1; }
.mesh::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 360px at 90% 5%, rgba(59,130,246,.06), transparent 60%),
    radial-gradient(560px 300px at 5% 95%, rgba(99,102,241,.05), transparent 60%);
}

/* ============================================================
   Layer 4: Typography & Section Heads
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--blue-600); text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--blue-500); border-radius: 1px; }
.section-title {
  font-size: 34px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -.3px; line-height: 1.25;
}
.section-title.on-dark { color: #fff; }
.section-sub {
  font-size: 16px; color: var(--text-secondary); max-width: 680px; margin-top: 16px; line-height: 1.7;
}
.section-head { margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   Layer 5: Navigation (nationrel-style double-layer)
   ============================================================ */

/* Top contact bar — removed, footer covers this */
.nav-top { display: none; }

/* Main nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(135deg, rgba(30,41,59,.96), rgba(30,58,138,.96), rgba(30,41,59,.96));
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(30,64,175,.3);
  box-shadow: var(--shadow-blue-nav);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  box-shadow: 0 8px 32px rgba(30,58,138,.6);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
  color: #fff; letter-spacing: .3px; font-size: 18px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2);
  overflow: hidden; padding: 3px;
}
.logo .mark img { width: 100%; height: 100%; object-fit: contain; }

/* Nav links — pill buttons */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-links button {
  position: relative; font-size: 14px; color: #cbd5e1; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius);
  transition: all .25s; background: transparent; border: none; cursor: pointer;
  font-family: inherit;
}
.nav-links a:hover,
.nav-links button:hover { color: var(--blue-400); background: rgba(51,65,85,.5); }
.nav-links a.active { color: var(--blue-400); background: rgba(51,65,85,.55); font-weight: 700; }
.nav-cta {
  padding: 9px 20px !important; border-radius: var(--radius) !important;
  color: #fff !important; font-weight: 700 !important;
  background: var(--grad-brand) !important;
  box-shadow: var(--shadow-blue) !important;
  transition: all .25s !important;
}
.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-blue-lg) !important;
  filter: brightness(1.08);
  background: var(--grad-brand) !important;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; z-index: 100; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex; align-items: center; gap: 4px;
}
.nav-dropdown > a::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  transition: transform .2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  background: #1e293b; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 6px;
  min-width: 200px; opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 13px; color: #cbd5e1; white-space: nowrap;
  transition: all .2s;
}
.nav-dropdown-menu a:hover {
  color: #fff; background: rgba(59,130,246,.15);
}

@media(max-width:768px){
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0 12px; min-width: 0;
  }
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown-menu a { padding: 10px 14px; }
}

/* ============================================================
   Layer 6a: Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .25s, filter .25s;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Primary — blue gradient fill */
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
  filter: brightness(1.06);
}

/* Outline — glass on dark, blue border on light */
.btn-outline {
  color: var(--blue-600); border-color: var(--blue-400);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}

/* Ghost — glassmorphism for dark sections */
.btn-ghost {
  color: #fff; border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

/* Sizes */
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: var(--radius-sm); }

/* ============================================================
   Layer 6b: Cards
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-200);
}
.card h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
.card p  { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }

/* Compact side-line card */
.card.mini { padding: 22px 26px; border-radius: var(--radius-lg); }
.card.mini h3 { font-size: 16px; }
.card.mini p  { font-size: 13.5px; color: var(--slate-500); }

/* Icon badge inside cards */
.icon-badge {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
  margin-bottom: 20px; transition: all .25s;
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge {
  background: var(--grad-icon);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

/* Editorial pillar card */
.pillar { border-left: 3px solid var(--blue-500); padding-left: 28px; }
.pillar .k {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 2px; color: var(--blue-600); margin-bottom: 8px;
}
.pillar h3 { margin-bottom: 10px; }

/* Numbered index chip */
.idx-chip {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius); font-weight: 800; font-size: 16px;
  color: var(--blue-600); background: var(--blue-50);
  margin-bottom: 18px;
}

/* Feature bullet list */
.feat-list { margin-top: 18px; display: grid; gap: 10px; }
.feat-list li {
  display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary);
  align-items: flex-start;
}
.feat-list li svg {
  width: 18px; height: 18px; color: var(--cyan-400);
  flex: 0 0 18px; margin-top: 3px;
}

/* Chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12px; color: var(--text-secondary); padding: 4px 13px;
  border-radius: var(--radius-full); background: var(--surface-gray);
  border: 1px solid var(--border);
}
.chip.solid { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-200); }

/* Badge (pill with dot) */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 1px;
  color: var(--blue-300); background: rgba(59,130,246,.14);
  border: 1px solid rgba(59,130,246,.28);
  padding: 7px 17px; border-radius: var(--radius-full);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(52,211,153,.2); }

/* ============================================================
   Layer 7a: Hero (home — two-column split)
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + 80px) 0 100px;
}

/* Grid overlay */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
}

/* Glow orbs */
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-glow.g1 {
  width: 700px; height: 700px; top: -250px; right: -150px;
  background: radial-gradient(circle, rgba(34,211,238,.25), transparent 70%);
  animation-delay: 0s;
}
.hero-glow.g2 {
  width: 600px; height: 600px; bottom: -200px; left: -150px;
  background: radial-gradient(circle, rgba(99,102,241,.2), transparent 70%);
  animation-delay: 2s;
}
.hero-glow.g3 {
  width: 400px; height: 400px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%);
  animation-delay: 1s;
}

/* Floating dots */
.hero-dot {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.hero-dot.d1 { width: 4px; height: 4px; background: rgba(255,255,255,.5); top: 18%; left: 12%; }
.hero-dot.d2 { width: 5px; height: 5px; background: rgba(103,232,249,.4); top: 28%; right: 18%; animation-delay: 1.5s; }
.hero-dot.d3 { width: 3px; height: 3px; background: rgba(165,180,252,.4); top: 62%; left: 8%; animation-delay: 3s; }
.hero-dot.d4 { width: 4px; height: 4px; background: rgba(255,255,255,.35); bottom: 28%; right: 12%; animation-delay: 4.5s; }
.hero-dot.d5 { width: 3px; height: 3px; background: rgba(34,211,238,.35); top: 44%; right: 32%; animation-delay: 2s; }

/* Accent lines */
.hero-line {
  position: absolute; pointer-events: none; z-index: 0;
}
.hero-line.l1 { top: 22%; left: 6%; width: 1px; height: 120px; background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent); }
.hero-line.l2 { bottom: 32%; right: 8%; width: 1px; height: 90px; background: linear-gradient(to top, rgba(255,255,255,.25), transparent); }
.hero-line.l3 { top: 48%; left: 4%; width: 60px; height: 1px; background: linear-gradient(to right, rgba(255,255,255,.18), transparent); }

/* Hero split layout */
.hero-split {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 0 28px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}

/* Hero copy */
.hero-copy { text-align: left; }
.hero-copy .badge { margin-bottom: 24px; }
.hero-copy h1 {
  font-size: 46px; font-weight: 800; letter-spacing: 1px;
  line-height: 1.2; margin-bottom: 20px; color: #fff;
}
.hero-copy h1 .grad {
  background: linear-gradient(135deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-copy .desc {
  font-size: 16px; color: #cbd5e1; max-width: 520px; margin-bottom: 10px; line-height: 1.75;
}
.hero-copy .proof {
  color: #93c5fd; font-size: 14.5px; font-weight: 600; margin-bottom: 24px;
}
.hero-copy .proof::before { content: '✓'; color: var(--green-400); font-weight: 800; margin-right: 8px; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px;
}
.hero-tags span {
  font-size: 13px; color: #cbd5e1; padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero art */
.hero-art { position: relative; }
.browser {
  background: var(--slate-900); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 30px 70px rgba(6,16,42,.55);
}
.browser .bar {
  height: 32px; background: var(--slate-800);
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.browser .bar i:nth-child(1) { background: #ef4444; }
.browser .bar i:nth-child(2) { background: #f59e0b; }
.browser .bar i:nth-child(3) { background: #22c55e; }
.browser img { width: 100%; display: block; }

/* Hero stats strip */
.hero-stats {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 60px auto 0; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.hero-stats .hs {
  text-align: center; padding: 22px 14px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}
.hero-stats .hs .n { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats .hs .l { font-size: 13px; color: var(--blue-300); margin-top: 4px; }

/* Centered hero (pages other than home) */
.hero-inner {
  position: relative; z-index: 2; max-width: 800px; margin: 0 auto;
  text-align: center; padding: 0 28px;
}
.hero-inner .badge { margin-bottom: 24px; }
.hero-inner h1 {
  font-size: 42px; font-weight: 800; letter-spacing: 1px;
  line-height: 1.2; margin-bottom: 16px; color: #fff;
}
.hero-inner h1 .grad {
  background: linear-gradient(135deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-inner .desc { font-size: 16px; color: #cbd5e1; max-width: 600px; margin: 0 auto; }

/* ============================================================
   Layer 7b: Section Patterns
   ============================================================ */

/* Stats grid (about page, etc.) */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat {
  text-align: center; padding: 32px 18px; border-radius: var(--radius-xl);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat .n { font-size: 34px; font-weight: 800; color: var(--blue-600); line-height: 1.1; }
.stat .l { font-size: 13.5px; color: var(--slate-500); margin-top: 8px; }

/* About split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.prose p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.prose b { color: var(--text-primary); }
.callout {
  border-left: 3px solid var(--blue-500); background: var(--blue-50);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary); font-size: 14.5px; margin: 22px 0;
}

/* ============================================================
   Layer 7c: Feature Rows (services)
   ============================================================ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature-row + .feature-row { margin-top: 52px; }
.feature-row.rev .feature-art { order: 2; }

.feature-art {
  background: linear-gradient(135deg, #eef2f7, #f6f9fc);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  box-shadow: var(--shadow-md);
}
.feature-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }

.feature-body h3 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 4px 0 12px; }
.feature-body > p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; }

/* ============================================================
   Layer 7d: Case Studies (cases page)
   ============================================================ */
.case-rich {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.case-rich + .case-rich { margin-top: 24px; }
.case-rich:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--blue-200); }
.case-rich.rev .case-media { order: 2; }

.case-media {
  position: relative; background: linear-gradient(135deg, #eef2f7, #f6f9fc);
  padding: 28px; display: flex; align-items: center;
  border-right: 1px solid var(--border-light);
}
.case-rich.rev .case-media { border-right: none; border-left: 1px solid var(--border-light); }
.case-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.case-media .shot { position: relative; width: 100%; line-height: 0; }
.shot-note {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(15,23,42,.62); color: rgba(255,255,255,.9);
  font-size: 10px; letter-spacing: .5px; padding: 3px 8px; border-radius: 4px;
}

.case-body { padding: 36px 40px; align-self: center; }
.case-body .cnum-sm {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--radius); background: var(--grad-brand);
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: var(--shadow-blue); margin-bottom: 16px;
}
.case-body h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.case-body .client {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--blue-600); font-weight: 600; margin-bottom: 14px;
}
.case-body p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }

/* Case number card (compact list view) */
.case {
  display: grid; grid-template-columns: 68px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px 30px;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); border-color: var(--blue-200); }
.case .cnum {
  width: 60px; height: 60px; border-radius: var(--radius-lg);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #fff;
  background: var(--grad-brand); box-shadow: var(--shadow-blue);
}
.case h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.case .client {
  font-size: 13.5px; color: var(--blue-600); font-weight: 600;
  margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
}
.case p { font-size: 14.5px; color: var(--text-secondary); }

/* Industry group label */
.group-label {
  display: flex; align-items: center; gap: 12px;
  margin: 48px 0 22px; font-size: 14px; font-weight: 700;
  color: var(--text-secondary); letter-spacing: 1px;
}
.group-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }
.group-label::after  { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Case detail (困境/解决) */
.case-rich.detailed .case-media { align-items: flex-start; }
.case-rich.detailed .case-body { align-self: stretch; }
.case-detail { margin-top: 18px; display: grid; gap: 16px; }
.cd-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 3px 11px; border-radius: var(--radius-xs); margin-bottom: 10px;
}
.cd-label.pain  { color: #b45309; background: #fff7ed; }
.cd-label.solve { color: var(--blue-600); background: var(--blue-50); }
.cd-list { display: grid; gap: 8px; }
.cd-list li {
  position: relative; padding-left: 16px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.75;
}
.cd-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
}
.cd-list.pain li::before  { background: #f59e0b; }
.cd-list.solve li::before { background: var(--blue-500); }
.cd-list li b { color: var(--text-primary); }

/* Metrics strip */
.metrics { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric b { font-size: 22px; font-weight: 800; color: var(--blue-600); line-height: 1.1; }
.metric b .from { font-size: 13px; color: var(--slate-400); text-decoration: line-through; margin-right: 6px; font-weight: 500; }
.metric span { font-size: 12px; color: var(--slate-400); }

/* Tech stack tags */
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack .t {
  font-size: 13px; font-weight: 600; color: var(--slate-800);
  padding: 5px 14px; border-radius: var(--radius-sm);
  background: var(--surface-gray); border: 1px solid var(--border);
}
.stack .t b { color: var(--blue-600); font-weight: 700; }

/* ============================================================
   Layer 7e: Self-built Tool Banner (services)
   ============================================================ */
.tool-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
  background: var(--slate-900); color: var(--slate-300);
  border-radius: var(--radius-2xl); padding: 44px; overflow: hidden;
}
.tool-hero .th-kicker { color: var(--blue-400); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
.tool-hero h3 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.tool-hero p { font-size: 15px; color: var(--slate-400); line-height: 1.75; }
.tool-hero .th-art {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.45); line-height: 0;
}
.tool-hero .th-art img { width: 100%; display: block; }
.tool-hero .metrics { border-top-color: rgba(255,255,255,.12); }
.tool-hero .metric b { color: #fff; }
.tool-hero .metric b .from { color: var(--slate-500); }
.tool-hero .metric span { color: var(--slate-500); }

/* ============================================================
   Layer 7f: Flow Diagram (services)
   ============================================================ */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 10px; }
.flow .node {
  text-align: center; padding: 26px 16px; border-radius: var(--radius-xl);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}
.flow .node:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.flow .node .ic {
  width: 50px; height: 50px; margin: 0 auto 12px; border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
}
.flow .node .ic svg { width: 26px; height: 26px; }
.flow .node b { display: block; color: var(--text-primary); font-size: 15.5px; }
.flow .node span { font-size: 13px; color: var(--slate-500); }
.flow .arrow { color: var(--blue-400); }
.flow .arrow svg { width: 28px; height: 28px; }

/* ============================================================
   Layer 7g: Partners, CTA, Contact, Footer
   ============================================================ */

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 600; color: var(--text-secondary); font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.partner .d { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-cta); color: #fff; text-align: center;
  padding: 88px 28px;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--slate-300); max-width: 580px; margin: 0 auto 30px; font-size: 16px; }
.cta-band .hero-glow.g1 { top: -100px; right: 15%; width: 500px; height: 500px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-md);
}
.contact-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--border); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ci-ic {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
}
.contact-item .ci-ic svg { width: 24px; height: 24px; }
.contact-item .label { font-size: 12px; color: var(--slate-400); letter-spacing: 1px; }
.contact-item .value { font-size: 15.5px; color: var(--text-primary); font-weight: 600; }

/* Map placeholder */
.map-holder {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px; background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
  position: relative; display: grid; place-items: center; color: var(--slate-400);
}
.map-holder .pin { text-align: center; z-index: 2; }
.map-holder .pin svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--blue-400); }
.map-holder .mgrid {
  position: absolute; inset: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(96,165,250,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.12) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* QR card */
.qr-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 340px;
}
.qr-card img {
  width: 200px; height: 200px; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff; padding: 8px;
}
.qr-card .cap { font-size: 14.5px; color: var(--text-secondary); margin-top: 18px; }
.qr-card .cap b { color: var(--text-primary); }

/* Static form */
.form { display: grid; gap: 16px; margin-top: 8px; }
.form label { font-size: 13.5px; color: var(--text-secondary); font-weight: 600; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 14.5px;
  padding: 13px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-gray);
  color: var(--text-primary); transition: border-color .2s, background .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--blue-400); background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .note { font-size: 12px; color: var(--slate-400); }

/* ============================================================
   Layer 7h: Footer
   ============================================================ */
.footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: 64px 0 28px;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer .logo { color: #fff; margin-bottom: 16px; font-size: 18px; }
.footer .about-line { font-size: 14px; color: var(--slate-500); max-width: 360px; line-height: 1.75; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 700; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 14px; color: var(--slate-400); transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer .fcontact { font-size: 14px; line-height: 2.1; color: var(--slate-400); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; font-size: 13px; color: var(--slate-500);
}

/* ============================================================
   Layer 8: Scroll Reveal & Animations
   ============================================================ */

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}
@keyframes ken-burns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-dot, .hero-glow { animation: none; }
  .hero-art .browser { animation: none; }
}

/* ============================================================
   Responsive: 900px intermediate
   ============================================================ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); margin: 6px auto; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.rev .feature-art { order: 0; }
}

/* ============================================================
   Responsive: 768px mobile
   ============================================================ */
@media (max-width: 768px) {
  .nav { top: 0; }

  section { padding: 68px 0; }
  .section-title { font-size: 26px; }
  .section-head { margin-bottom: 40px; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 270px; height: 100vh;
    background: var(--slate-800);
    flex-direction: column; align-items: stretch;
    padding: 90px 22px 28px; gap: 2px;
    box-shadow: -8px 0 32px rgba(0,0,0,.3);
    transition: right .3s ease; z-index: 99;
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { right: 0; }
  .nav-links a, .nav-links button {
    width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 15px;
  }
  .nav-cta { margin-top: 12px; text-align: center; }
  .hamburger { display: flex; z-index: 100; }

  /* Hero */
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 34px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .desc { margin: 0 auto 10px; }
  .hero-copy .hero-tags, .hero-copy .hero-actions { justify-content: center; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero-inner h1 { font-size: 30px; }

  /* Grid fallbacks */
  .grid-2, .grid-3, .grid-4, .stats, .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }

  /* Cases */
  .case-rich { grid-template-columns: 1fr; }
  .case-rich.rev .case-media { order: 0; }
  .case-rich .case-media { border-right: none; border-bottom: 1px solid var(--border-light); }
  .case-rich.rev .case-media { border-left: none; }
  .case-media { padding: 22px; }
  .case-body { padding: 28px; }

  /* Case compact */
  .case { grid-template-columns: 1fr; }
  .case .cnum { width: 50px; height: 50px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  /* Tool hero */
  .tool-hero { grid-template-columns: 1fr; gap: 28px; padding: 30px; }

  /* Flow */
  .flow .arrow { transform: rotate(90deg); margin: 6px auto; }
}
