/* ============================================================
   天津琦通律师事务所 · 官网设计系统 qitong.css
   品牌基因：红金回旋玉璧 —— 琦（美玉·诚信）· 通（通达·化解）
   ============================================================ */

:root {
  /* 品牌色 */
  --qitong-red: #B02A30;        /* 琦通红（取自 logo 玉璧红） */
  --qitong-red-dark: #8E1F26;
  --qitong-gold: #C9A15C;       /* 鎏金（取自 logo 玉璧金） */
  --qitong-gold-light: #E8D5AE;
  --qitong-gold-deep: #A87F35;

  /* 中性色 */
  --ink: #26262A;               /* 墨色主文字 */
  --ink-2: #55555C;             /* 次级文字 */
  --ink-3: #8B8B92;             /* 弱文字 */
  --line: #E8E6E1;              /* 分割线 */
  --paper: #FFFFFF;
  --paper-warm: #FAF8F5;        /* 暖白（宣纸感） */
  --stone: #F4F2EE;             /* 大理石灰 */
  --dark: #23252B;              /* 深色区块 */

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;

  /* 布局 */
  --w: 1200px;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(38, 38, 42, .08);
  --shadow-sm: 0 4px 16px rgba(38, 38, 42, .07);
}

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

.container { width: min(var(--w), calc(100% - 48px)); margin: 0 auto; }

/* ---------- 顶部公告条 ---------- */
.topbar { background: var(--dark); color: #CFCFCF; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar strong { color: var(--qitong-gold-light); font-weight: 500; letter-spacing: .12em; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.brand .name span { display: block; font-family: var(--sans); font-size: 10px; font-weight: 400; color: var(--ink-3); letter-spacing: .28em; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 15px; color: var(--ink-2);
  border-radius: 6px; transition: .2s; position: relative;
}
.nav a:hover { color: var(--qitong-red); background: var(--paper-warm); }
.nav a.active { color: var(--qitong-red); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: linear-gradient(90deg, var(--qitong-red), var(--qitong-gold));
  border-radius: 2px;
}
.header-cta {
  background: linear-gradient(135deg, var(--qitong-red), var(--qitong-red-dark));
  color: #fff !important; padding: 9px 20px !important; border-radius: 999px !important;
  font-size: 14px !important; box-shadow: 0 4px 14px rgba(176,42,48,.3);
}

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--paper-warm); }
.section.stone { background: var(--stone); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .3em; color: var(--qitong-gold-deep);
  text-transform: uppercase; margin-bottom: 14px;
}
.section-head .kicker::before, .section-head .kicker::after {
  content: ""; width: 28px; height: 1px; background: var(--qitong-gold);
}
.section-head h2 { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: .04em; }
.section-head p { color: var(--ink-2); margin-top: 12px; font-size: 15px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 15px;
  transition: .25s; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--qitong-red), var(--qitong-red-dark)); color: #fff; box-shadow: 0 6px 18px rgba(176,42,48,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(176,42,48,.38); }
.btn-gold { background: linear-gradient(135deg, var(--qitong-gold), var(--qitong-gold-deep)); color: #fff; box-shadow: 0 6px 18px rgba(168,127,53,.28); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--qitong-gold); color: var(--qitong-gold-deep); }

/* ---------- 面包屑 / 页头 ---------- */
.page-hero {
  background:
    linear-gradient(rgba(35,37,43,.72), rgba(35,37,43,.72)),
    repeating-linear-gradient(45deg, #2A2C33 0 2px, transparent 2px 14px);
  color: #fff; padding: 72px 0; text-align: center;
}
.page-hero h1 { font-family: var(--serif); font-size: 40px; letter-spacing: .1em; }
.page-hero .sub { color: var(--qitong-gold-light); margin-top: 12px; letter-spacing: .2em; font-size: 14px; }
.crumbs { font-size: 13px; color: var(--ink-3); padding: 18px 0; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--qitong-red); }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: .25s; position: relative; overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card .num { font-family: var(--serif); font-size: 15px; color: var(--qitong-gold); letter-spacing: .1em; }
.card h3 { font-family: var(--serif); font-size: 20px; margin: 10px 0 12px; }
.card p { font-size: 14px; color: var(--ink-2); }
.card .more { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--qitong-red); }
.card-top-gold::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--qitong-red), var(--qitong-gold));
  transform: scaleX(0); transform-origin: left; transition: .35s;
}
.card-top-gold:hover::before { transform: scaleX(1); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; background: var(--paper-warm); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag.red { background: rgba(176,42,48,.08); color: var(--qitong-red); border-color: rgba(176,42,48,.2); }
.tag.gold { background: rgba(201,161,92,.12); color: var(--qitong-gold-deep); border-color: rgba(201,161,92,.3); }

/* ---------- 律师卡 ---------- */
.lawyer-card { text-align: center; }
.lawyer-card .photo {
  width: 100%; aspect-ratio: 3/3.6; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(160deg, #EDE9E2, #DCD6CC);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 52px; color: #B9B2A6;
}
.lawyer-card .info { padding: 24px; }
.lawyer-card h3 { font-family: var(--serif); font-size: 22px; }
.lawyer-card .role { color: var(--qitong-gold-deep); font-size: 13px; margin: 6px 0 12px; letter-spacing: .1em; }
.lawyer-card .fields { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---------- 数字看板 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .n { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--qitong-red); }
.stats .n small { font-size: 18px; }
.stats .t { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-2); }
.field label b { color: var(--qitong-red); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font-size: 14px; font-family: var(--sans); background: #fff; transition: .2s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--qitong-gold); box-shadow: 0 0 0 3px rgba(201,161,92,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #9A9AA2; padding: 64px 0 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #E8E4DC; font-size: 16px; margin-bottom: 16px; font-family: var(--serif); letter-spacing: .08em; }
.footer a:hover { color: var(--qitong-gold); }
.footer .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .slogan { color: var(--qitong-gold-light); font-family: var(--serif); letter-spacing: .2em; font-size: 15px; }
.footer .contact-item { display: flex; gap: 8px; margin-bottom: 10px; }
.footer .qr {
  width: 110px; height: 110px; background: #fff; border-radius: 8px; padding: 8px;
  display: grid; place-items: center; color: #B9B2A6; font-size: 11px; text-align: center;
}
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
  display: flex; justify-content: space-between; font-size: 12px; color: #6E6E76;
}

/* ---------- 悬浮咨询 ---------- */
.float-consult {
  position: fixed; right: 24px; bottom: 28px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.float-consult a {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; color: #fff; text-align: center; line-height: 1.3;
  box-shadow: 0 8px 20px rgba(38,38,42,.2); transition: .2s;
}
.float-consult a:hover { transform: scale(1.08); }
.float-consult .tel { background: linear-gradient(135deg, var(--qitong-gold), var(--qitong-gold-deep)); }
.float-consult .zx { background: linear-gradient(135deg, var(--qitong-red), var(--qitong-red-dark)); }

/* ---------- 徽标玉璧 SVG 复用 ---------- */
.biji { display: inline-block; }

/* ---------- 列表 ---------- */
.list-timeline { position: relative; padding-left: 28px; }
.list-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.list-timeline li { position: relative; padding-bottom: 26px; }
.list-timeline li::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--qitong-gold); box-shadow: 0 0 0 4px rgba(201,161,92,.18);
}

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--paper-warm); text-align: left; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table tr:hover td { background: var(--paper-warm); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
}
