/* ============================================================
   贷巴巴官网设计系统 v2.0  ·  金融科技 · 大厂质感
   ============================================================ */

:root {
  /* 品牌色阶 */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* 中性色 */
  --ink-900: #0b1220;
  --ink-800: #111a2e;
  --ink-700: #1e293b;
  --ink-600: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  --white: #ffffff;
  --gold: #f59e0b;
  --green: #10b981;

  /* 语义 */
  --primary: var(--brand-600);
  --primary-dark: var(--brand-800);
  --text: var(--ink-700);
  --text-soft: var(--ink-500);
  --bg: var(--white);
  --bg-soft: var(--ink-50);
  --line: var(--ink-200);

  /* 阴影层次 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .10), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 16px 40px -12px rgba(15, 23, 42, .18), 0 4px 12px -4px rgba(15, 23, 42, .08);
  --shadow-brand: 0 12px 32px -8px rgba(37, 99, 235, .45);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* 动效 */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ============ 顶部导航（毛玻璃） ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: var(--container); margin: 0 auto;
  height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.45rem;
  box-shadow: var(--shadow-brand);
  position: relative; overflow: hidden;
}
.logo-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
}
.logo:hover .logo-icon::after { animation: shine .8s var(--ease); }
@keyframes shine { to { transform: translateX(100%); } }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--ink-800); letter-spacing: .5px; line-height: 1.1; }
.logo-slogan { font-size: .68rem; color: var(--text-soft); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; color: var(--ink-600);
  transition: all .2s var(--ease);
}
.nav > a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-cta {
  margin-left: 8px; padding: 9px 20px !important;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff !important; border-radius: var(--r-full) !important;
  font-weight: 600 !important; box-shadow: var(--shadow-brand);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(37,99,235,.55); }
.city-selector {
  padding: 8px 12px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: .85rem; color: var(--ink-600); cursor: pointer;
  transition: border-color .2s;
}
.city-selector:hover { border-color: var(--brand-400); }

/* ============ Hero ============ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, #1d4ed8 0%, transparent 55%),
              radial-gradient(900px 500px at 10% 110%, #0ea5e9 0%, transparent 50%),
              linear-gradient(160deg, #0a1128 0%, #0f1f4d 55%, #0b1838 100%);
  padding: 96px 0 110px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,252,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,252,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 65%);
  filter: blur(40px); top: -180px; right: -120px;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(28px)} }

.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-full);
  background: rgba(96,165,250,.12); border: 1px solid rgba(147,197,253,.28);
  font-size: .82rem; color: var(--brand-200); margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.15;
  letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #93c5fd, #60a5fa 40%, #ffffff 75%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub { font-size: 1.12rem; color: #c4d4f5; max-width: 620px; margin: 0 auto 36px; line-height: 1.9; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--r-full);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .25s var(--ease); border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(37,99,235,.6); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }

.hero-trust { margin-top: 40px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: #a9c0ee; }
.hero-trust svg { color: var(--brand-300); }

/* 数据带 */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-inner {
  max-width: var(--container); margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--brand-700); line-height: 1; }
.stat .num em { font-style: normal; font-size: 1.2rem; }
.stat .label { margin-top: 8px; font-size: .9rem; color: var(--text-soft); }

/* ============ 通用区块 ============ */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: 2px;
  color: var(--brand-600); text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--ink-800); line-height: 1.25; }
.section-desc { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; }

/* 服务卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 20px;
  transition: all .3s var(--ease);
}
.card:hover .card-icon { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink-800); margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .94rem; line-height: 1.8; }
.card .more { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; color: var(--brand-600); font-size: .88rem; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.card:hover .more { opacity: 1; transform: translateX(0); }

/* 为什么选择我们（深色带） */
.why {
  background: radial-gradient(1000px 400px at 80% 0%, rgba(37,99,235,.25), transparent 60%), var(--ink-900);
  color: #fff;
}
.why .section-title { color: #fff; }
.why .section-desc { color: #9fb3da; }
.why .section-eyebrow { color: var(--brand-400); }
.why-item { display: flex; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: all .3s var(--ease); }
.why-item:hover { background: rgba(59,130,246,.12); border-color: rgba(96,165,250,.35); transform: translateY(-4px); }
.why-item .ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: rgba(59,130,246,.18); color: var(--brand-300); display: flex; align-items: center; justify-content: center; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 8px; color: #fff; }
.why-item p { font-size: .9rem; color: #a9bce0; line-height: 1.8; }

/* 服务流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step { text-align: center; position: relative; padding: 0 12px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--brand-600);
  box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink-800); }
.step p { font-size: .88rem; color: var(--text-soft); }
.steps::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--brand-200), var(--brand-400)); z-index: 1; }

/* 城市卡片 */
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.city-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); padding: 28px;
  transition: all .3s var(--ease); display: block;
}
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.city-card .tier {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-full);
  background: var(--brand-50); color: var(--brand-700); font-size: .74rem; font-weight: 700;
}
.city-card .tier.new { background: #fff7ed; color: #c2410c; }
.city-card .cname { font-size: 1.5rem; font-weight: 800; color: var(--ink-800); margin: 14px 0 6px; display: flex; align-items: center; justify-content: space-between; }
.city-card .cname svg { color: var(--brand-400); opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); }
.city-card:hover .cname svg { opacity: 1; transform: translateX(0); }
.city-card .ckw { font-size: .84rem; color: var(--text-soft); line-height: 1.7; }
.city-card .addr { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--ink-500); display: flex; gap: 6px; align-items: flex-start; }

/* 顾问 */
.advisor { text-align: center; padding: 30px 24px; }
.avatar {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem; font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.advisor h3 { font-size: 1.1rem; color: var(--ink-800); }
.advisor .role { display: inline-block; margin: 8px 0 12px; font-size: .8rem; color: var(--brand-700); background: var(--brand-50); padding: 3px 12px; border-radius: var(--r-full); font-weight: 600; }
.advisor p { font-size: .86rem; color: var(--text-soft); line-height: 1.7; }

/* 文章列表 */
.article-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 14px; transition: all .25s var(--ease);
}
.article-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateX(4px); }
.article-item h3 { font-size: 1.02rem; font-weight: 600; }
.article-item h3 a { color: var(--ink-700); }
.article-item:hover h3 a { color: var(--brand-600); }
.article-item .meta { font-size: .8rem; color: var(--ink-400); white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.tag { padding: 2px 10px; background: var(--ink-100); border-radius: var(--r-full); font-size: .74rem; color: var(--ink-500); }

/* CTA 区 */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  padding: 64px 48px; text-align: center; color: #fff;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: #d6e4ff; margin-bottom: 30px; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 14px 34px -10px rgba(0,0,0,.4); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.4); }

/* 合规提示条 */
.compliance {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-md); padding: 20px 24px; margin-top: 40px;
  display: flex; gap: 14px; align-items: flex-start;
}
.compliance svg { color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
.compliance p { font-size: .86rem; color: var(--brand-800); line-height: 1.8; }

/* ============ 城市页 ============ */
.city-hero {
  position: relative; color: #fff; padding: 72px 0 80px; overflow: hidden;
  background: radial-gradient(800px 400px at 80% -20%, #1d4ed8, transparent 55%),
              linear-gradient(150deg, #0a1128, #10265c);
}
.city-hero .hero-grid { opacity: .6; }
.city-hero-inner { position: relative; z-index: 2; }
.city-hero .crumb { font-size: .88rem; color: #9fb6e6; margin-bottom: 16px; }
.city-hero .crumb a:hover { color: #fff; }
.city-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.city-hero p { color: #c2d3f5; font-size: 1.08rem; }
.city-hero .pills { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.city-hero .pill { padding: 6px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-full); font-size: .84rem; }

/* 联系卡 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; text-align: center; }
.contact-tile .ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.contact-tile .k { color: var(--text-soft); font-size: .88rem; margin-bottom: 8px; }
.contact-tile .v { font-size: 1.15rem; font-weight: 700; color: var(--ink-800); }

/* ============ 表单 ============ */
.form-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 44px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .95rem; font-family: inherit; color: var(--ink-700); transition: all .2s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.field .submit { width: 100%; justify-content: center; font-size: 1.02rem; padding: 15px; }
.form-note { margin-top: 16px; font-size: .8rem; color: var(--ink-400); text-align: center; }

/* ============ 页脚 ============ */
.footer { background: #080e1f; color: #94a6c7; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer .logo-text { color: #fff; }
.footer-about p { margin-top: 18px; font-size: .88rem; line-height: 1.9; }
.footer h4 { color: #fff; font-size: .98rem; margin-bottom: 20px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; font-size: .88rem; color: #94a6c7; transition: color .2s; }
.footer-col a:hover { color: var(--brand-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .88rem; }
.footer-contact svg { color: var(--brand-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; font-size: .82rem; color: #64748b; text-align: center; line-height: 1.9; }
.footer-bottom a { color: #8ea3cc; }

/* 入场动效 */
/* 默认可见，保证无 JS / 爬虫 / 打印场景内容完整；仅在 JS 激活时做入场动画 */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .grid-3, .city-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .header-inner { height: 64px; padding: 0 16px; gap: 12px; }
  .nav { display: none; }
  .nav.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 16px; border-bottom: 1px solid var(--line); gap: 4px; align-items: stretch;
  }
  .menu-btn { display: inline-flex !important; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .city-grid, .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat .num { font-size: 1.7rem; }
  .stat .label { font-size: .82rem; margin-top: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-card { padding: 28px 22px; }
  .cta-band { padding: 44px 24px; }
}
.menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ink-700); }
