/* ============================================================
   律师事务所官网样式  site.css
   视觉基调：深藏青 + 金色，庄重、留白、衬线标题
   ============================================================ */

:root {
  --navy: #1c3a5e;
  --navy-dark: #10243f;
  --navy-light: #2b537f;
  --gold: #b98a2f;
  --gold-light: #d4af5f;
  --text: #2f3237;
  --muted: #6b7280;
  --bg: #f6f7f9;
  --line: #e5e7eb;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  font-size: 15px;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-dark); line-height: 1.4; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd6e4;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.topbar a { color: #cdd6e4; }
.topbar a:hover { color: var(--gold-light); }
.topbar .item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .bi { color: var(--gold); }

/* ---------- 导航 ---------- */
.navbar {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(16,36,63,.06);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
}
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy-dark); line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 20px 16px; font-size: 15px; color: var(--navy-dark);
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy-dark); cursor: pointer; }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; height: 520px; overflow: hidden; background: var(--navy-dark); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,36,63,.88) 0%, rgba(16,36,63,.62) 45%, rgba(16,36,63,.25) 100%);
}
.hero-content { position: relative; max-width: 640px; color: #fff; }
.hero-content h1 { color: #fff; font-size: 42px; margin-bottom: 18px; }
.hero-content h1 span { color: var(--gold-light); }
.hero-content p { color: #e6ebf3; font-size: 17px; margin-bottom: 28px; }
.btn {
  display: inline-block; padding: 12px 34px; font-size: 15px; letter-spacing: 1px;
  border-radius: 2px; transition: all .25s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-outline-light { border: 1px solid #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-dark); }
.hero-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.4); padding: 0;
}
.hero-dots button.active { background: var(--gold-light); transform: scale(1.25); }

/* ---------- 区块通用 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag { color: var(--gold); letter-spacing: 4px; font-size: 13px; }
.section-head h2 { font-size: 32px; margin: 10px 0 14px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- 律所简介 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-figure {
  background: var(--navy); color: #fff; padding: 48px 42px; position: relative; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
  background-size: cover; background-position: center;
}
.about-figure-overlay {
  position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,27,51,.92) 30%, rgba(10,27,51,.62));
}
.about-figure-content { position: relative; z-index: 1; }
.about-figure .big { font-family: var(--serif); font-size: 84px; color: var(--gold); line-height: 1; }
.about-figure h3 { color: #fff; font-size: 26px; margin: 12px 0 10px; }
.about-figure p { color: #cdd6e4; font-size: 14px; }
.about-stats { display: flex; gap: 40px; margin-top: 20px; }
.about-stats b { font-family: var(--serif); font-size: 30px; color: var(--gold-light); display: block; }
.about-text p { margin-bottom: 18px; color: #4b5563; }
.about-text .btn { margin-top: 8px; }

/* ---------- 业务领域卡片 ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card {
  background: #fff; border: 1px solid var(--line); padding: 34px 28px;
  transition: all .25s; position: relative;
}
.area-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,36,63,.08); }
.area-card .icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.area-card .pic {
  height: 150px; background-size: cover; background-position: center; margin: -34px -28px 20px;
  border-bottom: 3px solid var(--gold);
}
.area-card .body { position: relative; }
.area-card h3 { font-size: 20px; margin-bottom: 10px; }
.area-card p { color: var(--muted); font-size: 14px; }
.area-card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--gold); }

/* ---------- 律师团队 ---------- */
.lawyers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lawyer-card {
  background: #fff; border: 1px solid var(--line); overflow: hidden; transition: all .25s; text-align: center;
}
.lawyer-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,36,63,.08); }
.lawyer-card .avatar {
  width: 100%; aspect-ratio: 1/1; background: var(--bg);
  background-size: cover; background-position: center; position: relative;
}
.lawyer-card .avatar .placeholder-name {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 46px; color: var(--navy-light); background: var(--bg);
}
.lawyer-card .body { padding: 18px 16px 22px; }
.lawyer-card h3 { font-size: 18px; margin-bottom: 4px; }
.lawyer-card .pos { color: var(--gold); font-size: 13px; }
.lawyer-card .sp { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ---------- 文章卡片 ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.article-card {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: all .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,36,63,.08); }
.article-card .cover {
  width: 100%; aspect-ratio: 16/10; background: var(--navy); background-size: cover; background-position: center; position: relative;
}
.article-card .cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); font-family: var(--serif); font-size: 15px; letter-spacing: 3px; }
.article-card .meta { color: var(--muted); font-size: 12px; padding: 16px 18px 0; }
.article-card h3 { font-size: 17px; padding: 8px 18px 0; }
.article-card .sum { color: var(--muted); font-size: 13px; padding: 8px 18px 18px; flex: 1; }

/* ---------- 区块“查看全部” ---------- */
.section-more { text-align: center; margin-top: 30px; }
.section-more a {
  display: inline-block; padding: 10px 30px; border: 1px solid var(--gold);
  color: var(--gold); font-size: 14px; transition: all .25s; letter-spacing: 1px;
}
.section-more a:hover { background: var(--gold); color: #fff; }
.section-more i { margin-left: 4px; }

/* ---------- 联系 CTA ---------- */
.cta {
  background: var(--navy-dark); color: #fff; text-align: center; padding: 64px 0;
  background-size: cover; background-position: center; position: relative;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(10,27,51,.78); }
.cta-content { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.cta p { color: #cdd6e4; margin-bottom: 28px; }
.cta .phone { font-family: var(--serif); font-size: 30px; color: var(--gold-light); }

/* ---------- 页脚 ---------- */
footer {
  background: #0c1e33; color: #9fb0c5; font-size: 14px; padding: 56px 0 0;
}
footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
footer p { margin-bottom: 8px; }
footer .bi { color: var(--gold); margin-right: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0;
  text-align: center; font-size: 12px; color: #6f8299;
}

/* ---------- 内页通用 ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff; padding: 56px 0;
}
.page-hero h1 { color: #fff; font-size: 32px; }
.page-hero .crumb { color: #b9c6d8; font-size: 13px; margin-top: 8px; }
.page-hero .crumb a { color: var(--gold-light); }

/* 列表页工具栏 */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.list-toolbar form { display: flex; gap: 10px; }
.list-toolbar input[type=text], .list-toolbar select {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; min-width: 200px;
}
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--line); font-size: 14px; border-radius: 2px;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { color: #ccc; }

/* 详情页 */
.detail-body { max-width: 860px; margin: 0 auto; }
.detail-cover {
  height: 320px; background-size: cover; background-position: center; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16,36,63,.10);
}
.detail-body .lead { color: var(--muted); font-size: 17px; margin: 18px 0 26px; }
.detail-body .content { color: #333; font-size: 15.5px; }
.detail-body .content p { margin-bottom: 16px; }
.detail-meta { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; display: flex; gap: 22px; flex-wrap: wrap; }

/* 律师详情 */
.lawyer-detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 44px; }
.lawyer-detail-grid .portrait { aspect-ratio: 3/3.6; background: var(--bg); background-size: cover; background-position: center top; position: relative; border: 1px solid var(--line); }
.lawyer-detail-grid .portrait .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 80px; color: var(--navy-light); }
.info-list { list-style: none; margin-top: 22px; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-list b { color: var(--navy-dark); display: inline-block; min-width: 84px; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.contact-info h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info p { color: var(--muted); font-size: 14px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--navy-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; font-family: var(--sans);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: 2px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e8f6ee; color: #1c6b3c; border: 1px solid #b8e0c8; }
.alert-error { background: #fdecec; color: #a03030; border: 1px solid #f0c4c4; }

/* 404 */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: var(--serif); font-size: 90px; color: var(--navy-light); }
.error-page p { color: var(--muted); margin: 10px 0 28px; }

/* 响应式 */
@media (max-width: 992px) {
  .areas-grid, .lawyers-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .lawyer-detail-grid { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; }
  .hero { height: 440px; }
  .hero-content h1 { font-size: 32px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .areas-grid, .lawyers-grid, .articles-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
