/* ============================================================
   上海川汇律师事务所 · 落地页样式
   红色系品牌主色 + 金色点缀 + 深炭灰，高端大气
   ============================================================ */

:root {
  --red: #C62828;
  --red-light: #E53935;
  --red-dark: #8E1010;
  --gold: #C9A566;
  --gold-light: #E3C992;
  --ink: #16181D;
  --ink-2: #1F232B;
  --ink-3: #262B34;
  --paper: #F7F4EF;
  --white: #FFFFFF;
  --text: #2A2D34;
  --muted: #7A7E88;
  --muted-light: #9BA0AA;
  --line: rgba(0, 0, 0, .08);
  --line-light: rgba(255, 255, 255, .12);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 8px 30px rgba(22, 24, 29, .08);
  --shadow-hover: 0 16px 44px rgba(22, 24, 29, .16);
  --radius: 14px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: var(--nav-h); }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.96); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #3A2C12;
  box-shadow: 0 10px 26px rgba(201, 165, 102, .4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201, 165, 102, .5); }

.btn-line {
  border: 1px solid rgba(255, 255, 255, .45);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
}
.btn-line:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

.btn-red {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(198, 40, 40, .35);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(198, 40, 40, .45); }

.btn-block { width: 100%; }

/* ============ 顶部导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.nav-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  transition: color .3s ease;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  transition: color .25s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  box-shadow: 0 6px 18px rgba(198, 40, 40, .4);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.nav-tel svg { width: 16px; height: 16px; }
.nav-tel:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(198, 40, 40, .5); }

.nav.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(22, 24, 29, .08);
}
.nav.scrolled .nav-name { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav.scrolled .nav-links a:hover { color: var(--red); }

/* ============ 第 1 屏 Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #14161C 0%, #231417 55%, #2E1113 100%);
  overflow: hidden;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(198, 40, 40, .28) 0%, rgba(198, 40, 40, 0) 62%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-seal {
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 8px rgba(198, 40, 40, .1), 0 20px 50px rgba(0, 0, 0, .45);
}
.hero-seal img { width: 100%; height: 100%; border-radius: 12px; }

.hero-en {
  font-size: 13px;
  letter-spacing: .42em;
  color: var(--gold);
  margin-bottom: 14px;
  text-indent: .42em;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: .12em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 20px;
}
.hero-divider i {
  width: 72px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider i:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-divider em {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hero-slogan {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 26px);
  color: rgba(255, 255, 255, .94);
  letter-spacing: .3em;
  text-indent: .3em;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .08em;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-trust li { text-align: center; }
.hero-trust li b {
  display: block;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--serif);
  line-height: 1.2;
}
.hero-trust li span {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .1em;
}
.hero-trust .sep {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, .14);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ 通用 Section ============ */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-dark {
  background: linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
}

.sec-head { text-align: center; margin-bottom: 60px; }
.sec-en {
  font-size: 13px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 600;
}
.sec-en.light { color: var(--gold); }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 900;
  letter-spacing: .08em;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 52px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-light), var(--red));
}
.sec-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .06em;
}
.section-dark .sec-desc { color: var(--muted-light); }

/* ============ 第 2 屏 核心优势 ============ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 26px 34px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.adv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: scaleX(0);
  transition: transform .35s ease;
}
.adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 57, 53, .1), rgba(198, 40, 40, .16));
  color: var(--red);
}
.adv-icon svg { width: 30px; height: 30px; }
.adv-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.adv-card p { font-size: 14px; color: var(--muted); }

/* ============ 第 3 屏 专业领域 ============ */
.field-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.field-item {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px 16px 26px;
  text-align: center;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.field-item svg {
  width: 34px; height: 34px;
  color: var(--gold);
  margin: 0 auto 14px;
  transition: transform .3s ease;
}
.field-item h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
  color: var(--white);
}
.field-item p {
  font-size: 12px;
  color: var(--muted-light);
  line-height: 1.6;
}
.field-item:hover {
  transform: translateY(-6px);
  background: linear-gradient(160deg, rgba(229, 57, 53, .18), rgba(142, 16, 16, .22));
  border-color: rgba(229, 57, 53, .45);
}
.field-item:hover svg { transform: scale(1.12); }

/* ============ 第 4 屏 小程序推广 ============ */
.section-mp {
  position: relative;
  background: linear-gradient(150deg, var(--red-dark) 0%, var(--red) 55%, var(--red-light) 100%);
  color: var(--white);
  overflow: hidden;
}
.mp-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.mp-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* 手机模型 */
.mp-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 26px;
}
.phone {
  width: 240px;
  border-radius: 34px;
  background: #101115;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .08);
  position: relative;
  flex: none;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  background: #101115;
  border-radius: 12px;
  z-index: 3;
}
.phone-screen {
  border-radius: 26px;
  background: linear-gradient(180deg, #FBF8F3, #F3EEE5);
  min-height: 420px;
  padding: 52px 16px 20px;
  overflow: hidden;
}
.mp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  margin: -52px -16px 16px;
  padding: 52px 16px 18px;
  color: var(--white);
}
.mp-head img {
  width: 38px; height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.mp-head b { display: block; font-size: 15px; letter-spacing: .05em; }
.mp-head span { font-size: 10px; opacity: .8; }
.mp-row {
  height: 12px;
  border-radius: 6px;
  background: rgba(22, 24, 29, .1);
  margin-bottom: 12px;
}
.mp-row.w90 { width: 90%; }
.mp-row.w80 { width: 80%; }
.mp-row.w70 { width: 70%; }
.mp-row.w60 { width: 60%; }
.mp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.mp-cards i {
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(229, 57, 53, .14), rgba(198, 40, 40, .08));
  border: 1px solid rgba(198, 40, 40, .12);
}
.mp-btn {
  margin-top: 8px;
  height: 42px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .06em;
}

/* 二维码卡片 */
.qrcode-card {
  background: var(--white);
  border-radius: 18px;
  padding: 20px 18px 16px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  transform: rotate(3deg);
  flex: none;
}
.qrcode-box {
  width: 150px; height: 150px;
  border-radius: 12px;
  border: 1px dashed rgba(22, 24, 29, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--paper);
}
.qrcode-box img { width: 100%; height: 100%; object-fit: cover; }
.qrcode-placeholder { color: var(--muted); text-align: center; }
.qrcode-placeholder svg { width: 44px; height: 44px; margin: 0 auto 6px; }
.qrcode-placeholder span { font-size: 12px; }
.qrcode-card p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
}

/* 小程序文案 */
.mp-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.mp-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 34px;
  letter-spacing: .03em;
}
.mp-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.mp-features li i {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.mp-features li i svg { width: 15px; height: 15px; }
.mp-features li b { display: block; font-size: 16px; letter-spacing: .04em; }
.mp-features li span { font-size: 13px; color: rgba(255, 255, 255, .72); }

.mp-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .16);
}
.mp-steps div { text-align: center; flex: 1; }
.mp-steps b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-light);
  line-height: 1.2;
}
.mp-steps span { font-size: 12px; color: rgba(255, 255, 255, .8); }
.mp-steps em {
  flex: none;
  width: 22px; height: 1px;
  background: rgba(255, 255, 255, .4);
  position: relative;
}
.mp-steps em::after {
  content: "";
  position: absolute;
  right: 0; top: -2.5px;
  border-left: 5px solid rgba(255, 255, 255, .4);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* ============ 第 5 屏 律师团队 ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #E9E4DA;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #3A2C12;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.team-info { padding: 20px 20px 24px; }
.team-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.team-info h3 em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .04em;
  margin-top: 2px;
}
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.team-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(198, 40, 40, .08);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}
.team-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-light);
}
.team-more { text-align: center; margin-top: 46px; }

/* ============ 第 6 屏 免费咨询 ============ */
.consult-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.consult-side h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: .1em;
  margin: 10px 0 18px;
}
.consult-lead {
  font-size: 15px;
  color: var(--muted-light);
  margin-bottom: 36px;
}
.consult-lead b { color: var(--gold-light); font-weight: 700; }
.consult-contact li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.consult-contact li:last-child { border-bottom: none; }
.consult-contact li i {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(201, 165, 102, .12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.consult-contact li i svg { width: 21px; height: 21px; }
.consult-contact li span {
  display: block;
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 3px;
}
.consult-contact li b { font-size: 15px; font-weight: 600; color: var(--white); }
.consult-tel {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: .04em;
  transition: color .25s ease;
}
.consult-tel:hover { color: var(--white); }

/* 表单卡片 */
.consult-form-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px 38px;
  color: var(--text);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  position: relative;
}
.consult-form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--red-light), var(--red-dark));
}
.consult-form-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
}
.form-tip {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 26px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-row label i { color: var(--red); font-style: normal; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E3E0D9;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #FBFAF7;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, .1);
}
.form-row input.error {
  border-color: var(--red-light);
  background: rgba(229, 57, 53, .05);
  animation: shake .3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

#submitBtn { margin-top: 8px; position: relative; }
#submitBtn .btn-loading {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
#submitBtn.loading { pointer-events: none; opacity: .85; }
#submitBtn.loading .btn-loading { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 14px;
}

/* 提交成功 */
.form-success { text-align: center; padding: 30px 6px; }
.success-icon {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(198, 40, 40, .4);
  animation: pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
.success-icon svg { width: 36px; height: 36px; }
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 12px;
}
.form-success p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ============ 页脚 ============ */
.footer {
  background: #101216;
  color: var(--muted-light);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img {
  width: 52px; height: 52px;
  border-radius: 10px;
}
.footer-brand b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--white);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.footer-brand p { font-size: 13px; }
.footer-col b {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: .06em;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color .25s ease;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

/* ============ 移动端底部悬浮栏 ============ */
.float-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(22, 24, 29, .12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
}
.float-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  -webkit-tap-highlight-color: transparent;
}
.float-bar a:active { transform: scale(.97); }
.float-tel {
  border: 1.5px solid var(--red);
  color: var(--red);
}
.float-tel svg { width: 18px; height: 18px; }
.float-consult {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(198, 40, 40, .4);
}

/* 桌面端右侧悬浮拨号 */
.float-side {
  position: fixed;
  right: 26px; bottom: 90px;
  z-index: 99;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(198, 40, 40, .45);
  animation: pulse 2.2s ease-in-out infinite;
  transition: transform .25s ease;
}
.float-side svg { width: 24px; height: 24px; }
.float-side:hover { transform: scale(1.08); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(198, 40, 40, .45), 0 0 0 0 rgba(229, 57, 53, .4); }
  50% { box-shadow: 0 10px 26px rgba(198, 40, 40, .45), 0 0 0 12px rgba(229, 57, 53, 0); }
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 200;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(22, 24, 29, .92);
  color: var(--white);
  font-size: 14px;
  letter-spacing: .03em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: 86vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg, var(--red-light), var(--red)); }

/* ============ 滚动进场动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-wrap { gap: 40px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-tel { margin-left: auto; padding: 8px 14px; }
  .nav-tel span { display: none; }
  .nav-tel::after { content: "拨打电话"; font-size: 14px; }
  .nav-name { font-size: 16px; }

  .section { padding: 72px 0; }

  .mp-wrap { grid-template-columns: 1fr; gap: 48px; }
  .mp-visual { order: 2; }
  .mp-content { order: 1; text-align: center; }
  .mp-features li { text-align: left; }
  .mp-steps { flex-direction: row; }

  .consult-wrap { grid-template-columns: 1fr; gap: 44px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .float-bar { display: flex; }
  .float-side { display: none; }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  .field-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .field-item { padding: 22px 10px 18px; }
  .adv-grid { gap: 14px; }
  .adv-card { padding: 28px 18px 26px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 16 / 10; }

  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-trust { gap: 12px; }
  .hero-trust .sep { display: none; }
  .hero-trust li { width: 45%; }

  .consult-form-card { padding: 30px 22px; }
  .mp-visual { flex-direction: column; align-items: center; gap: 22px; }
  .qrcode-card { transform: rotate(0); display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 18px; }
  .qrcode-box { width: 104px; height: 104px; margin-bottom: 0; flex: none; }
  .mp-steps { padding: 14px 12px; gap: 8px; }
  .mp-steps span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .float-side, .hero-scroll span { animation: none; }
}
