/* ============================================================
   WIPESTAR — Thermal Printer Cleaning Wipes Guide
   独享样式，命名空间 .ws-tpcw，不会与网站其他样式冲突
   ============================================================ */

/* ── 基础排版 ── */
.ws-tpcw {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.8;
  font-size: 17px;
}
.ws-tpcw a {
  color: #0d6efd;
  text-decoration: underline;
  text-decoration-color: rgba(13,110,253,.3);
  text-underline-offset: 2px;
  transition: text-decoration-color .2s;
}
.ws-tpcw a:hover { text-decoration-color: #0d6efd; }

/* ── 目录 ── */
.ws-tpcw .toc {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0 36px;
}
.ws-tpcw .toc-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #555;
  margin-bottom: 12px;
}
.ws-tpcw .toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.ws-tpcw .toc li {
  counter-increment: toc;
  margin: 6px 0;
}
.ws-tpcw .toc li::before {
  content: counter(toc) ".";
  font-weight: 700;
  color: #0d6efd;
  margin-right: 8px;
  font-size: 14px;
}
.ws-tpcw .toc a {
  color: #1a1a2e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.ws-tpcw .toc a:hover { color: #0d6efd; }

/* ── 标题 ── */
.ws-tpcw h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -.01em;
  color: #1a1a2e;
}
.ws-tpcw h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #1a1a2e;
}

/* ── 段落 & 列表 ── */
.ws-tpcw p { margin: 0 0 18px; }
.ws-tpcw ul, .ws-tpcw ol { margin: 0 0 20px 24px; }
.ws-tpcw li { margin: 6px 0; }

/* ── 图片 ── */
.ws-tpcw .blog-img { margin: 28px 0; }
.ws-tpcw .blog-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  display: block;
}
.ws-tpcw .blog-img figcaption {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ── 数据高亮 ── */
.ws-tpcw .stat-callout {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: center;
}
.ws-tpcw .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #0d6efd;
  line-height: 1.2;
}
.ws-tpcw .stat-label {
  font-size: 15px;
  color: #555;
  margin-top: 4px;
}

/* ── CTA 横幅 ── */
.ws-tpcw .cta-box {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
}
.ws-tpcw .cta-box h3 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.ws-tpcw .cta-box p { color: rgba(255,255,255,.9); margin: 0 0 16px; font-size: 15px; }
.ws-tpcw .cta-box .btn {
  display: inline-block;
  background: #fff;
  color: #0d6efd;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.ws-tpcw .cta-box .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ── 步骤列表 ── */
.ws-tpcw .step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.ws-tpcw .step-list li {
  counter-increment: step;
  padding: 16px 16px 16px 60px;
  position: relative;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #e5e7eb;
}
.ws-tpcw .step-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* ── 行业卡片 ── */
.ws-tpcw .industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.ws-tpcw .industry-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}
.ws-tpcw .industry-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0a58ca;
}
.ws-tpcw .industry-card p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ── 作者卡片 ── */
.ws-tpcw .author-box {
  display: flex;
  gap: 20px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0 28px;
}
.ws-tpcw .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ws-tpcw .author-info h4 { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.ws-tpcw .author-info .author-role { font-size: 14px; color: #0d6efd; font-weight: 500; margin: 0 0 10px; }
.ws-tpcw .author-info p { font-size: 14px; color: #555; margin: 0; line-height: 1.6; }

/* ── FAQ ── */
.ws-tpcw .faq-section { margin: 40px 0; }
.ws-tpcw .faq-section h2 { border-bottom: none; margin-bottom: 20px; }
.ws-tpcw .faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}
.ws-tpcw .faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a1a2e;
}
.ws-tpcw .faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: #0d6efd;
  transition: transform .3s;
}
.ws-tpcw .faq-item.open .faq-q::after { transform: rotate(45deg); }
.ws-tpcw .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}
.ws-tpcw .faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ── 相关文章 ── */
.ws-tpcw .related-posts {
  margin: 40px 0;
  padding-top: 32px;
  border-top: 2px solid #e5e7eb;
}
.ws-tpcw .related-posts h3 { font-size: 20px; margin: 0 0 16px; }
.ws-tpcw .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.ws-tpcw .related-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow .2s;
}
.ws-tpcw .related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ws-tpcw .related-card a { text-decoration: none; color: #1a1a2e; font-weight: 600; font-size: 15px; line-height: 1.4; }
.ws-tpcw .related-card a:hover { color: #0d6efd; }
.ws-tpcw .related-date { font-size: 13px; color: #999; margin-top: 8px; }

/* ── 底部 CTA ── */
.ws-tpcw .bottom-cta {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  margin: 40px 0;
  text-align: center;
}
.ws-tpcw .bottom-cta h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.ws-tpcw .bottom-cta p { color: rgba(255,255,255,.9); margin: 0 0 20px; font-size: 16px; }
.ws-tpcw .bottom-cta .cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ws-tpcw .bottom-cta .btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.ws-tpcw .bottom-cta .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.ws-tpcw .bottom-cta .btn-primary { background: #fff; color: #0d6efd; }
.ws-tpcw .bottom-cta .btn-secondary { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* ── 更新日期 ── */
.ws-tpcw .last-updated {
  font-size: 13px;
  color: #999;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* ── 响应式 ── */
@media (max-width: 640px) {
  .ws-tpcw .author-box { flex-direction: column; align-items: center; text-align: center; }
  .ws-tpcw .industry-grid { grid-template-columns: 1fr; }
}
