/* Hangzhou Beikaluo Software corporate website stylesheet. */

:root {
  --ink: #10294f;
  --ink-deep: #0a1d3d;
  --blue: #2876ec;
  --blue-dark: #1a63d6;
  --blue-soft: #eaf3ff;
  --mint: #12c9bd;
  --mint-soft: #e2faf7;
  --paper: #ffffff;
  --soft: #f5f8fd;
  --line: #e3e9f3;
  --muted: #5f7391;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }

.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 0 0 8px 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand { width: 168px; }
.brand img { width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.main-nav > a { transition: color .2s ease; }
.main-nav > a:hover { color: var(--blue); }
.main-nav .nav-cta { padding: 9px 18px; color: #fff; background: var(--blue); border-radius: 999px; transition: background .2s ease; }
.main-nav .nav-cta:hover { color: #fff; background: var(--blue-dark); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 9px 8px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }

/* ---------- Shared ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.eyebrow::before { width: 6px; height: 6px; content: ""; background: var(--mint); border-radius: 50%; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 24px rgba(40, 118, 236, .28); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 14px 28px rgba(40, 118, 236, .32); }
.button-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button-ghost:hover { color: var(--blue); border-color: #bcd2f5; }
.button-mint { color: var(--ink); background: var(--mint); }
.button-mint:hover { background: #3ad7cc; box-shadow: 0 12px 24px rgba(10, 60, 56, .22); }

.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.9; }

/* ---------- Hero ---------- */

.hero { padding: 100px 0 92px; background: linear-gradient(180deg, #f4f9ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { text-align: center; }
.hero h1 { max-width: 780px; margin: 18px auto 0; font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.hero h1 em { display: block; margin-top: 12px; color: var(--blue); font-size: .58em; font-style: normal; font-weight: 700; letter-spacing: .02em; }
.hero-lead { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { border-color: #cbdcfa; box-shadow: 0 16px 36px rgba(16, 41, 79, .09); transform: translateY(-4px); }
.service-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; }
.service-icon svg { width: 24px; height: 24px; }
.service-card:nth-child(even) .service-icon { color: #0ca79c; background: var(--mint-soft); }
.service-card h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.service-card p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.service-card-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; background: linear-gradient(140deg, #16386f, #0b2350); border: 0; }
.service-card-cta p { color: #b9c9e2; }
.service-card-cta .button { margin-top: 22px; }

/* ---------- Process ---------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 20px; border-top: 2px solid #dbe5f2; }
.step::before { position: absolute; top: -2px; left: 0; width: 44px; height: 2px; content: ""; background: var(--mint); }
.step span { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.step h3 { margin-top: 6px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.about-title h2 { margin-top: 12px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; }
.about-copy { color: var(--muted); font-size: 15px; line-height: 2; }
.about-copy p + p { margin-top: 16px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.about-values div { padding: 18px; background: var(--soft); border-radius: 12px; }
.about-values b { display: block; color: var(--ink); font-size: 15px; }
.about-values span { display: block; margin-top: 4px; font-size: 12.5px; }

/* ---------- Contact ---------- */

.contact-panel {
  padding: 64px 40px;
  color: #fff;
  text-align: center;
  background: linear-gradient(140deg, #16386f, #0b2350 65%);
  border-radius: 24px;
}
.contact-panel h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.contact-panel p { max-width: 520px; margin: 14px auto 0; color: #b6c8e2; font-size: 15px; line-height: 1.9; }
.contact-panel .button { margin-top: 30px; }

/* ---------- Footer ---------- */

.site-footer { padding-top: 52px; color: #9db1cd; background: var(--ink-deep); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 38px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand strong { display: block; color: #fff; font-size: 20px; letter-spacing: .02em; }
.footer-brand span { display: block; margin-top: 6px; font-size: 13px; }
.back-top { color: #cbd8ea; font-size: 13px; transition: color .2s ease; }
.back-top:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; padding: 22px 0; color: #7d92b3; font-size: 12px; }

/* ---------- 404 ---------- */

.not-found { display: grid; min-height: 100vh; padding: 48px 0; place-items: center; text-align: center; background: var(--soft); }
.not-found h1 { margin-top: 14px; font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.not-found-lead { margin: 14px 0 30px; color: var(--muted); }

/* ---------- Motion ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .75, .25, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 84px 0 76px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 820px) {
  .site-header { height: 66px; }
  .brand { width: 140px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(16, 41, 79, .07);
  }
  .main-nav > a { padding: 13px 0; }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; }
  .is-menu-open .main-nav { display: flex; }
  .is-menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .is-menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .shell { width: calc(100% - 40px); }
  .hero { padding: 64px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero h1 em { font-size: .64em; line-height: 1.6; }
  .hero-lead { margin-top: 18px; font-size: 14px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px 22px; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-values { gap: 10px; }
  .about-values div { padding: 14px; }
  .contact-panel { padding: 48px 24px; border-radius: 18px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
