/* hub_common.css — 核心产品 Hub 公共样式（路线 B）
 * 抽取自现有 Hub 的 .hub-* 体系，供烟囱塔及后续核心产品 Hub 复用。
 * 现有其他 Hub 模板仍使用各自内联样式，未引用本文件，互不影响。
 * 生成日期：2026-12-01
 */

.hub-wrap { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; font-size: 14px; line-height: 1.75; }
.hub-hero { background: linear-gradient(135deg, #fff5f5 0%, #ffffff 65%); border: 1px solid #f3d1d1; border-left: 4px solid #d81e06; border-radius: 6px; padding: 24px 26px; margin-bottom: 22px; }
.hub-hero h1 { font-size: 28px; font-weight: 700; color: #111827; margin: 0 0 12px; line-height: 1.3; }
.hub-hero p { font-size: 14px; color: #374151; margin: 0 0 14px; }
.hub-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hub-badge { background: #ffffff; border: 1px solid #e5e7eb; color: #374151; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.hub-cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hub-btn-primary { display: inline-block; background: #d81e06; color: #fff !important; font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 4px; text-decoration: none; }
.hub-btn-primary:hover { background: #b71905; }
.hub-btn-outline { display: inline-block; background: #fff; color: #d81e06 !important; border: 1px solid #d81e06; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 4px; text-decoration: none; }
.hub-sec { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 22px 24px; margin-bottom: 20px; }
.hub-sec h2 { font-size: 19px; font-weight: 700; color: #111827; margin: 0 0 14px; padding-left: 10px; border-left: 4px solid #d81e06; line-height: 1.3; }
.hub-sec-sub { font-size: 14px; color: #6b7280; margin: -6px 0 14px; }
.hub-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 580px; }
.hub-table th { background: #f3f4f6; color: #111827; font-weight: 600; text-align: left; padding: 10px 11px; border: 1px solid #e5e7eb; }
.hub-table td { padding: 10px 11px; border: 1px solid #e5e7eb; color: #374151; vertical-align: top; }
.hub-table tr:nth-child(even) td { background: #fafafa; }
.hub-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hub-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 5px; padding: 15px 17px; }
.hub-card h3 { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.hub-card p { font-size: 14px; color: #4b5563; margin: 0; }
.hub-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 9px; }
.hub-steps li { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 4px; padding: 11px 14px; font-size: 14px; color: #374151; }
.hub-steps li strong { color: #d81e06; margin-right: 6px; }
.hub-empty-box { background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 6px; padding: 18px 20px; font-size: 14px; color: #374151; }
.hub-empty-box strong { color: #111827; }
.hub-quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-quick-links a { display: inline-block; padding: 8px 14px; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13.5px; color: #1f2937; text-decoration: none; }
.hub-quick-links a:hover { border-color: #d81e06; color: #d81e06; background: #fff5f5; }
.hub-faq-item { border-bottom: 1px dashed #e5e7eb; padding: 13px 0; }
.hub-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.hub-faq-q { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.hub-faq-a { font-size: 14px; color: #4b5563; margin: 0; }

/* ---------- 响应式：与来源模板保持一致 ---------- */
      @media screen and (max-width: 1199px) {
        body .container, body .center { width: 100% !important; max-width: 100% !important; padding: 0 12px !important; box-sizing: border-box !important; }
        body .main_l.fl { display: none !important; }
        body .main_r.fr, body .main_r { width: 100% !important; float: none !important; margin: 0 !important; }
        body .pro_list ul li { width: 48.5% !important; margin-right: 3% !important; }
        body .pro_list ul li:nth-child(3n) { margin-right: 3% !important; }
        body .pro_list ul li:nth-child(2n) { margin-right: 0 !important; }
      }
      @media screen and (max-width: 767px) {
        .hub-hero { padding: 16px; }
        .hub-hero h1 { font-size: 22px; }
        .hub-sec { padding: 16px; }
        .hub-grid-2 { grid-template-columns: 1fr; }
        body .pro_list ul li,
        body .pro_list ul li:nth-child(2n),
        body .pro_list ul li:nth-child(3n) { width: 100% !important; margin-right: 0 !important; float: none !important; }
      }

/* ---------- 公共补充 ---------- */

.hub-note { font-size: 12.5px; color: #8a5a00; background: #fffbe6; border: 1px dashed #f0d9a8; border-radius: 4px; padding: 9px 12px; margin: 12px 0 0; line-height: 1.7; }

.hub-note strong { color: #7a4f00; }

.hub-sec .hub-note:last-child { margin-bottom: 0; }

/* ---------- 390px 窄屏：宽表横向滚动，按钮与内链单列 ---------- */
@media screen and (max-width: 390px) {
  .hub-hero, .hub-sec, .hub-card, .hub-empty-box { box-sizing: border-box; }
  .hub-hero { padding: 14px 13px; }
  .hub-hero h1 { font-size: 20px; }
  .hub-hero p, .hub-card p, .hub-faq-a { font-size: 13px; }
  .hub-sec { padding: 14px 13px; }
  .hub-sec h2 { font-size: 17px; }
  .hub-badge { font-size: 11.5px; }
  .hub-btn-primary, .hub-btn-outline { width: 100%; text-align: center; box-sizing: border-box; }
  .hub-quick-links a { width: 100%; text-align: center; box-sizing: border-box; }
  .hub-table { min-width: 540px; font-size: 12.5px; }
  .hub-table th, .hub-table td { padding: 8px 9px; }
}
