/* ===================================================================
   乐拓智造 Lotelf PackFab - 资源中心与工艺指南专属样式库 (resources/resources.css)
   Clean Industrial Technical Documentation Design
   =================================================================== */

.res-hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 56px 20px 48px;
  border-bottom: 1px solid #334155;
  text-align: center;
}

.res-hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.res-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 64, 175, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.3);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.res-hero-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.res-hero-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* 搜索与分类过滤器 */
.res-search-wrap {
  max-width: 600px;
  margin: 0 auto 20px;
  position: relative;
}

.res-search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.res-search-input:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.25);
}

.res-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
}

.res-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.res-filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.res-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.res-filter-btn.active {
  background: #1e40af;
  border-color: #3b82f6;
  color: #ffffff;
}

/* 资源卡片网格 */
.res-main-section {
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.res-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.res-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -4px rgba(30, 64, 175, 0.1);
}

.res-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.res-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.res-card:hover .res-card-title {
  color: #1e40af;
}

.res-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.res-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  font-size: 12px;
  color: #64748b;
}

.res-card-link-text {
  color: #1e40af;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 文章详情页专用容器与排版 */
.article-page-wrap {
  max-width: 920px;
  margin: 32px auto 60px;
  padding: 0 20px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: #475569;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: #1e40af;
}

.article-breadcrumb-separator {
  color: #94a3b8;
}

.article-main-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 44px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
  .article-main-box {
    padding: 24px 20px;
  }
}

.article-meta-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.article-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.article-category-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.article-date-text {
  font-size: 12.5px;
  color: #64748b;
}

.article-h1-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}

.article-author-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e40af;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* 文章正文排版 */
.article-body-prose {
  font-size: 15.5px;
  color: #1e293b;
  line-height: 1.85;
}

.article-body-prose p {
  margin-bottom: 18px;
}

.article-body-prose h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eff6ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body-prose h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #1e40af;
  margin-top: 24px;
  margin-bottom: 10px;
}

.article-body-prose ul, .article-body-prose ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body-prose li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body-prose strong {
  color: #0f172a;
  font-weight: 700;
}

/* 工艺图示与重点高亮框 */
.callout-highlight {
  background: #eff6ff;
  border-left: 4px solid #1e40af;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
  color: #1e3a8a;
  line-height: 1.7;
}

.callout-warning {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
  color: #92400e;
  line-height: 1.7;
}

.callout-formula {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.article-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #cbd5e1;
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:nth-child(even) {
  background: #fafafa;
}

/* 底部 CTA 试算横幅 */
.article-cta-box {
  background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-cta-text h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.article-cta-text p {
  font-size: 13.5px;
  color: #e0f2fe;
  margin: 0;
}

.article-cta-btn {
  background: #ffffff;
  color: #1e40af;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.article-cta-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* 上下篇导航 */
.article-nav-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .article-nav-strip {
    grid-template-columns: 1fr;
  }
}

.article-nav-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}

.article-nav-card:hover {
  border-color: #1e40af;
  background: #f8fafc;
}

.article-nav-card.next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.article-nav-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.article-nav-card:hover .article-nav-title {
  color: #1e40af;
}
