/* 江西南芳律师事务所官网 —— 前台样式 */
:root {
  --navy: #1c3d6e;
  --navy-d: #12294b;
  --navy-l: #2a5490;
  --gold: #c8a45c;
  --gold-d: #a5843e;
  --ink: #24303f;
  --gray: #6b7686;
  --line: #e5e9f0;
  --bg: #f7f8fb;
  --red: #b01f24;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(18, 41, 75, 0.08);
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: #fff; font-size: 15px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== 顶部条 ===== */
.topbar { background: var(--navy-d); color: #cdd8ea; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a:hover { color: #fff; }
.topbar .admin-link { opacity: .75; }
.topbar .admin-link:hover { opacity: 1; }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(18,41,75,.05); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.header .logo { display: flex; align-items: center; min-width: 0; gap: 12px; }
.header .logo img { max-height: 54px; height: auto; width: auto; max-width: 200px; object-fit: contain; }
.header .logo .logo-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.header .logo .logo-txt b { font-family: var(--serif); font-size: 21px; color: var(--navy); letter-spacing: 2px; font-weight: 700; white-space: nowrap; }
.header .logo .logo-txt em { font-style: normal; font-size: 10px; letter-spacing: 1.5px; color: #8a6d3a; margin-top: 3px; white-space: nowrap; }
.main-nav { display: flex; gap: 4px; min-width: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a { display: block; padding: 0 15px; line-height: 78px; font-size: 16px; color: var(--ink); border-bottom: 3px solid transparent; transition: .2s; }
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.nav-toggle { display: none; }

/* 中等宽度：压缩菜单间距与 logo，避免律所名称被挤压截断 */
@media (max-width: 1200px) and (min-width: 961px) {
  .header .container { gap: 10px; }
  .header .logo { gap: 8px; }
  .header .logo img { max-width: 150px; }
  .header .logo .logo-txt b { font-size: 18px; letter-spacing: 1px; }
  .main-nav { gap: 0; }
  .main-nav > li > a { padding: 0 9px; font-size: 14.5px; }
}

/* ===== 页面横幅 ===== */
.page-banner { height: 300px; background: linear-gradient(135deg, #12294b, #2a5490); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: rgba(14, 30, 58, .48); }
.page-banner .pb-inner { position: relative; z-index: 2; text-align: center; }
.page-banner h1 { font-family: var(--serif); font-size: 40px; letter-spacing: 8px; font-weight: 700; }
.page-banner p { margin-top: 10px; font-size: 15px; color: #d5deee; letter-spacing: 3px; }
.page-banner .pb-line { width: 64px; height: 3px; background: var(--gold); margin: 18px auto 0; }

/* 首页大 banner */
.hero { position: relative; height: 560px; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,30,58,.55), rgba(14,30,58,.2)); }
.hero .container { position: relative; z-index: 2; color: #fff; }
.hero h2 { font-family: var(--serif); font-size: 48px; letter-spacing: 6px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { margin-top: 18px; font-size: 18px; letter-spacing: 2px; color: #e6ecf7; }
.hero .btn { display: inline-block; margin-top: 32px; padding: 12px 38px; border: 1px solid var(--gold); color: #f4e9cf; letter-spacing: 3px; transition: .25s; }
.hero .btn:hover { background: var(--gold); color: #12294b; }

/* ===== 通用区块 ===== */
.section { padding: 70px 0; }
.section.gray { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-family: var(--serif); font-size: 32px; color: var(--navy-d); letter-spacing: 4px; }
.sec-head .en { display: block; margin-top: 6px; font-size: 13px; color: var(--gray); letter-spacing: 4px; text-transform: uppercase; }
.sec-head .bar { width: 46px; height: 3px; background: var(--gold); margin: 16px auto 0; }
.sec-head.left { text-align: left; }
.sec-head.left .bar { margin-left: 0; }

/* ===== 首页：律所发展 ===== */
.develop { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.develop .pic { position: relative; }
.develop .pic img { border-radius: var(--radius); box-shadow: var(--shadow); }
.develop .pic::before { content: ''; position: absolute; left: -14px; top: 14px; width: 100%; height: 100%; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.develop .txt p { color: var(--gray); text-align: justify; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-item { background: var(--bg); border-top: 3px solid var(--navy); padding: 18px 8px; text-align: center; border-radius: 0 0 var(--radius) var(--radius); }
.stat-item .v { font-family: var(--serif); font-size: 30px; color: var(--navy); font-weight: 700; }
.stat-item .v i { font-style: normal; font-size: 16px; color: var(--gold-d); }
.stat-item .l { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* 图表 */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; margin-top: 50px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart-card h3 { font-size: 16px; color: var(--navy-d); border-left: 4px solid var(--gold); padding-left: 10px; margin-bottom: 16px; }

/* ===== 首页：分所布局 ===== */
.branch-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.branch-mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: .25s; position: relative; overflow: hidden; }
.branch-mini::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold)); transform: scaleX(0); transition: .3s; }
.branch-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.branch-mini:hover::before { transform: scaleX(1); }
.branch-mini .type { display: inline-block; font-size: 12px; color: var(--gold-d); border: 1px solid var(--gold); padding: 1px 10px; border-radius: 20px; margin-bottom: 12px; }
.branch-mini h3 { font-family: var(--serif); font-size: 20px; color: var(--navy-d); }
.branch-mini p { font-size: 13px; color: var(--gray); margin-top: 8px; line-height: 1.6; }

/* ===== 首页：荣誉 ===== */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.honor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.honor-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.honor-card .pic { height: 170px; background: var(--navy-d); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.honor-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.honor-card .body { padding: 18px 20px; }
.honor-card h3 { font-size: 16px; color: var(--navy-d); }
.honor-card .meta { font-size: 12.5px; color: var(--gray); margin-top: 6px; }

/* ===== 首页：新闻 ===== */
.home-news { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item .date { flex: none; width: 64px; text-align: center; background: var(--bg); border-radius: var(--radius); padding: 8px 0 6px; align-self: flex-start; }
.news-item .date .d { font-family: var(--serif); font-size: 24px; color: var(--navy); font-weight: 700; display: block; line-height: 1.1; }
.news-item .date .m { font-size: 11px; color: var(--gray); }
.news-item h4 { font-size: 15.5px; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item:hover h4 { color: var(--navy); }
.news-item p { font-size: 13px; color: var(--gray); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .col-tag { display: inline-block; font-size: 11px; color: var(--navy-l); background: #edf2fa; border-radius: 3px; padding: 0 6px; margin-bottom: 5px; }

/* ===== 通用列表页 ===== */
.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--gray); }
.crumbs .container { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--navy); }
.crumbs b { color: var(--navy); font-weight: 600; }

/* 栏目 tab */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; justify-content: center; }
.tabs a { padding: 8px 24px; border: 1px solid var(--line); border-radius: 30px; font-size: 14.5px; color: var(--ink); background: #fff; transition: .2s; }
.tabs a:hover { border-color: var(--navy); color: var(--navy); }
.tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 新闻列表 */
.news-list-item { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-list-item .pic { flex: none; width: 230px; height: 150px; border-radius: var(--radius); overflow: hidden; background: var(--navy-d); }
.news-list-item .pic img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.news-list-item:hover .pic img { transform: scale(1.05); }
.news-list-item h3 { font-size: 18px; color: var(--ink); line-height: 1.5; }
.news-list-item:hover h3 { color: var(--navy); }
.news-list-item .summary { font-size: 13.5px; color: var(--gray); margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-item .meta { font-size: 12.5px; color: #9aa4b3; display: flex; gap: 14px; align-items: center; }
.news-list-item .meta .tag { color: var(--navy-l); background: #edf2fa; padding: 1px 8px; border-radius: 3px; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; padding: 0 10px; }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager a:hover { border-color: var(--navy); color: var(--navy); }

/* 文章页 */
.article { max-width: 860px; margin: 0 auto; }
.article-head { text-align: center; padding: 30px 0 24px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-family: var(--serif); font-size: 28px; color: var(--navy-d); line-height: 1.5; }
.article-head .meta { margin-top: 14px; font-size: 13px; color: #9aa4b3; display: flex; gap: 18px; justify-content: center; }
.article-body { padding: 34px 0 50px; font-size: 16px; }
.article-body p { margin-bottom: 18px; text-align: justify; }
.article-body h2, .article-body h3 { font-family: var(--serif); color: var(--navy-d); margin: 26px 0 14px; }
.article-body img { margin: 20px auto; border-radius: var(--radius); }
.article-body a { color: var(--navy-l); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 50px; border-top: 1px solid var(--line); font-size: 14px; color: var(--gray); }

/* ===== 关于我们 ===== */
.branch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.branch-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.branch-card .pic { height: 210px; overflow: hidden; background: var(--navy-d); position: relative; }
.branch-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.branch-card:hover .pic img { transform: scale(1.06); }
.branch-card .pic .badge { position: absolute; left: 14px; top: 14px; background: rgba(18,41,75,.85); color: #f3e3bb; font-size: 12px; padding: 3px 12px; border-radius: 20px; letter-spacing: 1px; }
.branch-card .body { padding: 22px 24px; }
.branch-card h3 { font-family: var(--serif); font-size: 21px; color: var(--navy-d); margin-bottom: 10px; }
.branch-card p { font-size: 13.5px; color: var(--gray); text-align: justify; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.branch-card .info { margin-top: 14px; font-size: 13px; color: var(--navy-l); display: grid; gap: 4px; }
.branch-card .info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 专业建设 ===== */
.dep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.dep-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .25s; }
.dep-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.dep-card .pic { height: 190px; overflow: hidden; background: var(--navy-d); position: relative; }
.dep-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.dep-card:hover .pic img { transform: scale(1.06); }
.dep-card .pic .num { position: absolute; right: 16px; bottom: 10px; font-family: var(--serif); font-size: 44px; color: rgba(255,255,255,.35); font-weight: 700; }
.dep-card .body { padding: 22px 24px; }
.dep-card h3 { font-family: var(--serif); font-size: 20px; color: var(--navy-d); }
.dep-card .scope { font-size: 12.5px; color: var(--gold-d); margin: 8px 0 12px; letter-spacing: .5px; }
.dep-card p { font-size: 13.5px; color: var(--gray); text-align: justify; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 律师风采 ===== */
.lawyer-tools { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; }
.lawyer-tools select, .lawyer-tools input { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; outline: none; background: #fff; min-width: 180px; }
.lawyer-tools input:focus, .lawyer-tools select:focus { border-color: var(--navy); }
.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.lawyer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .25s; }
.lawyer-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.lawyer-card .pic { height: 300px; overflow: hidden; background: linear-gradient(135deg, #eef2f8, #dde6f1); position: relative; display: flex; align-items: center; justify-content: center; }
.lawyer-card .pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; }
.lawyer-card .pic .ph { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.lawyer-card .body { padding: 16px 18px 18px; text-align: center; }
.lawyer-card h3 { font-family: var(--serif); font-size: 20px; color: var(--navy-d); }
.lawyer-card .pos { font-size: 12.5px; color: var(--gold-d); margin-top: 3px; }
.lawyer-card .spec { font-size: 12.5px; color: var(--gray); margin-top: 8px; line-height: 1.7; min-height: 34px; }
.lawyer-card .spec .tag { display: inline; background: transparent; color: var(--gray); border: none; padding: 0; margin: 0; font-size: 12.5px; }
.lawyer-card .spec .tag + .tag::before { content: '、'; color: #c0c6cf; margin: 0 3px 0 1px; }
.lawyer-card .meta { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.lawyer-card .meta .tag { display: inline-block; font-size: 12px; color: var(--navy); background: rgba(18,41,75,.06); padding: 2px 10px; border-radius: 20px; }
.lawyer-card .meta .lic { font-size: 11.5px; color: #9aa4b3; letter-spacing: .3px; }

/* 律师详情弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(10, 22, 42, .62); z-index: 200; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 8px; width: min(1288px, 100%); max-height: 100vh; overflow: auto; animation: pop .25s; }
@keyframes pop { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; right: 18px; top: 14px; font-size: 26px; color: #fff; cursor: pointer; z-index: 5; }
.lawyer-detail { display: grid; grid-template-columns: 280px 1.5fr; align-items: stretch; }
.lawyer-detail .pic-side { background: transparent; display: flex; flex-direction: column; border-right: none; }
.lawyer-detail .pic { flex: none; background: transparent; }
.lawyer-detail .pic img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; display: block; }
.lawyer-detail .pic-lines { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.lawyer-detail .pic-lines i { display: block; height: 1px; background: var(--navy); border-radius: 1px; opacity: .85; }
.lawyer-detail .pic-lines i:nth-child(1) { width: 100%; }
.lawyer-detail .pic-lines i:nth-child(2) { width: 78%; }
.lawyer-detail .pic-lines i:nth-child(3) { width: 56%; }
.lawyer-detail .pic-lines i:nth-child(4) { width: 34%; opacity: .55; }
.lawyer-detail .pic-lines i:nth-child(5) { width: 18%; opacity: .35; }
.lawyer-detail .info { padding: 22px 36px 24px; }
.lawyer-detail h2 { font-family: var(--serif); font-size: 26px; color: var(--navy-d); }
.lawyer-detail .sub { color: var(--gold-d); margin: 4px 0 18px; font-size: 14.5px; }
.lawyer-detail .facts { display: grid; gap: 4px; }
.lawyer-detail .fact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.lawyer-detail .fact { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; border: none; }
.lawyer-detail .fact .k { flex: none; width: 76px; color: #9aa4b3; font-size: 13.5px; }
.lawyer-detail .fact .v { color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.lawyer-detail .fact .v.chips { display: inline; color: var(--navy); }
.lawyer-detail .fact .v.chips .tag { display: inline; background: transparent; color: var(--ink); border: none; padding: 0; margin: 0; font-size: 14.5px; }
.lawyer-detail .fact .v.chips .tag + .tag::before { content: '、'; color: #9aa4b3; margin: 0 2px 0 -2px; }
.lawyer-detail .honors { margin-top: 10px; display: grid; gap: 10px; }
.lawyer-detail .honors .fact { display: block; padding: 0; border: none; }
.lawyer-detail .honors .fact .k { display: block; width: auto; color: var(--navy); font-weight: 600; font-size: 14px; margin-bottom: 2px; padding: 0; border: none; }
.lawyer-detail .honors .fact .v { display: block; color: var(--ink); font-size: 14px; line-height: 1.8; padding: 0; }

/* ===== 党建 ===== */
.party-hero { background: linear-gradient(120deg, #8f1518, #b22228); }
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.party-block h3.pt { font-family: var(--serif); font-size: 24px; color: var(--red); letter-spacing: 2px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.party-block h3.pt::before { content: ''; width: 8px; height: 24px; background: var(--red); border-radius: 2px; }
.party-rich img { border-radius: var(--radius); margin: 14px 0; }
.party-rich p { color: var(--gray); margin-bottom: 14px; text-align: justify; }
.party-rich h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 20px 0 10px; }
.party-news-item { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px dashed #f0d6d6; }
.party-news-item .pic { flex: none; width: 120px; height: 80px; border-radius: 6px; overflow: hidden; background: #8f1518; }
.party-news-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.party-news-item h4 { font-size: 15px; line-height: 1.5; }
.party-news-item:hover h4 { color: var(--red); }
.party-news-item .date { font-size: 12px; color: #b08a8a; margin-top: 6px; }

/* ===== 加入南芳 ===== */
.job-group { margin-bottom: 40px; }
.job-group h3 { font-family: var(--serif); font-size: 21px; color: var(--navy-d); padding-left: 14px; border-left: 4px solid var(--gold); margin-bottom: 18px; }
.job-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; transition: .2s; }
.job-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.job-item h4 { font-size: 17px; color: var(--navy-d); }
.job-item .meta { font-size: 13px; color: var(--gray); margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; }
.job-item .btn-sm { flex: none; background: var(--navy); color: #fff; border: none; padding: 9px 26px; border-radius: var(--radius); font-size: 14px; letter-spacing: 1px; transition: .2s; }
.job-item .btn-sm:hover { background: var(--navy-l); }
.job-detail-mask { background: rgba(10,22,42,.62); }
.job-detail { padding: 34px 38px; }
.job-detail h2 { font-family: var(--serif); color: var(--navy-d); font-size: 24px; margin-bottom: 6px; }
.job-detail .jd-meta { color: var(--gold-d); font-size: 13.5px; margin-bottom: 20px; }
.job-detail h4 { color: var(--navy-d); margin: 18px 0 8px; font-size: 15.5px; }
.job-detail p { font-size: 14px; color: var(--gray); }

/* 简历表单 */
.resume-form { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 40px 44px; box-shadow: var(--shadow); }
.resume-form .notice { background: #f6f2e7; border: 1px solid #e8dcc0; color: #7a6534; font-size: 13.5px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 26px; line-height: 1.7; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 7px; font-weight: 600; }
.form-row label .req { color: var(--red); margin-left: 3px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-family: inherit; outline: none; background: #fff; transition: .2s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,61,110,.08); }
.form-row textarea { min-height: 96px; resize: vertical; }
.file-drop { border: 2px dashed #cdd6e4; border-radius: var(--radius); padding: 22px; text-align: center; color: var(--gray); font-size: 13.5px; cursor: pointer; transition: .2s; }
.file-drop:hover { border-color: var(--navy); color: var(--navy); }
.file-drop.has { border-color: var(--gold); color: var(--gold-d); background: #fbf8ef; }
.form-actions { text-align: center; margin-top: 28px; }
.btn-primary { background: var(--navy); color: #fff; border: none; padding: 13px 56px; font-size: 15.5px; letter-spacing: 4px; border-radius: var(--radius); transition: .2s; }
.btn-primary:hover { background: var(--navy-l); }
.btn-primary:disabled { background: #9aa4b3; cursor: not-allowed; }
.form-tip { text-align: center; margin-top: 14px; font-size: 13px; color: var(--gray); }
.form-ok { text-align: center; padding: 60px 20px; }
.form-ok .icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #eaf5ec; color: #3d8b51; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.form-ok h3 { font-family: var(--serif); font-size: 24px; color: var(--navy-d); }

/* 富文本展示 */
.rich-text h2, .rich-text h3 { font-family: var(--serif); color: var(--navy-d); margin: 24px 0 12px; }
.rich-text p { margin-bottom: 16px; text-align: justify; }
.rich-text img { border-radius: var(--radius); margin: 16px 0; }
.rich-text ul, .rich-text ol { padding-left: 24px; margin-bottom: 16px; }
.rich-text ul li { list-style: disc; }
.rich-text ol li { list-style: decimal; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: start; }
.map-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 92px; }
.map-box #map { height: 560px; width: 100%; }
.map-tip { padding: 10px 16px; font-size: 12.5px; color: var(--gray); border-top: 1px solid var(--line); background: #fafbfd; }
.office-list { display: grid; gap: 16px; max-height: 640px; overflow-y: auto; padding-right: 6px; }
.office-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; cursor: pointer; transition: .2s; }
.office-item:hover, .office-item.active { border-color: var(--gold); box-shadow: var(--shadow); }
.office-item h3 { font-family: var(--serif); font-size: 19px; color: var(--navy-d); display: flex; align-items: center; gap: 8px; }
.office-item h3 .hq-badge { font-size: 11px; background: var(--gold); color: #fff; padding: 1px 8px; border-radius: 3px; font-family: var(--sans); }
.office-item .rows { margin-top: 10px; font-size: 13.5px; color: var(--gray); display: grid; gap: 5px; }
.office-item .rows b { color: var(--navy-l); font-weight: 600; display: inline-block; min-width: 44px; }
.office-item .go-home { margin-top: 10px; font-size: 12.5px; color: var(--gold-d); display: inline-block; }

/* ===== 页脚 ===== */
.footer { background: var(--navy-d); color: #b9c6dc; margin-top: 60px; }
.footer .main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 54px 0 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 2px; }
.footer .about-txt { font-size: 13.5px; line-height: 1.9; text-align: justify; }
.footer .flink { display: grid; gap: 10px; font-size: 13.5px; }
.footer .flink a:hover { color: #fff; padding-left: 4px; transition: .2s; }
.footer .copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer .copyright a { color: #8fa1c0; }
.footer .copyright a:hover { color: #fff; }

/* 返回顶部 */
.back-top { position: fixed; right: 26px; bottom: 34px; width: 44px; height: 44px; background: var(--navy); color: #fff; border: none; border-radius: 50%; font-size: 18px; display: none; z-index: 90; box-shadow: var(--shadow); }
.back-top:hover { background: var(--navy-l); }
.back-top.show { display: block; }

/* 加载占位 */
.loading { text-align: center; color: #9aa4b3; padding: 60px 0; letter-spacing: 2px; }

/* 响应式 */
@media (max-width: 960px) {
  .develop, .home-news, .party-grid, .contact-grid { grid-template-columns: 1fr; }
  .office-list { max-height: none; overflow: visible; padding-right: 0; }
  .map-box { position: static; }
  .nav-toggle { display: block; background: none; border: none; font-size: 26px; color: var(--navy); }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); flex-direction: column; padding: 10px 0; }
  .main-nav.open { display: flex; }
  .main-nav > li > a { line-height: 1; padding: 14px 28px; border-bottom: none; }
  .hero h2 { font-size: 32px; }
  .hero { height: 420px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .header .logo img { max-width: 120px; }
  .header .logo .logo-txt em { display: none; }
  .page-banner h1 { font-size: 28px; }
  .resume-form { padding: 26px 20px; }
  .news-list-item .pic { width: 140px; height: 96px; }
  .footer .main { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* 弹窗在手机上接近全屏，避免水平滚动；高度自适应不限制（让用户整页浏览） */
  .modal-mask { padding: 12px; }
  .modal { width: 100%; max-height: calc(100vh - 24px); }
  .lawyer-detail { grid-template-columns: 1fr; }
  /* 手机端：照片保持竖版比例不被剪切，用 max-height 限制最大高度 */
  .lawyer-detail .pic img { width: auto; height: auto; max-width: 100%; max-height: 60vh; aspect-ratio: 3 / 4; object-fit: contain; object-position: center top; margin: 0 auto; }
  .lawyer-detail .pic-side { align-items: center; }
  .lawyer-detail .pic-lines { display: none; }
  .lawyer-detail .info { padding: 18px 20px 22px; }
  .lawyer-detail h2 { font-size: 22px; }
}
@media (max-width: 520px) {
  .lawyer-detail .fact-row { grid-template-columns: 1fr; }
  .lawyer-detail .fact .k { width: 64px; }
  .lawyer-detail .info { padding: 16px 16px 20px; }
  .lawyer-detail .honors .fact .v { font-size: 13.5px; line-height: 1.75; }
}
