/*
 Theme Name: 浚发技术官网
 Theme URI: https://szjushoupay.com
 Description: 浚发技术（聚收宝深莞授权服务商）官方站点主题，基于原静态站 1:1 复刻，支持后台可视化编辑。
 Version: 1.0
 Author: 浚发技术交付团队
 License: MIT
*/

/* 主题仅做少量容器与后台兼容样式，主体样式由 /css/style.css 提供（与原站一致）。 */

.page-main {
  min-height: 60vh;
}

/* 让 WordPress 编辑器的内容块与原站容器对齐 */
.entry-content {
  width: 100%;
}

/* ========== CPT 归档页 ========== */
.archive-section {
  padding: 48px 0 80px;
  background: #f8fafc;
}
.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部 hero */
.archive-hero {
  background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
  padding: 72px 20px 40px;
  text-align: center;
}
.archive-hero h1 { font-size: 36px; color: #1e293b; margin: 0 0 12px; }
.archive-hero p { color: #64748b; max-width: 640px; margin: 0 auto; line-height: 1.8; font-size: 16px; }

/* 精选大卡片 */
.archive-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(0,0,0,0.08);
  margin-bottom: 32px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.archive-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.12);
}
.archive-featured-img {
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
}
.archive-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archive-featured-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.archive-featured-body h2 {
  font-size: 26px;
  color: #1e293b;
  margin: 10px 0 14px;
  line-height: 1.35;
}
.archive-featured-body p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* 普通卡片网格 */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  text-decoration: none;
}
.archive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}
.archive-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}
.archive-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.archive-card:hover .archive-card-img-wrap img {
  transform: scale(1.05);
}
.archive-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.archive-card-body h3 {
  font-size: 17px;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.45;
  min-height: 49px;
}
.archive-card-body p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.archive-card-link {
  display: inline-block;
  margin-top: 16px;
  color: #f05228;
  font-weight: 600;
  text-decoration: none;
}
.archive-date {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 6px;
}

.archive-empty {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}
.archive-pagination {
  margin-top: 48px;
  text-align: center;
}
.archive-pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 4px;
  background: #fff;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.archive-pagination .page-numbers.current {
  background: #f05228;
  color: #fff;
}

/* ========== 详情页 ========== */
.single-section { max-width: 900px; margin: 0 auto; padding: 64px 20px; }
.single-section-full { max-width: 100%; padding: 0; }
.single-section-full .back-link { margin: 24px 20px 0; }

.single-section h1 { font-size: 32px; color: #1e293b; margin-bottom: 16px; }
.single-section img.featured { width: 100%; border-radius: 16px; margin: 24px 0; }
.single-meta { color: #94a3b8; font-size: 14px; margin-bottom: 24px; }
.back-link { display: inline-block; margin: 0 0 24px; color: #f05228; text-decoration: none; font-weight: 600; }

/* 响应式 */
@media (max-width: 992px) {
  .archive-featured { grid-template-columns: 1fr; }
  .archive-featured-img { min-height: 220px; max-height: 320px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .archive-hero h1 { font-size: 28px; }
  .archive-featured-body { padding: 24px; }
  .archive-featured-body h2 { font-size: 22px; }
  .archive-grid { grid-template-columns: 1fr; }
}
