/* ============================================================
   tcrdoors.com  Factory Resources 栏目专用样式
   与主站主题色保持一致：#003087 深蓝 / #0f63ff 亮蓝 / #fabe00 黄
   ============================================================ */

/* ---------- 通用容器 ---------- */
.factory-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.factory-sec { padding: 56px 0; }
.factory-sec-title { font-size: 30px; font-weight: 700; color: #003087; text-align: center; margin-bottom: 8px; }
.factory-sec-sub { text-align: center; color: #777; font-size: 15px; margin-bottom: 36px; }

/* ---------- Landing 页：双卡片 ---------- */
.factory-landing-cards { display: flex; flex-wrap: wrap; gap: 30px; }
.factory-card {
  flex: 1 1 340px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 48, 135, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.factory-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0, 48, 135, 0.14); }
.factory-card-media {
  position: relative;
  height: 190px;
  background: linear-gradient(135deg, #003087 0%, #0f63ff 100%);
  display: flex; align-items: center; justify-content: center;
}
.factory-card-media svg { width: 72px; height: 72px; opacity: .95; }
.factory-card-media.play-bg { background: linear-gradient(135deg, #003087 0%, #1d6fe0 100%); }
.factory-card-media.download-bg { background: linear-gradient(135deg, #0b4fae 0%, #003087 100%); }
.factory-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.factory-card-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; line-height: 1.35; }
.factory-card-desc { color: #666; font-size: 14px; line-height: 1.7; margin-bottom: 22px; flex: 1; }
.factory-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  background: #003087; color: #fff;
  padding: 11px 24px; border-radius: 30px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .25s ease;
}
.factory-card-btn:hover { background: #0f63ff; color: #fff; text-decoration: none; }
.factory-card-btn svg { width: 16px; height: 16px; }

/* ---------- 视频列表页（文章模型：封面网格） ---------- */
.factory-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.factory-video-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eef0f4; transition: transform .25s ease, box-shadow .25s ease; }
.factory-video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,48,135,.12); }
.factory-video-link { display: block; text-decoration: none; }
.factory-video-cover { position: relative; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #0a1f3f, #003087); overflow: hidden; }
.factory-video-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.factory-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0, 48, 135, 0.85); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.factory-video-play svg { width: 26px; height: 26px; }
.factory-video-card:hover .factory-video-play { background: #0f63ff; }
.factory-video-name { padding: 14px 16px 4px; font-size: 16px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.factory-video-desc { padding: 0 16px 16px; font-size: 13px; color: #888; line-height: 1.6; }

/* ---------- 视频详情页 ---------- */
.factory-detail { max-width: 960px; }
.factory-detail-title { font-size: 28px; font-weight: 700; color: #003087; text-align: center; margin-bottom: 22px; line-height: 1.35; }
.factory-video-player { background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.factory-video-content video, .factory-video-content iframe { width: 100%; max-width: 100%; display: block; }
.factory-video-content img { max-width: 100%; height: auto; }
.factory-detail-meta { color: #999; font-size: 13px; margin-bottom: 16px; text-align: center; }
.factory-detail-desc { color: #555; font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.factory-detail-pager { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #eee; padding-top: 20px; }
.factory-pager-prev, .factory-pager-next, .factory-pager-back { flex: 1 1 200px; }
.factory-pager-prev a, .factory-pager-next a, .factory-pager-back a {
  display: inline-block; padding: 10px 18px; border-radius: 24px;
  background: #f3f6f9; color: #003087; font-size: 14px; text-decoration: none;
  transition: all .2s ease;
}
.factory-pager-prev a:hover, .factory-pager-next a:hover, .factory-pager-back a:hover { background: #003087; color: #fff; }

/* ---------- 下载页（手风琴） ---------- */
.factory-download-list { display: flex; flex-direction: column; gap: 16px; }
.factory-download-item {
  background: #fff; border: 1px solid #eef0f4; border-radius: 12px;
  overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease;
}
.factory-download-item:hover { border-color: #d5e2f5; }
.factory-download-item.open { border-color: #0f63ff; box-shadow: 0 8px 24px rgba(0,48,135,.10); }
.factory-download-head {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; cursor: pointer;
}
.factory-download-icon {
  width: 48px; height: 48px; border-radius: 10px; flex: 0 0 auto;
  background: #eef4ff; color: #003087;
  display: flex; align-items: center; justify-content: center;
}
.factory-download-icon svg { width: 24px; height: 24px; }
.factory-download-info { flex: 1; }
.factory-download-name { font-size: 16px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.factory-download-meta { font-size: 13px; color: #aaa; margin-top: 4px; }
.factory-download-arrow {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: #f3f6f9; color: #003087;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; line-height: 1;
  transition: transform .25s ease, background .25s ease;
}
.factory-download-item.open .factory-download-arrow { transform: rotate(45deg); background: #003087; color: #fff; }
.factory-download-body {
  display: none;
  align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 24px 20px 90px;
}
.factory-download-item.open .factory-download-body { display: flex; }
.factory-download-filename { color: #666; font-size: 14px; word-break: break-all; }
.factory-download-fn-label { display: inline-block; }
.factory-download-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: #003087; color: #fff;
  padding: 10px 22px; border-radius: 26px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .25s ease;
}
.factory-download-btn:hover { background: #0f63ff; color: #fff; text-decoration: none; }
.factory-download-btn svg { width: 15px; height: 15px; }
.factory-download-empty { text-align: center; color: #999; padding: 60px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .factory-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .factory-sec { padding: 34px 0; }
  .factory-sec-title { font-size: 24px; }
  .factory-card-media { height: 150px; }
  .factory-video-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .factory-video-name { font-size: 14px; }
  .factory-video-desc { font-size: 12px; }
  .factory-detail-title { font-size: 22px; }
  .factory-download-head { padding: 16px 18px; gap: 14px; }
  .factory-download-body { flex-direction: column; align-items: flex-start; padding: 0 18px 18px; }
  .factory-download-item.open .factory-download-body { display: flex; }
  .factory-download-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .factory-video-grid { grid-template-columns: 1fr; }
}
