/* ==================== SRM详情页样式 ==================== */

/* Banner区域 */
.detail-banner {
  background-image: url('../images/srm-detail-banner-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 0;
  position: relative;
}

.detail-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.detail-banner .banner-left {
  flex: 1;
  max-width: 500px;
}

.detail-banner .banner-title {
  font-size: 40px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.detail-banner .banner-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.detail-banner .btn-banner {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #1E6FFF 0%, #4A8FFF 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 111, 255, 0.3);
}

.detail-banner .btn-banner:hover {
  background: linear-gradient(135deg, #0D5FEF 0%, #3A7FEF 100%);
  box-shadow: 0 6px 16px rgba(30, 111, 255, 0.4);
  transform: translateY(-2px);
}

.detail-banner .banner-right {
  flex: 1;
  max-width: 425px;
}

.detail-banner .banner-right img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 240px;
  max-width: 425px;
}

/* 文章内容区域 */
.article-section {
  background-color: #FAFBFC;
  padding: 21px 0;
}

.article-layout {
  display: flex;
  gap: 21px;
  align-items: flex-start;
}

/* 左侧正文 */
.article-main {
  flex: 1;
  max-width: 895px;
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
}

.article-main article h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 48px 0 24px 0;
  line-height: 1.4;
}

.article-main article h2:first-child {
  margin-top: 0;
}

.article-main article h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 32px 0 16px 0;
  line-height: 1.5;
}

.article-main article p {
  font-size: 16px;
  color: #333333;
  line-height: 1.9;
  margin: 0 0 20px 0;
  text-align: justify;
}

.article-main article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

.article-main article video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

.article-main article ol {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0 20px 20px
}

.article-main article ul {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0 20px 20px
}

.article-main article li {
  font-size: 16px;
  color: #333333;
  line-height: 1.9;
  margin: 0 0 10px 0;
  text-align: justify;
}

.article-main article li::before {
  content: '•';
  color: #1E6FFF;
  font-size: 20px;
  margin-right: 10px;
}

.article-main article li::after {
  content: '';
  display: block;
  clear: both;
}

/* 时间线样式 */
.timeline {
  margin: 32px 0;
  padding-left: 0;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, #1E6FFF 0%, #E5E7EB 100%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E6FFF 0%, #4A8FFF 100%);
  box-shadow: 0 0 0 4px rgba(30, 111, 255, 0.1);
}

.timeline-content {
  background-color: #F7F9FC;
  border-radius: 8px;
  padding: 20px 24px;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  background-color: #EFF4FF;
  box-shadow: 0 4px 12px rgba(30, 111, 255, 0.1);
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: #1E6FFF;
  margin: 0 0 12px 0;
}

.timeline-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* 右侧边栏 */
.article-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 146px; /* 70px (主导航) + 56px (二级导航) + 20px (间距) */
  align-self: flex-start;
}

.sidebar-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 广告卡片 */
.ad-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  position: relative;
}

.ad-content {
  text-align: left;
  padding: 40px 32px;
  width: 100%;
}

.ad-title {
  font-size: 22px;
  font-weight: 600;
  color: #4A8FFF;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.ad-desc {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.btn-ad {
  background: linear-gradient(135deg, #1E6FFF 0%, #4A8FFF 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 111, 255, 0.3);
  padding: 14px 30px;
}

.btn-ad:hover {
  background: linear-gradient(135deg, #0D5FEF 0%, #3A7FEF 100%);
  box-shadow: 0 6px 16px rgba(30, 111, 255, 0.4);
  transform: translateY(-2px);
}

/* 下载卡片 */
.download-card {
  background-color: #fff;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.btn-download {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: #1E6FFF;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #1E6FFF;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

/* 相关阅读 */
.related-section {
  padding-bottom: 40px;
  padding-top: 40px;
}

.related-section .container {
  max-width: 1200px;
  padding: 0 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  margin: 0 0 20px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
}

.related-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.related-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.related-content {
  flex: 1;
}

.related-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.related-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.related-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA区域 */
.cta-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.85) 0%, rgba(74, 143, 255, 0.85) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.btn-cta {
  display: inline-block;
  padding: 14px 48px;
  background: #fff;
  color: #1E6FFF;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  background: #F5F8FF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== 响应式设计 ==================== */
@media screen and (max-width: 1024px) {
  .article-layout {
      gap: 40px;
  }

  .article-sidebar {
      width: 280px;
  }

  .related-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
  }
}

@media screen and (max-width: 768px) {
  /* Banner */
  .detail-banner {
      padding: 40px 0;
  }

  .detail-banner .banner-content {
      flex-direction: column;
      gap: 32px;
  }

  .detail-banner .banner-left {
      max-width: 100%;
      text-align: center;
  }

  .detail-banner .banner-title {
      font-size: 28px;
      margin-bottom: 16px;
  }

  .detail-banner .banner-desc {
      font-size: 14px;
      margin-bottom: 24px;
  }

  .detail-banner .btn-banner {
      width: 100%;
      padding: 12px 24px;
  }

  .detail-banner .banner-right {
      max-width: 100%;
  }

  /* 文章布局 */
  .article-section {
      padding: 20px 0;
  }

  .article-layout {
      flex-direction: column;
      gap: 32px;
  }

  .article-main {
      max-width: 100%;
  }

  .article-main article h2 {
      font-size: 22px;
      margin: 32px 0 16px 0;
  }

  .article-main article h3 {
      font-size: 18px;
      margin: 24px 0 12px 0;
  }

  .article-main article p {
      font-size: 15px;
  }

  .timeline-item {
      padding-left: 32px;
      padding-bottom: 24px;
  }

  .timeline-content {
      padding: 16px 20px;
  }

  .timeline-title {
      font-size: 16px;
      margin-bottom: 8px;
  }

  .timeline-content p {
      font-size: 14px;
  }

  /* 边栏 */
  .article-sidebar {
      width: 100%;
  }

  .sidebar-card {
      padding: 20px;
  }

 

  .section-title {
      font-size: 24px;
      margin-bottom: 14px;
  }

  .related-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .related-item {
      padding: 24px 20px;
  }

  .related-icon {
      width: 64px;
      height: 64px;
      margin-bottom: 16px;
  }

  .related-title {
      font-size: 16px;
  }

  .related-desc {
      font-size: 13px;
  }

  /* CTA */
  .cta-section {
      padding: 60px 0;
  }

  .cta-title {
      font-size: 24px;
      margin-bottom: 12px;
  }

  .cta-desc {
      font-size: 14px;
      margin-bottom: 24px;
  }

  .btn-cta {
      width: 100%;
      padding: 12px 32px;
  }
}
