/* ==========================================================
   大正律师事务所 — 自写 CSS + 设计令牌（色板 B）
   ========================================================= */
:root {
  --brand-primary: #22262B;      /* 炭黑 */
  --brand-primary-soft: #2E343B;
  --brand-accent: #8C2F39;       /* 酒红 */
  --brand-accent-dark: #6E242D;
  --brand-bg: #F4F4F2;           /* 浅灰底 */
  --text-main: #2B2B2B;
  --text-muted: #6E6E6E;
  --text-on-dark: #F5F3EF;
  --card-bg: #FFFFFF;
  --line: #E3E1DC;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(34, 38, 43, .08);
  --shadow-hover: 0 12px 32px rgba(34, 38, 43, .14);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--brand-bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--card-bg); }

/* ---------- 标题 ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block;
  color: var(--brand-accent);
  font-size: 14px;
  letter-spacing: .35em;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--brand-primary);
  line-height: 1.35;
}
.section-head p { color: var(--text-muted); margin-top: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 6px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: all .25s ease;
}
.btn--primary { background: var(--brand-accent); color: #fff; }
.btn--primary:hover { background: var(--brand-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--brand-primary); color: #fff; }
.btn--dark:hover { background: var(--brand-primary-soft); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(34,38,43,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--brand-accent); color: #fff;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-family: var(--font-serif); color: #fff; font-size: 20px; letter-spacing: .1em; line-height: 1.3; }
.logo-text small { display: block; font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: .3em; font-family: var(--font-sans); }

.nav-links { display: flex; gap: 36px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--brand-accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-tel { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2; }
.nav-tel span { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.6); display: block; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(34,38,43,.88), rgba(34,38,43,.94)),
              url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
  color: var(--text-on-dark);
  padding: 120px 0 140px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: 64px; width: 72px; height: 3px; background: var(--brand-accent);
}
.hero .kicker { color: #C89299; letter-spacing: .4em; font-size: 14px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.3; margin: 18px 0 20px;
}
.hero h1 em { font-style: normal; color: #D4838D; }
.hero p.lead { max-width: 640px; margin: 0 auto 40px; color: rgba(245,243,239,.78); font-size: 17px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- 信任条 ---------- */
.trust { background: var(--brand-primary); color: #fff; padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-item b { font-family: var(--font-serif); font-size: 32px; display: block; color: #fff; }
.trust-item b i { font-style: normal; color: #D4838D; font-size: 18px; margin-left: 2px; }
.trust-item span { font-size: 14px; color: rgba(255,255,255,.65); }

/* ---------- 服务卡片 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); border-top: 3px solid transparent;
  transition: all .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-top-color: var(--brand-accent); box-shadow: var(--shadow-hover); }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(140,47,57,.1); color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.service-card h3 { font-family: var(--font-serif); font-size: 20px; color: var(--brand-primary); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.service-card a { color: var(--brand-accent); font-size: 14px; font-weight: 600; }
.service-card a:hover { text-decoration: underline; }

/* ---------- 差异优势 ---------- */
.advantage-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.advantage-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.advantage-list { display: grid; gap: 26px; }
.adv-item { display: flex; gap: 18px; }
.adv-item .num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  font-family: var(--font-serif); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.adv-item h3 { font-size: 18px; color: var(--brand-primary); margin-bottom: 4px; }
.adv-item p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.case-card img { height: 190px; width: 100%; object-fit: cover; }
.case-body { padding: 26px 24px; }
.case-tag { display: inline-block; font-size: 12px; color: var(--brand-accent); background: rgba(140,47,57,.08); padding: 3px 12px; border-radius: 20px; margin-bottom: 12px; }
.case-body h3 { font-family: var(--font-serif); font-size: 18px; color: var(--brand-primary); margin-bottom: 8px; line-height: 1.5; }
.case-body p { color: var(--text-muted); font-size: 14px; }

/* ---------- 律师团队 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lawyer-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center; transition: all .3s;
}
.lawyer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.lawyer-card img { height: 280px; width: 100%; object-fit: cover; }
.lawyer-info { padding: 24px; }
.lawyer-info h3 { font-family: var(--font-serif); font-size: 19px; color: var(--brand-primary); }
.lawyer-info .role { color: var(--brand-accent); font-size: 13.5px; margin: 4px 0 10px; font-weight: 600; }
.lawyer-info p { color: var(--text-muted); font-size: 13.5px; }

/* ---------- 咨询流程 ---------- */
.flow { background: var(--brand-primary); color: #fff; }
.flow .section-head h2 { color: #fff; }
.flow .section-head .kicker { color: #D4838D; }
.flow .section-head p { color: rgba(255,255,255,.6); }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.flow-step { text-align: center; padding: 0 12px; }
.flow-step .step-num {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--brand-accent); color: #fff;
  font-family: var(--font-serif); font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(140,47,57,.18);
}
.flow-step h3 { font-size: 19px; margin-bottom: 8px; }
.flow-step p { color: rgba(255,255,255,.65); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details {
  background: var(--card-bg); border-radius: 8px; box-shadow: var(--shadow);
  padding: 20px 26px; cursor: pointer;
}
.faq-list summary {
  font-weight: 600; color: var(--brand-primary); font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; color: var(--brand-accent); transition: .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- 预约表单 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); color: var(--brand-primary); margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 30px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-line .ci {
  flex: 0 0 42px; height: 42px; border-radius: 8px;
  background: rgba(140,47,57,.1); color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-line b { display: block; font-size: 15px; color: var(--brand-primary); }
.contact-line span { font-size: 14px; color: var(--text-muted); }
.qr-hint {
  margin-top: 26px; padding: 16px 20px; border-left: 3px solid var(--brand-accent);
  background: rgba(140,47,57,.05); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-muted);
}

.contact-form { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--brand-primary); margin-bottom: 7px; }
.form-group label i { font-style: normal; color: var(--brand-accent); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: var(--font-sans); background: #FBFAF8; color: var(--text-main);
  transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-accent); }
.form-group textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; text-align: center; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success .ok {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(140,47,57,.1); color: var(--brand-accent);
  font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.form-success h3 { font-family: var(--font-serif); color: var(--brand-primary); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1A1D21; color: rgba(255,255,255,.6); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer-grid h4 { color: #fff; font-family: var(--font-serif); font-size: 17px; margin-bottom: 16px; }
.footer-grid p, .footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #D4838D; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); }
.disclaimer { background: rgba(140,47,57,.25); color: rgba(255,255,255,.6); font-size: 12.5px; text-align: center; padding: 12px 24px; }

/* ---------- 移动端悬浮条 ---------- */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--brand-primary); box-shadow: 0 -4px 20px rgba(0,0,0,.18);
}
.mobile-bar a {
  flex: 1; text-align: center; padding: 13px 4px; color: #fff; font-size: 13.5px; font-weight: 600;
}
.mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
.mobile-bar a.hot { background: var(--brand-accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .services-grid, .case-grid, .team-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .advantage-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 88px 0 100px; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--brand-primary); flex-direction: column; gap: 0;
    padding: 10px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-toggle { display: block; }
  .nav-tel { display: none; }
  .nav-cta .btn { padding: 9px 18px; font-size: 14px; }
  .services-grid, .case-grid, .team-grid, .flow-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 48px; }
  .contact-form { padding: 28px 22px; }
}