/* ==========================================================================
   南京鹿之萦科技有限公司 · 官网样式表
   纯静态、零依赖（不引用任何 CDN 字体或库，国内访问不受影响）
   品牌主色 #012262 取自公司 logo 的 wordmark
   ========================================================================== */

/* ---------------------------------------------------------------- 变量 */
:root {
  --brand: #012262;
  --brand-700: #012a75;
  --brand-600: #0b3d9c;
  --accent: #1766e0;
  --accent-soft: #eaf1fe;

  --ink: #0d1526;
  --ink-soft: #33415c;
  --muted: #5b6b85;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-deep: #012262;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .06), 0 2px 8px rgba(13, 21, 38, .04);
  --shadow: 0 4px 12px rgba(13, 21, 38, .06), 0 12px 32px rgba(13, 21, 38, .07);

  --container: 1140px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
          "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- 基础 */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(30px, 5.2vw, 46px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p  { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- 布局 */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lead { font-size: 18px; color: var(--muted); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-600); }
.btn--onDark { background: #fff; color: var(--brand); }
.btn--onDark:hover { background: #eef2fa; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- 页头 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { height: 44px; width: auto; }
.brand-name { color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  padding: 9px 14px; border-radius: 8px; text-decoration: none !important;
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--bg-soft); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--accent-soft); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  padding: 76px 0 84px;
  background:
    radial-gradient(900px 420px at 88% -8%, #e8eefb 0%, rgba(232, 238, 251, 0) 62%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 19px; margin-bottom: 30px; }
.hero__points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.hero__points li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231766e0' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero__visual {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-600) 55%, var(--accent) 100%);
  box-shadow: var(--shadow);
  padding: 46px 34px;
  display: flex; align-items: center; justify-content: center;
  min-height: 340px;
  overflow: hidden;
}
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 220px at 78% 12%, rgba(255,255,255,.20), transparent 70%);
}
.hero__visual img { height: 190px; width: auto; position: relative; z-index: 1; }

/* ---------------------------------------------------------------- 卡片 */
.grid { display: grid; gap: 22px; }
.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(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3dcec; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.card__icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 20px; font-weight: 700;
}

/* 服务页的条目 */
.service { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.service:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.service h3 { display: flex; align-items: baseline; gap: 10px; }
.service h3 .no { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .08em; }

/* ---------------------------------------------------------------- 流程 */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: 15px; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 8px;
  width: 34px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- 标签 */
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pills li {
  margin: 0; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.section--soft .pills li { background: #fff; }

/* ---------------------------------------------------------------- 案例 */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case__thumb {
  padding: 18px 24px;
  background: linear-gradient(120deg, #eaf1fe, #f7f9fd);
  display: flex; align-items: center; gap: 10px;
  color: var(--brand-600); font-size: 13px; font-weight: 700; letter-spacing: .12em;
  border-bottom: 1px solid var(--line);
}
.case__thumb::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.case__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case__body h3 { margin-bottom: 8px; }
.case__body p { color: var(--muted); font-size: 15px; }
.case__tags { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags span {
  font-size: 12.5px; color: var(--brand-600); background: var(--accent-soft);
  padding: 4px 11px; border-radius: 999px;
}

/* ---------------------------------------------------------------- 提示条 */
.notice {
  border: 1px dashed #c9d6ea; background: #f7faff;
  border-radius: var(--radius); padding: 18px 22px;
  color: var(--muted); font-size: 15px;
}
.notice strong { color: var(--ink); }

/* ---------------------------------------------------------------- CTA */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: 20px; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff; box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 17px; }

/* ---------------------------------------------------------------- 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info-list li:first-child { padding-top: 0; }
.info-list .k { display: block; font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 4px; }
.info-list .v { font-size: 16.5px; color: var(--ink); font-weight: 500; }
.todo { color: #b45309; background: #fff7ed; border: 1px dashed #fdba74; padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: 15px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, .74); padding: 62px 0 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14.5px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- 内页头 */
.page-head {
  padding: 62px 0 52px;
  background: linear-gradient(180deg, #fbfcfe, #fff);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { max-width: 720px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* ---------------------------------------------------------------- 正文排版（隐私政策等） */
.prose { max-width: 820px; }
.prose h2 { font-size: 21px; margin-top: 40px; }
.prose h3 { font-size: 17px; margin-top: 26px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 240px; padding: 34px 24px; }
  .hero__visual img { height: 140px; }
  .brand img { height: 38px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
}

@media (max-width: 860px) {
  /* 紧凑版标识更宽，中等屏宽下先收起 CTA 按钮，避免页头挤压换行 */
  .header-cta .btn { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 34px; }
  .hero { padding: 52px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
  body { color: #000; }
  .card, .case { box-shadow: none; border-color: #ccc; }
}
