/* =========================================================
   翎客 StoreLink 官网首页样式
   - 纯手写 CSS，无任何外部依赖（无 CDN / 无字体外链 / 无 JS）
   - 移动端优先：默认按窄屏排版，宽屏用 min-width 媒体查询增强
   - 系统字体栈，境内首屏不依赖任何外网资源
   ========================================================= */

:root {
  --ink: #1f2733;
  --ink-soft: #3b4655;
  --muted: #5b6472;
  --line: #e9e3dd;
  --bg: #ffffff;
  --soft: #fff6f1;
  --accent: #e4572e;
  --accent-dark: #c2410c;
  --accent-soft: #ffede4;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(31, 39, 51, .04), 0 8px 24px rgba(31, 39, 51, .06);
  --radius: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.32; margin: 0; color: var(--ink); }

p { margin: 0; }

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

/* 无障碍：键盘跳转链接 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; z-index: 20; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 16px; letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.header-cta {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent); color: #fff; text-decoration: none; }
/* 门店后台入口：给已签约店主用的次要入口，视觉上必须弱于「联系咨询」，
   否则会抢主 CTA 的注意力。
   ⚠️ `margin-left: auto` 不能省：顶栏是 `space-between` + 三个子元素，
      不加这行「门店登录」会飘到顶栏正中间，而不是贴着右侧的「联系咨询」。 */
.header-admin {
  flex: none;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-left: auto;
  margin-right: 12px;
  white-space: nowrap;
}
.header-admin:hover { color: var(--ink); text-decoration: underline; }
/* 移动端收窄：只缩字号与间距，不隐藏 —— 店主在手机上也需要这个入口 */
@media (max-width: 640px) {
  .header-admin { font-size: 13px; margin-right: 8px; }
}

/* ---------- 首屏 ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 50% -120px, #fff0e7 0%, rgba(255, 246, 241, 0) 70%),
    linear-gradient(180deg, var(--soft) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding-top: 40px;
  padding-bottom: 44px;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #ffd9c8;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(25px, 6.4vw, 42px);
  font-weight: 800;
  letter-spacing: .2px;
}
.hero-lead {
  margin-top: 18px;
  font-size: clamp(16px, 4.2vw, 19px);
  color: var(--ink-soft);
  max-width: 46em;
}
.hero-note {
  margin-top: 12px;
  font-size: clamp(14px, 3.6vw, 16px);
  color: var(--muted);
}
.hero-note strong { color: var(--accent-dark); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-foot {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.hero-foot a { font-weight: 700; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform .05s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(228, 87, 46, .28);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- 通用 section ---------- */
.section { padding: 48px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(21px, 5.2vw, 30px);
  font-weight: 800;
}
.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(15px, 3.8vw, 17px);
  max-width: 48em;
}
.footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 卡片（老办法 / 价值） ---------- */
.cards {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.card-metric {
  margin-top: 10px !important;
  color: var(--accent-dark) !important;
  font-size: 15px !important;
  font-weight: 600;
}
.card-metric b { font-size: 18px; }

/* ---------- 三步流程 ---------- */
.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.step-no {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.step h3 { font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* 提示块 */
.callout {
  margin-top: 22px;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.75;
}
.callout-warn {
  background: #fff8ed;
  border: 1px solid #f7d9a8;
  color: #7a4a05;
}
.callout strong { color: #7a4a05; }

/* ---------- 价格 ---------- */
.price-box {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.price-box p { font-size: clamp(16px, 4.2vw, 19px); font-weight: 600; color: var(--ink); }
.price-box .btn { margin-top: 16px; }

/* ---------- 联系方式 ---------- */
.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.contact-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: baseline;
}
.contact-label { color: var(--muted); font-size: 14px; }
.contact-value { font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---------- 留资表单（申请试用 / 门店入驻） ---------- */
/* 锚点跳转预留吸顶 header（60px）+ 10px 余量，否则标题被顶栏遮住 */
#lead-form { scroll-margin-top: 70px; }
/* 全局兜底：JS 用 hidden 属性切换表单/成功卡片，避免被其它 display 规则覆盖 */
[hidden] { display: none !important; }

.lead-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
/* 行动区突出：边框用 accent（白底 section 里唯一强调色，不新增色值） */
.lead-card { border: 1px solid var(--accent); }

.lead-field { margin-top: 14px; }
.lead-field:first-child { margin-top: 0; }
.lead-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.lead-field .req { color: var(--accent-dark); }
.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  /* 16px 起步：iOS Safari 聚焦时不会自动放大页面 */
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
.lead-field textarea { resize: vertical; min-height: 84px; }
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.lead-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.lead-err { display: none; }
.lead-err.is-show {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* 蜜罐字段：对真人彻底不可见（不能用 visibility/opacity，否则部分填充器仍会填） */
.lead-hp { display: none; }

.lead-policy {
  margin-top: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.lead-policy summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}
.lead-policy p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.lead-policy strong { color: var(--ink-soft); }

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.lead-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

.lead-msg { display: none; }
.lead-msg.is-show {
  display: block;
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  background: #fff8ed;
  border: 1px solid #f7d9a8;
  color: #7a4a05;
}

.lead-submit { width: 100%; margin-top: 16px; }
.lead-submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.lead-alt { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.lead-noscript {
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

/* 成功态：表单区整体替换 */
.lead-success { text-align: center; padding: 8px 4px 4px; }
.lead-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.lead-success h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.lead-success p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.lead-success .lead-success-alt { font-size: 14px; color: var(--muted); }

.lead-values h3 { font-size: 17px; font-weight: 700; }
.lead-values ul { list-style: none; margin: 14px 0 0; padding: 0; }
.lead-values li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.lead-values li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 800;
}
.lead-phone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1f2733;
  color: #cbd2dc;
  padding: 30px 0 36px;
  font-size: 13px;
  line-height: 1.8;
}
.footer-brand { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.site-footer .footer-note { color: #aab3c0; margin-top: 6px; }
.site-footer strong { color: #e8ecf2; }
.site-footer a { color: #ffb89c; }

/* 备案号行（ICP 备案号；公安备案号通过后沿用同一套样式）
   - 中英数混排：按常规断行规则处理，仅在确实放不下时才允许任意断行，
     避免「2026048682」这类连续数字被从中间拆开，也保证 360px 窄屏不横向溢出。
   - 颜色 #aab3c0 / #ffb89c 对页脚底色 #1f2733 的对比度约 7:1 与 8.9:1，均高于 4.5:1。*/
.footer-beian {
  margin-top: 14px;
  color: #aab3c0;
  font-size: 13px;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: anywhere;
}
.footer-beian a {
  color: #ffb89c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.footer-beian a:hover { color: #fff; text-decoration-color: #ffb89c; }
/* 公安备案号启用后，若保留前置盾牌图标，用下面这条与文字基线对齐 */
.footer-beian svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* 页脚「门店后台」入口区块。
   ⛔ 页脚是**深色底**（#1f2733）：不能用正文的深色文字变量（#111 压深蓝 ≈ 1.4:1，
      等于看不见），配色必须沿用页脚既有那套（#e8ecf2 标题 / #aab3c0 说明，均 ≥7:1）。
   ⛔ 分隔线用半透明白而不是半透明黑：黑线压在深蓝底上完全看不见。 */
.footer-admin {
  text-align: center;
  padding: 32px 16px 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 32px;
}
.footer-admin-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; color: #e8ecf2; }
.footer-admin-btn { display: inline-flex; align-items: center; }
/* ⛔ 必须提高一级特异性：`.site-footer a { color: #ffb89c }` 是 (0,1,1)，
   会盖掉 `.btn-ghost` 的深色字 → 白底上出现浅橙字，对比度约 2.4:1，看不清。 */
.site-footer .footer-admin-btn { color: var(--ink); }
.site-footer .footer-admin-btn:hover { color: var(--accent-dark); }
.footer-admin-note { font-size: 13px; color: #aab3c0; margin: 10px 0 0; }

/* ---------- 宽屏增强 ---------- */
@media (min-width: 720px) {
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .hero-inner { max-width: 820px; }
  .cards, .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .step { padding: 26px 24px 24px; }
  /* 两列：左价值要点 / 右表单。显式定位保证与移动端（表单在上）的 DOM 顺序解耦 */
  .lead-grid { grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
  .lead-values { grid-column: 1; grid-row: 1; }
  .lead-card { grid-column: 2; grid-row: 1; }
}
