/* ============================================================
   modern.css — 北京市国韬律师事务所 统一样式表
   版本：2.0  |  依赖：Bootstrap 5.3 + Bootstrap Icons 1.11
   色调：主红 #D92525 / 深色背景 #1e1e1e / 浅灰背景 #f4f5f7
   ============================================================ */

/* ── 设计变量 ─────────────────────────────────────────────── */
:root {
  --primary-red:        #D92525;
  --primary-red-hover:  #b81e1e;
  --primary-red-light:  #fff0f0;
  --primary-red-border: #f5c6c6;
  --bg-page:            #f4f5f7;
  --bg-white:           #ffffff;
  --bg-dark:            #1e1e1e;
  --bg-footer:          #262626;
  --text-dark:          #1a1a1a;
  --text-body:          #333333;
  --text-muted:         #666666;
  --text-light:         #999999;
  --border-color:       #e8e8e8;
  --border-radius-sm:   6px;
  --border-radius:      10px;
  --border-radius-lg:   16px;
  --shadow-xs:          0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:          0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:          0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg:          0 8px 32px rgba(0,0,0,0.12);
  --shadow-red:         0 6px 20px rgba(217,37,37,0.18);
  --transition:         all 0.28s ease;
  --header-height:      130px; /* 顶部信息栏80px + 导航条50px */
}

/* ── 全局基础 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg-page);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  padding-top: var(--header-height);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 991px) {
  body { padding-top: 60px; }
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-red-hover); }

img { max-width: 100%; height: auto; }

/* ── 头部：顶部信息栏 ─────────────────────────────────────── */
.header-top {
  background: var(--bg-white);
  height: 80px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
}

.header-top .hotline-text {
  color: var(--primary-red);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── 头部：红色导航条 ─────────────────────────────────────── */
.header-nav {
  background-color: var(--primary-red);
  position: fixed;
  top: 80px;
  width: 100%;
  z-index: 1020;
  box-shadow: 0 3px 12px rgba(217,37,37,0.25);
}

@media (max-width: 991px) {
  .header-top { display: none !important; }
  .header-nav { top: 0; min-height: 60px; }
}

/* 导航链接 */
.navbar-dark .navbar-nav { position: relative; }
.navbar-dark .navbar-nav .nav-item { position: relative; z-index: 1; }

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 18px;
  position: relative;
  transition: color 0.25s ease;
  z-index: 1;
  letter-spacing: 0.3px;
}
.navbar-dark .navbar-nav .nav-link::before { display: none; }
.navbar-dark .navbar-nav .nav-link:hover { color: #ffffff; }
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

/* 导航滑动跟随条 */
.nav-slide-bar {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.9);
  border-radius: 3px 3px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

/* 移动端导航 */
@media (max-width: 991px) {
  .nav-slide-bar { display: none !important; }
  .navbar-collapse {
    background-color: var(--primary-red);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 8px 15px 12px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 1040;
  }
  .navbar-dark .navbar-nav .nav-link {
    padding: 10px 14px;
    border-left: 3px solid transparent;
  }
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    border-left-color: #ffffff;
    border-radius: 0 4px 4px 0;
  }
}

/* ── 通用卡片 ─────────────────────────────────────────────── */
.modern-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: none;
  margin-bottom: 22px;
  overflow: hidden;
  padding: 22px;
  transition: box-shadow 0.28s ease;
}
.modern-card:hover { box-shadow: var(--shadow-md); }
.modern-card .card-body { padding: 8px 0 0; }
.modern-card .card-header {
  padding: 0 0 16px;
  background: transparent;
  border-bottom: none;
}

/* ── 标题装饰 ─────────────────────────────────────────────── */
.title-decorator {
  border-left: 4px solid var(--primary-red);
  padding-left: 10px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

/* ── 律师卡片（通用基础样式） ─────────────────────────────── */
.chief-lawyer-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border-color);
}

.chief-lawyer-header {
  background: linear-gradient(135deg, var(--primary-red) 0%, #a81818 100%);
  color: #ffffff;
  text-align: center;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}
.chief-lawyer-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 8px solid #a81818;
}

.chief-lawyer-card .card-body {
  padding: 28px 24px 24px;
}

/* 律师头像 */
.lawyer-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 16px rgba(217,37,37,0.2);
  margin: -10px auto 14px;
  display: block;
  background-color: #f8f9fa;
}
/* 律师战绩数字展示 */
.lawyer-stats {
  display: flex;
  justify-content: space-around;
  background: var(--primary-red-light);
  border-radius: var(--border-radius-sm);
  padding: 12px 8px;
  margin: 14px 0;
  border: 1px solid var(--primary-red-border);
}
.lawyer-stat-item {
  text-align: center;
  flex: 1;
}
.lawyer-stat-item + .lawyer-stat-item {
  border-left: 1px solid var(--primary-red-border);
}
.lawyer-stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.2;
}
.lawyer-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 律师信息列表 */
.lawyer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.lawyer-info-list li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.lawyer-info-list li:last-child { border-bottom: none; }
.lawyer-info-list .info-label {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.lawyer-info-list .info-phone {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-red);
}

/* 荣誉标签 */
.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.lawyer-tag {
  display: inline-block;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border: 1px solid var(--primary-red-border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* 可复用律师卡组件 */
.lawyer-profile-card .lawyer-brief {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.lawyer-profile-card .lawyer-cta-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lawyer-profile-card .lawyer-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid var(--primary-red-border);
  background: #fff;
  color: var(--primary-red);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.lawyer-profile-card .lawyer-phone-link:hover {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
  color: var(--primary-red-hover);
}

.lawyer-service-card .card-body {
  padding-top: 12px;
}

.lawyer-service-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.lawyer-service-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.lawyer-service-item i {
  color: var(--primary-red);
  font-size: 0.95rem;
  margin-top: 3px;
}

.lawyer-service-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.lawyer-service-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.lawyer-service-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-red-light);
  border: 1px solid var(--primary-red-border);
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.7;
}

.lawyer-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(217,37,37,0.12);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.lawyer-mobile-bar__inner {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}

.lawyer-mobile-bar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(217,37,37,0.12);
}

.lawyer-mobile-bar__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

.lawyer-mobile-bar__meta {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lawyer-mobile-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #b81e1e 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(217,37,37,0.18);
}

.lawyer-mobile-bar:hover .lawyer-mobile-bar__btn {
  color: #fff;
}

body.has-mobile-lawyer-bar {
  padding-bottom: 0;
}

/* ── 固定侧边栏包裹器（index1/index2/index3 使用） ─────────── */
.lawyer-sticky-wrapper {
  position: sticky;
  top: 148px; /* header高度 + 少量间距 */
}

/* ── 按钮 ─────────────────────────────────────────────────── */
.btn-primary-red {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b81e1e 100%);
  color: #ffffff;
  border: none;
  transition: var(--transition);
  padding: 9px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(217,37,37,0.3);
}
.btn-primary-red:hover {
  background: linear-gradient(135deg, #b81e1e 0%, #9a1818 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

/* ── 列表样式 ─────────────────────────────────────────────── */
.list-group-item {
  border-bottom: 1px dashed var(--border-color);
  padding: 11px 0;
  transition: var(--transition);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background: #fafafa; padding-left: 6px; }

/* ── 罪名知识标签 ─────────────────────────────────────────── */
.crime-tag {
  display: inline-block;
  background: #f5f5f5;
  color: var(--text-muted);
  padding: 4px 11px;
  border-radius: var(--border-radius-sm);
  margin: 3px;
  font-size: 0.82rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.crime-tag:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  transform: translateY(-1px);
}
/* ── 罪名知识列表（一级结构，循环渲染） ──────────────────── */
.crime-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 575px) {
  .crime-list { grid-template-columns: repeat(2, 1fr); }
}
.crime-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  transition: background 0.18s, color 0.18s;
  min-height: 42px;
}
/* 每行最后一列去掉右边框 */
.crime-item:nth-child(3n) { border-right: none; }
@media (max-width: 575px) {
  .crime-item:nth-child(3n) { border-right: 1px solid #f0f0f0; }
  .crime-item:nth-child(2n) { border-right: none; }
}
/* 最后一行去掉底边框 */
.crime-item:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 575px) {
  .crime-item:nth-last-child(-n+3) { border-bottom: 1px solid #f0f0f0; }
  .crime-item:nth-last-child(-n+2) { border-bottom: none; }
}
.crime-item:hover {
  background: #fff5f5;
  color: var(--primary-red);
}
.crime-item:hover .crime-arrow { color: var(--primary-red); opacity: 1; }
.crime-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.crime-arrow {
  font-size: 0.7rem;
  color: #ccc;
  opacity: 0.6;
  flex-shrink: 0;
  transition: color 0.18s, opacity 0.18s;
}
/* ── 面包屑 ───────────────────────────────────────────────── */
.article-breadcrumb {
  font-size: 0.95rem;
  color: #999;
  margin: 10px 0;
}
.article-breadcrumb a { color: #999; }
.article-breadcrumb a:hover { color: var(--primary-red); }

/* ── FAQ 模块（AIGEO 优化） ───────────────────────────────── */
.article-faq {
  background: var(--primary-red-light);
  border-radius: var(--border-radius);
  padding: 28px 30px;
  margin: 28px 0;
  font-size: 0.93rem;
  line-height: 1.9;
  border-left: 4px solid var(--primary-red);
}
.article-faq strong { color: var(--primary-red); font-weight: 700; }
.article-faq p { margin-bottom: 0.5rem; }

/* ── 公告栏 ───────────────────────────────────────────────── */
.marquee-box {
  background: #fff8f8;
  border: 1px solid var(--primary-red-border);
  border-radius: var(--border-radius-sm);
  padding: 10px 18px;
  color: var(--text-body);
  display: flex;
  align-items: center;
}

/* ── 快捷入口卡片 ─────────────────────────────────────────── */
.quick-link-card {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.quick-link-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.quick-link-img {
  width: 100%;
  border-radius: var(--border-radius);
  transition: transform 0.35s ease;
  display: block;
}
.quick-link-card:hover .quick-link-img { transform: scale(1.06); }

/* ── 轮播图 ───────────────────────────────────────────────── */
.carousel-inner {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── 业务领域卡片（index3 专用） ─────────────────────────── */
.business-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-red);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-red-border);
}
.business-card:hover::before { opacity: 1; }

.business-card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--primary-red);
  transition: var(--transition);
}
.business-card:hover .business-card-icon {
  background: var(--primary-red);
  color: #ffffff;
}

.business-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.business-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}.business-card-desc p {
    /* 核心属性 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 控制显示的行数 */
    overflow: hidden;
    
    /* 辅助属性：确保文本能正常换行 */
    word-break: break-all; 
    line-height: 1.6; /* 建议设置行高，让排版更美观 */
    max-height: 4.8em; /* 可选：行高 1.6 * 3行 = 4.8em，防止老版本浏览器高度溢出 */
}
.business-card-link {
  font-size: 0.82rem;
  color: var(--primary-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.business-card-link:hover { color: var(--primary-red-hover); }

/* 业务领域详情区块 */
.business-detail-section {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 40px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  scroll-margin-top: 140px;
}
@media (max-width: 991px) {
  .business-detail-section { scroll-margin-top: 76px; }
}
.business-detail-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-red-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.business-detail-section h3 .bi {
  color: var(--primary-red);
  font-size: 1.1rem;
}
.business-detail-section p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 0;
}

/* 业务领域 Hero 区 */
.business-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 50%, #1a1a1a 100%);
  border-radius: var(--border-radius-lg);
  padding: 40px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.business-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(217,37,37,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.business-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.business-hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 600px;
}
.business-hero-badge {
  display: inline-block;
  background: var(--primary-red);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* ── 近期办案轨迹 ─────────────────────────────────────────── */
.case-track-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}
.case-track-item:last-child { border-bottom: none; }
.case-track-item .track-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.case-track-item .track-addr {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── 页脚 ─────────────────────────────────────────────────── */
.modern-footer {
  background-color: var(--bg-footer);
  color: #bbbbbb;
  margin-top: 24px;
  /* border-top: 3px solid var(--primary-red); */
  padding: 32px 0 16px;
}
.modern-footer a {
  color: #bbbbbb;
  text-decoration: none;
  transition: var(--transition);
}
.modern-footer a:hover { color: var(--primary-red); }
.modern-footer hr {
  border-color: rgba(255,255,255,0.08);
  margin: 20px 0 16px;
}
.modern-footer .footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.modern-footer .footer-nav li {
  margin-bottom: 7px;
  font-size: 0.85rem;
}
.modern-footer .footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.modern-footer .footer-copy a { color: rgba(255,255,255,0.45); }
.modern-footer .footer-copy a:hover { color: var(--primary-red); }

/* 社交图标 */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #cccccc !important;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-icon-btn:hover {
  background: var(--primary-red);
  color: #ffffff !important;
  transform: translateY(-2px);
  border-color: var(--primary-red);
}

/* ── 侧边栏 Widget（index2 风格） ─────────────────────────── */
.widget {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  border: 1px solid var(--border-color);
}
.widget__header {
  background: linear-gradient(135deg, var(--primary-red) 0%, #a81818 100%);
  color: #ffffff;
  text-align: center;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
}
.widget__body { padding: 18px 20px; }
.widget__list-item {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.85rem;
  list-style: none;
}
.widget__list-item:last-child { border-bottom: none; }
.widget__list-item a {
  color: var(--text-body);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget__list-item a:hover { color: var(--primary-red); padding-left: 4px; }

/* ── 案件信息卡片（index2 专用） ─────────────────────────── */
.case-info {
  background: #f9fafb;
  border-radius: var(--border-radius);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 26px;
  list-style: none;
  border: 1px solid var(--border-color);
}
.case-info__item {
  width: 50%;
  padding: 7px 0;
  font-size: 0.9rem;
}
.case-info__label {
  color: var(--primary-red);
  font-weight: 700;
}

/* ── 文章内容（index1/index2 专用） ─────────────────────── */
.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-red);
  border-left: 5px solid var(--primary-red);
  padding-left: 14px;
  margin: 36px 0 18px;
  background: var(--primary-red-light);
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.article-content p, .article-content div {
  font-size: 0.95rem;
  line-height: 1.95;
  margin-bottom: 18px;
  color: var(--text-body);
}

.article-key-points {
  list-style: none;
  padding-left: 0;
}
.article-key-points li {
  font-size: 0.93rem;
  padding: 9px 0 9px 24px;
  position: relative;
  line-height: 1.7;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-body);
}
.article-key-points li:last-child { border-bottom: none; }
.article-key-points li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary-red);
  border-radius: 50%;
  position: absolute;
  left: 6px;
  top: 17px;
}

.article-notice {
  text-align: center;
  font-weight: 700;
  color: var(--primary-red);
  font-size: 1.05rem;
  margin: 28px 0 8px;
  padding: 14px;
  background: var(--primary-red-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-red-border);
}

/* 上下篇 */
.fc-show-prev-next {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.fc-show-prev-next a { color: var(--text-body); }
.fc-show-prev-next a:hover { color: var(--primary-red); }

/* ── 响应式补充 ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .case-info__item { width: 100%; }
  .business-detail-section { padding: 24px 20px; }
  .business-hero { padding: 28px 22px; }
  .business-hero-title { font-size: 1.4rem; }
  .lawyer-sticky-wrapper { position: static; }
  .modern-footer { padding: 24px 0 12px; }
}

@media (max-width: 576px) {
  .lawyer-stats { flex-direction: column; gap: 8px; }
  .lawyer-stat-item + .lawyer-stat-item { border-left: none; border-top: 1px solid var(--primary-red-border); padding-top: 8px; }
}

@media (max-width: 991px) {
  body.has-mobile-lawyer-bar {
    padding-bottom: 96px;
  }

  .lawyer-mobile-hide {
    display: none !important;
  }

  .lawyer-mobile-bar {
    display: block;
  }
}

/* ── 列表页公共样式（index4 经典案例列表 / index5 律师博文列表） ── */

/* 列表项卡片 */
.list-article-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.list-article-item:first-child { padding-top: 0; }
.list-article-item:last-child { border-bottom: none; }
.list-article-item:hover { background: #fafbfc;}

/* 缩略图 */
.list-article-thumb {
  width: 200px;
  height: 134px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #f0f0f0;
}
.list-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.list-article-thumb:hover img { transform: scale(1.08); }
.list-article-thumb::after {
  content: '\F52D';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.list-article-thumb:hover::after { transform: translate(-50%, -50%) scale(1); }

/* 文章信息区 */
.list-article-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.list-article-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-article-title a { color: inherit; }
.list-article-title a:hover { color: var(--primary-red); }

.list-article-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
  .list-article-summary a {
    color: inherit;
  }
/* 关键词标签 */
.list-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.list-article-tag {
  display: inline-block;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border: 1px solid var(--primary-red-border);
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  transition: var(--transition);
}
.list-article-tag:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* 元信息（时间、阅读量等） */
.list-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: auto;
}
.list-article-meta i { font-size: 0.82rem; margin-right: 3px; }
.list-article-meta-right {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* 分页 */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}
.pagination .page-item .page-link {
  color: var(--text-body);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm) !important;
  margin: 0 3px;
  font-size: 0.85rem;
  padding: 6px 13px;
  transition: var(--transition);
  min-width: 36px;
  text-align: center;
}
.pagination .page-item .page-link:hover {
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-color: var(--primary-red-border);
}
.pagination .page-item.active .page-link {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217,37,37,0.25);
}
.pagination .page-item.disabled .page-link {
  color: var(--text-light);
  background: #f8f8f8;
}

/* 列表页标题 */
.list-page-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-page-title i { color: var(--primary-red); }
.list-page-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--primary-red-light);
}

/* 图片预览遮罩 */
.img-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-preview-overlay.active { display: flex; }
.img-preview-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.img-preview-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.img-preview-close:hover { opacity: 1; }

/* 博文列表无缩略图样式 */
.list-article-item.no-thumb .list-article-title {
  font-size: 1.08rem;
}
.list-article-item.no-thumb .list-article-summary {
  -webkit-line-clamp: 2;
}

/* 列表页响应式 */
@media (max-width: 768px) {
  .list-article-item { flex-direction: column; gap: 12px; }
  .list-article-thumb { width: 100%; height: 180px; }
  .list-article-meta { flex-wrap: wrap; }
  .list-article-meta-right { margin-left: 0; }
}
