/* ==========================================================================
   律铠 lawflag.com — 设计语言令牌 (Design Tokens)
   源自 Ardot 画布 736954652390826 的实际取值
   用法：<link rel="stylesheet" href="/css/lawflag-tokens.css">
        或 @import url('/css/lawflag-tokens.css');
   ========================================================================== */

:root {
  /* ---------- 品牌色：单一 Action Blue，全站只有这一个强调色 ---------- */
  --lf-blue:            #0066cc;   /* 主行动色 / 链接 / 图标 / 徽章 */
  --lf-blue-hover:      #0055aa;   /* hover 加深 */
  --lf-blue-soft:       #e8f1fb;   /* 浅蓝底：选中态、提示条 */
  --lf-blue-glow:       rgba(0, 102, 204, 0.08);

  /* ---------- 中性色：明/暗区块交替的骨架 ---------- */
  --lf-white:           #ffffff;   /* 白区块 */
  --lf-gray-50:         #f5f5f7;   /* 米灰区块（Apple 式浅底） */
  --lf-gray-100:        #e8e8ed;   /* 分隔线 */
  --lf-gray-200:        #d2d2d7;   /* 边框 */
  --lf-ink:             #1d1d1f;   /* 主标题文字 */
  --lf-body:            #333333;   /* 正文文字 */
  --lf-muted:           #86868b;   /* 辅助文字 / 页脚 */
  --lf-on-dark:         #ffffff;   /* 暗区块上的标题 */
  --lf-on-dark-muted:   #cccccc;   /* 暗区块上的正文 */
  --lf-dark:            #272729;   /* 暗区块背景（证言 / 底部 CTA） */
  --lf-nav:             #000000;   /* 全局导航条 */

  /* ---------- 功能色：仅在必要处出现，不要当装饰用 ---------- */
  --lf-seal-red:        #c0392b;   /* 公章红，仅用于律师函预览图 */
  --lf-success:         #34a853;   /* 验真通过 */
  --lf-success-bg:      #eaf7ee;   /* 验真通过底色 */

  /* ---------- 字体：Windows/macOS 通用回退链，不依赖 SF Pro ---------- */
  --lf-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
             -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---------- 字号阶：桌面 1440 基准，移动端按 clamp 缩放 ---------- */
  --fs-display:  clamp(26px, 3.3vw, 40px); /* Hero 主标题（= employ .hero h1） */
  --fs-h1:       30px;   /* 区块大标题 / Final CTA */
  --fs-h2:       24px;   /* 常规区块标题（= employ .sec-h h2） */
  --fs-h3:       16.5px; /* 卡片标题（= employ .card h3） */
  --fs-lead:     17px;   /* Hero 副标题 */
  --fs-body-lg:  19px;   /* 区块导语 */
  --fs-body:     17px;   /* 正文 */
  --fs-sm:       14px;   /* 辅助说明 / 页脚 */

  /* ---------- 行高 ---------- */
  --lh-tight:    1.10;   /* 大标题 */
  --lh-snug:     1.15;   /* 区块标题 */
  --lh-normal:   1.50;   /* 正文 */

  /* ---------- 字重：中文只到 SemiBold 就是"重" ---------- */
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-bold:     600;   /* 标题统一用它，不要用 700 */

  /* ---------- 圆角：只在胶囊与 12 以上使用，避免"圆角滥用" ---------- */
  --r-pill:      999px;  /* 按钮 / 徽章 / 标签，全圆 */
  --r-card:      20px;   /* 大卡片 */
  --r-tile:      14px;   /* 小卡片 / 输入框 */
  --r-sm:        8px;

  /* ---------- 间距阶：8 的倍数，是版式一致的真正来源 ---------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;   /* 卡片之间的默认间隙 */
  --s-8:  32px;
  --s-10: 40px;   /* 区块内部元素间距 */
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* ---------- 版心与区块节奏 ---------- */
  --lf-container:  1200px;   /* 内容最大宽度 */
  --lf-gutter:     24px;     /* 桌面区块左右内边距 */
  --lf-section-y:  80px;     /* 区块上下留白 */
  --lf-nav-h:      55px;     /* 导航条高度（与主站导航一致，2026-10-17 由 64px 改） */

  /* ---------- 投影：极轻，只用来做层级，不做装饰 ---------- */
  --sh-card:  0 2px 16px rgba(0, 0, 0, 0.06);
  --sh-raised:0 8px 32px rgba(0, 0, 0, 0.10);
  --sh-blue:  0 4px 20px rgba(0, 102, 204, 0.22);
}

/* ==========================================================================
   基础重置：只在你的页面顶部引入一次
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--lf-font);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--lf-body);
  background: var(--lf-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--lf-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--lf-blue-hover); }

/* ==========================================================================
   版式基元
   ========================================================================== */

.lf-container {
  width: 100%;
  max-width: var(--lf-container);
  margin-inline: auto;
  padding-inline: var(--lf-gutter);
}

/* 大标题：字重 600 + 紧行高 + 轻微负字距，这是"高级感"的来源 */
.lf-display {
  font-size: var(--fs-display);
  font-weight: 650;
  line-height: 1.44;
  letter-spacing: .04em;
  color: var(--lf-ink);
  margin: 0 0 var(--s-5);
}
.lf-h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--lf-ink);
  margin: 0 0 var(--s-4);
}
.lf-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--lf-ink);
  margin: 0 0 var(--s-4);
}
.lf-h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
  color: var(--lf-ink);
  margin: 0 0 var(--s-3);
}
.lf-lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--lf-body);
  margin: 0 0 var(--s-8);
  max-width: 900px;
}
.lf-intro {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-normal);
  color: var(--lf-body);
  margin: 0 0 var(--s-10);
  max-width: 760px;
}
.lf-sm { font-size: var(--fs-sm); color: var(--lf-muted); }

/* 暗区块上的文字反相 */
.lf-on-dark .lf-display,
.lf-on-dark .lf-h1,
.lf-on-dark .lf-h2,
.lf-on-dark .lf-h3 { color: var(--lf-on-dark); }
.lf-on-dark .lf-lead,
.lf-on-dark .lf-intro { color: var(--lf-on-dark-muted); }

/* ==========================================================================
   区块：明暗交替是这套设计的骨架，务必隔一换一
   ========================================================================== */

.lf-section        { padding-block: var(--s-20); }
.lf-section--tight { padding-block: var(--s-16); }
.lf-section--white { background: var(--lf-white); }
.lf-section--gray  { background: var(--lf-gray-50); }
.lf-section--dark  { background: var(--lf-dark); color: var(--lf-on-dark); }

/* ==========================================================================
   导航条：黑色 48px 固定高度
   ========================================================================== */

.lf-nav {
  height: var(--lf-nav-h);
  /* 浅灰毛玻璃（2026-10-17 背景与高度对齐主站导航 rgba(251,251,253,.82)/55px） */
  background: rgba(251, 251, 253, .82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 内容按 employ 站 topbar 同款：居中 1280px 容器 + 左右 24px 内边距 */
  padding-inline: max(24px, calc((100% - 1280px) / 2 + 24px));
  position: sticky;
  top: 0;
  z-index: 100;
}
.lf-nav__links { display: flex; align-items: center; gap: 2px; }
.lf-nav__link {
  color: var(--lf-body); /* 2026-10-17 由 rgba(29,29,31,.62) 加深，菜单项可读性优先 */
  font-size: 13.5px;    /* 2026-10-17 由 14.5px 对齐主站导航 */
  padding: 16px 12px;   /* 2026-10-17 由 10px 14px 对齐主站导航一级项 */
  border-radius: 10px;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.lf-nav__link:hover {
  background: var(--lf-blue-soft);
  color: var(--lf-blue);
}
.lf-nav__link.is-active {
  background: var(--lf-blue-soft);
  color: var(--lf-blue);
  font-weight: 600;
}
.lf-nav__right { display: flex; align-items: center; gap: var(--s-5); }

/* ==========================================================================
   按钮：胶囊形。primary=蓝底白字，secondary=描边，dark=暗底白字
   ========================================================================== */

.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 15px var(--s-8);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 17px;
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease,
              color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lf-btn:active { transform: scale(.98); }

.lf-btn--primary {
  background: var(--lf-blue);
  color: #fff;
}
.lf-btn--primary:hover {
  background: var(--lf-blue-hover);
  color: #fff;
  box-shadow: var(--sh-blue);
}

.lf-btn--secondary {
  background: transparent;
  color: var(--lf-blue);
  border-color: var(--lf-gray-200);
}
.lf-btn--secondary:hover {
  border-color: var(--lf-blue);
  background: var(--lf-blue-glow);
  color: var(--lf-blue-hover);
}

.lf-btn--on-dark {
  background: var(--lf-blue);
  color: #fff;
}
.lf-btn--on-dark:hover { background: #1a7ae0; color: #fff; }

/* 小尺寸按钮（卡片内） */
.lf-btn--sm { padding: 10px var(--s-5); font-size: var(--fs-sm); }

/* 导航条里的蓝色小胶囊 */
.lf-btn--pill-sm {
  padding: 7px var(--s-4);
  font-size: 13px;
}

/* ==========================================================================
   卡片
   ========================================================================== */

.lf-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--s-8);
  box-shadow: var(--sh-card);
}
.lf-card--flat {
  background: #fff;
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--r-card);
  padding: var(--s-8);
  box-shadow: none;
}
.lf-card--dark {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-card);
  padding: var(--s-8);
}

/* 特色卡：蓝色描边 + 投影，用于"推荐/热门" */
.lf-card--featured {
  border: 2px solid var(--lf-blue);
  border-radius: var(--r-card);
  padding: calc(var(--s-8) - 2px);
  box-shadow: var(--sh-blue);
  position: relative;
}

/* 卡片网格：gap 一律 24px，卡片等宽 */
.lf-grid { display: grid; gap: var(--s-6); }
.lf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lf-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   徽章 / 标签
   ========================================================================== */

.lf-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--s-4);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: var(--fw-medium);
  background: var(--lf-gray-50);
  color: var(--lf-body);
}
.lf-badge--blue  { background: var(--lf-blue); color: #fff; }
.lf-badge--soft  { background: var(--lf-blue-soft); color: var(--lf-blue-hover); }
.lf-badge--green { background: var(--lf-success-bg); color: var(--lf-success); }

/* 卡片角上的"热门"标记 */
.lf-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lf-blue);
  color: #fff;
  font-size: 12px;
  font-weight: var(--fw-medium);
  padding: 4px var(--s-3);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ==========================================================================
   图标：统一 1.6px 线性图标，颜色跟随文字
   ========================================================================== */

.lf-icon {
  width: 28px;
  height: 28px;
  stroke: var(--lf-blue);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.lf-icon--lg { width: 40px; height: 40px; }
.lf-icon--sm { width: 20px; height: 20px; }

/* 圆形蓝底图标块 */
.lf-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lf-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
}

/* 圆形纯蓝底 + 白图标 */
.lf-icon-badge--solid {
  background: var(--lf-blue);
}
.lf-icon-badge--solid .lf-icon { stroke: #fff; }

/* 步骤序号圆 */
.lf-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lf-blue);
  color: #fff;
  font-size: 18px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   分栏 / 两栏布局
   ========================================================================== */

.lf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.lf-split--wide-left  { grid-template-columns: 1.2fr .8fr; }
.lf-split--wide-right { grid-template-columns: .8fr 1.2fr; }

/* ==========================================================================
   勾选清单（服务项 / 保障项）
   ========================================================================== */

.lf-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.lf-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-body);
  color: var(--lf-body);
}
.lf-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lf-blue);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   步骤条（横向，带连接线）
   ========================================================================== */

.lf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  position: relative;
}
.lf-step { position: relative; }
/* 连接线：只画在相邻步骤之间，不画到容器外 */
.lf-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 56px;
  right: calc(-1 * var(--s-6));
  height: 1px;
  background: var(--lf-gray-200);
}
.lf-step__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   流程连接箭头（用于"定制流程"三卡）
   ========================================================================== */

.lf-flow { display: flex; align-items: stretch; gap: var(--s-6); }
.lf-flow__arrow {
  align-self: center;
  color: var(--lf-blue);
  font-size: 24px;
  flex-shrink: 0;
  user-select: none;
}

/* ==========================================================================
   价格
   ========================================================================== */

.lf-price {
  font-size: 44px;
  font-weight: var(--fw-bold);
  letter-spacing: -1px;
  color: var(--lf-ink);
  line-height: 1.1;
}
.lf-price__unit { font-size: var(--fs-body); font-weight: var(--fw-normal); color: var(--lf-muted); }
.lf-price__note { font-size: var(--fs-sm); color: var(--lf-muted); }

/* ==========================================================================
   FAQ 手风琴
   ========================================================================== */

.lf-faq { border-top: 1px solid var(--lf-gray-200); max-width: 900px; }
.lf-faq__item { border-bottom: 1px solid var(--lf-gray-200); }
.lf-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-6) 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 19px;
  font-weight: var(--fw-medium);
  color: var(--lf-ink);
  text-align: left;
  cursor: pointer;
}
.lf-faq__q::after {
  content: "+";
  font-size: 24px;
  font-weight: var(--fw-normal);
  color: var(--lf-blue);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.lf-faq__item.is-open .lf-faq__q::after { transform: rotate(45deg); }
.lf-faq__a {
  display: none;
  padding-bottom: var(--s-6);
  color: var(--lf-body);
  line-height: var(--lh-normal);
}
.lf-faq__item.is-open .lf-faq__a { display: block; }

/* ==========================================================================
   证言卡（暗色区块上）
   ========================================================================== */

.lf-quote {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-card);
  padding: var(--s-8);
  color: var(--lf-on-dark-muted);
  line-height: var(--lh-normal);
}
.lf-quote__text { color: #fff; font-size: var(--fs-body-lg); margin: 0 0 var(--s-5); }
.lf-quote__meta { font-size: var(--fs-sm); color: rgba(255, 255, 255, .55); }

/* ==========================================================================
   页脚
   ========================================================================== */

.lf-footer { background: var(--lf-gray-50); padding-block: var(--s-12) var(--s-8); }
.lf-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-12); }
.lf-footer__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--lf-ink);
  margin: 0 0 var(--s-4);
}
.lf-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.lf-footer__list a { color: var(--lf-muted); font-size: var(--fs-sm); }
.lf-footer__list a:hover { color: var(--lf-blue); }
.lf-footer__legal {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--lf-gray-200);
  font-size: 13px;
  color: var(--lf-muted);
}

/* ==========================================================================
   表单 / 输入框（验真查询用）
   ========================================================================== */

.lf-field {
  display: flex;
  gap: var(--s-3);
  background: #fff;
  border: 1px solid var(--lf-gray-200);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px var(--s-6);
  align-items: center;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lf-field:focus-within {
  border-color: var(--lf-blue);
  box-shadow: 0 0 0 4px var(--lf-blue-glow);
}
.lf-field input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--lf-ink);
  background: none;
  min-width: 0;
}
.lf-field input::placeholder { color: var(--lf-muted); }

/* 验真结果卡 */
.lf-result {
  background: var(--lf-success-bg);
  border: 1px solid rgba(52, 168, 83, .3);
  border-radius: var(--r-tile);
  padding: var(--s-6);
}
.lf-result__title { color: var(--lf-success); font-weight: var(--fw-medium); margin: 0 0 var(--s-2); }

/* ==========================================================================
   响应式：断点只有两个，别做太多
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --fs-display: 34px;
    --fs-h1: 26px;
    --fs-h2: 22px;
    --lf-section-y: 64px;
  }
  .lf-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lf-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lf-steps    { grid-template-columns: repeat(2, 1fr); }
  .lf-step:not(:last-child)::after { display: none; }
  .lf-split,
  .lf-split--wide-left,
  .lf-split--wide-right { grid-template-columns: 1fr; gap: var(--s-10); }
  .lf-flow { flex-direction: column; }
  .lf-flow__arrow { transform: rotate(90deg); align-self: flex-start; }
}

@media (max-width: 640px) {
  :root {
    --fs-display: 28px;
    --fs-h1: 23px;
    --fs-h2: 20px;
    --lf-gutter: 20px;
    --s-24: 64px;
  }
  .lf-grid--2,
  .lf-grid--3,
  .lf-grid--4,
  .lf-steps { grid-template-columns: 1fr; }
  .lf-nav__links { display: none; }      /* 移动端收起主导航 */
  .lf-footer__cols { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* ==========================================================================
   无障碍 / 动效偏好
   ========================================================================== */

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