/**
 * 帮房汇公司官网 · 样式
 *
 * @Date 2026-11-03
 * @Description 公司官网（bangfanghui.com）全站样式。瑞士编辑风：大字号中文标题 +
 *              编号章节 + 发丝线，不用任何外部字体 / 图片 / CDN，保证审核方在任意网络下秒开。
 * @Copyright: © guiyii. All rights reserved.
 */

:root {
  --ink: #12110f;
  --ink-2: #45423c;
  --muted: #86827a;
  --line: #e6e3dd;
  --line-soft: #f0ede8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --orange: #f06000;
  --orange-soft: #fdf1e8;
  --blue: #0050e0;

  --measure: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* 项目 logo（uniapp/src/static/logo.png 缩到 96px，透明底） */
.brand__mark {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
}

.brand__en {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 14.5px;
}

.nav a {
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

/* ---------- 版心 ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 0%, var(--orange-soft) 0%, rgba(253, 241, 232, 0) 58%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 116px) var(--gutter) clamp(48px, 7vw, 92px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--orange);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 9.2vw, 132px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: clamp(2px, 0.9vw, 14px);
}

.hero__sub {
  margin: clamp(20px, 3vw, 34px) 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
  color: var(--ink-2);
}

.hero__rule {
  height: 2px;
  width: 0;
  background: var(--orange);
  margin: clamp(30px, 4vw, 46px) 0 0;
  animation: draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes draw { to { width: min(180px, 42vw); } }

/* 内页首屏：比首页矮一档，标题不再拉满 */
.hero--sub .hero__inner {
  padding: clamp(44px, 6vw, 84px) var(--gutter) clamp(38px, 5vw, 68px);
}

.hero--sub h1 {
  font-size: clamp(34px, 5.2vw, 68px);
  letter-spacing: 0.04em;
}

.hero--sub .hero__sub { font-size: clamp(15px, 1.5vw, 17.5px); }

/* ---------- 章节 ---------- */

.section { padding: clamp(52px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }

.section__head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(12px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.65em;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section__body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(12px, 3vw, 40px);
}

.section__body > .content { max-width: 62ch; }

h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }

/* ---------- 业务卡片 ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.cell {
  background: var(--white);
  padding: clamp(22px, 3vw, 34px);
  transition: background 0.25s ease;
}

.cell:hover { background: #fffdfb; }

.cell__idx {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.cell p { font-size: 14.5px; color: var(--muted); line-height: 1.85; margin: 0; }

/* ---------- 流程 ---------- */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child { border-top: 1px solid var(--line); }

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 0.5em;
  font-variant-numeric: tabular-nums;
}

.steps b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.steps span { font-size: 14.5px; color: var(--muted); }

/* ---------- 信息表 ---------- */

.facts { width: 100%; border-collapse: collapse; font-size: 15px; }

.facts th,
.facts td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.facts th {
  width: 38%;
  max-width: 220px;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}

.facts td { color: var(--ink); }
.facts tr:first-child th,
.facts tr:first-child td { border-top: 1px solid var(--line); }

/* ---------- CTA ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(240, 96, 0, 0.28);
}

.cta::after { content: "→"; }

/* ---------- 页脚 ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(40px, 5vw, 64px) 0 clamp(30px, 4vw, 46px);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
}

.foot__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot__brand { color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__legal { margin-top: 10px; color: var(--muted); }

/* ---------- 入场动效 ---------- */

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rise--1 { animation-delay: 0.05s; }
.rise--2 { animation-delay: 0.16s; }
.rise--3 { animation-delay: 0.28s; }
.rise--4 { animation-delay: 0.4s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */

@media (max-width: 760px) {
  .section__head,
  .section__body { grid-template-columns: 1fr; gap: 10px; }
  .num { padding-top: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand__en { display: none; }
  .nav { gap: 16px; font-size: 13.5px; }
  .facts th { width: 42%; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; animation: none; }
  .hero__rule { width: min(180px, 42vw); animation: none; }
}
