/* =========================================================
   XX律师事务所 - 全站样式
   深蓝 + 金色 专业律所风格 · 移动端优先
   ========================================================= */

:root {
  --navy-900: #0b1f38;
  --navy-800: #10294a;
  --navy-700: #16365f;
  --navy-600: #1f4478;
  --gold: #b9965c;
  --gold-light: #d8bf92;
  --ink: #23303f;
  --ink-soft: #4a5a6e;
  --muted: #7b8898;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e5e0d6;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(11, 31, 56, .08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.4; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 顶部条 ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.85); font-size: 13px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold-light); }

/* ---------- 导航 ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; font-weight: 700; flex: none;
}
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy-900); letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); border-bottom-color: var(--gold); }
.nav-cta { background: var(--navy-800); color: #fff !important; padding: 10px 18px !important; border-radius: 6px; border-bottom: none !important; font-weight: 600; }
.nav-cta:hover { background: var(--navy-600); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(11,31,56,.94) 0%, rgba(22,54,95,.74) 40%, rgba(22,54,95,.32) 68%, rgba(11,31,56,.64) 100%),
    url("../images/hero-banner.jpg") center center / cover no-repeat,
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  color: #fff; padding: 76px 0 88px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,150,92,.25), transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 42px; line-height: 1.35; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { margin: 22px 0 34px; color: rgba(255,255,255,.82); font-size: 18px; max-width: 660px; }
.hero-stats { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--serif); font-size: 30px; color: var(--gold-light); font-weight: 700; }
.hero-stats .label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: .2s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }

/* ---------- 区块 ---------- */
.section { padding: 68px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 3px; font-weight: 600; }
.section-head h2 { font-size: 30px; margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- 业务领域卡片 ---------- */
.grid-practices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.practice-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: .25s; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(11,31,56,.04); position: relative;
}
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.practice-card .icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--navy-800); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; font-family: var(--serif);
}
.practice-card h3 { font-size: 21px; margin-bottom: 8px; }
.practice-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.practice-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.practice-card .tag { background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.practice-card .more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--navy-600); }
.article-card .badge { position: absolute; top: 14px; right: 14px; background: var(--gold); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 20px; letter-spacing: 1px; font-weight: 600; box-shadow: 0 2px 6px rgba(185,150,92,.35); }
.practice-card .badge {
  position: absolute; top: 16px; right: 16px; background: var(--gold); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 20px; letter-spacing: 1px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(185,150,92,.35);
}

/* ---------- 律师卡片 ---------- */
.grid-lawyers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.lawyer-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center;
  transition: .25s;
}
.lawyer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; font-weight: 700;
  overflow: hidden; flex: none;
}
.avatar-photo { object-fit: cover; border-radius: 50%; display: block; }
.lawyer-card h3 { font-size: 19px; }
.lawyer-card .role { color: var(--gold); font-size: 13px; margin: 4px 0 10px; }
.lawyer-card .areas { font-size: 13px; color: var(--ink-soft); }
.lawyer-card .more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--navy-600); }

/* ---------- 文章卡片 ---------- */
.grid-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s;
  display: flex; flex-direction: column; position: relative;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.article-card .meta .dot { margin: 0 6px; }
.article-card h3 { font-size: 18px; line-height: 1.5; }
.article-card p { color: var(--ink-soft); font-size: 14px; margin-top: 10px; flex: 1; }

/* ---------- 为什么选择我们 ---------- */
.grid-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.reason { background: var(--card); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--gold); }
.reason .no { font-family: var(--serif); color: var(--gold); font-size: 15px; font-weight: 700; }
.reason h3 { font-size: 18px; margin: 8px 0; }
.reason p { font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 54px 0; }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 12px 0 26px; }
.cta-band .btn-gold { margin-right: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 54px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--gold-light); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer .firm-name { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy-600); }
.breadcrumb .sep { margin: 0 8px; color: #c9c3b8; }

/* ---------- 页面标题 ---------- */
.page-head { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 52px 0; }
.page-head h1 { color: #fff; font-size: 32px; }
.page-head p { color: rgba(255,255,255,.8); margin-top: 10px; max-width: 760px; }

/* ---------- 正文内容 ---------- */
.prose { font-size: 16px; }
.prose h2 { font-size: 24px; margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.answer-box {
  background: #fff; border: 1px solid var(--gold); border-left: 5px solid var(--gold); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 26px;
}
.answer-box .label { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.answer-box p { font-family: var(--serif); font-size: 18px; color: var(--navy-900); margin-top: 8px; line-height: 1.7; }
.tip-box {
  background: #f3f6fb; border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; border: 1px solid #d9e2f0;
}
.tip-box .label { color: var(--navy-600); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.tip-box p { margin-top: 6px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 22px; font-weight: 600; color: var(--navy-900); cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; font-family: var(--serif); font-size: 16.5px;
}
.faq-q .chev { color: var(--gold); transition: .2s; flex: none; font-size: 14px; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* ---------- 律师详情 ---------- */
.lawyer-profile { display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.lawyer-profile .avatar-lg { width: 160px; height: 160px; border-radius: 8px; border: 2px solid var(--gold-light); }
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-table th { width: 150px; color: var(--muted); font-weight: 500; background: var(--bg); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.contact-card h3 { margin-bottom: 8px; }
.contact-item { display: flex; gap: 14px; margin: 18px 0; align-items: flex-start; }
.contact-item .k { color: var(--gold); font-weight: 700; font-size: 14px; width: 64px; flex: none; }
.contact-item .v { color: var(--ink); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--sans); font-size: 15px; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.map-box {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #eef2f7;
}
.map-box iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-box__link { display: block; line-height: 0; }
.map-box__img { display: block; width: 100%; height: auto; }
.map-tip { margin-top: 10px; font-size: 13px; color: var(--muted); }
.map-tip a { color: var(--gold); }

/* ---------- 列表页 ---------- */
.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

/* ---------- 页面内部小工具 ---------- */
.page-content { padding: 48px 0 72px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.side-card h3 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-card ul { list-style: none; }
.side-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.side-card li:last-child { border-bottom: none; }
.side-card li a { color: var(--ink-soft); }
.side-card li a:hover { color: var(--navy-600); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 12px 6% 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { gap: 26px; }
  .lawyer-profile { grid-template-columns: 1fr; }
  .lawyer-profile .avatar-lg { width: 120px; height: 120px; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .brand-name { font-size: 18px; }
}
/* 咨询表单状态 */
.consult-status { font-size: 13.5px; margin: 12px 0 0; min-height: 18px; }
.consult-status.ok { color: #1d7a42; }
.consult-status.err { color: #c0392b; }
/* ---------- 在线咨询悬浮窗 ---------- */
.kf-widget { position: fixed; right: 20px; bottom: 24px; z-index: 999; font-family: var(--sans); }
.kf-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0b1f38, #16365f); color: #fff;
  border: 0; border-radius: 40px; padding: 12px 20px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 31, 56, .35); font-size: 14.5px; font-weight: 600;
}
.kf-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(11, 31, 56, .45); }
.kf-panel {
  position: absolute; right: 0; bottom: 60px; width: 288px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .2); overflow: hidden;
}
.kf-panel[hidden] { display: none; }
.kf-head { background: linear-gradient(135deg, #0b1f38, #16365f); color: #fff; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.kf-body { padding: 12px 14px 14px; }
.kf-tel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #8c1f28, #a52a35); color: #fff;
  border-radius: 8px; padding: 11px; font-size: 16px; text-decoration: none; font-weight: 700;
}
.kf-tel:hover { opacity: .93; }
.kf-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
  border: 1px solid var(--line); color: var(--navy-600); border-radius: 8px; padding: 10px;
  font-size: 14px; text-decoration: none;
}
.kf-link:hover { border-color: var(--gold); }
.kf-meta { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
@media (max-width: 560px) { .kf-widget { right: 12px; bottom: 14px; } .kf-panel { width: min(288px, calc(100vw - 40px)); } }

/* ---------- 列表页：左图右文 + 虚线分隔（法律解读 / 精选案例共用） ---------- */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start;
  padding: 32px 0; border-bottom: 1px dashed #e3ded4; color: inherit;
}
.article-row:first-child { padding-top: 0; }
.article-row:last-child { border-bottom: 0; padding-bottom: 0; }
.article-row__thumb { overflow: hidden; background: #f5f1e8; }
.article-row__thumb img { width: 100%; height: auto; transition: transform .45s ease; }
.article-row:hover .article-row__thumb img { transform: scale(1.04); }
.article-row__cat { font-size: 12px; letter-spacing: 2px; color: var(--gold); margin-bottom: 9px; }
.article-row__title { font-size: 21px; line-height: 1.5; font-weight: 500; color: #262326; margin-bottom: 10px; transition: color .2s; }
.article-row:hover .article-row__title { color: #aa8447; }
.article-row__sum { font-size: 14.5px; line-height: 1.9; color: #7b7b7b; }
.article-row__meta { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; color: #a8a29a; }
.article-row__meta svg { flex: none; }
/* 精选案例列表：条目标签（如“推荐”） */
.article-row__badge { display: inline-block; margin-left: 10px; padding: 1px 9px; font-size: 11px; letter-spacing: 1px; color: #fff; background: #aa8447; vertical-align: 2px; }
@media (max-width: 820px) {
  .article-row { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .article-row__title { font-size: 19px; }
  .article-row__sum { font-size: 14px; }
}
