/* ============================================
   技术支持页样式
   ============================================ */

/* 快速导航 */
.support-nav {
  background: #f5f7fa;
  border-bottom: 1px solid #e0e6ed;
}

.support-nav-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.support-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: #fff;
  border-radius: 50px;
  color: #555;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid #e0e6ed;
  transition: all 0.3s ease;
}

.support-nav-item:hover,
.support-nav-item.active {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.15);
}

.support-nav-item i {
  font-size: 18px;
  color: var(--primary);
}

/* 交替背景 */
.support-section.alt {
  background: #f8fafc;
}

/* ============ 搜索框 ============ */
.search-bar {
  max-width: 480px;
  margin: 28px auto 0;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 48px 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  border-color: var(--primary);
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-bar button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.search-bar button i {
  font-size: 16px;
}

.search-count {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
  min-height: 20px;
}

/* ============ 技术专栏 - 文章卡片 ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.article-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.article-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.article-tag-sm {
  display: inline-block;
  width: fit-content;
  padding: 2px 10px;
  background: #e8f0fe;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.article-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.article-date {
  display: none;
  font-size: 12px;
  color: #aaa;
}

.article-date i {
  margin-right: 4px;
}

/* ============ 加载更多按钮 ============ */
.load-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: var(--primary);
  color: #fff;
}

.btn-load-more.hidden {
  display: none;
}

/* ============ 电子报 - 年份分组 ============ */
.epaper-year-group {
  margin-bottom: 16px;
}

.epaper-year-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: all 0.3s;
  margin-top: 16px;
}

.epaper-year-toggle:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.epaper-year-toggle i {
  color: var(--primary);
  font-size: 16px;
  transition: transform 0.3s;
}

.epaper-year-toggle.collapsed i.fa-chevron-down {
  transform: rotate(-90deg);
}

.epaper-year-toggle .year-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: #999;
}

.epaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.epaper-grid.collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
}

.epaper-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.epaper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.epaper-cover {
  width: 100px;
  min-height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.epaper-cover i {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.epaper-year {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.epaper-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.epaper-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.epaper-info p {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 6px;
}

.epaper-date {
  font-size: 12px;
  color: #aaa;
}

/* CTA区域 */
.support-cta {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: #fff;
  text-align: center;
}

.support-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-cta p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.support-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ 响应式 ============ */

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .epaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-card {
    flex-direction: column;
  }

  .epaper-grid {
    grid-template-columns: 1fr;
  }

  .epaper-card {
    flex-direction: column;
  }

  .epaper-cover {
    width: 100%;
    min-height: 80px;
    flex-direction: row;
    gap: 8px;
  }

  .epaper-cover i {
    margin-bottom: 0;
    font-size: 20px;
  }

  .support-cta h2 {
    font-size: 24px;
  }

  .support-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .support-nav-grid {
    gap: 10px;
  }

  .support-nav-item {
    padding: 8px 18px;
    font-size: 14px;
  }
}
