/* 页面级布局。 */

/* 首页首屏（客户 2026-09-23）：整幅前台照片保持原色、不加任何色块或蒙版；十六字所训与入口放在照片下方的页面底色上。 */
.home-hero { background: var(--bg); border-bottom: 1px solid var(--border); }
.home-hero > img { display: block; width: 100%; height: clamp(360px, calc(100vh - var(--header-height) - 300px), 620px); object-fit: cover; object-position: center 55%; }
.home-hero .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding: 44px 0 52px; }
.home-hero .hero-copy::before { content: ''; display: block; width: 40px; height: 2px; background: var(--champagne); margin-bottom: 26px; }
.home-hero h1 { color: var(--navy); font-size: 44px; letter-spacing: 0.12em; line-height: 1.5; font-weight: 600; }
.home-hero .eyebrow { margin-top: 14px; font-size: 16px; }
.home-hero .button-row { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 6px; }

/* 首页走进立彰：首页唯一的内容区块 */
.home-about { padding: 96px 0 104px; }
.home-about .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 72px; align-items: center; }
.home-about .text-link { margin-top: 8px; }
.home-about .about-image { height: 460px; overflow: hidden; border-radius: var(--radius); }
.home-about .about-image img { width: 100%; height: 100%; object-fit: cover; }

/* 走进立彰页 */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); gap: 56px; align-items: start; }
.about-intro .intro-heading { font-family: var(--font-heading); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: 0.1em; margin: 0 0 22px; }
.about-intro .intro-image { position: sticky; top: calc(var(--header-height) + 84px); height: 460px; overflow: hidden; border-radius: var(--radius); }
.about-intro .intro-image img { width: 100%; height: 100%; object-fit: cover; }
.about-office { display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 1fr); gap: 48px; align-items: center; }
.about-office .office-image { height: 380px; overflow: hidden; border-radius: var(--radius); }
.about-office .office-image img { width: 100%; height: 100%; object-fit: cover; }
.about-office h2 { font-size: 30px; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--navy); }
.about-office p { margin-bottom: 24px; line-height: 1.95; }
.values-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.values-list article { padding: 34px 34px 32px; border: 1px solid var(--border); border-top: 3px solid var(--champagne); border-radius: var(--radius); background: var(--bg); }
.values-list h3 { font-size: 26px; letter-spacing: 0.16em; margin: 0 0 14px; color: var(--navy); }
.values-list .rich-body p { margin: 0; }

/* 领域列表 / 详情 */
.practice-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 32px 36px; background: var(--bg-soft); border-radius: var(--radius); }
.practice-prompt .ui-icon { font-size: 34px; color: var(--navy); }
.practice-prompt .prompt-copy { flex: 1; }
.practice-prompt h2 { font-size: 22px; margin-bottom: 4px; }
.practice-prompt p { color: var(--muted); }
.practice-intro { max-width: var(--measure); }
.lawyer-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lawyer-row a { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.lawyer-row a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.lawyer-row .mini-portrait { width: 64px; height: 80px; flex: none; overflow: hidden; border-radius: 2px; background: var(--navy-soft); }
.lawyer-row .mini-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.lawyer-row h3 { font-size: 18px; letter-spacing: 0.08em; }
.lawyer-row p { color: var(--gold-deep); font-size: 13px; }
.related-practices { display: flex; flex-wrap: wrap; gap: 10px; }
.related-practices a { padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; }
.related-practices a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 领域标题栏（P1）：全部领域 / 当前领域 + 切换领域下拉 */
.practice-bar .bar-trail { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); min-width: 0; }
.practice-bar .bar-trail a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; }
.practice-bar .bar-trail a:hover { color: var(--champagne-deep); }
.practice-bar .bar-trail strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.practice-switch { position: relative; }
.practice-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 15px; color: var(--navy); }
.practice-switch summary::-webkit-details-marker { display: none; }
.practice-switch summary .ui-icon { transition: transform 0.2s; }
.practice-switch[open] summary .ui-icon { transform: rotate(180deg); }
.practice-switch .switch-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(640px, calc(100vw - 2 * var(--gutter))); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 12px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); }
.practice-switch .switch-panel a { padding: 10px 12px; font-size: 15px; color: var(--text); border-radius: 2px; }
.practice-switch .switch-panel a:hover { background: var(--champagne-soft); color: var(--navy); }
.practice-switch .switch-panel a[aria-current] { color: var(--navy); font-weight: 600; background: var(--bg-soft); }
.practice-switch .switch-panel a.all { grid-column: 1 / -1; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 4px; color: var(--navy); font-weight: 500; }

/* 律师详情 */
.person-page .person-header { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.person-page .portrait { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--navy-soft); box-shadow: var(--shadow); }
.person-page .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-page h1 { font-size: 40px; letter-spacing: 0.16em; color: var(--navy); }
.person-page .back-link { margin-bottom: 30px; font-size: 15px; }
.person-page .person-role { font-family: var(--font-heading); color: var(--champagne-deep); font-size: 16px; letter-spacing: 0.1em; margin: 8px 0 26px; }
.person-page .fact-list { display: grid; gap: 14px; border-top: 1px solid var(--border); padding-top: 22px; }
.person-page .fact-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; font-size: 15px; line-height: 1.85; }
.person-page .fact-list dt { color: var(--muted); }
.person-page .fact-list dd, .person-page .fact-list li { font-family: var(--font-body); }
.person-page .fact-list dd { margin: 0; }
.person-page .fact-list ul { list-style: none; display: grid; gap: 4px; }
.person-page .person-body { margin-top: 56px; max-width: 900px; }
.person-page .person-body p { text-align: justify; text-justify: inter-ideograph; }
.person-page .person-body h2:first-child { margin-top: 0; }

/* 立彰动态 / 党建 */
.party-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 58%); gap: 40px; align-items: center; margin-bottom: 64px; }
.party-intro h2 { font-size: 28px; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--navy); }
.party-intro p { line-height: 1.95; }
.party-intro .party-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 380px; }
.party-intro .party-photos button { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-soft); }
.party-intro .party-photos button:first-child { grid-row: 1 / 3; }
.party-intro .party-photos img { width: 100%; height: 100%; object-fit: cover; }

/* 文章详情 */
.article-page .article-header { max-width: 860px; margin-bottom: 36px; }
.article-page .back-link { margin-bottom: 22px; font-size: 15px; }
.article-page h1 { font-size: 36px; letter-spacing: 0.04em; margin-bottom: 14px; }
.article-page .article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--muted); font-size: 14px; }
.article-page .article-meta button { color: var(--navy); text-decoration: underline; }
.article-page .article-summary { font-size: 17px; color: var(--text); line-height: 1.9; max-width: 860px; margin-bottom: 30px; padding-left: 16px; border-left: 3px solid var(--gold); }
.article-page .article-cover { max-width: 860px; height: 420px; overflow: hidden; border-radius: var(--radius); margin-bottom: 36px; }
.article-page .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-page .article-columns { display: grid; grid-template-columns: minmax(0, 860px) 300px; gap: 64px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: 26px; }
.article-aside h3 { font-size: 15px; letter-spacing: 0.14em; color: var(--gold-deep); font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }
.article-aside p, .article-aside a { font-size: 15px; color: var(--text); }
.article-aside .aside-link { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
.article-aside .aside-link:hover { color: var(--navy); }
.article-aside [data-toc] { display: grid; gap: 6px; }
.article-aside [data-toc] a { font-size: 14px; color: var(--muted); }
.article-aside [data-toc] a:hover { color: var(--navy); }
.plain-list { list-style: none; display: grid; gap: 8px; }
.plain-list li { padding-left: 16px; position: relative; }
.plain-list li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.process-list { padding-left: 1.4em; display: grid; gap: 6px; }

/* 加入立彰（J2）：引言独立成香槟浅底强调区块，首句黑体大字，其余两句宋体。 */
.careers-quote-band { background: var(--champagne-soft); border-bottom: 1px solid var(--border); }
.careers-quote { position: relative; max-width: 880px; margin: 0 auto; padding: 76px 0 72px 96px; }
.careers-quote::before { content: '“'; position: absolute; left: 0; top: 44px; font: 400 128px/1 var(--font-latin); color: var(--champagne); }
.careers-quote .quote-lead { text-wrap: balance; font-family: var(--font-heading); font-size: 30px; font-weight: 600; line-height: 1.6; letter-spacing: 0.04em; color: var(--navy); }
.careers-quote .quote-rest { font-size: 19px; line-height: 2; color: var(--text); margin-top: 18px; }
.job-card .job-reqs { list-style: none; display: grid; gap: 8px; margin: 4px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.job-card .job-reqs li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.85; color: var(--text); }
.job-card .job-reqs li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.job-card .reqs-title { flex: none; font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.12em; color: var(--champagne-deep); font-weight: 600; }
.careers-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.careers-contact article { padding: 26px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.careers-contact h3 { font-size: 14px; letter-spacing: 0.16em; color: var(--champagne-deep); font-weight: 600; margin-bottom: 10px; }
.careers-contact p { font-size: 17px; }
.careers-contact a:hover { color: var(--navy); }
.careers-note { margin-top: 26px; color: var(--muted); }
.job-page .job-type { font-size: 15px; letter-spacing: 0.1em; color: var(--champagne-deep); margin-top: -6px; }
.job-page .job-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; margin: 18px 0 8px; }
.job-page .job-facts span { display: inline-flex; gap: 8px; align-items: center; }
.job-page .job-facts .ui-icon { color: var(--gold); }

/* 联系 */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 54%); gap: 56px; align-items: start; }
.contact-info h2 { font-size: 30px; letter-spacing: 0.1em; color: var(--navy); margin-bottom: 8px; }
.contact-info .lead { color: var(--text); line-height: 1.9; margin-bottom: 30px; }
.contact-info dl { display: grid; gap: 18px; margin: 0; }
.contact-info dt { font-size: 13px; letter-spacing: 0.16em; color: var(--gold-deep); font-weight: 600; margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: 17px; line-height: 1.7; }
.contact-info dd small { display: block; color: var(--muted); font-size: 13px; }
.contact-info dd a:hover { color: var(--navy); }
.contact-info .contact-photo { margin-top: 34px; height: 280px; overflow: hidden; border-radius: var(--radius); }
.contact-info .contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.mobile-contact-bar { display: none; }

/* 搜索 / 404 / 兜底目录 */
.search-page .search-form { display: flex; gap: 12px; max-width: 720px; margin: 22px 0 12px; }
.search-page .search-form input { flex: 1; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 16px; font-size: 16px; }
.search-results { display: grid; gap: 12px; margin-top: 30px; }
.search-results a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--radius); }
.search-results a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.search-results h2 { font-size: 20px; margin-bottom: 4px; }
.search-results p { color: var(--muted); font-size: 14px; }
.search-results .kind { font-size: 12px; letter-spacing: 0.16em; color: var(--gold-deep); }
.notfound { text-align: center; padding: 120px 0; }
.notfound strong { display: block; font: italic 400 96px/1 var(--font-latin); color: var(--gold); margin: 12px 0; }
.notfound h1 { font-size: 28px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }
.notfound .button-row { display: flex; justify-content: center; gap: 12px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-card { overflow: hidden; }
.content-card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.content-card > div { padding: 20px 22px 24px; }
.content-card .card-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.content-card h3 { font-size: 19px; margin-bottom: 8px; }

@media (max-width: 1100px) {
  .home-hero h1 { font-size: 38px; }
  .lawyer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-page .article-columns { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .careers-contact { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .home-hero > img { height: 260px; }
  .home-hero .container { padding: 28px 0 36px; gap: 22px; }
  .home-hero .hero-copy::before { margin-bottom: 18px; }
  .home-hero h1 { font-size: 28px; letter-spacing: 0.08em; }
  .home-about { padding: 56px 0 64px; }
  .practice-switch .switch-panel { grid-template-columns: 1fr 1fr; }
  .careers-quote { padding: 52px 0 48px 0; }
  .careers-quote::before { position: static; display: block; font-size: 80px; height: 44px; }
  .careers-quote .quote-lead { font-size: 22px; }
  .careers-quote .quote-rest { font-size: 17px; }
  .home-about .about-grid, .about-intro, .about-office, .home-join .join-grid, .party-intro, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .home-about .about-image, .about-office .office-image { height: 240px; }
  .about-intro .intro-image { position: static; height: 260px; }
  .about-intro .intro-heading { font-size: 26px; }
  .values-list { grid-template-columns: 1fr; }
  .practice-prompt { flex-direction: column; align-items: flex-start; padding: 24px; }
  .lawyer-row { grid-template-columns: 1fr; }
  .person-page .person-header { grid-template-columns: 1fr; gap: 24px; }
  .person-page .portrait { max-width: 240px; }
  .person-page h1 { font-size: 30px; }
  .person-page .fact-list div { grid-template-columns: 1fr; gap: 2px; }
  .party-intro .party-photos { height: 240px; }
  .article-page h1 { font-size: 26px; }
  .article-page .article-cover { height: 220px; }
  .content-grid { grid-template-columns: 1fr; }
  .mobile-contact-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy-deep); color: #fff; }
  .mobile-contact-bar a, .mobile-contact-bar span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; font-size: 15px; }
  .mobile-contact-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.15); }
  .contact-page .site-footer { padding-bottom: 58px; }
}

/* 走进立彰 tab 面板 */
.about-panel[hidden] { display: none; }
