/* ==========================================================================
   小蚁e贷 官网 · 全局样式
   纯静态站点，无构建依赖；蓝色系设计系统
   ========================================================================== */

:root {
  /* 品牌色阶 */
  --blue-500: #1e6fff;
  --blue-600: #2b6de3;
  --blue-700: #1a54c4;
  --blue-900: #0b3d91;
  --blue-950: #072a66;
  --ink-900: #12213f;
  --ink-700: #3c4c6e;
  --ink-500: #6b7a99;
  --line-200: #e3ebf8;
  --mist-100: #f4f8fe;
  --white: #ffffff;

  /* 字体：数字/英文标签使用 DIN 风格窄体，中文正文使用系统黑体族 */
  --font-display: "Saira Condensed", "DIN Alternate", "Bahnschrift", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Helvetica Neue", sans-serif;

  --shadow-card: 0 24px 60px -18px rgba(11, 61, 145, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(18, 33, 63, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-h: 68px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

/* --------------------------------------------------------------------------
   顶部导航（白底吸顶）
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line-200);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(11, 61, 145, 0.22);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px -4px rgba(30, 111, 255, 0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-900);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-600);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--blue-500);
  background: var(--mist-100);
}

.nav-link.active {
  color: var(--blue-500);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
}

/* --------------------------------------------------------------------------
   首页 Hero 区
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  color: var(--white);
  /* TODO: 背景图待补充 background-image: url('../images/hero-bg.png'); */
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(84, 158, 255, 0.55), rgba(84, 158, 255, 0) 62%),
    radial-gradient(900px 480px at -12% 108%, rgba(9, 44, 110, 0.85), rgba(9, 44, 110, 0) 60%),
    linear-gradient(128deg, var(--blue-900) 0%, var(--blue-700) 46%, var(--blue-500) 100%);
  background-color: var(--blue-700);
  background-size: cover;
  background-position: center;
}

/* 装饰光斑（呼应原稿圆形元素） */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  left: -140px;
  top: -160px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 68%);
}

.hero::after {
  width: 620px;
  height: 620px;
  right: -180px;
  bottom: -320px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 66%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
  padding: 84px 24px 96px;
}

.hero-title {
  margin: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 2px;
  margin: 6px 0 8px;
  text-shadow: 0 10px 34px rgba(4, 26, 68, 0.45);
  font-variant-numeric: tabular-nums;
}

.hero-amount-note {
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
}

/* 2x2 卖点 */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  max-width: 640px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.feature p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

/* 右栏：小程序二维码卡片 */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.hero-card-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mist-100);
  border: 1px solid var(--line-200);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.qr-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  padding: 12px;
  border: 2px dashed #a9c3ef;
  border-radius: var(--radius-md);
  background: var(--mist-100);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-frame:hover {
  border-color: var(--blue-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.qr-frame:focus-visible {
  border-color: var(--blue-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  outline: none;
}

/* 仅在 JS 可用时才承诺可点击（与 .reveal 门控一致） */
html.js .qr-frame {
  cursor: pointer;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.qr-caption {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 1px;
}

.qr-caption strong {
  color: var(--blue-600);
}

.qr-tip {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* 点击二维码占位的轻提示 */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translate(-50%, 16px);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(18, 33, 63, 0.92);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

.site-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   关于我们页
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  color: var(--white);
  /* TODO: 背景图待补充 background-image: url('../images/hero-bg.png'); */
  background:
    radial-gradient(760px 340px at 82% -20%, rgba(84, 158, 255, 0.5), rgba(84, 158, 255, 0) 62%),
    linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  background-color: var(--blue-700);
}

.page-banner::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 66%);
}

.banner-inner {
  position: relative;
  z-index: 1;
  padding: 64px 24px 68px;
}

.banner-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.banner-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 4px;
}

.banner-crumb {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.banner-crumb a:hover { text-decoration: underline; }

.about-body {
  background: var(--mist-100);
  flex: 1 0 auto;
  padding: 56px 0 72px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-soft);
  padding: 40px 44px;
  margin-bottom: 28px;
}

.about-card:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head::before {
  content: "";
  align-self: center;
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-900));
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-900);
}

.section-head .en {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-600);
}

.about-card p {
  font-size: 15.5px;
  color: var(--ink-700);
  text-align: justify;
  margin-bottom: 12px;
}

.about-card p:last-child { margin-bottom: 0; }

/* 业务模式三卡 */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.biz-item {
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--mist-100), var(--white) 60%);
  padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.biz-item:hover {
  transform: translateY(-4px);
  border-color: #bcd3f7;
  box-shadow: var(--shadow-soft);
}

.biz-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-900));
  margin-bottom: 16px;
}

.biz-icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.biz-item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.biz-item p {
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 0;
  text-align: left;
}

/* 旗下产品卡 */
.product-row {
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  background: linear-gradient(120deg, rgba(30, 111, 255, 0.06), rgba(255, 255, 255, 0) 55%);
}

.product-logo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px -8px rgba(30, 111, 255, 0.5);
}

.product-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 14.5px;
  color: var(--ink-700);
  margin-bottom: 10px;
  text-align: left;
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-points li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mist-100);
  border: 1px solid var(--line-200);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--blue-950), #051d49);
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  padding: 44px 24px 40px;
}

.footer-product {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-company {
  font-size: 14.5px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.footer-icp {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-icp a {
  color: #9fc1ff;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   进场动画（仅在有 JS 时启用，无 JS 不影响阅读）
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.36s; }

/* --------------------------------------------------------------------------
   窄屏适配
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 56px 24px 72px;
  }

  .hero-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .biz-grid { grid-template-columns: 1fr; }

  .product-row {
    flex-direction: column;
    text-align: center;
  }

  .product-info p { text-align: center; }

  .product-points { justify-content: center; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 17px; letter-spacing: 1px; }
  .brand-sub { display: none; }
  .nav-link { padding: 8px 12px; font-size: 15px; }
  .nav-link.active::after { left: 12px; right: 12px; }
  .hero-features { grid-template-columns: 1fr; gap: 22px; }
  .banner-title { font-size: 30px; letter-spacing: 2px; }
  .about-card { padding: 28px 22px; }
}
