/* ============ 面包屑 ============ */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 12px 0;
  font-size: 13px;
  color: #7a8fa6;
  overflow: hidden;
}
.breadcrumb .container {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb a { color: #5a6f85; }
.breadcrumb a:hover { color: #1a73e8; }
.breadcrumb span { margin: 0 8px; color: #c5d2e0; }

/* ============ 详情主体 ============ */
.case-detail {
  padding: 40px 0 60px;
  background: #f7f9fc;
  overflow-x: clip;
}
.case-detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ============ 正文 ============ */
.case-content {
  background: #fff;
  border-radius: 14px;
  padding: 42px 46px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}
.case-header {
  padding-bottom: 22px;
  border-bottom: 2px solid #f0f4f9;
  margin-bottom: 26px;
}
.case-header h1 {
  font-size: 26px;
  color: #1a3a5c;
  line-height: 1.4;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.case-info {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: #a0b0c2;
}
.case-cover {
  margin-bottom: 26px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}
.case-cover img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 正文排版 */
.case-text {
  font-size: 15px;
  line-height: 1.95;
  color: #33475b;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.case-text h2 {
  font-size: 20px;
  color: #1a3a5c;
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid #ff6b35;
}
.case-text h3 {
  font-size: 17px;
  color: #1a3a5c;
  margin: 24px 0 12px;
}
.case-text p { margin-bottom: 16px; }
.case-text img {
  border-radius: 10px;
  margin: 18px 0;
  max-width: 100% !important;
  height: auto !important;
}
.case-text ul, .case-text ol {
  margin: 14px 0 14px 20px;
  padding-left: 4px;
}
.case-text li { margin-bottom: 8px; }

/* 表格：PC端正常显示，手机端自适应横向滚动 */
.case-text table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  word-break: break-word;
}
.case-text th, .case-text td {
  border: 1px solid #e8eef5;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}
.case-text th {
  background: #f7f9fc;
  color: #1a3a5c;
  font-weight: 600;
}

/* ============ 上下篇导航 ============ */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed #e8eef5;
  font-size: 14px;
  flex-wrap: wrap;
}
.case-nav a { 
  color: #5a6f85; 
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s; 
}
.case-nav a:hover { color: #1a73e8; }
.case-nav .nav-back { 
  color: #1a73e8; 
  flex-shrink: 0;
  padding: 6px 16px;
  background: #f0f6ff;
  border-radius: 6px;
  max-width: none;
}
.case-nav .nav-back:hover { background: #e0efff; }
.case-nav .disabled {
  color: #c5d2e0;
  cursor: not-allowed;
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 侧边栏 ============ */
.case-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  min-width: 0;
}
.sidebar-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 0;
  overflow: hidden;
}
.sidebar-card h3 {
  font-size: 16px;
  color: #1a3a5c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f4f9;
}
.related-list { list-style: none; }
.related-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eef2f7;
  font-size: 14px;
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  color: #33475b;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-list a:hover { color: #1a73e8; }

.contact-card {
  background: linear-gradient(135deg, #1a3a5c, #2c5f8d);
  color: #fff;
}
.contact-card h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.15); }
.contact-card p {
  font-size: 13px;
  color: #d0e0f0;
  margin-bottom: 16px;
  line-height: 1.7;
}
.sidebar-phone {
  display: block;
  font-size: 20px;
  color: #ffd166;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}
.sidebar-btn {
  display: block;
  text-align: center;
  padding: 11px;
  background: #ff6b35;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.sidebar-btn:hover { background: #e85a2a; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .case-detail { padding: 24px 0 40px; }
  .case-detail-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .case-sidebar { position: static; min-width: 0; width: 100%; }
  .case-content { padding: 22px 16px; width: 100%; }
  .case-header h1 { font-size: 20px; }
  .case-info { gap: 12px; }
  .case-text { font-size: 14px; line-height: 1.85; }
  .case-text h2 { font-size: 18px; margin: 24px 0 12px; }
  .case-text h3 { font-size: 16px; }
  .case-text th,
  .case-text td {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  /* 手机端表格允许横向滑动 */
  .case-text table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 手机端上下篇导航变竖排 */
  .case-nav {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }
  .case-nav a,
  .case-nav .disabled {
    max-width: 100%;
  }
  .case-nav .nav-back { width: 100%; }
}

@media (max-width: 480px) {
  .case-content { padding: 18px 14px; }
  .case-header h1 { font-size: 18px; }
}