/* 法律人 · 律师网站风格 Demo 样式 */
:root {
  --navy: #16305c;
  --navy-dark: #0f2140;
  --gold: #b39159;
  --gold-light: #d6bc8a;
  --bg: #f7f5f0;
  --card: #ffffff;
  --text: #2c2c2a;
  --muted: #6b6f76;
  --line: #e5e0d5;
  --serif: "Microsoft YaHei", "微软雅黑", sans-serif;
  --sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部 ===== */
.topbar { background: var(--navy-dark); color: #cdd6e4; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a:hover { color: var(--gold-light); }
.header { background: var(--card); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; background: var(--navy); color: var(--gold-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.brand h1 { font-family: var(--serif); font-size: 30px; color: var(--navy); letter-spacing: 6px; }
.brand small { display: block; font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.hotline { text-align: right; font-size: 13px; color: var(--muted); }
.hotline strong { display: block; font-size: 20px; color: var(--gold); font-family: var(--serif); letter-spacing: 1px; }

/* ===== 导航 ===== */
.nav { background: var(--navy); }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.nav li a { display: block; padding: 13px 22px; color: #e8ecf3; font-size: 16px; letter-spacing: 1px; border-right: 1px solid rgba(255,255,255,.07); transition: background .2s; }
.nav li a:hover, .nav li a.on { background: var(--navy-dark); color: var(--gold-light); }

/* ===== 面包屑 ===== */
.crumb { padding: 14px 0; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--gold); }

/* ===== 通栏 banner：首席律师 ===== */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 24px; padding-bottom: 28px; }

/* 首页英文 banner（导航下方） */
.home-banner { margin: 8px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(22,48,92,.10); border: 1px solid var(--line); }
.home-banner img { width: 100%; display: block; }
.hero .wrap { padding-top: 24px; }
.sec-label { font-family: var(--serif); font-size: 17px; color: var(--navy); letter-spacing: 2px; position: relative; padding-left: 12px; margin-bottom: 18px; font-weight: bold; }
.sec-label::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--gold); border-radius: 2px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; }
.lawyer-brief { display: flex; gap: 16px; align-items: flex-start; }
.avatar { width: 110px; height: 140px; background: linear-gradient(160deg, #3d5a8f, var(--navy)); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #cdd8ec; font-size: 13px; flex-shrink: 0; }
.lawyer-brief h2 { font-family: var(--serif); color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.lawyer-brief p { font-size: 13px; color: var(--muted); }
.lawyer-brief .more { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 13px; }
.hero-slogan { border-left: 1px solid var(--line); padding-left: 46px; }
.hero-slogan h2 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.hero-slogan p { color: var(--muted); font-size: 14px; max-width: 560px; }
.hero-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { border: 1px solid var(--gold); color: var(--gold); font-size: 12px; padding: 3px 12px; border-radius: 20px; }

.home-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 20px; padding: 24px 0 40px; align-items: start; }
.home-grid > * { min-width: 0; }
.col { display: flex; flex-direction: column; gap: 20px; }

/* ===== 卡片模块 ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 2px solid var(--navy); background: var(--card); }
.card-hd h3 { font-family: var(--serif); font-size: 17px; color: var(--navy); position: relative; padding-left: 12px; letter-spacing: 2px; }
.card-hd h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--gold); border-radius: 2px; }
.card-hd .more { font-size: 12px; color: var(--muted); }
.card-hd .more:hover { color: var(--gold); }
.card-bd { padding: 10px 16px 14px; }

.news-list { list-style: none; }
.news-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }
.news-list a { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list a:hover { color: var(--navy); }
.news-list time { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* 业务领域 */
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.area-item { min-width: 0; }
.area-item h4 { font-size: 15px; font-family: var(--serif); color: var(--navy); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: bold; }
.area-item h4::before { content: ""; width: 8px; height: 8px; background: var(--navy); transform: rotate(45deg); flex-shrink: 0; }
.area-item h4 a:hover { color: var(--gold); }
.area-item ul { list-style: none; }
.area-item li { font-size: 13px; padding: 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-item li::before { content: "·"; color: var(--gold); margin-right: 6px; }
.area-item li a:hover { color: var(--gold); }
/* 列表页分组视图：还原分组 li 样式（避免 .list-page li 的 flex 叠加） */
.list-page .area-item li { display: block; padding: 5px 0; border-bottom: none; }
.list-page .area-item li::before { content: "·"; width: auto; height: auto; background: none; border-radius: 0; transform: none; margin-right: 6px; }

/* 侧栏 */
.side-form { background: var(--navy); color: #dfe6f0; border-radius: 8px; padding: 16px; }
.side-form h3 { font-family: var(--serif); color: var(--gold-light); font-size: 17px; margin-bottom: 4px; letter-spacing: 2px; }
.side-form p.sub { font-size: 12px; color: #93a4bd; margin-bottom: 12px; }
.side-form input, .side-form textarea { width: 100%; border: 1px solid #33507e; background: #1d3a66; color: #fff; border-radius: 4px; padding: 7px 10px; font-size: 13px; margin-bottom: 8px; font-family: var(--sans); }
.side-form input::placeholder, .side-form textarea::placeholder { color: #7c90ad; }
.side-form button { width: 100%; background: var(--gold); color: #fff; border: none; border-radius: 4px; padding: 10px; font-size: 15px; letter-spacing: 6px; cursor: pointer; }
.side-form button:hover { background: #c9a86b; }

/* 通用跳转按钮 */
.btn-goto { display: inline-block; background: var(--gold); color: #fff; font-size: 14px; letter-spacing: 2px; padding: 8px 22px; border-radius: 4px; transition: background .2s; }
.btn-goto:hover { background: #c9a86b; color: #fff; }

.doc-list { list-style: none; counter-reset: doc; }
.doc-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.doc-list li:last-child { border-bottom: none; }
.doc-list a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-list a:hover { color: var(--gold); }
.doc-list .pdf { font-size: 11px; color: #c0392b; border: 1px solid #e5b3ac; border-radius: 3px; padding: 0 4px; flex-shrink: 0; }

/* 聘请法律顾问指南按钮 */
.guide-btn { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.guide-btn a { display: block; text-align: center; color: #fff; font-size: 14px; font-weight: bold; letter-spacing: 1px; white-space: nowrap; padding: 9px 6px; border-radius: 4px; background: linear-gradient(180deg, #2c4d85, #16305c); border: 1px solid #122547; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); transition: background .2s; }
.guide-btn a:hover { background: linear-gradient(180deg, #b39159, #8f6f3d); }

/* 案例集锦 / 律师文集 箭头列表 */
.arrow-list { list-style: none; }
.arrow-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrow-list li:last-child { border-bottom: none; }
.arrow-list li::before { content: "►"; color: var(--gold); font-size: 11px; margin-right: 7px; }
.arrow-list a:hover { color: var(--gold); }

/* ===== 栏目页 ===== */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-bottom: 40px; align-items: start; }
.page-grid > * { min-width: 0; }
.list-page ul { list-style: none; }
.list-page li { display: flex; align-items: baseline; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.list-page li::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }
.list-page li time { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.list-page li a { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-page li a:hover { color: var(--gold); }
.pager { display: flex; gap: 6px; justify-content: center; padding: 22px 0; }
.pager a, .pager span { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; background: var(--card); }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== 文章页 ===== */
.article { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 30px 34px; }
.article h1.title { font-family: var(--serif); font-size: 24px; color: var(--navy); line-height: 1.5; }
.article .meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.article .body { font-size: 15.5px; line-height: 2; color: #333; }
.article .body p { margin-bottom: 14px; text-align: justify; }
.article .body h2 { font-family: var(--serif); font-size: 18px; color: var(--navy); margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid var(--gold); }
.article .foot-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.article .foot-nav a { color: var(--navy); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article .foot-nav a:hover { color: var(--gold); }

/* ===== 律师团队页 ===== */
.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; padding: 6px 2px 20px; }
.lawyer-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: center; transition: box-shadow .2s, transform .2s; }
.lawyer-card:hover { box-shadow: 0 6px 18px rgba(22,48,92,.14); transform: translateY(-3px); }
.lawyer-card .ph { width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg, #d8dee9, #aab8cd); display: flex; align-items: center; justify-content: center; color: #5d6c84; font-size: 13px; }
.lawyer-card .nm { font-family: var(--serif); font-size: 16px; color: var(--navy); padding: 10px 8px 2px; }
.lawyer-card .tt { font-size: 12px; color: var(--muted); padding-bottom: 12px; }

/* ===== 页脚 ===== */
.footer { background: var(--navy-dark); color: #9fb0c8; margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 34px 16px 26px; }
.footer h4 { color: #e8ecf3; font-size: 15px; font-family: var(--serif); letter-spacing: 2px; margin-bottom: 12px; }
.footer p, .footer li { font-size: 13px; line-height: 2; }
.footer ul { list-style: none; }
.footer a:hover { color: var(--gold-light); }
.footer .bar { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; text-align: center; font-size: 12px; color: #6d7f99; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr 300px; }
  .col-left { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slogan { border-left: none; padding-left: 0; }
}
@media (max-width: 720px) {
  .home-grid, .page-grid { grid-template-columns: 1fr; }
  .col-left { grid-template-columns: 1fr; }
  .brand h1 { font-size: 24px; letter-spacing: 3px; }
  .nav li a { padding: 11px 14px; font-size: 14px; }
  .area-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .article { padding: 20px 16px; }
  .hotline { display: none; }
}
