:root {
  --blue: #0587c8;
  --deep: #075182;
  --navy: #0a3554;
  --cyan: #25a8df;
  --yellow: #fff200;
  --red: #df4d59;
  --ink: #24313d;
  --muted: #6f7b86;
  --line: #d8dee3;
  --page: #eef1f4;
  --card: #fff;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--page); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.lawyer-strip-wrap { position: sticky; top: 0; z-index: 20; max-width: 100%; overflow: hidden; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.lawyer-strip { position: relative; width: 100%; max-width: 1180px; min-height: 54px; margin: 0 auto; padding: 7px 12px; overflow: hidden; }
.lawyer-strip::-webkit-scrollbar { display: none; }
.lawyer-strip-track { position: absolute; top: 7px; left: 12px; display: flex; gap: 8px; width: max-content; animation: lawyer-marquee 30s linear infinite; will-change: transform; }
.lawyer-strip:hover .lawyer-strip-track, .lawyer-strip:focus-within .lawyer-strip-track { animation-play-state: paused; }
.lawyer-strip a { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; min-width: 154px; padding: 4px 8px; background: #f7f9fa; border: 1px solid #edf0f2; border-radius: 999px; scroll-snap-align: start; }
.lawyer-strip a.current { background: #edf7fc; border-color: #b9dff1; }
.lawyer-strip img { width: 38px; height: 38px; object-fit: cover; object-position: center 18%; border-radius: 50%; }
.lawyer-strip span, .lawyer-strip b, .lawyer-strip small { display: block; }
.lawyer-strip b { font-size: 12px; }
.lawyer-strip small { color: var(--muted); font-size: 10px; }
@keyframes lawyer-marquee { to { transform: translateX(calc(-50% - 4px)); } }

.mobile-shell { max-width: 1180px; margin: 0 auto; }
.quick-consult { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; color: #fff; background: linear-gradient(130deg, #0a6fa9, #174a86 58%, #073c6a); }
.quick-consult h1 { max-width: 760px; margin: 2px 0; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; }
.quick-consult p { margin: 0; color: #d8eef9; }
.quick-consult .section-label { color: var(--yellow); font-size: 12px; font-weight: 800; }
.quick-consult .consult-lead { font-size: 20px; line-height: 1.25; letter-spacing: .04em; }
.quick-consult > a { flex: 0 0 auto; padding: 6px 11px; color: var(--deep); background: #fff; border-radius: 5px; text-align: center; font-weight: 800; }
.quick-consult > a small, .quick-consult > a strong { display: block; }
.quick-consult > a small { font-size: 9px; }
.quick-consult > a strong { font-size: 13px; letter-spacing: 0; }

.category-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.category-nav a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 58px; background: #fff; font-size: 13px; }
.category-nav i { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--blue); border-radius: 50%; font-style: normal; font-weight: 800; }

.region-panel { padding: 12px 18px; color: #fff; background: linear-gradient(145deg, #168bd0, #1161af 60%, #153f89); }
.region-kicker { margin: 0 0 4px; color: var(--yellow); font-size: 11px; font-weight: 800; }
.region-panel details { margin: 0; }
.region-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.region-panel summary::-webkit-details-marker { display: none; }
.region-panel summary span, .region-panel summary strong, .region-panel summary small { display: block; }
.region-panel summary strong { font-size: 18px; }
.region-panel summary small { margin-top: 2px; color: #dcefff; font-size: 11px; }
.region-panel summary i { flex: 0 0 auto; padding: 4px 9px; color: var(--deep); background: #fff; border-radius: 999px; font-size: 11px; font-style: normal; }
.region-panel details[open] summary i::after { content: "收起"; }
.region-panel details[open] summary i { font-size: 0; }
.region-panel details[open] summary i::after { font-size: 11px; }
.region-groups { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 12px; }
.region-groups article { padding: 12px; background: rgba(0,31,77,.25); border: 1px solid rgba(255,255,255,.24); border-radius: 5px; }
.region-groups h3 { margin: 0 0 7px; color: var(--yellow); font-size: 14px; }
.region-groups p { margin: 4px 0; font-size: 12px; }
.region-boundary { margin: 10px 0 0; color: #e1f1ff; font-size: 11px; }
.profile .profile-region { margin: 0 0 18px; border-radius: 7px; scroll-margin-top: 64px; text-align: left; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; padding: 22px 0; }
.panel { margin-bottom: 18px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 18px rgba(21,50,70,.05); }
.panel-title { display: flex; align-items: center; gap: 9px; margin: -4px 0 20px; border-bottom: 1px solid var(--line); }
.panel-title span { width: 10px; height: 10px; background: #aeb7bd; border-radius: 50%; }
.panel-title h2 { margin: 0; padding: 8px 0; font-size: 18px; }
.professional-tags { display: flex; justify-content: center; gap: 8px; max-width: 430px; margin: 0 auto 10px; text-align: center; }
.professional-tags b { display: block; flex: 1 1 auto; margin: 0; padding: 5px 8px; color: #fff; background: var(--blue); font-size: 15px; }
.portrait { width: min(360px, 75%); margin: 0 auto 22px; background: #eef0f1; }
.professional-motto { margin: -10px 0 14px; color: var(--red); text-align: center; font-weight: 700; }
.profile-copy { max-width: 720px; margin: 0 auto; font-size: 16px; text-align: justify; }
.credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 22px 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 5px; }
.credentials div { padding: 12px 14px; background: #f9fbfc; }
.credentials dt { color: var(--muted); font-size: 12px; }
.credentials dd { margin: 2px 0 0; font-weight: 700; }
.verify-link { display: block; color: #234fd7; text-decoration: underline; }

.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-list article { padding: 16px; background: #f5f9fb; border-left: 4px solid var(--blue); }
.service-list b { color: var(--deep); }
.service-list p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.case-note { color: var(--red); font-size: 13px; }
.case-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-groups section { padding: 16px; background: #f8fafc; border: 1px solid #e5eaee; border-radius: 5px; }
.case-groups h3 { margin: 0 0 8px; color: var(--deep); font-size: 15px; }
.case-groups span { display: block; padding: 3px 0; color: #264fda; }
.case-groups span::before { content: "●"; margin-right: 5px; color: #142ee8; }
.more-link { display: block; margin-top: 18px; color: #264fda; }
.firm-office-photo { margin: 16px 0; overflow: hidden; background: #071f31; border-radius: 7px; }
.firm-office-photo img { display: block; width: 100%; max-height: 270px; object-fit: cover; }
.firm-office-photo figcaption { padding: 8px 11px; color: #d5e7f1; font-size: 12px; }
.firm-location { color: #485864; font-size: 14px; line-height: 1.7; }
.firm-location a { color: #264fda; font-weight: 800; }
.representative-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.representative-list a { display: flex; flex-direction: column; min-height: 138px; padding: 15px; background: #f7fafc; border: 1px solid #e2e9ed; border-radius: 6px; }
.representative-list span { color: var(--blue); font-size: 11px; }
.representative-list b { margin: 7px 0; color: var(--deep); line-height: 1.45; }
.representative-list small { margin-top: auto; color: var(--muted); }
.case-impact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: -2px 0 14px; padding: 13px 15px; color: #fff; background: linear-gradient(110deg, var(--deep), #0f6f9e); border-radius: 6px; }
.case-impact strong { font-size: 22px; }
.case-impact span { color: #d7edf7; font-size: 12px; text-align: right; }
.case-showcase a { min-height: 122px; border-top: 3px solid var(--blue); }
.honors figure { max-width: 560px; margin: 0 auto 18px; }
.honors img { width: 100%; height: auto; border: 1px solid #ddd; }
.honors figcaption { padding: 8px; color: var(--muted); text-align: center; font-size: 13px; }

.side-column { align-self: start; position: sticky; top: 92px; }
.contact-card ol { padding-left: 22px; }
.contact-card > a { display: block; padding: 12px; color: #fff; background: var(--deep); border-radius: 5px; text-align: center; font-weight: 800; }
.regional-teaser p { color: var(--muted); font-size: 13px; }
.regional-teaser > a { color: #264fda; }
.firm-photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.firm-photo-slots div { display: grid; place-items: center; align-content: center; min-height: 150px; padding: 12px; color: #d9edf8; background: linear-gradient(145deg, #164e70, #0b2d46); border-radius: 6px; text-align: center; }
.firm-photo-slots b, .firm-photo-slots small { display: block; }
.firm-photo-slots small { margin-top: 5px; color: #a9c7d7; font-size: 11px; }
.publication-pending { display: inline-block; margin: 6px 0 0; padding: 6px 10px; color: #6e5712; background: #fff6d7; border: 1px solid #eadb99; border-radius: 4px; font-size: 12px; }

footer { padding: 34px max(18px, calc((100vw - 1180px) / 2)) 94px; color: #afc0ca; background: #06283e; }
footer p { max-width: 820px; margin-bottom: 0; font-size: 12px; }
.preview-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preview-pages a { padding: 5px 9px; color: #e3edf2; border: 1px solid #537080; border-radius: 4px; font-size: 11px; }
.bottom-actions { display: none; }

@media (max-width: 900px) {
  .mobile-shell { max-width: 560px; }
  .quick-consult { gap: 10px; padding: 11px 14px; }
  .quick-consult h1 { font-size: 17px; }
  .quick-consult > a { padding: 8px 10px; text-align: center; font-size: 12px; white-space: nowrap; }
  .category-nav { grid-template-columns: repeat(3, 1fr); }
  .category-nav a { min-height: 42px; font-size: 11px; }
  .category-nav i { width: 24px; height: 24px; font-size: 11px; }
  .region-panel { padding: 9px 14px 10px; }
  .region-panel summary strong { font-size: 15px; }
  .region-groups { grid-template-columns: 1fr; }
  .content-layout { display: block; padding: 10px; }
  .panel { padding: 16px; }
  .side-column { position: static; }
  .bottom-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: #20272d; box-shadow: 0 -8px 22px rgba(0,0,0,.18); }
  .bottom-actions a { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 58px; color: #fff; font-size: 11px; }
  .bottom-actions i { font-style: normal; font-weight: 800; }
  .bottom-actions .primary { background: var(--deep); }
}

@media (max-width: 520px) {
  .lawyer-strip { min-height: 48px; padding: 5px 8px; overflow: hidden; }
  .lawyer-strip-track { position: absolute; top: 5px; left: 8px; animation: lawyer-marquee 24s linear infinite; }
  .lawyer-strip-track a[aria-hidden="true"] { display: flex; }
      .lawyer-strip a { min-width: 126px; padding: 3px 6px; }
  .lawyer-strip img { width: 34px; height: 34px; }
  .quick-consult .section-label { font-size: 10px; }
  .quick-consult .consult-lead { font-size: 16px; }
  .quick-consult h1 { font-size: 15px; }
  .panel { border-radius: 7px; }
  .professional-tags b { font-size: 13px; }
  .portrait { width: 78%; }
  .profile-copy { font-size: 15px; }
  .credentials, .service-list, .case-groups, .representative-list { grid-template-columns: 1fr; }
  .case-impact { align-items: flex-start; flex-direction: column; }
  .case-impact strong { font-size: 19px; }
  .case-impact span { text-align: left; }
  .case-groups { gap: 10px; }
  .honors figure { margin-bottom: 12px; }
  .firm-photo-slots { grid-template-columns: 1fr 1fr; }
  .firm-photo-slots div { min-height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .lawyer-strip { overflow-x: auto; }
  .lawyer-strip-track { position: static; animation: none; }
  .lawyer-strip-track a[aria-hidden="true"] { display: none; }
}

/* V165 readability refinements */
.lawyer-strip b { font-size: 13px; }
.lawyer-strip small { font-size: 11px; }
.lawyer-strip a { min-height: 46px; }
.verify-link, .more-link, .regional-teaser > a, .preview-pages a { display: inline-flex; min-height: 40px; align-items: center; }
.preview-pages a { padding: 7px 3px; }


/* V177 mobile readability: approximate the legacy mobile site's reading scale. */
@media (max-width: 620px) {
  body { font-size: 17px; }
  .quick-consult .section-label { font-size: 12px; }
  .quick-consult .consult-lead { font-size: 18px; }
  .quick-consult h1 { font-size: 17px; line-height: 1.45; }
  .category-nav a { min-height: 48px; font-size: 13px; }
  .category-nav i { width: 27px; height: 27px; font-size: 12px; }
  .panel-title h2 { font-size: 20px; }
  .profile-copy { font-size: 17px; line-height: 1.85; }
  .case-note, .firm-location, .regional-teaser p, .contact-card li { font-size: 15px; }
  .representative-list span { font-size: 13px; }
  .representative-list b { font-size: 18px; }
  .representative-list small { font-size: 14px; }
  .more-link { font-size: 16px; }
}
