/* 官网公共布局：主体文档流，局部Banner覆盖和悬浮工具使用定位。 */
:root {
  --red: #c00000;
  --gold: #be945d;
  --ink: #242424;
  --muted: #767676;
  --line: #e5e5e5;
  --paper: #f6f6f6;
  --header-height: 100px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.75 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: #fff;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--red);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
video {
  max-width: 100%;
}
button {
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bd8b48;
  outline-offset: 4px;
}
.main {
  width: 85.416667%;
  max-width: 1640px;
  margin: 0 auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 4px 2px rgba(174,174,174,.25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 0; }
.brand { flex: 0 0 310px; }
.brand img { width: 310px; height: 70px; object-fit: contain; }
.main-nav { display: flex; gap: 50px; align-items: center; margin-left: 86px; height: 100%; font-size: 18px; line-height: 24px; white-space: nowrap; }
.nav-item { height: 100%; display: flex; align-items: center; position: relative; }
.nav-item > a { height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; color: #222; }
.nav-item > a.active { font-weight: bold; border-bottom-color: #c00000; }
.submenu-toggle { position: absolute; inset: 0; background: transparent; color: transparent; font-size: 0; padding: 0; }
.nav-item > a { position: relative; z-index: 1; }
.submenu-toggle:focus-visible { z-index: 2; }
.submenu { display: none; position: absolute; top: 100%; left: 50%; width: max-content; min-width: 100%; max-width: calc(100vw - 32px); padding: 0 0 10px; overflow: hidden; transform: translateX(-50%); background: #fff; border-radius: 0 0 5px 5px; box-shadow: 0 0 4px rgba(85,1,1,.33); }
.submenu a { display: flex; align-items: center; justify-content: center; width: 100%; min-width: max-content; height: 34px; padding: 0 20px; color: #333; font-size: 16px; line-height: 18px; text-align: center; white-space: nowrap; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu { display: block; }
.submenu a:hover, .submenu a:focus-visible, .submenu a.active { background: #c00000; color: #fff; }
.search-link { flex: 0 0 24px; width: 24px; height: 24px; margin-left: auto; padding: 0; }
.search-link img { width: 24px; height: 24px; max-width: none; flex: 0 0 24px; }
.hotline { flex: 0 0 240px; display: flex; align-items: center; justify-content: center; gap: 16px; border-radius: 50px; margin-left: 40px; background: #c00000; color: #fff; width: 240px; height: 60px; white-space: nowrap; font: 700 24px/22px var(--font-alimama); }
.hotline img { width: 24px; height: 24px; }
.hotline:hover { color: #fff; background: #a90000; }
.menu-toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; background: #c00000; color: #fff; }
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu-toggle-icon { position: relative; }
.menu-toggle-icon::before,
.menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
.submenu-arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.submenu-toggle[aria-expanded="true"] .submenu-arrow { transform: rotate(-135deg); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  min-width: 140px;
  padding: 10px 26px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  font-size: 16px;
  line-height: 1.5;
}
.button:hover {
  background: #88101b;
  color: #fff;
}
.button.outline {
  background: transparent;
  color: var(--red);
}
.button.outline:hover {
  background: var(--red);
  color: #fff;
}
.english {
  font-size: 16px;
  letter-spacing: 4px;
  color: #a88a66;
}
.section-heading {
  text-align: center;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 50px;
  font-weight: 700;
  margin-top: 8px;
}
.section-intro {
  text-align: center;
  white-space: pre-line;
  max-width: 1200px;
  margin: 0 auto 55px;
  color: #666;
  font-size: 18px;
  line-height: 30px;
}
.section-more {
  display: table;
  margin: 36px auto 0;
  color: var(--red);
  font-size: 18px;
}
.column-banner {
  height: 560px;
  position: relative;
  overflow: hidden;
  background: #d7d9d9;
}
.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.column-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0003, transparent 65%);
  pointer-events: none;
}
.column-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  z-index: 1;
  pointer-events: none;
}
.banner-copy h1,
.banner-copy .banner-heading {
  font-size: 50px;
  max-width: 800px;
}
.banner-copy p {
  font-size: 24px;
  margin-top: 18px;
  max-width: 900px;
}
.banner-copy .button {
  align-self: flex-start;
  margin-top: 20px;
  pointer-events: auto;
}
.column-nav {
  background: #fff;
}
.column-nav-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #e2e2e2;
}
.column-links {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 50px;
  font-size: 16px;
  line-height: 18px;
}
.column-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.column-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: #c1c1c1;
}
.column-links a:last-child::after,
.column-links a.active::after {
  display: none;
}
.column-links a.active {
  color: #fff;
  background: var(--red);
  font-weight: 700;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #666;
  font-size: 14px;
  line-height: 28px;
  white-space: nowrap;
}
.breadcrumb > a,
.breadcrumb > img {
  flex-shrink: 0;
}
.breadcrumb-home {
  width: 10px;
  height: 10px;
}
.breadcrumb-chevron {
  width: 5px;
  height: 10px;
}
.breadcrumb a,
.breadcrumb-parent {
  color: #666;
  opacity: 0.8;
}
.breadcrumb-current {
  color: var(--red);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-section {
  padding: 80px 0 100px;
  min-height: 450px;
}
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.category-tabs a {
  padding: 10px 28px;
  background: #f5f5f5;
  border: 1px solid #eee;
  min-height: 48px;
}
.category-tabs a.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
}
.pagination a {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination a.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #888;
  border: 1px solid #eee;
  background: #fafafa;
}
.rich-text {
  font-size: 18px;
  line-height: 2;
  color: #555;
  overflow-wrap: anywhere;
}
.rich-text p {
  margin-bottom: 24px;
}
.rich-text img {
  height: auto;
  max-width: 100%;
  margin: 24px auto;
}
.rich-text table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow: auto;
}
.rich-text th,
.rich-text td {
  border: 1px solid #ddd;
  padding: 10px;
}
.rich-text h2,
.rich-text h3 {
  color: #333;
  margin: 30px 0 18px;
}
.rich-text a {
  text-decoration: underline;
  color: var(--red);
}
.date {
  color: #999;
  font-size: 14px;
}
.summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.case-card {
  background: #f7f7f7 url("../images/case-bg.png") center/cover;
  border: 1px solid #eee;
  min-height: 344px;
  transition: border-color 0.2s;
}
.case-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 38px 40px;
}
.case-card h3 {
  font-size: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card .date {
  margin: 16px 0;
}
.case-card .summary {
  font-size: 16px;
  line-height: 28px;
  color: #777;
}
.case-card .card-more {
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  color: var(--red);
  display: flex;
  justify-content: space-between;
}
.case-card:hover {
  border-color: var(--gold);
}
.cases-list-page .case-grid {
  gap: 30px;
}
.case-list-card {
  height: 344px;
  min-width: 0;
  border: 1px solid #de983a;
  background: #fff url("../images/case-bg.png") center / cover no-repeat;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.case-list-card > a {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
}
.case-list-date {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 4px;
  color: #666;
  font-size: 14px;
  line-height: 18px;
  opacity: 0.8;
}
.case-list-date img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}
.case-list-copy {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
  padding-bottom: 20px;
}
.case-list-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.3s ease;
}
.case-list-copy .summary {
  color: #333;
  font-size: 16px;
  line-height: 28px;
  opacity: 0.9;
  -webkit-line-clamp: 2;
}
.case-list-more {
  display: inline-flex;
  width: 120px;
  height: 44px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.case-list-card:hover {
  border-color: transparent;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}
.case-list-card:hover .case-list-copy h3 {
  color: var(--red);
}
.case-list-card:hover .case-list-more {
  color: #fff;
  background: var(--red);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.news-card {
  background: #f6f6f6;
  border-radius: 10px;
  overflow: hidden;
}
.news-photo {
  aspect-ratio: 26/15;
  overflow: hidden;
}
.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover .news-photo img {
  transform: scale(1.04);
}
.news-copy {
  padding: 26px 30px;
}
.news-copy h3 {
  font-size: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 64px;
}
.news-copy .summary {
  color: #777;
  margin: 16px 0;
  font-size: 16px;
  line-height: 24px;
  min-height: 72px;
}
.card-bottom {
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  color: #888;
  font-size: 14px;
}
.card-bottom > span {
  font-size: 24px;
  color: var(--red);
}
.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.lawyer-card {
  background: #f5f5f5;
  border: 1px solid transparent;
  transition: 0.2s;
}
.lawyer-card:hover {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 20px #0001;
}
.lawyer-photo {
  aspect-ratio: 370/360;
  overflow: hidden;
  background: linear-gradient(#fafafa, #e4e4e4);
}
.lawyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.lawyer-copy {
  padding: 20px 22px;
}
.lawyer-copy h3 {
  font-size: 24px;
}
.lawyer-role {
  color: var(--red);
  font-size: 16px;
  margin: 10px 0;
}
.lawyer-role.founder {
  color: #a97a34;
}
.lawyer-copy .summary {
  font-size: 15px;
  color: #777;
  line-height: 26px;
}
.pennant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.pennant-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 520 / 688;
  background: #fff;
  box-shadow: 0 0 10px rgba(65, 65, 65, 0.25);
  text-align: left;
}
.pennant-card > a {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 30px;
}
.pennant-card > a:hover {
  color: inherit;
}
.pennant-meta {
  display: flex;
  height: 30px;
  min-width: 0;
  align-items: center;
  gap: 14px;
}
.pennant-meta img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.pennant-meta span {
  height: 1px;
  min-width: 20px;
  flex: 1 1 auto;
  background: #dedede;
}
.pennant-meta time {
  flex: 0 0 auto;
  color: #999;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}
.pennant-card h3 {
  overflow: hidden;
  margin-top: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.pennant-photo {
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 30px;
  background: #dedede;
  overflow: hidden;
}
.pennant-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.4s ease;
}
.pennant-card:hover h3,
.pennant-card > a:focus-visible h3 {
  color: var(--red);
}
.pennant-card:hover .pennant-photo img,
.pennant-card > a:focus-visible .pennant-photo img {
  transform: scale(1.05);
}
/* 243:9861：咨询背景与金色曲线为独立装饰层，不承载正文。 */
.consultation-section { isolation: isolate; position: relative; height: 526px; color: white; background: #0f0f0f; }
.consultation-section::before { content: ''; position: absolute; inset: 0 0 auto; height: 481px; background: url('../images/consultation.png') top center/100% 100% no-repeat; z-index: -1; pointer-events: none; }
.consultation-section::after { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 518.681px; background: url('../images/gold-wave.svg') center/100% 100% no-repeat; z-index: -2; pointer-events: none; }
.consultation-inner { display: grid; grid-template-columns: minmax(0,640fr) minmax(0,880fr); gap: 120px; padding-top: 108px; }
.consultation-copy h2 { font-size: 34px; line-height: 45px; margin-bottom: 17px; }
.consultation-copy p { font-size: 18px; line-height: 32px; white-space: pre-line; }
.consultation-phone { display: flex; align-items: center; gap: 15px; margin-top: 56px; color: white; font-size: 40px; line-height: 32px; font-weight: bold; }
.consultation-phone img { width: 50px; height: 50px; }
.consultation-phone:hover { color: white; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; }
.consultation-form label { display: block; font-size: 16px; line-height: 21px; }
.consultation-form label > span { color: inherit; }
.consultation-form input, .consultation-form select, .consultation-form textarea { display: block; width: 100%; border: 1px solid #ffffff80; background: #ffffff0d; color: inherit; min-height: 40px; padding: 10px 14px; margin-top: 10px; border-radius: 0; font-size: 14px; line-height: 19px; }
.consultation-form option { color: #222; background: #fff; }
.consultation-form ::placeholder { color: #ffffffb3; font-weight: 300; }
.form-wide { grid-column: 1/-1; }
.form-status { min-height: 24px; font-size: 14px; margin-top: 12px; }
.consultation-form .form-status { display: none; }
.consultation-result-dialog {
  width: 400px;
  max-width: calc(100vw - 40px);
  margin: auto;
  padding: 28px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  box-shadow: 0 12px 40px #0003;
  text-align: center;
}
.consultation-result-dialog::backdrop { background: #0006; }
.consultation-result-dialog h2 { margin-bottom: 16px; font-size: 22px; }
.consultation-result-dialog p { overflow-wrap: anywhere; font-size: 16px; line-height: 26px; }
.consultation-result-confirm {
  min-width: 100px;
  margin-top: 24px;
  padding: 9px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
}
.consultation-result-confirm:hover { background: #a90000; }
.consultation-result-confirm:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.submit-button { margin-top: 12px; background: #c00000; border-color: #c00000; min-width: 180px; }
.submit-button:disabled { cursor: wait; opacity: .6; }
.consultation-section .consultation-form { padding-top: 6px; }
.consultation-section .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.consultation-section .consultation-form label > span { color: #ff0606; }
.consultation-section .consultation-form input, .consultation-section .consultation-form select, .consultation-section .consultation-form textarea { border-color: #dedede; border-radius: 3px; background: rgba(245,245,245,.4); color: #fff; font-family: var(--font-yahei); font-size: 14px; line-height: 19px; }
.consultation-section .consultation-form input, .consultation-section .consultation-form select { height: 40px; min-height: 40px; padding: 9px 14px; }
.consultation-section .consultation-form ::placeholder { color: rgba(255,255,255,.8); font-weight: 300; opacity: 1; }
.consultation-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url('../images/consultation-select-1069.svg?v=20261015-5');
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px 10px;
}
.consultation-type-field,
.consultation-field-label {
  display: block;
  font-size: 16px;
  line-height: 21px;
}
.consultation-field-label > span {
  color: #ff0606;
}
.consultation-select {
  position: relative;
  margin-top: 10px;
}
.consultation-section .consultation-form .consultation-select-native {
  display: none;
}
.consultation-select-trigger {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  border: 1px solid #dedede;
  border-radius: 3px;
  background: rgba(245,245,245,.4);
  color: #fff;
  font-family: var(--font-yahei);
  font-size: 14px;
  line-height: 19px;
  text-align: left;
}
.consultation-select-trigger img {
  width: 9px;
  height: 7px;
  flex: 0 0 9px;
  margin-left: 12px;
  transform: rotate(180deg);
}
.consultation-select-trigger:focus-visible {
  outline: 2px solid #c00000;
  outline-offset: 2px;
}
.consultation-select-trigger:disabled {
  cursor: not-allowed;
  opacity: .65;
}
.consultation-select-menu {
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid #dedede;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: #fff;
  box-shadow: 0 3px 4px rgba(121,121,121,.25);
}
.consultation-select-menu[hidden] {
  display: none;
}
.consultation-select-option {
  width: 100%;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-family: var(--font-yahei);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-align: left;
  white-space: normal;
}
.consultation-select-option:hover,
.consultation-select-option:focus-visible,
.consultation-select-option[aria-selected="true"] {
  color: #c00000;
}
.consultation-select-option:focus-visible {
  outline: 1px solid #c00000;
  outline-offset: 3px;
}
.consultation-section .consultation-form input:focus, .consultation-section .consultation-form select:focus, .consultation-section .consultation-form textarea:focus { outline: none; box-shadow: none; border-color: #dedede; }
.consultation-section textarea { resize: vertical; height: 102px; min-height: 102px; }
.consultation-section .form-status:empty { min-height: 0; margin: 0; }
.consultation-section .submit-button { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px auto 0; width: 148px; min-width: 148px; height: 48px; min-height: 48px; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: #c00000; color: #fff; font-size: 16px; line-height: 24px; font-weight: 400; }
.consultation-section .submit-button img { width: 22px; height: 22px; flex-shrink: 0; }
.consultation-section .submit-button:hover, .consultation-section .submit-button:focus-visible { background: #a90000; color: #fff; }
.site-footer { background: #0f0f0f; color: white; padding: 63px 0 27px; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 60px; }
.footer-brand-row > img { width: 313px; height: 60px; object-fit: contain; }
.footer-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.social-links { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.social-links > a, .social-links > button, .social-links > span { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; border-radius: 50%; color: rgba(255,255,255,.5); }
.social-links > a::before, .social-links > button::before, .social-links > span::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #c00000; opacity: 0; transition: opacity .2s, background-color .2s; }
.footer-social-icon { position: relative; z-index: 1; display: block; width: 36px; height: 36px; flex-shrink: 0; color: inherit; transition: color .2s; }
.social-links > a:hover, .social-links > button:hover, .social-links > span:hover, .social-links > a:focus-visible, .social-links > button:focus-visible { color: #fff; }
.social-links > a:hover::before, .social-links > button:hover::before, .social-links > span:hover::before, .social-links > a:focus-visible::before, .social-links > button:focus-visible::before { opacity: 1; }
.social-links .footer-backtop { color: #fff; }
.social-links .footer-backtop::before { background: rgba(255,255,255,.5); opacity: 1; }
.social-links .footer-backtop:hover::before, .social-links .footer-backtop:focus-visible::before { background: #c00000; }
@media (prefers-reduced-motion: reduce) {
  .footer-social-icon, .social-links > a::before, .social-links > button::before, .social-links > span::before { transition: none; }
}
.footer-nav { display: grid; grid-template-columns: 1fr 1.24fr 1.24fr 1fr 1fr auto; gap: 60px; height: 388px; margin-top: 35px; padding: 45px 0 30px; border-top: 1px solid #ffffff33; }
.footer-nav a, .footer-placeholder { display: flex; align-items: center; height: 34px; margin: 0; color: #ffffffcc; font-size: 16px; line-height: 24px; }
.footer-nav .footer-heading { height: 30px; margin-bottom: 10px; color: white; font-size: 18px; line-height: 30px; }
.footer-placeholder { font-family: var(--font-misans); }
.footer-nav a:hover { color: #de983a; }
.footer-contact-row { display: flex; justify-content: space-between; align-items: center; gap: 25px; height: 100px; margin-top: 50px; border-top: 1px solid #ffffff33; border-bottom: 1px solid #ffffff33; }
.footer-contact-row > div { display: flex; align-items: center; min-width: 0; }
.footer-contact-row img { width: 28px; height: 28px; object-fit: contain; margin-right: 16px; }
.footer-contact-row > div > span:first-of-type { font-size: 16px; white-space: nowrap; }
.footer-contact-row a, .footer-address { font-size: 18px; line-height: 24px; }
.footer-contact-row .footer-telephone { font-size: 20px; font-weight: bold; }
.footer-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; column-gap: 30px; height: 20px; margin-top: 23px; color: #ffffff66; font-size: 14px; line-height: 20px; }
.footer-copyright { justify-self: start; white-space: nowrap; }
.footer-registration { display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.footer-registration > * { color: inherit; }
.footer-police-record { display: flex; align-items: center; gap: 10px; }
.footer-police-icon { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.footer-police { font-family: var(--font-source-han); }
.footer-policies { justify-self: end; white-space: nowrap; }
.floating-tools { position: fixed; right: 20px; top: calc(50% - 81px); z-index: 50; display: flex; flex-direction: column; width: 50px; gap: 6px; }
.floating-tools > a, .floating-tools > button, .floating-wechat, .floating-wechat > button { position: relative; display: block; width: 50px; height: 50px; background: transparent; padding: 0; }
.floating-tools > a > img, .floating-tools > button > img, .floating-wechat > button > img { position: absolute; left: -4px; top: -4px; width: 58px; height: 58px; max-width: none; }
.floating-tools button:disabled { cursor: default; }
/* 电话条向左展开，外层保留按钮占位，避免带动下方工具。 */
.floating-phone {
  position: relative;
  width: var(--floating-tool-size, 50px);
  height: var(--floating-tool-size, 50px);
}
.floating-phone-link {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: var(--floating-tool-size, 50px);
  max-width: calc(100vw - 40px);
  height: 100%;
  padding: 0 calc((var(--floating-tool-size, 50px) - 28px) / 2);
  overflow: hidden;
  border-radius: 5px;
  background: #c00000;
  color: #fff;
  box-shadow: 0 0 4px rgba(70, 2, 2, .57);
  transition: width .25s ease;
}
.floating-phone-link:hover { color: #fff; }
.floating-phone-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.floating-phone-icon { display: block; flex: 0 0 28px; width: 28px; height: 28px; max-width: none; }
.floating-phone-number {
  min-width: 0;
  overflow: hidden;
  font: 700 18px/normal "Microsoft YaHei", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}
.floating-phone.has-hotline:hover .floating-phone-link,
.floating-phone.has-hotline:focus-within .floating-phone-link { width: 185px; }
.floating-phone.has-hotline:hover .floating-phone-number,
.floating-phone.has-hotline:focus-within .floating-phone-number { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .floating-phone-link, .floating-phone-number { transition: none; }
}
.wechat-hover-card {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  z-index: 2;
  width: 92px;
  height: 92px;
  padding: 5px;
  border: 1px solid #c00000;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.25);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .2s ease;
}
.wechat-hover-code { display: block; width: 80px; height: 80px; object-fit: contain; }
.wechat-hover-arrow { position: absolute; right: -9px; top: 50%; width: 12.1244px; height: 6px; max-width: none; transform: translateY(-50%) rotate(90deg); }
.floating-wechat:hover .wechat-hover-card, .floating-wechat:focus-within .wechat-hover-card { opacity: 1; }
.wechat-dialog {
  border: 1px solid var(--gold);
  padding: 28px;
  max-width: 90vw;
}
.wechat-dialog::backdrop {
  background: #0006;
}
.dialog-close {
  display: block;
  margin-left: auto;
  margin-bottom: 15px;
  background: #f5f5f5;
  padding: 8px 15px;
}
.error-page {
  padding: 140px 0;
  text-align: center;
}
.error-page h1 {
  font-size: 100px;
  color: var(--red);
}
.error-page p {
  margin: 25px 0;
}
@media (max-width: 1650px) {
  .brand {
    flex-basis: 235px;
  }
  .brand img {
    width: 235px;
    height: 60px;
  }
  .main-nav {
    gap: 23px;
    font-size: 16px;
  }
  .header-inner {
    gap: 16px;
  }
  .hotline {
    font-size: 18px;
    padding: 10px 16px;
    min-height: 50px;
  }
  
}
@media (max-width: 1350px) {
  :root {
    --header-height: 80px;
  }
  .main {
    width: 90%;
  }
  .brand {
    flex-basis: 205px;
  }
  .brand img {
    width: 205px;
    height: 55px;
  }
  .hotline {
    display: none;
  }
  .main-nav {
    gap: 22px;
  }
  .section-heading h2 {
    font-size: 40px;
  }
  .column-banner {
    height: 420px;
  }
  .banner-copy h1,
  .banner-copy .banner-heading {
    font-size: 40px;
  }
  .banner-copy p {
    font-size: 20px;
  }
  .consultation-inner {
    gap: 50px;
  }
  
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .lawyer-grid {
    gap: 24px;
  }
  .news-grid {
    gap: 24px;
  }
  .case-card > a {
    padding: 28px;
  }
  .case-list-card > a {
    padding: 30px;
  }
  .pennant-grid {
    gap: 25px;
  }
  .pennant-card > a {
    padding: 24px;
  }
  .pennant-photo {
    margin-top: 22px;
  }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    margin: 0;
    background: white;
    padding: 15px 5%;
    max-height: calc(100vh - 80px);
    overflow: auto;
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-item {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 7px 0;
  }
  .nav-item > a {
    padding: 7px 0;
    height: auto;
    flex: 1;
  }
  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }
  .submenu {
    position: static;
    left: auto;
    transform: none;
    box-shadow: none;
    width: 100%;
    background: #f6f6f6;
    padding: 8px 10px;
    min-width: 0;
    overflow: visible;
    border-radius: 0;
  }
  .nav-item:hover .submenu {
    display: none;
  }
  .nav-item.open .submenu {
    display: block;
  }
  .site-header .search-link {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }
  .column-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .column-links {
    gap: 0;
    min-height: 58px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    font-size: 16px;
  }
  .column-links a {
    min-height: 58px;
    flex: 0 0 auto;
    padding: 0 16px;
  }
  .breadcrumb {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    font-size: 12px;
    line-height: 24px;
  }
  .column-links + .breadcrumb { border-top: 1px solid #e2e2e2; }
  .column-banner {
    height: 320px;
  }
  .banner-copy h1 {
    font-size: 34px;
  }
  .banner-copy p {
    font-size: 18px;
  }
  .consultation-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .consultation-section {
    padding: 55px 0;
    height: auto;
  }
  .consultation-copy h2 {
    font-size: 36px;
  }
  .consultation-copy p {
    font-size: 18px;
  }
  .consultation-phone {
    font-size: 32px;
    margin-top: 20px;
  }
  
  
  .footer-nav {
    gap: 25px;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .page-section {
    padding: 50px 0 60px;
  }
  .case-grid,
  .news-grid,
  .lawyer-grid,
  .pennant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases-list-page .case-grid {
    grid-template-columns: 1fr;
  }
  .section-intro {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 35px;
  }
  .category-tabs {
    gap: 10px;
    margin-bottom: 30px;
  }
  .category-tabs a {
    padding: 8px 18px;
    font-size: 15px;
  }
  .rich-text {
    font-size: 16px;
  }
}
@media (max-width: 550px) {
  :root {
    --header-height: 70px;
  }
  .brand {
    flex-basis: 175px;
  }
  .brand img {
    width: 175px;
    height: 45px;
  }
  .header-inner {
    gap: 10px;
  }
  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .column-nav-inner {
    gap: 0;
  }
  .breadcrumb {
    width: 100%;
  }
  .column-banner {
    height: 230px;
  }
  .banner-copy h1 {
    font-size: 28px;
  }
  .banner-copy p {
    font-size: 15px;
    max-width: 280px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .english {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .case-grid,
  .news-grid,
  .pennant-grid {
    grid-template-columns: 1fr;
  }
  .lawyer-grid {
    gap: 15px;
  }
  .lawyer-copy {
    padding: 15px 12px;
  }
  .lawyer-copy h3 {
    font-size: 20px;
  }
  .lawyer-role {
    font-size: 14px;
  }
  .lawyer-copy .summary {
    font-size: 13px;
    line-height: 23px;
  }
  .case-card {
    min-height: 280px;
  }
  .case-card > a {
    padding: 25px;
  }
  .case-card h3 {
    font-size: 18px;
  }
  .case-list-card {
    height: auto;
    min-height: 320px;
  }
  .case-list-card > a {
    padding: 24px;
  }
  .case-list-copy h3 {
    font-size: 18px;
  }
  .case-list-copy .summary {
    font-size: 15px;
    line-height: 26px;
    -webkit-line-clamp: 3;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-wide {
    grid-column: auto;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-intro {
    font-size: 15px;
  }
  .pennant-card > a {
    padding: 20px;
  }
  .pennant-card h3 {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 1650px) {
  .main-nav { gap: 28px; margin-left: 40px; }
  .hotline { flex-basis: 200px; width: 200px; font-size: 20px; margin-left: 25px; }
  .footer-nav { gap: 35px; }
  .footer-contact-row a, .footer-address { font-size: 15px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 1350px) {
  .main-nav { gap: 22px; margin-left: auto; }
  .search-link { margin-left: 25px; }
  .hotline { display: none; }
  .footer-nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; height: auto; min-height: 0; }
  .footer-contact-row { height: auto; padding: 25px 0; flex-wrap: wrap; }
  .consultation-inner { gap: 50px; }
}
@media (max-width: 900px) {
  .main-nav { margin-left: 0; }
  .search-link { margin-left: 15px; }
  .nav-item > a { z-index: auto; }
  .submenu-toggle { position: static; width: 40px; height: 40px; color: #777; font-size: 0; padding: 8px; }
  .consultation-section { height: auto; padding: 55px 0; }
  .consultation-inner { padding-top: 0; }
  .consultation-section::before, .consultation-section::after { height: 100%; background-size: cover; }
  .consultation-section .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .consultation-phone { font-size: 30px; margin-top: 25px; }
  .consultation-phone img { width: 40px; height: 40px; }
  .site-footer { padding: 45px 0 25px; }
  .footer-brand-row > img { width: 250px; }
  .social-links { gap: 8px; }
  .footer-nav { margin-top: 30px; padding: 30px 0; }
  .footer-contact-row { flex-direction: column; align-items: flex-start; margin-top: 20px; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; row-gap: 12px; height: auto; font-size: 12px; }
  .footer-registration { white-space: normal; flex-wrap: wrap; gap: 16px; }
  .footer-registration, .footer-policies { justify-self: start; }
  .footer-policies { white-space: normal; }
  .floating-tools { right: 10px; top: auto; bottom: 25px; }
}
@media (max-width: 550px) {
  .consultation-section .form-grid { grid-template-columns: 1fr; }
  .footer-brand-row { height: auto; flex-wrap: wrap; }
  .footer-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
  .footer-contact-row > div { flex-wrap: wrap; }
  .footer-contact-row a, .footer-address { overflow-wrap: anywhere; }
  .floating-tools { --floating-tool-size: 44px; width: 44px; }
  .floating-tools > a, .floating-tools > button, .floating-wechat, .floating-wechat > button { width: 44px; height: 44px; }
  .floating-tools > a > img, .floating-tools > button > img, .floating-wechat > button > img { width: 51px; height: 51px; left: -3.5px; top: -3.5px; }
}
@media (max-width: 768px) {
  .wechat-hover-card { display: none; }
}

/* 桌面缩放和中等宽度下压缩导航间距，避免热线溢出页面。 */
@media (min-width: 1351px) and (max-width: 1850px) {
  .header-inner { gap: 0; min-width: 0; }
  .brand { flex: 0 0 clamp(210px,14.5vw,270px); }
  .brand img { width: clamp(210px,14.5vw,270px); height: 60px; }
  .main-nav { flex: 1 1 auto; justify-content: space-between; min-width: 0; margin-left: clamp(18px,2.7vw,50px); gap: clamp(10px,1.25vw,23px); font-size: clamp(15px,1vw,17px); }
  .search-link { margin-left: clamp(14px,1.5vw,24px); }
  .hotline { flex: 0 0 clamp(200px,12vw,220px); width: clamp(200px,12vw,220px); margin-left: clamp(14px,1.5vw,24px); padding: 10px 14px; font-size: clamp(18px,1.15vw,20px); gap: 10px; }
}

@media (min-width: 1351px) and (max-width: 1450px) {
  .brand { flex-basis: 210px; }
  .brand img { width: 210px; height: 56px; }
  .main-nav { margin-left: 18px; gap: 10px; font-size: 15px; }
  .search-link { margin-left: 12px; }
  .hotline { flex-basis: 180px; width: 180px; margin-left: 12px; font-size: 17px; }
}
