/* ============================================================================
   H&C 设计系统 · 组件层（components.css）
   ----------------------------------------------------------------------------
   权威说明见 docs/design-system.md（设计令牌 §1 / 组件清单 §2 / 变更记录 §4）

   加载顺序（functions.php）：
     1) assets/tailwind.css   ← 编译好的工具类（含 @layer theme, base, components, utilities）
     2) article.css           ← 文章正文样式层
     3) assets/components.css ← 【本文件】组件层
     4) style.css             ← 主题级微调

   本文件写在 @layer components 里 —— 因此 **工具类永远能覆盖组件**，
   页面里可以安全地写 class="hc-card mt-8"。

   三条铁律（见 docs/design-system.md §0）：
     ① 写页面只用这里的组件类，不要复制粘贴长串 Tailwind 类
     ② 改样式只改这里的定义，不要在单个页面里覆盖
     ③ 任何改动必须记入 docs/design-system.md §4 变更记录
   ========================================================================== */

@layer components {

/* ---------- 设计令牌（与 docs/design-system.md §1 一致） ------------------ */
:root {
  --hc-brand:       #f97316;   /* orange-500 */
  --hc-brand-hover: #ea580c;   /* orange-600 */
  --hc-brand-light: #fb923c;   /* orange-400 */
  --hc-brand-bg:    #fff7ed;   /* orange-50  */
  --hc-ink:         #1e293b;   /* slate-800  */
  --hc-ink-soft:    #334155;   /* slate-700  */
  --hc-ink-muted:   #64748b;   /* slate-500  */
  --hc-ink-faint:   #94a3b8;   /* slate-400  */
  --hc-page-bg:     #cbd5e1;   /* slate-300  */
  --hc-card-bg:     #e2e8f0;   /* slate-200  */
  --hc-dark-bg:     #1e293b;   /* slate-800  */
  --hc-dark-card:   #64748b;   /* slate-500  */
  --hc-whatsapp:    #22c55e;   /* green-500  */

  --hc-radius-sm:   .25rem;    /* rounded     */
  --hc-radius-md:   .5rem;     /* rounded-lg  */
  --hc-radius-lg:   .75rem;    /* rounded-xl  */

  --hc-shadow-sm:   0 1px 2px 0 rgb(0 0 0 / .05);
  --hc-shadow-md:   0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --hc-radius-2xl:  1rem;      /* rounded-2xl */
  --hc-shadow-xl:    0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --hc-shadow-header: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ==========================================================================
   2.1 布局容器
   ========================================================================== */
.hc-container        { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.hc-container-narrow { width: 100%; max-width: 56rem; margin-inline: auto; padding-inline: 1rem; }
.hc-container-center { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; text-align: center; }

/* ==========================================================================
   2.2 区块（section）
   ========================================================================== */
/* 区块底色：与源设计一一对应（slate-200 / 300 / 400 / 500 / 800） */
.hc-section-white  { padding-block: 4rem; background: #fff; }
.hc-section-pale   { padding-block: 4rem; background: #e2e8f0; }   /* slate-200 */
.hc-section-light  { padding-block: 4rem; background: var(--hc-page-bg); }   /* slate-300 */
.hc-section-slate  { padding-block: 4rem; background: var(--hc-ink-faint); } /* slate-400 */
.hc-section-mid    { padding-block: 4rem; background: var(--hc-dark-card); } /* slate-500 */
.hc-section-dark   { padding-block: 4rem; background: var(--hc-dark-bg); color: #fff; }
@media (min-width: 768px) {
  .hc-section-white, .hc-section-pale, .hc-section-light,
  .hc-section-slate, .hc-section-mid, .hc-section-dark { padding-block: 5rem; }
}

/* Hero（页面顶部大图区） */
.hc-hero { position: relative; background: var(--hc-dark-bg); color: #fff; padding-block: 7rem 5rem; overflow: hidden; }
@media (min-width: 768px) { .hc-hero { padding-block: 9rem 6rem; } }
.hc-hero-bg  { position: absolute; inset: 0; }
.hc-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hc-hero-mask{ position: absolute; inset: 0; background: rgb(30 41 59 / .4); }
.hc-hero-inner { position: relative; width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }

/* 底部 CTA 区块 */
.hc-cta-section { padding-block: 3rem; background: var(--hc-dark-bg); color: #fff; text-align: center; }

/* ==========================================================================
   2.3 标题与文字
   ========================================================================== */
.hc-h1 { font-size: 1.875rem; line-height: 1.25; font-weight: 800; margin: 0 0 1rem; }
@media (min-width: 768px) { .hc-h1 { font-size: 3rem; } }

.hc-h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--hc-ink); margin: 0 0 .5rem; }
@media (min-width: 768px) { .hc-h2 { font-size: 1.875rem; line-height: 2.25rem; } }
.hc-h2-light { color: #fff; }

.hc-h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; color: var(--hc-ink); margin: 0 0 .75rem; }

/* 深色区块内的强调文字 */
.hc-eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--hc-brand-light); }
.hc-eyebrow-strong { color: var(--hc-brand-light); }

/* 橙色小横线（区块装饰） */
.hc-divider    { width: 4rem; height: 2px; background: var(--hc-brand); margin-bottom: 2rem; }
.hc-divider-sm { width: 4rem; height: 2px; background: var(--hc-brand); margin-bottom: 1.5rem; }

/* 数据大字（年份 / 容量 / 地点） */
.hc-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--hc-brand); }
@media (min-width: 768px) { .hc-stat-value { font-size: 1.875rem; } }
.hc-stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hc-ink-faint); margin-bottom: .25rem; }

/* 正文文字（行高与 Tailwind 默认值对齐：text-xs=1rem, text-sm=1.25rem, text-base=1.5rem, leading-relaxed=1.625） */
.hc-lead       { color: var(--hc-ink-soft); line-height: 1.625; }
.hc-body       { color: var(--hc-ink-soft); line-height: 1.625; }
.hc-text-muted { color: var(--hc-ink-faint); font-size: .75rem; line-height: 1rem; }
.hc-text-sm    { font-size: .875rem; line-height: 1.25rem; color: var(--hc-ink-muted); }

/* ==========================================================================
   2.4 页头
   ========================================================================== */
.hc-header { position: sticky; top: 0; z-index: 50; background: var(--hc-page-bg); box-shadow: var(--hc-shadow-header); }
.hc-topbar { background: var(--hc-dark-bg); color: #fff; font-size: .875rem; padding-block: .5rem; display: none; }
@media (min-width: 768px) { .hc-topbar { display: block; } }

.hc-nav-link { color: var(--hc-ink-soft); font-weight: 600; font-size: .875rem; transition: color .15s; text-decoration: none; }
.hc-nav-link:hover { color: var(--hc-brand); }
.hc-nav-link-active { color: var(--hc-brand); position: relative; }
.hc-nav-link-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.25rem; height: 2px; background: var(--hc-brand);
}

.hc-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: .5rem; min-width: 11rem;
  background: #fff; border-radius: var(--hc-radius-md); box-shadow: var(--hc-shadow-md);
  padding-block: .5rem; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 50;
}
.hc-dropdown-link { display: block; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--hc-ink-soft); text-decoration: none; }
.hc-dropdown-link:hover { background: #f1f5f9; color: var(--hc-brand); }
.hc-nav-group:hover .hc-dropdown { opacity: 1; visibility: visible; }

/* 悬停桥（2026-09-19 修）---------------------------------------------
   面板用 margin-top:.5rem 与导航项留了 8px 空隙，而面板是绝对定位，
   .hc-nav-group 的高度只等于那个 <a>，所以鼠标下移时会先落进空隙
   → :hover 断掉 → 面板 visibility:hidden → 菜单看得见但点不到。
   用一个透明的 ::after 把那 8px 填上（属于 .hc-nav-group 的子孙），
   视觉间隔不变，鼠标可以一路悬停到面板里。 */
.hc-dropdown::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .5rem;
}
/* 宽版下拉：条目文字较长（如 Diesel Generator Sets）时用 */
.hc-dropdown-wide { min-width: 13rem; }

.hc-mobile-menu { background: var(--hc-page-bg); border-top: 1px solid var(--hc-ink-faint); }
.hc-mobile-link { display: block; padding-block: .5rem; font-size: .875rem; font-weight: 600; color: var(--hc-ink-soft); text-decoration: none; }

/* ==========================================================================
   2.5 页脚
   ========================================================================== */
.hc-footer { background: var(--hc-dark-bg); color: #fff; padding-top: 4rem; padding-bottom: 2rem; }
.hc-footer-grid {
  width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem;
}
@media (min-width: 768px) { .hc-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hc-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hc-footer-title { color: var(--hc-brand); font-weight: 700; font-size: 1.125rem; margin: 0 0 1rem; }
.hc-footer-list li { margin-bottom: .5rem; }
.hc-footer-list { font-size: .875rem; color: var(--hc-ink-faint); }
.hc-footer-link { color: #cbd5e1; text-decoration: none; transition: color .15s; }
.hc-footer-link:hover { color: #fff; }
.hc-footer-bottom {
  max-width: 80rem; margin-inline: auto; padding: 1.5rem 1rem 0; border-top: 1px solid #334155;
  text-align: center; color: var(--hc-ink-muted); font-size: .75rem;
}

/* ==========================================================================
   2.6 卡片
   ========================================================================== */
.hc-card { background: #fff; border-radius: var(--hc-radius-lg); overflow: hidden; box-shadow: var(--hc-shadow-sm); }
.hc-card-slate { background: var(--hc-card-bg); border-radius: var(--hc-radius-lg); padding: 1.5rem; }
.hc-card-dark  { background: rgb(255 255 255 / .1); border-radius: var(--hc-radius-lg); padding: 1.5rem; }
.hc-card-pad   { padding: 1.5rem; }
.hc-card-tile       { background: #fff; border-radius: var(--hc-radius-md); padding: .75rem; border: 1px solid #e2e8f0; }
.hc-card-tile-slate { background: #f8fafc; border-radius: var(--hc-radius-md); padding: .75rem; border: 1px solid #e2e8f0; }
.hc-card-hover { transition: box-shadow .2s, background-color .2s; }
.hc-card-hover:hover { box-shadow: var(--hc-shadow-md); }

/* ==========================================================================
   2.7 FAQ 折叠（与首页同款）
   用法：<details class="hc-faq"><summary class="hc-faq-q">问题<span class="hc-faq-icon">+</span></summary>
        <div class="hc-faq-a">答案</div></details>
   ========================================================================== */
.hc-faq { background: rgb(255 255 255 / .1); border-radius: var(--hc-radius-lg); padding: 1.5rem; }
.hc-faq-light { background: #fff; border-radius: var(--hc-radius-lg); box-shadow: var(--hc-shadow-sm); overflow: hidden; scroll-margin-top: 8rem; }

.hc-faq-q {
  font-weight: 700; color: #fff; list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.hc-faq-light .hc-faq-q { color: var(--hc-ink); padding: 1.25rem 1.5rem; }
.hc-faq-q::-webkit-details-marker { display: none; }

.hc-faq-icon { color: var(--hc-brand-light); font-size: 1.125rem; transition: transform .2s; flex-shrink: 0; }
.hc-faq-light .hc-faq-icon { color: var(--hc-brand); }
details[open] > .hc-faq-q .hc-faq-icon { transform: rotate(45deg); }

.hc-faq-a { color: #e2e8f0; font-size: .875rem; margin-top: .75rem; line-height: 1.625; }
.hc-faq-light .hc-faq-a { color: var(--hc-ink-soft); padding: 0 1.5rem 1.25rem; margin-top: 0; }

/* ==========================================================================
   2.8 按钮
   ========================================================================== */
.hc-btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--hc-brand); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 1rem 2rem; border-radius: var(--hc-radius-sm);
  box-shadow: var(--hc-shadow-md); transition: background-color .15s; text-decoration: none;
}
.hc-btn-primary:hover { background: var(--hc-brand-hover); }

.hc-btn-primary-sm {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--hc-brand); color: #fff; font-weight: 600; font-size: .875rem;
  padding: .5rem 1.25rem; border-radius: var(--hc-radius-sm); transition: background-color .15s; text-decoration: none;
}
.hc-btn-primary-sm:hover { background: var(--hc-brand-hover); }

.hc-btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid #fff; color: #fff; font-weight: 700; font-size: 1rem;
  padding: 1rem 2rem; border-radius: var(--hc-radius-sm); transition: all .15s; text-decoration: none;
}
.hc-btn-outline:hover { background: #fff; color: var(--hc-ink); }

/* 浅底上的橙色描边按钮（次级动作） */
.hc-btn-outline-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--hc-brand); color: var(--hc-brand); background: transparent;
  font-weight: 700; font-size: 1rem; padding: 1rem 2rem;
  border-radius: var(--hc-radius-sm); transition: all .15s; text-decoration: none;
}
.hc-btn-outline-brand:hover { background: var(--hc-brand); color: #fff; }

.hc-btn-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--hc-whatsapp); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 1rem 2rem; border-radius: var(--hc-radius-sm);
  box-shadow: var(--hc-shadow-md); transition: background-color .15s; text-decoration: none;
}
.hc-btn-whatsapp:hover { background: #16a34a; }

.hc-btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--hc-ink-muted);
  font-size: .875rem; font-weight: 500; padding: .5rem 1rem; border-radius: var(--hc-radius-sm); transition: all .15s;
}
.hc-btn-ghost:hover { background: #f1f5f9; color: var(--hc-brand); }

/* 文字链接 */
.hc-link { color: var(--hc-brand); text-decoration: none; transition: color .15s; }
.hc-link:hover { color: var(--hc-brand-hover); text-decoration: underline; }

/* ==========================================================================
   2.9 表格
   ========================================================================== */
.hc-table-wrap { overflow-x: auto; }
.hc-table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; border: 1px solid var(--hc-page-bg); }
.hc-table thead { background: var(--hc-ink-soft); color: #fff; }
.hc-table th { padding: .625rem 1rem; border: 1px solid #475569; font-weight: 600; }
.hc-table td { padding: .625rem 1rem; border: 1px solid var(--hc-page-bg); }
.hc-table tbody tr:nth-child(odd)  { background: #fff; }
.hc-table tbody tr:nth-child(even) { background: #f1f5f9; }

/* 规格表（标签列 + 值列） */
.hc-spec-table { width: 100%; font-size: .875rem; text-align: left; border-collapse: collapse; }
.hc-spec-label { padding: .625rem 2rem .625rem 1rem; font-weight: 600; color: var(--hc-ink-muted); white-space: nowrap; }
.hc-spec-value { padding: .625rem 1rem; color: var(--hc-ink-muted); }

/* 数据表列样式 */
.hc-th { padding: .625rem 1rem; font-weight: 600; color: var(--hc-ink-muted); background: #f8fafc; white-space: nowrap; }
.hc-td { padding: .625rem 1rem; color: var(--hc-ink-soft); }
.hc-td-alt:nth-child(even) { background: #f8fafc; }
.hc-td-alt:hover { background: var(--hc-brand-bg); transition: background-color .15s; }

/* ==========================================================================
   2.10 通用块
   ========================================================================== */

/* 标签 pill —— 基础款（浅底深字） */
.hc-badge {
  display: inline-block; font-size: .75rem; font-weight: 500;
  background: #f1f5f9; color: var(--hc-ink-muted);
  padding: .375rem .75rem; border-radius: 9999px;
}
/* 深色区块内的标签（浅字） */
.hc-badge-light { background: rgb(255 255 255 / .12); color: var(--hc-brand-light); }
/* 浅色区块内的标签（深字） */
.hc-badge-dark  { background: #f1f5f9; color: var(--hc-brand-hover); }

/* 行业标签（项目卡片用）—— 只定义「两套基础样式」，具体哪个标签配哪个色属待定设定 */
.hc-industry      { font-size: .75rem; font-weight: 600; display: inline-block; margin-bottom: .375rem; }
.hc-industry-light{ color: var(--hc-brand-light); }   /* 深色底上 */
.hc-industry-dark { color: var(--hc-brand-hover); }   /* 浅色底上 */

/* 面包屑 */
.hc-breadcrumb { font-size: .75rem; color: var(--hc-ink-faint); margin-bottom: 2rem; }
.hc-breadcrumb a { color: inherit; text-decoration: none; transition: color .15s; }
.hc-breadcrumb a:hover { color: var(--hc-brand); }

/* 微信弹窗 */
.hc-modal {
  position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .7);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.hc-modal-box { background: #fff; border-radius: var(--hc-radius-lg); padding: 1.5rem; max-width: 20rem; width: 100%; text-align: center; }
.hc-hidden { display: none; }

/* 三格数据（项目详情页） */
.hc-stat-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .hc-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 卡片网格 */
.hc-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.hc-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.hc-grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .hc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   2.11 文章卡片（博客集合页 / 归档页）—— 2026-09-14 新增
   ========================================================================== */
.hc-post-card {
  display: block; background: var(--hc-card-bg); border-radius: var(--hc-radius-md);
  overflow: hidden; text-decoration: none; transition: box-shadow .2s;
}
.hc-post-card:hover { box-shadow: var(--hc-shadow-md); }
.hc-post-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.hc-post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hc-post-card:hover .hc-post-card-img { transform: scale(1.05); }
.hc-post-card-body { padding: 1.25rem; }
.hc-post-card-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--hc-brand); }
.hc-post-card-title {
  font-size: .875rem; line-height: 1.375; font-weight: 700; color: var(--hc-ink);
  margin: .5rem 0 .25rem; transition: color .15s;
}
.hc-post-card:hover .hc-post-card-title { color: var(--hc-brand); }
.hc-post-card-excerpt { font-size: .75rem; color: var(--hc-ink-muted); line-height: 1.625; margin: 0 0 .5rem; }
.hc-post-card-meta { font-size: .75rem; line-height: 1rem; color: var(--hc-ink-faint); }
.hc-post-card-empty { width: 100%; height: 100%; background: var(--hc-page-bg); display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   2.12 侧栏区块 —— 2026-09-14 新增
   ========================================================================== */
.hc-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .hc-sidebar { position: sticky; top: 6rem; align-self: flex-start; } }
.hc-sidebar-block { background: var(--hc-card-bg); border-radius: var(--hc-radius-lg); padding: 1.5rem; }
.hc-sidebar-title { font-weight: 700; font-size: 1.125rem; color: var(--hc-ink-soft); margin: 0 0 1rem; }
.hc-sidebar-link {
  display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--hc-ink-muted);
  padding: .5rem 0; text-decoration: none; transition: color .15s;
}
.hc-sidebar-link:hover { color: var(--hc-brand); }
.hc-sidebar-sep { border: 0; border-top: 1px solid var(--hc-page-bg); margin: .25rem 0; }
.hc-avatar {
  width: 6rem; height: 6rem; border-radius: 9999px; overflow: hidden; margin: 0 auto 1rem;
  background: var(--hc-page-bg); display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   2.13 TL;DR 提示块 —— 2026-09-14 新增
   ========================================================================== */
.hc-tldr {
  background: var(--hc-brand-bg); border-left: 4px solid var(--hc-brand);
  border-radius: 0 var(--hc-radius-md) var(--hc-radius-md) 0;
  padding: 1.5rem; margin-bottom: 2.5rem;
}
.hc-tldr-label {
  font-weight: 700; color: var(--hc-brand-hover); font-size: .875rem;
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem;
}

/* ==========================================================================
   2.14 大写 CTA 按钮（集合页 / 底部区块）—— 2026-09-14 新增
   ========================================================================== */
.hc-btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--hc-brand); color: #fff; font-weight: 700; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .06em; padding: 1rem 2.5rem;
  border-radius: var(--hc-radius-lg); box-shadow: var(--hc-shadow-sm);
  transition: background-color .15s; text-decoration: none;
}
.hc-btn-cta:hover { background: var(--hc-brand-hover); }
.hc-btn-cta-outline {
  display: inline-flex; align-items: center; gap: .5rem; border: 2px solid #fff; color: #fff;
  font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 1rem 2.5rem; border-radius: var(--hc-radius-lg); transition: all .15s; text-decoration: none;
}
.hc-btn-cta-outline:hover { background: #fff; color: var(--hc-ink); }
.hc-btn-cta-wa {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--hc-whatsapp); color: #fff;
  font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 1rem 2.5rem; border-radius: var(--hc-radius-lg); box-shadow: var(--hc-shadow-sm);
  transition: background-color .15s; text-decoration: none;
}
.hc-btn-cta-wa:hover { background: #16a34a; }

/* ==========================================================================
   2.17 表单（Contact 页）—— 2026-09-14 新增
   配合主题内置的表单处理器 inc/contact-form.php；不依赖任何插件。
   ========================================================================== */
.hc-form { display: flex; flex-direction: column; gap: 1.25rem; }
.hc-field-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .hc-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hc-field { display: flex; flex-direction: column; }
.hc-label { display: block; font-size: .875rem; font-weight: 600; color: var(--hc-ink-muted); margin-bottom: .25rem; }
.hc-req { color: #ef4444; }

.hc-input, .hc-select, .hc-textarea {
  width: 100%; padding: .75rem 1rem; border-radius: var(--hc-radius-md);
  border: 1px solid var(--hc-page-bg); background: #fff; color: var(--hc-ink-soft);
  font-size: .875rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.hc-input:focus, .hc-select:focus, .hc-textarea:focus {
  outline: none; border-color: var(--hc-brand); box-shadow: 0 0 0 1px var(--hc-brand);
}
.hc-textarea { resize: vertical; }

.hc-check-row { display: flex; align-items: flex-start; gap: .75rem; }
.hc-check { margin-top: .25rem; accent-color: var(--hc-brand); }
.hc-check-label { font-size: .75rem; color: var(--hc-ink-muted); line-height: 1.625; }

/* 提交结果提示（成功走 /thank-you/ 跳转，故这里只有失败提示在用） */
.hc-form-note { font-size: .875rem; border-radius: var(--hc-radius-md); padding: .75rem 1rem; }
.hc-form-ok  { background: #dcfce7; color: #166534; }
.hc-form-err { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   2.16 切换标签（系列 / 频率）—— 2026-09-14 新增
   用于品牌页功率表：点标签切换显示哪一组数据（行为与源页面完全一致，
   只是把内联 onclick 换成 assets/site.js 里的事件绑定）。
   ========================================================================== */
.hc-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.hc-tabs-lg { margin-bottom: .75rem; }
.hc-tabs-sm { margin-bottom: 1.5rem; }

.hc-tab { border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s, color .15s; }
.hc-tab-lg { padding: .5rem 1.25rem; border-radius: var(--hc-radius-md); font-weight: 700; font-size: .875rem; }
.hc-tab-sm { padding: .375rem 1rem; border-radius: var(--hc-radius-md); font-weight: 600; font-size: .75rem; }

.hc-tab-active { background: var(--hc-brand); color: #fff; box-shadow: var(--hc-shadow-sm); }

.hc-tab-idle-lg { background: var(--hc-ink-faint); color: var(--hc-ink-soft); }
.hc-tab-idle-lg:hover { background: var(--hc-dark-card); color: #fff; }
.hc-tab-idle-sm { background: var(--hc-page-bg); color: var(--hc-ink-muted); }
.hc-tab-idle-sm:hover { background: var(--hc-ink-faint); }

.hc-tab-panel[hidden] { display: none; }
[data-hc-panel-series][hidden] { display: none; }

/* ==========================================================================
   2.15 导航（移动菜单 / 下拉）—— 2026-09-14 新增
   ========================================================================== */
.hc-main-nav { display: none; }
@media (min-width: 1024px) {
  .hc-main-nav { display: flex; align-items: center; gap: 2rem; }
}
.hc-nav-group { position: relative; }

.hc-menu-btn { color: var(--hc-ink-soft); padding: .5rem; background: none; border: 0; cursor: pointer; }
@media (min-width: 1024px) { .hc-menu-btn { display: none; } }

.hc-mobile-panel { background: var(--hc-page-bg); border-top: 1px solid var(--hc-ink-faint); }
.hc-mobile-panel-inner { display: flex; flex-direction: column; gap: .5rem; padding-block: .75rem; }
.hc-topbar-link { color: #fff; font-size: .75rem; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; transition: color .15s; }
.hc-topbar-link:hover { color: var(--hc-brand-light); }
/* ---------- FAQ + CTA 合一面板（2026-09-19 新增） --------------------------
   来源：preview 蓝本的
     <div class="max-w-6xl mx-auto px-4">
       <div class="bg-white rounded-2xl shadow-xl overflow-hidden grid grid-cols-1 lg:grid-cols-5">
         <div class="lg:col-span-3 p-8 md:p-10">                        ← FAQ
         <div class="lg:col-span-2 bg-slate-200 border-t lg:border-t-0 lg:border-l
                     border-slate-200 p-8 md:p-10 flex flex-col justify-center text-center">  ← CTA
    （蓝本原写 bg-slate-100；2026-09-22 用户选 B → 6 个蓝本页统一改为 bg-slate-200，与主题一致）
   取值逐条取自编译后的 assets/tailwind.css：
     --radius-2xl = 1rem；shadow-xl = 0 20px 25px -5px …, 0 8px 10px -6px …
   用法（五个页面的面板完全相同）：
     <section class="hc-section-light">
       <div class="hc-faq-cta">
         <div class="hc-faq-cta-panel">
           <div class="hc-faq-cta-main">…FAQ…</div>
           <div class="hc-faq-cta-side">…CTA…</div>
         </div>
       </div>
     </section> */
.hc-faq-cta { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.hc-faq-cta-panel {
  background: #fff; border-radius: var(--hc-radius-2xl); box-shadow: var(--hc-shadow-xl);
  overflow: hidden; display: grid; grid-template-columns: 1fr;
}
.hc-faq-cta-main { padding: 2rem; }
.hc-faq-cta-side {
  /* 2026-09-22 定案（用户选 B）：右栏统一用 slate-200 = var(--hc-card-bg)。
     蓝本原先写的是浅一档的 bg-slate-100 → 已把 6 个蓝本页
     （index / contact / products / projects / diesel-generator-set / silent-diesel-generator）
     统一改成 bg-slate-200，与主题一致。详见 REBUILD-SITE-NOTES §39.57 */
  background: var(--hc-card-bg); border-top: 1px solid #e2e8f0; padding: 2rem;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
@media (min-width: 768px) {
  .hc-faq-cta-main, .hc-faq-cta-side { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .hc-faq-cta-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hc-faq-cta-main { grid-column: span 3 / span 3; }
  .hc-faq-cta-side { grid-column: span 2 / span 2; border-top: 0; border-left: 1px solid #e2e8f0; }
}


} /* @layer components */
