/* ==========================================================================
   鼎正律师事务所 · 内页公共样式（重构版）
   红白黑 · 醒目高端 · 匹配首页全新视觉系统
   ========================================================================== */

/* ---------- 1. 页面横幅 ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 120px) 0 100px;
  background: linear-gradient(180deg, var(--red-300) 0%, var(--red-500) 60%, var(--red-600) 100%);
  color: var(--white);
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 45% at 50% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 65% at 16% 40%, rgba(0, 0, 0, 0.20) 0%, transparent 55%);
  pointer-events: none;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.06) 38%, rgba(0, 0, 0, 0.18) 100%);
  animation: bannerOverlay 2s var(--ease-out) forwards;
  transform-origin: top;
}
@keyframes bannerOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-banner-inner {
  position: relative;
  z-index: 2;
}

.page-banner-eyebrow:hover::before { width: 54px; }

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.page-banner h1 span {
  color: var(--white);
  position: relative;
}
.page-banner h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.page-banner-desc {
  max-width: 640px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.85;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.page-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-banner-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--white);
  transition: width 0.5s var(--ease-out);
}

/* 面包屑链接（红色背景下改用白色） */
.breadcrumb a {
  color: rgba(255, 255, 255, 0.80);
  transition: color 0.3s var(--ease-out);
  position: relative;
}
.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.breadcrumb a:hover::after { transform: scaleX(1); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 12px; color: rgba(255, 255, 255, 0.45); transition: transform 0.3s var(--ease-out); }
.breadcrumb:hover i { transform: translateX(3px); }
.breadcrumb .current { color: rgba(255, 255, 255, 0.85); }

/* ---------- 2. 内页通用区块 ---------- */
.inner-section { padding: 88px 0; }
.inner-section-alt { background: var(--gray-50); }
.inner-section .section-head { margin-bottom: 48px; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-700);
  letter-spacing: 1px;
  transition: all 0.35s var(--ease-out);
}
.filter-btn:hover {
  border-color: var(--red-400);
  color: var(--red-400);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--red-400);
  border-color: var(--red-400);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.25);
  animation: pulseRed 2s ease-in-out infinite;
}

/* 分页器 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-700);
  transition: all 0.35s var(--ease-out);
}
.page-link:hover {
  border-color: var(--red-400);
  color: var(--red-400);
  transform: translateY(-2px);
}
.page-link.active {
  background: var(--red-400);
  border-color: var(--red-400);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.25);
  animation: pulseRed 2s ease-in-out infinite;
}
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- 3. 新闻列表卡片（无图版） ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--red-400);
  border-radius: var(--radius-lg);
  padding: 28px 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
  position: relative;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-400);
  border-left-color: var(--red-500);
}

.news-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.news-card-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--red-500);
  background: var(--red-100);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}
.news-card:hover .news-card-cat {
  background: var(--red-400);
  color: var(--white);
}
.news-card-date {
  font-size: 12.5px;
  color: var(--gray-400);
  transition: color 0.3s var(--ease-out);
}
.news-card-date i {
  color: var(--red-400);
  margin-right: 5px;
  transition: color 0.3s var(--ease-out);
}
.news-card:hover .news-card-date i { color: var(--red-500); }

.news-card h3 {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.news-card h3 a {
  color: var(--gray-800);
  transition: color 0.3s var(--ease-out);
  display: inline;
  background-image: linear-gradient(var(--red-400), var(--red-400));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s var(--ease-out), color 0.3s var(--ease-out);
}
.news-card h3 a:hover {
  color: var(--red-400);
  background-size: 100% 2px;
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  margin-top: auto;
}
.news-card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red-400);
  transition: color 0.3s var(--ease-out);
}
.news-card-foot a i { transition: transform 0.3s var(--ease-out); }
.news-card-foot a:hover { color: var(--red-500); }
.news-card-foot a:hover i { transform: translateX(4px); }
.news-card .read-time {
  font-size: 12px;
  color: var(--gray-400);
}
.news-card .read-time i { color: var(--gray-400); margin-right: 4px; }

/* ---------- 4. 关于我们 ---------- */
/* 律所导语 */
.article-body .lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--gray-800);
  font-weight: 500;
  border-left: 3px solid var(--red-400);
  padding-left: 18px;
}
/* 引导图 */
.about-figure {
  margin: 34px 0;
}
.about-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s ease, transform 0.6s var(--ease-out);
}
.about-figure:hover img {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.about-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

/* 发展历程时间线 */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 0 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(204, 0, 0, 0.35) 12%, rgba(204, 0, 0, 0.35) 88%, transparent);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 50px 60px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--red-400);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.35), 0 4px 12px rgba(204, 0, 0, 0.20);
  animation: pulseRed 2.5s ease-in-out infinite;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }
.timeline-year {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--red-400);
  margin-bottom: 8px;
  transition: text-shadow 0.3s var(--ease-out);
}
.timeline-item:hover .timeline-year { text-shadow: 0 0 20px rgba(204, 0, 0, 0.3); }
.timeline-item h3 {
  font-size: 18px;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* 价值观 */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.value-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 42px 26px 36px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-400), var(--red-400));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(204, 0, 0, 0.10);
}
.value-card:hover::before { opacity: 1; }
.value-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border: 1px solid rgba(204, 0, 0, 0.20);
  border-radius: var(--radius-md);
  font-size: 30px;
  color: var(--red-400);
  transition: all 0.4s var(--ease-out);
}
.value-card:hover i {
  background: var(--red-400);
  color: var(--white);
  border-color: var(--red-400);
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.25);
}
.value-card h3 {
  font-size: 19px;
  color: var(--gray-800);
  margin-bottom: 10px;
  transition: color 0.3s var(--ease-out);
}
.value-card:hover h3 { color: var(--red-400); }
.value-card p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ---------- 5. 联系我们 ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.contact-info-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
}
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(204, 0, 0, 0.10);
}
.contact-info-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--red-400), var(--black-700));
  border-radius: var(--radius-md);
  color: var(--red-300);
  font-size: 26px;
  transition: all 0.4s var(--ease-out);
}
.contact-info-card:hover i {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.25);
}
.contact-info-card h3 {
  font-size: 16px;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.contact-info-card p,
.contact-info-card a {
  font-size: 13.5px;
  color: var(--gray-500);
}
.contact-info-card a:hover { color: var(--red-400); }

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.contact-form-card,
.contact-side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
}
.contact-form-card:hover,
.contact-side-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(204, 0, 0, 0.08);
}
.contact-form-card h2,
.contact-side-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gray-800);
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.contact-form-card h2::after,
.contact-side-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--red-400);
  transition: width 0.35s var(--ease-out);
}
.contact-form-card:hover h2::after,
.contact-side-card:hover h2::after { width: 64px; }

/* 亮色表单（内页用） */
.form-field-light {
  border-color: var(--gray-200);
  background: var(--gray-50);
  transition: all 0.3s var(--ease-out);
}
.form-field-light:focus-within {
  border-color: var(--red-400);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.08), 0 0 20px rgba(204, 0, 0, 0.03);
  background: var(--white);
}
.form-field-light input,
.form-field-light select,
.form-field-light textarea { color: var(--gray-800); }
.form-field-light label {
  color: var(--red-400);
  border-right-color: rgba(0, 0, 0, 0.08);
}
.form-field-light input::placeholder,
.form-field-light textarea::placeholder { color: rgba(0, 0, 0, 0.30); }
.form-note-dark { color: var(--gray-500); }

/* 地图占位 */
.map-placeholder {
  position: relative;
  aspect-ratio: 16 / 8;
  margin-top: 40px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 44px),
    linear-gradient(150deg, var(--black-700), var(--black-900));
  border: 1px solid rgba(204, 0, 0, 0.20);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-placeholder > .mp-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(255, 255, 255, 0.16);
  z-index: 3;
}
.mp-c-tl { top: 16px; left: 16px; border-top: 2px solid; border-left: 2px solid; }
.mp-c-tr { top: 16px; right: 16px; border-top: 2px solid; border-right: 2px solid; }
.mp-c-bl { bottom: 16px; left: 16px; border-bottom: 2px solid; border-left: 2px solid; }
.mp-c-br { bottom: 16px; right: 16px; border-bottom: 2px solid; border-right: 2px solid; }
.map-placeholder::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(204, 0, 0, 0.14);
  border-radius: 50%;
}
.map-placeholder::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.map-placeholder .mp-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}
.map-placeholder .mp-pin {
  position: relative;
  display: inline-flex;
  margin-bottom: 16px;
}
.map-placeholder .mp-pin i {
  font-size: 54px;
  color: var(--red-500);
  filter: drop-shadow(0 10px 24px rgba(204, 0, 0, 0.45));
  animation: mpBob 3.2s ease-in-out infinite;
}
.mp-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 2px solid rgba(204, 0, 0, 0.35);
  border-radius: 50%;
  animation: mpPulse 2.4s ease-out infinite;
}
.map-placeholder .mp-content h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.map-placeholder .mp-addr { font-size: 14px; color: rgba(255, 255, 255, 0.60); letter-spacing: 2px; }
.map-placeholder .mp-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.40);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
@keyframes mpPulse {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}
@keyframes mpBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* 联系我们·高端增强 */
.contact-info-card { position: relative; }
.contact-info-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red-400), transparent);
  transition: width 0.5s var(--ease-out);
}
.contact-info-card:hover::after { width: 100%; }
.contact-info-card i { box-shadow: 0 0 0 7px rgba(204, 0, 0, 0.06); }
.contact-info-card h3 {
  font-family: var(--font-serif);
  letter-spacing: 1px;
}

/* 右侧深色来访指引卡 */
.contact-side-card {
  background: linear-gradient(165deg, var(--black-700), var(--black-900));
  border: 1px solid rgba(204, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.70);
}
.contact-side-card h2 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.contact-side-card h2 i { color: var(--red-400); margin-right: 8px; }
.side-lead {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 18px;
}
.visit-list {
  list-style: none;
  padding: 0;
}
.visit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.visit-list li:last-child { border-bottom: none; }
.visit-list strong { color: var(--white); margin-right: 2px; }
.visit-list i { color: var(--red-400); font-size: 16px; margin-top: 2px; }
.contact-divider {
  height: 1px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, rgba(204, 0, 0, 0.6), transparent);
}
.side-sub {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--red-300);
  margin-bottom: 10px;
}
.side-sub i { margin-right: 6px; }
.side-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}
.side-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 1px;
}
.side-tip i { color: var(--red-400); margin-right: 5px; }

/* FAQ 手风琴 */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.faq-item.open {
  border-color: rgba(204, 0, 0, 0.25);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  transition: all 0.3s var(--ease-out);
}
.faq-question:hover {
  color: var(--red-400);
  background: var(--gray-50);
}
.faq-question i {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--red-400);
  transition: transform 0.35s var(--ease-out);
}
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-answer p {
  padding: 0 26px 24px;
  font-size: 14px;
  color: var(--gray-500);
  border-top: 1px dashed var(--gray-200);
  padding-top: 18px;
  line-height: 1.8;
}

/* ---------- 6. 详情页布局 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}
.detail-main { min-width: 0; }
.detail-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 文章正文 */
.article {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out);
}
.article:hover { box-shadow: var(--shadow-md); }
.article-head {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 28px;
  margin-bottom: 32px;
}
.article-cat {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  background: var(--red-400);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  transition: all 0.3s var(--ease-out);
}
.article-cat:hover {
  background: var(--red-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
}
.article h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.45;
  color: var(--gray-800);
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}
.article h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red-400);
  transition: width 0.6s var(--ease-out);
}
.article:hover h1::after { width: 60px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-500);
}
.article-meta i { color: var(--red-500); margin-right: 5px; }
.article-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--gray-700);
  border-left: 3px solid var(--red-400);
  padding-left: 22px;
  margin-bottom: 30px;
  transition: border-color 0.3s var(--ease-out);
}
.article:hover .article-lead { border-left-color: var(--red-500); }
.article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--gray-700);
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gray-800);
  margin: 40px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--red-400);
  transition: border-color 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.article-body h2:hover {
  border-left-color: var(--red-500);
  padding-left: 20px;
}
.article-body h3 {
  font-size: 18px;
  color: var(--gray-800);
  margin: 28px 0 14px;
  transition: color 0.3s var(--ease-out);
}
.article-body h3:hover { color: var(--red-400); }
.article-body p { margin-bottom: 20px; }
.article-body ul,
.article-body ol { margin: 0 0 22px 26px; }
.article-body li { margin-bottom: 8px; }
.article-body ul li::marker { color: var(--red-400); }
.article-body ol li::marker { color: var(--red-500); font-weight: 700; }
.article-body strong { color: var(--gray-800); }

/* 富文本内嵌网格适配（窄栏自动减列）*/
.article-body .values-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.article-quote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--gray-50);
  border-left: 3px solid var(--red-400);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.article-quote:hover {
  border-left-color: var(--red-500);
  background: var(--red-100);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-200);
}
.article-tags span {
  font-size: 12.5px;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  transition: all 0.3s var(--ease-out);
}
.article-tags span:hover {
  border-color: var(--red-400);
  color: var(--red-400);
  transform: translateY(-2px);
}
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray-500);
}
.article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-500);
  font-size: 16px;
  transition: all 0.3s var(--ease-out);
}
.article-share a:hover {
  background: var(--red-400);
  border-color: var(--red-400);
  color: var(--white);
  transform: translateY(-2px) rotate(5deg);
}

/* 上一篇 / 下一篇 */
.article-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.prevnext-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
}
.prevnext-card:hover {
  border-color: var(--red-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.prevnext-card.next { text-align: right; }
.prevnext-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red-500);
  margin-bottom: 6px;
  transition: gap 0.3s var(--ease-out);
}
.prevnext-card:hover small { gap: 10px; }
.prevnext-card.next small { justify-content: flex-end; }
.prevnext-card h3 {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* 侧栏卡片 */
.side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
}
.side-card:hover {
  border-color: rgba(204, 0, 0, 0.10);
  box-shadow: var(--shadow-md);
}
.side-card h3 {
  font-size: 16px;
  color: var(--gray-800);
  letter-spacing: 1px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.side-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background: var(--red-400);
  transition: width 0.35s var(--ease-out);
}
.side-card:hover h3::after { width: 54px; }

/* 侧栏表单（白底覆写） */
.side-form .form-field {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.side-form .form-field:focus-within {
  border-color: var(--red-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.08);
}
.side-form .form-field label {
  color: var(--red-400);
  border-right-color: var(--gray-200);
}
.side-form .form-field:focus-within label { color: var(--red-500); }
.side-form .form-field input,
.side-form .form-field select,
.side-form .form-field textarea {
  color: var(--gray-800);
}
.side-form .form-field input::placeholder,
.side-form .form-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.30);
}
.side-form .form-note {
  color: var(--gray-500);
}
.side-hot li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--gray-200);
}
.side-hot li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.side-hot a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  transition: color 0.3s var(--ease-out);
  position: relative;
  padding-left: 0;
}
.side-hot a:hover {
  color: var(--red-400);
  padding-left: 6px;
}
.side-hot time {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}
.side-cat li { margin-bottom: 10px; }
.side-cat a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}
.side-cat a:hover,
.side-cat a.active {
  background: var(--red-400);
  border-color: var(--red-400);
  color: var(--white);
}
.side-cat a span { font-size: 12px; opacity: 0.7; }

/* 侧栏律师卡 */
.side-lawyer { text-align: center; }
.side-lawyer img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 auto 18px;
  border: 1px solid var(--gray-200);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.side-lawyer:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.side-lawyer h4 {
  font-size: 18px;
  color: var(--gray-800);
  transition: color 0.3s var(--ease-out);
}
.side-lawyer:hover h4 { color: var(--red-400); }
.side-lawyer .role {
  font-size: 12.5px;
  color: var(--red-500);
  margin: 4px 0 14px;
}
.side-lawyer p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  line-height: 1.7;
}
.side-lawyer .btn { width: 100%; }

/* 案件信息表 */
.case-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 12px;
  font-size: 14px;
}
.case-table th,
.case-table td {
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
}
.case-table tr {
  transition: background 0.3s var(--ease-out);
}
.case-table tr:hover td { background: var(--gray-50); }
.case-table th {
  width: 130px;
  background: var(--gray-50);
  color: var(--gray-800);
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.3s var(--ease-out);
}
.case-table tr:hover th { background: var(--red-100); }
.case-table td {
  color: var(--gray-700);
}
.case-result-badge {
  display: inline-block;
  background: rgba(204, 0, 0, 0.06);
  color: var(--red-500);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 5px 16px;
  border: 1px solid rgba(204, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}
.case-result-badge:hover {
  background: rgba(204, 0, 0, 0.10);
  border-color: var(--red-400);
}
.case-result-badge.win {
  background: rgba(204, 0, 0, 0.08);
  color: var(--red-400);
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1024px) {
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-main-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .timeline::before { left: 7px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 48px 44px;
  }
  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 侧栏 - 律师推荐列表 */
.side-lawyer-list {
  display: flex;
  flex-direction: column;
}
.side-lawyer-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px dashed var(--gray-200);
  transition: all 0.3s var(--ease-out);
}
.side-lawyer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.side-lawyer-item:hover {
  padding-left: 6px;
}
.side-lawyer-item img {
  width: 56px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.side-lawyer-item:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}
.side-lawyer-item .name {
  font-size: 15px;
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 2px;
}
.side-lawyer-item .title {
  font-size: 12.5px;
  color: var(--red-500);
  margin-bottom: 2px;
}
.side-lawyer-item .desc {
  font-size: 12px;
  color: var(--gray-500);
}

/* 侧栏 - 联系卡片 */
.side-contact-card {
  text-align: center;
}
.side-contact-card .side-desc {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.side-contact-card .btn-phone {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .inner-section { padding: 68px 0; }
  .page-banner { padding-top: calc(var(--header-h) + 70px); padding-bottom: 68px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body .values-grid { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 32px 26px; }
  .article-prevnext { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-form-card,
  .contact-side-card { padding: 28px 22px 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 18px; font-size: 13px; }
  .case-table th { width: 92px; }
  .page-banner h1 { font-size: 28px; }
  .article { padding: 24px 18px; }
  .article h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .page-banner { padding-top: calc(var(--header-h) + 52px); padding-bottom: 52px; }
  .page-banner h1 { font-size: 24px; letter-spacing: 1px; }
  .contact-info-grid { gap: 18px; }
  .contact-info-card { padding: 28px 18px; }
}