/*
Theme Name:   HylaHop 易拉易动
Theme URI:    https://www.hylahop.com/
Description:  HylaHop 官网独立主题。首页：深蓝渐变首屏、信任背书、商品展示、服务范围、服务流程、双向服务对比、常见问题、留资表单与页脚；内页：商品列表与详情、文章列表、单篇、页面、分类归档、搜索、404。全部内容集中在 front-page.php 与 inc/site-info.php 的 PHP 数组里，可直接改文案。
Author:       HylaHop
Version:      2.0.5
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hylahop
*/

/* ==========================================================================
   0. 设计变量
   ========================================================================== */
:root {
  --hh-bg: #F9F9F9;
  --hh-card: #FFFFFF;
  --hh-ink: #0A1628;
  --hh-muted: #6B7280;
  --hh-line: #EAEAEA;
  --hh-navy: #014DB2;
  --hh-navy-hover: #013A87;
  --hh-deep: #001645;
  --hh-orange: #F59E0B;
  --hh-on-dark: #C9D6EC;
  --hh-on-dark-soft: #8FA6C9;
  --hh-radius-card: 24px;
  --hh-radius-lg: 28px;
  --hh-radius-pill: 999px;
  --hh-shadow-card: 0 2px 8px rgba(1, 77, 178, 0.06);
  --hh-shadow-raise: 0 12px 24px rgba(1, 77, 178, 0.10);
  --hh-shadow-img: 0 24px 60px -12px rgba(0, 22, 69, 0.35);
  --hh-gutter: 80px;
  --hh-font: "Archivo", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   1. 基础与重置（限定在子主题页面容器内，避免影响后台与其它页面）
   ========================================================================== */
.hh-site,
.hh-site *,
.hh-site *::before,
.hh-site *::after { box-sizing: border-box; }

.hh-site {
  font-family: var(--hh-font);
  color: var(--hh-ink);
  background: var(--hh-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 重置用 :where() 包一层，把特异性降到 0 ——
   否则 .hh-site img / .hh-site a 这类 (0,1,1) 重置会压过
   .hh-brand__mark / .hh-btn--light 这类 (0,1,0) 组件规则
   （典型后果：页头 logo 变回原图大小、浅色按钮文字变白）。 */
:where(.hh-site h1),
:where(.hh-site h2),
:where(.hh-site h3),
:where(.hh-site h4) {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
}

:where(.hh-site p) { margin: 0; }
:where(.hh-site ul) { margin: 0; padding: 0; list-style: none; }
:where(.hh-site img) { max-width: 100%; height: auto; display: block; }
:where(.hh-site a) { color: inherit; text-decoration: none; }

:where(.hh-site :focus-visible) {
  outline: 2px solid var(--hh-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.hh-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--hh-gutter); }

.hh-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--hh-orange);
  text-transform: uppercase;
}

.hh-sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hh-sec-head h2 { font-size: 34px; }
.hh-sec-head p { color: var(--hh-muted); font-size: 15px; }

.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--hh-radius-pill);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hh-btn--primary { background: var(--hh-navy); color: #fff; }
.hh-btn--primary:hover { background: var(--hh-navy-hover); }
.hh-btn--light { background: #fff; color: var(--hh-navy); }
.hh-btn--light:hover { background: #EAF1FB; }
.hh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hh-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hh-btn:active { transform: translateY(1px); }

.hh-icon { flex: 0 0 auto; display: block; }

/* ==========================================================================
   2. 顶部导航
   ========================================================================== */
.hh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--hh-line);
}
.hh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.hh-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.hh-brand__mark { height: 32px; width: auto; display: block; }
.hh-nav { display: flex; align-items: center; gap: 36px; }
.hh-nav a { font-size: 15px; font-weight: 500; color: var(--hh-ink); transition: color .2s ease; }
.hh-nav a:hover { color: var(--hh-navy); }
.hh-header__actions { display: flex; align-items: center; gap: 16px; }
/* 双语切换标签：v2.0.1 起 header.php 里已暂时移出标记，
   双语站做好后把 <span class="hh-lang">中文 / FR</span> 放回 .hh-header__actions 即可。 */
.hh-lang {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--hh-ink);
  white-space: nowrap;
}
.hh-header__actions .hh-btn { padding: 11px 24px; font-size: 14px; }

/* 移动端菜单（无 JS，使用 details/summary） */
.hh-mobile { display: none; }
.hh-mobile summary {
  list-style: none;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hh-line);
  border-radius: 12px;
}
.hh-mobile summary::-webkit-details-marker { display: none; }
.hh-mobile[open] summary { background: #EAF1FB; border-color: #C9D6EC; }
.hh-mobile__panel {
  position: absolute;
  left: 0; right: 0; top: 76px;
  background: #fff;
  border-bottom: 1px solid var(--hh-line);
  padding: 12px var(--hh-gutter) 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hh-shadow-raise);
}
.hh-mobile__panel a { padding: 14px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--hh-line); }
.hh-mobile__panel a:last-child { border-bottom: 0; }

/* ==========================================================================
   3. 首屏 Hero
   ========================================================================== */
.hh-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A5CC7 0%, var(--hh-deep) 100%);
  color: #fff;
}
.hh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 72px;
  padding: 88px 0 112px;
}
.hh-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--hh-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 26px;
}
.hh-hero h1 { font-size: 56px; line-height: 1.32; letter-spacing: -0.02em; }
.hh-hero__sub {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.76;
  color: var(--hh-on-dark);
  max-width: 620px;
}
.hh-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hh-hero__trust { margin-top: 26px; font-size: 13px; color: var(--hh-on-dark-soft); }
.hh-hero__media {
  border-radius: var(--hh-radius-lg);
  overflow: hidden;
  box-shadow: var(--hh-shadow-img);
  aspect-ratio: 44 / 56;
}
.hh-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   4. 信任背书四卡
   ========================================================================== */
.hh-trust { padding: 56px 0; }
.hh-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hh-trust__card {
  background: var(--hh-card);
  border-radius: var(--hh-radius-card);
  box-shadow: var(--hh-shadow-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hh-trust__card h3 { font-size: 18px; font-weight: 600; }
.hh-trust__card p { font-size: 14px; line-height: 1.7; color: var(--hh-muted); }

/* ==========================================================================
   5. 服务范围
   ========================================================================== */
.hh-services { padding: 72px 0 80px; }
.hh-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.hh-card {
  background: var(--hh-card);
  border-radius: var(--hh-radius-card);
  box-shadow: var(--hh-shadow-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.hh-card:hover { box-shadow: var(--hh-shadow-raise); transform: translateY(-2px); }
.hh-card h3 { font-size: 19px; font-weight: 600; }
.hh-card p { font-size: 14px; line-height: 1.72; color: var(--hh-muted); }
.hh-card ul { display: flex; flex-direction: column; gap: 8px; }
.hh-card li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--hh-ink);
}
.hh-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hh-orange);
}

/* ==========================================================================
   6. 服务流程
   ========================================================================== */
.hh-flow { padding: 0 0 88px; }
.hh-flow__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.hh-flow__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--hh-orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   7. 双向服务
   ========================================================================== */
.hh-bidir { padding: 0 0 88px; }
.hh-bidir__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.hh-dir {
  border-radius: var(--hh-radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hh-dir--dark {
  background: linear-gradient(135deg, #0A5CC7 0%, var(--hh-deep) 100%);
  color: #fff;
}
.hh-dir--light { background: #fff; border: 1px solid var(--hh-line); }
.hh-dir__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--hh-orange); }
.hh-dir h3 { font-size: 26px; }
.hh-dir > p { font-size: 14px; line-height: 1.72; }
.hh-dir--dark > p { color: var(--hh-on-dark); }
.hh-dir--light > p { color: var(--hh-muted); }
.hh-dir ul { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 6px; }
.hh-dir li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; }
.hh-dir .hh-btn { align-self: flex-start; padding: 12px 24px; font-size: 14px; }

/* ==========================================================================
   8. 为什么选择（深色区）
   ========================================================================== */
.hh-why { background: var(--hh-deep); color: #fff; }
.hh-why__grid {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 88px 0;
}
.hh-why__media { border-radius: var(--hh-radius-lg); overflow: hidden; aspect-ratio: 48 / 42; }
.hh-why__media img { width: 100%; height: 100%; object-fit: cover; }
.hh-why h2 { font-size: 34px; margin: 12px 0 0; }
.hh-why__body { margin-top: 22px; font-size: 15px; line-height: 1.86; color: #AFC1DE; }
.hh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.hh-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh-stat strong { font-size: 30px; font-weight: 700; line-height: 1.2; }
.hh-stat span { font-size: 13px; color: #AFC1DE; }

/* ==========================================================================
   9. 常见问题（details/summary 手风琴，无 JS）
   ========================================================================== */
.hh-faq { padding: 80px 0 88px; }
.hh-faq__list { max-width: 960px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 16px; }
.hh-faq details {
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 20px;
  overflow: hidden;
}
.hh-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 30px;
  font-size: 16px;
  font-weight: 500;
}
.hh-faq summary::-webkit-details-marker { display: none; }
.hh-faq__plus { transition: transform .25s ease; flex: 0 0 auto; }
.hh-faq details[open] .hh-faq__plus { transform: rotate(45deg); }
.hh-faq__answer { padding: 0 30px 26px; font-size: 14.5px; line-height: 1.8; color: var(--hh-muted); }

/* ==========================================================================
   10. 联系我们
   ========================================================================== */
.hh-contact { padding: 0 0 96px; }
.hh-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 72px;
  align-items: start;
}
.hh-contact h2 { font-size: 34px; margin: 12px 0 0; }
.hh-contact__lead { margin-top: 22px; font-size: 15px; line-height: 1.8; color: var(--hh-muted); }
.hh-contact__rows { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.hh-contact__row { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.hh-form {
  background: #fff;
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-raise);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hh-form__title { font-size: 19px; font-weight: 600; }
.hh-field { display: flex; flex-direction: column; gap: 8px; }
.hh-field label { font-size: 13px; font-weight: 500; }
.hh-field input,
.hh-field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--hh-ink);
  background: var(--hh-bg);
  border: 1px solid var(--hh-line);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s ease, background-color .2s ease;
}
.hh-field textarea { min-height: 110px; resize: vertical; }
.hh-field input::placeholder,
.hh-field textarea::placeholder { color: #9CA3AF; }
.hh-field input:focus,
.hh-field textarea:focus { outline: none; border-color: var(--hh-navy); background: #fff; }
.hh-form .hh-btn { width: 100%; padding: 16px; }

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.hh-footer { background: var(--hh-deep); color: #fff; padding: 64px 0 30px; }
.hh-footer__top {
  display: grid;
  grid-template-columns: 340px repeat(3, minmax(0, auto));
  justify-content: space-between;
  gap: 64px;
}
.hh-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.hh-footer__brand strong { font-size: 18px; }
.hh-footer__brand p { font-size: 14px; line-height: 1.72; color: var(--hh-on-dark-soft); }
.hh-footer__col { display: flex; flex-direction: column; gap: 14px; }
.hh-footer__col h4 { font-size: 15px; font-weight: 600; }
.hh-footer__col a { font-size: 14px; color: var(--hh-on-dark-soft); transition: color .2s ease; }
.hh-footer__col a:hover { color: #fff; }
.hh-footer__divider { height: 1px; background: #1B3A6B; margin: 40px 0 26px; }
.hh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--hh-on-dark-soft);
}
.hh-footer__icp { color: #5B739B; }

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --hh-gutter: 40px; }
  .hh-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .hh-why__grid { grid-template-columns: 400px minmax(0, 1fr); gap: 48px; }
  .hh-contact__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
}

@media (max-width: 1080px) {
  .hh-trust__grid,
  .hh-services__grid,
  .hh-flow__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-hero h1 { font-size: 46px; }
  .hh-header__actions { display: none; }
  .hh-nav { display: none; }
  .hh-mobile { display: block; }
}

@media (max-width: 900px) {
  .hh-hero__grid { grid-template-columns: minmax(0, 1fr); padding: 56px 0 64px; gap: 40px; }
  .hh-hero__media { aspect-ratio: 16 / 10; max-width: 560px; }
  .hh-bidir__grid { grid-template-columns: minmax(0, 1fr); }
  .hh-why__grid { grid-template-columns: minmax(0, 1fr); padding: 64px 0; gap: 36px; }
  .hh-why__media { aspect-ratio: 16 / 10; }
  .hh-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hh-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .hh-sec-head h2,
  .hh-why h2,
  .hh-contact h2 { font-size: 27px; }
}

@media (max-width: 640px) {
  :root { --hh-gutter: 20px; }
  .hh-trust__grid,
  .hh-services__grid,
  .hh-flow__grid,
  .hh-stats,
  .hh-footer__top { grid-template-columns: minmax(0, 1fr); }
  .hh-hero h1 { font-size: 34px; }
  .hh-hero__sub { font-size: 15.5px; }
  .hh-hero__cta { flex-direction: column; align-items: stretch; }
  .hh-hero__cta .hh-btn { width: 100%; }
  .hh-dir { padding: 30px 24px; }
  .hh-dir h3 { font-size: 22px; }
  .hh-card { padding: 24px 22px; }
  .hh-form { padding: 28px 22px; }
  .hh-faq summary { padding: 20px 22px; font-size: 15px; }
  .hh-faq__answer { padding: 0 22px 22px; }
  .hh-mobile__panel { padding: 8px var(--hh-gutter) 16px; }
}

/* 动效克制：尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .hh-site * { transition: none !important; animation: none !important; }
  .hh-card:hover { transform: none; }
}

/* ==========================================================================
   13. 容器、品牌字标与父主题兼容补充
   ========================================================================== */

/* 页面容器：清掉 WordPress 与插件常给 #page / body 加的内边距和背景 */
body.hh-body { margin: 0; padding: 0; background: var(--hh-bg); overflow-x: clip; }
body.hh-body #page.hh-page { margin: 0; padding: 0; background: transparent; }
.hh-page { width: 100%; }

/* 登录管理员时顶部的黑色工具条会把吸顶导航顶下去，这里补正偏移 */
.admin-bar .hh-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .hh-header { top: 46px; }
}

/* 品牌字标：英文主标 + 中文副标 */
.hh-brand__name { display: inline-flex; align-items: baseline; gap: 6px; }
.hh-brand__cn { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--hh-muted); }
.hh-footer__brand .hh-brand { font-size: 18px; }
.hh-footer__brand .hh-brand__cn { color: var(--hh-on-dark-soft); }

/* 图标底座：信任卡与服务卡里的图标加一块浅蓝底，避免图标浮在白卡上没着落 */
.hh-trust__card > .hh-icon,
.hh-card > .hh-icon {
  padding: 12px;
  box-sizing: content-box; /* 覆盖上面的全局 border-box，让 SVG 本体保持原尺寸 */
  border-radius: 16px;
  background: #EAF1FB;
}

/* 内置留资表单的纵向排布（有短码时这一段不参与渲染） */
.hh-site .hh-form__inner { display: flex; flex-direction: column; gap: 18px; }

/* 压平父主题对表单控件与按钮的默认样式（父主题样式先加载，这里兜底） */
.hh-site .hh-form input,
.hh-site .hh-form textarea,
.hh-site .hh-form button { box-shadow: none; text-shadow: none; }
.hh-site .hh-form input:focus,
.hh-site .hh-form textarea:focus { outline: none; }

/* 服务范围：两张宽卡版式（front-page.php 里 $hh_services_layout = 'two'） */
.hh-services__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-services__grid--two .hh-card { padding: 36px 40px; }
@media (max-width: 900px) {
  .hh-services__grid--two { grid-template-columns: minmax(0, 1fr); }
  .hh-services__grid--two .hh-card { padding: 28px 26px; }
}

/* 页脚底栏的法国主体名 */
.hh-footer__entity { color: #5B739B; font-size: 12.5px; }




/* ==========================================================================
   内页样式（文章列表 / 单篇 / 页面 / 归档 / 搜索 / 404）
   首页样式在此之上，互不干扰。
   ========================================================================== */

/* 无障碍：跳转链接与仅有读屏可见的文字 */
.hh-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--hh-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top .15s ease;
}
.hh-skip:focus { top: 0; color: #fff; }

.hh-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 吸顶导航高 76px，锚点跳过去要留出上边距，否则标题被压住 */
.hh-site [id] { scroll-margin-top: 96px; }

/* 后台菜单会输出 <ul><li><a>，这里把 ul / li 压平（display:contents 不生成盒子），
   让 <a> 直接参与父级 flex 排布，视觉上与内置锚点完全一致。 */
.hh-nav__list,
.hh-nav__list > li { display: contents; }

/* ---------------- 内页骨架 ---------------- */
.hh-main { display: block; }

/* 只设纵向内边距：.hh-wrap 常和本类挂在同一个元素上，
   用 padding 简写会把 .hh-wrap 的左右边距清零，内容会贴到屏幕边缘。 */
.hh-section { padding-top: 52px; padding-bottom: 88px; }

.hh-wrap--narrow { max-width: 860px; }

/* 内页标题带 */
.hh-page-head {
  background: #fff;
  border-bottom: 1px solid var(--hh-line);
  padding: 40px 0 36px;
}
.hh-page-head h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-top: 14px;
  text-wrap: balance; /* 汉字标题避免最后一行只剩一个字 */
}
.hh-page-head__sub {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--hh-muted);
  max-width: 640px;
}

/* 面包屑 */
.hh-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hh-muted);
}
.hh-crumbs a { color: var(--hh-muted); transition: color .2s ease; }
.hh-crumbs a:hover { color: var(--hh-navy); }
.hh-crumbs [aria-current="page"] { color: var(--hh-ink); }
.hh-crumbs__sep { color: #C9D6EC; }

/* 文章元信息 */
.hh-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--hh-muted);
}
.hh-meta a { color: var(--hh-muted); }
.hh-meta a:hover { color: var(--hh-navy); }
.hh-meta__sep { color: #C9D6EC; }

/* ---------------- 文章列表卡片 ---------------- */
.hh-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.hh-post {
  display: flex;
  flex-direction: column;
  background: var(--hh-card);
  border: 1px solid var(--hh-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hh-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--hh-shadow-raise);
  border-color: #D6E2F5;
}

.hh-post__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #EAF1FB;
  overflow: hidden;
}
.hh-post__media img { width: 100%; height: 100%; object-fit: cover; }
.hh-post__media--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EAF1FB, #DCE8FA);
}

.hh-post__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.hh-post__chip {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--hh-radius-pill);
  background: #EAF1FB;
  color: var(--hh-navy);
  font-size: 12px;
  font-weight: 600;
}

.hh-post__title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.hh-post__title a { color: var(--hh-ink); transition: color .2s ease; }
.hh-post__title a:hover { color: var(--hh-navy); }

.hh-post__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--hh-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-post__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hh-line);
  font-size: 13px;
  color: var(--hh-muted);
}
.hh-post__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--hh-navy);
  font-size: 13.5px;
}
.hh-post__more svg { transition: transform .2s ease; }
.hh-post__more:hover svg { transform: translateX(3px); }

/* ---------------- 分页 ---------------- */
.hh-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 52px;
}
.hh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--hh-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--hh-ink);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.hh-pagination a.page-numbers:hover { border-color: var(--hh-navy); color: var(--hh-navy); }
.hh-pagination .page-numbers.current {
  background: var(--hh-navy);
  border-color: var(--hh-navy);
  color: #fff;
}
.hh-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------------- 搜索框 ---------------- */
.hh-search {
  display: flex;
  gap: 10px;
  width: 100%;
}
.hh-search__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-pill);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--hh-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hh-search__input::placeholder { color: #9AA5B4; }
.hh-search__input:focus {
  outline: none;
  border-color: var(--hh-navy);
  box-shadow: 0 0 0 4px rgba(1, 77, 178, 0.10);
}
.hh-search__btn { height: 50px; padding: 0 28px; font-size: 15px; }

.hh-search-band { margin-bottom: 40px; max-width: 560px; }

/* ---------------- 空结果 / 404 ---------------- */
.hh-empty {
  padding: 32px 0 24px;
  max-width: 520px;
}
.hh-empty h2 { font-size: 24px; font-weight: 700; }
.hh-empty p { margin-top: 10px; color: var(--hh-muted); font-size: 15px; }
.hh-empty .hh-search { margin-top: 24px; }
.hh-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hh-error {
  padding: 56px 0 24px;
  max-width: 560px;
}
.hh-error__code {
  display: block;
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #E1E9F6;
}
.hh-error h1 {
  font-size: 34px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.hh-error p {
  margin-top: 12px;
  color: var(--hh-muted);
  font-size: 15.5px;
}
.hh-error__search { margin-top: 26px; max-width: 460px; }

/* 浅色描边按钮（空状态、404 用） */
.hh-btn--line {
  background: #fff;
  color: var(--hh-navy);
  border-color: #C9D6EC;
}
.hh-btn--line:hover { background: #EAF1FB; border-color: var(--hh-navy); }

/* ---------------- 文章正文 ---------------- */
.hh-article__title { margin-top: 14px; }

.hh-article__thumb {
  margin: 36px 0 8px;
  border-radius: 20px;
  overflow: hidden;
  background: #EAF1FB;
}
.hh-article__thumb img { width: 100%; height: auto; }

/* 正文排版：主题全局把 p / ul 的默认样式压平了，这里在 .hh-prose 里补回来。
   后台编辑器写的标题、列表、引用、表格才不会被「重置」吃掉。 */
.hh-prose {
  font-size: 16.5px;
  line-height: 1.88;
  color: #23324A;
  margin-top: 32px;
}
.hh-prose > *:first-child { margin-top: 0; }
.hh-prose p { margin: 0 0 1.15em; }
.hh-prose h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--hh-ink);
  margin: 1.9em 0 .7em;
}
.hh-prose h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hh-ink);
  margin: 1.6em 0 .55em;
}
.hh-prose h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--hh-ink);
  margin: 1.4em 0 .5em;
}
.hh-prose ul,
.hh-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.5em;
}
.hh-prose ul { list-style: disc; }
.hh-prose ol { list-style: decimal; }
.hh-prose li { margin: .4em 0; }
.hh-prose li > ul,
.hh-prose li > ol { margin: .4em 0 .2em; }
.hh-prose a {
  color: var(--hh-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hh-prose a:hover { color: var(--hh-navy-hover); }
.hh-prose img {
  border-radius: 16px;
  margin: 1.4em 0;
  height: auto;
}
.hh-prose figure { margin: 1.4em 0; }
.hh-prose figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--hh-muted);
  text-align: center;
}
.hh-prose blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--hh-navy);
  color: var(--hh-muted);
  font-size: 16px;
}
.hh-prose blockquote p:last-child { margin-bottom: 0; }
.hh-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #F1F4F8;
  font-size: .9em;
}
.hh-prose pre {
  margin: 1.4em 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #0A1628;
  color: #E6EDF7;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.hh-prose pre code { background: none; padding: 0; color: inherit; }
.hh-prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 15px;
}
.hh-prose th,
.hh-prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hh-line);
  text-align: left;
}
.hh-prose th { font-weight: 700; background: #F7F9FC; }
.hh-prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--hh-line); }

/* 文章标签 */
.hh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.hh-tags__item {
  padding: 6px 14px;
  border-radius: var(--hh-radius-pill);
  background: #F2F5FA;
  color: var(--hh-muted);
  font-size: 13px;
  transition: background-color .2s ease, color .2s ease;
}
.hh-tags__item:hover { background: #EAF1FB; color: var(--hh-navy); }

/* 正文分页（<!–nextpage–> 产生） */
.hh-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--hh-muted);
}
.hh-page-links a,
.hh-page-links > span:not(:first-child) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hh-line);
  border-radius: 10px;
  color: var(--hh-ink);
}

/* 上一篇 / 下一篇 */
.hh-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.hh-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--hh-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}
.hh-post-nav__item:hover { border-color: var(--hh-navy); transform: translateY(-2px); }
.hh-post-nav__item--next { text-align: right; }
.hh-post-nav__empty { display: block; }
.hh-post-nav__label { font-size: 12px; color: var(--hh-muted); }
.hh-post-nav__title { font-size: 15px; font-weight: 600; color: var(--hh-ink); }

/* 文章底部引导 */
.hh-article__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 26px 28px;
  border-radius: 20px;
  background: #EAF1FB;
}
.hh-article__cta p { font-size: 15px; color: #2C4058; margin: 0; }
.hh-article__cta .hh-btn { padding: 12px 26px; font-size: 14.5px; }

/* ---------------- 评论 ---------------- */
.hh-comments {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hh-line);
}
.hh-comments__title,
.hh-comments__form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hh-comments__list { list-style: none; margin: 0; padding: 0; }
.hh-comments__list .comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--hh-line);
}
.hh-comments__list .children {
  list-style: none;
  margin: 0;
  padding-left: 24px;
}
.hh-comments__list .comment-author img {
  border-radius: 50%;
  float: left;
  margin-right: 12px;
}
.hh-comments__list .comment-meta,
.hh-comments__list .comment-metadata {
  font-size: 13px;
  color: var(--hh-muted);
}
.hh-comments__list .comment-content { margin-top: 10px; font-size: 15.5px; line-height: 1.8; }
.hh-comments__list .reply { margin-top: 8px; font-size: 13.5px; }
.hh-comments__closed { color: var(--hh-muted); font-size: 14px; }

.hh-comments .comment-respond { margin-top: 32px; }
.hh-comments .comment-form { display: flex; flex-direction: column; gap: 16px; }
.hh-comments .comment-form p { margin: 0; }
.hh-comments .comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hh-ink);
}
.hh-comments .comment-form input[type="text"],
.hh-comments .comment-form input[type="email"],
.hh-comments .comment-form input[type="url"],
.hh-comments .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--hh-line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--hh-ink);
}
.hh-comments .comment-form input:focus,
.hh-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--hh-navy);
  box-shadow: 0 0 0 4px rgba(1, 77, 178, 0.10);
}
.hh-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.hh-comments .comment-form-cookies-consent input { margin-top: 4px; }
.hh-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--hh-muted); }

/* ---------------- 内页响应式 ---------------- */
@media (max-width: 1200px) {
  .hh-nav { gap: 24px; }
}

@media (max-width: 1080px) {
  .hh-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-page-head h1 { font-size: 34px; }
}

@media (max-width: 900px) {
  .hh-section { padding-top: 40px; padding-bottom: 64px; }
  .hh-page-head { padding: 30px 0 26px; }
  .hh-page-head h1 { font-size: 28px; }
  .hh-error__code { font-size: 72px; }
  .hh-error h1 { font-size: 27px; }
  .hh-post-nav { grid-template-columns: minmax(0, 1fr); }
  .hh-article__cta { padding: 22px; }
}

@media (max-width: 640px) {
  .hh-post-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hh-page-head { padding: 24px 0 22px; }
  .hh-page-head h1 { font-size: 25px; }
  .hh-prose { font-size: 16px; }
  .hh-prose h2 { font-size: 22px; }
  .hh-prose h3 { font-size: 19px; }
  .hh-search { flex-direction: column; }
  .hh-search__btn { width: 100%; }
  .hh-pagination { gap: 6px; margin-top: 38px; }
  .hh-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }
  /* 手机端表格：缩小字号与内边距，让三列表格也能塞进屏幕而不是撑出横向滚动 */
  .hh-prose table { font-size: 13.5px; }
  .hh-prose th,
  .hh-prose td { padding: 9px 8px; }
  .hh-prose { overflow-wrap: break-word; }
}

/* ==========================================================================
   16. 表单插件（WPForms）视觉适配
   短码替换掉内置表单后，插件自带样式是另一套体系（3px 圆角、#066aab 蓝、半宽字段）。
   这里把它压回主题的视觉语言：12px 圆角、#F9F9F9 底、#EAEAEA 描边、胶囊按钮。
   全部用 !important，是为了盖过 WPForms 写在 #wpforms-{id} 上的 CSS 变量声明
   （ID 选择器权重高于类选择器），同时不绑死某个表单 ID，换表单也不用改 CSS。
   ========================================================================== */
.hh-form .wpforms-container { margin: 0 !important; }
.hh-form .wpforms-field { width: 100% !important; max-width: 100% !important; float: none !important; padding: 0 0 18px !important; }
.hh-form .wpforms-field-container .wpforms-field:last-child { padding-bottom: 0 !important; }

/* 标签 */
.hh-form .wpforms-field-label,
.hh-form .wpforms-field-sublabel {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: var(--hh-ink) !important;
  margin: 0 0 8px !important;
}
.hh-form .wpforms-required-label { color: var(--hh-navy) !important; font-weight: 500 !important; }

/* 输入框 / 下拉 / 文本域 */
.hh-form .wpforms-field input[type="text"],
.hh-form .wpforms-field input[type="email"],
.hh-form .wpforms-field input[type="tel"],
.hh-form .wpforms-field input[type="url"],
.hh-form .wpforms-field input[type="number"],
.hh-form .wpforms-field input[type="password"],
.hh-form .wpforms-field select,
.hh-form .wpforms-field textarea {
  width: 100% !important;
  height: auto !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--hh-ink) !important;
  background: var(--hh-bg) !important;
  border: 1px solid var(--hh-line) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hh-form .wpforms-field textarea { min-height: 110px !important; resize: vertical !important; }

/* WPForms 的「字段大小」是挂在输入框本身（而不是外层容器）上的类，
   small/medium/large 会把宽度压成 25% / 60% / 100%，不拉满就会在卡片右侧留一大片空白 */
.hh-form .wpforms-field input.wpforms-field-small,
.hh-form .wpforms-field input.wpforms-field-medium,
.hh-form .wpforms-field input.wpforms-field-large,
.hh-form .wpforms-field select.wpforms-field-small,
.hh-form .wpforms-field select.wpforms-field-medium,
.hh-form .wpforms-field select.wpforms-field-large,
.hh-form .wpforms-field textarea.wpforms-field-small,
.hh-form .wpforms-field textarea.wpforms-field-medium,
.hh-form .wpforms-field textarea.wpforms-field-large {
  width: 100% !important;
  max-width: 100% !important;
}
.hh-form .wpforms-field input::placeholder,
.hh-form .wpforms-field textarea::placeholder { color: #9CA3AF !important; opacity: 1 !important; }
.hh-form .wpforms-field input:focus,
.hh-form .wpforms-field select:focus,
.hh-form .wpforms-field textarea:focus {
  outline: none !important;
  border-color: var(--hh-navy) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(1, 77, 178, .12) !important;
}

/* 提交按钮：跟主题 .hh-btn--primary 一致 */
.hh-form .wpforms-submit-container { padding: 6px 0 0 !important; }
.hh-form .wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  padding: 16px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--hh-navy) !important;
  border: 1px solid transparent !important;
  border-radius: var(--hh-radius-pill) !important;
  cursor: pointer;
  transition: background-color .2s ease;
}
.hh-form .wpforms-submit:hover,
.hh-form .wpforms-submit:focus { background: var(--hh-navy-hover) !important; }

/* 校验错误态 */
.hh-form .wpforms-field.wpforms-has-error input,
.hh-form .wpforms-field.wpforms-has-error textarea,
.hh-form .wpforms-field input.wpforms-error,
.hh-form .wpforms-field textarea.wpforms-error { border-color: #DC2626 !important; background: #fff !important; }
.hh-form .wpforms-error { display: block !important; margin-top: 6px !important; font-size: 12px !important; color: #DC2626 !important; }

/* 提交成功 / 失败的提示条 */
.hh-form .wpforms-confirmation-container-full,
.hh-form .wpforms-confirmation-container {
  margin: 0 !important;
  padding: 20px !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--hh-ink) !important;
  background: #F0F6FF !important;
  border: 1px solid #D6E4FA !important;
  border-radius: 12px !important;
}
.hh-form .wpforms-error-container {
  margin: 0 0 16px !important;
  padding: 16px 18px !important;
  font-size: 13px !important;
  color: #991B1B !important;
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  border-radius: 12px !important;
}

/* ==========================================================================
   17. 商品展示（自定义文章类型 hh_product）
   --------------------------------------------------------------------------
   首页版块 + 商品列表 + 商品详情的样式都在这一段。
   价格块 .hh-price 是卡片与详情页共用的，靠 --card / --single 修饰符调尺寸。
   ========================================================================== */

/* ---------------- 首页版块 ---------------- */
.hh-products { padding: 8px 0 88px; }

.hh-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.hh-products__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.hh-products__note {
  max-width: 720px;
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--hh-muted);
  text-align: center;
}
.hh-products__note--archive { margin: 40px auto 0; }

/* 还没商品时给管理员看的提示（前台访客看不到） */
.hh-products-empty { padding: 0 0 48px; }
.hh-products-empty__box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px dashed #C9D6EC;
  border-radius: 16px;
  background: #F7F9FC;
  font-size: 14px;
  color: var(--hh-muted);
}
.hh-products-empty__box strong { color: var(--hh-ink); }

/* ---------------- 商品卡片 ---------------- */
.hh-product {
  display: flex;
  flex-direction: column;
  background: var(--hh-card);
  border: 1px solid var(--hh-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hh-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--hh-shadow-raise);
  border-color: #D6E2F5;
}

.hh-product__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #F4F6FA;
  overflow: hidden;
}
.hh-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hh-product:hover .hh-product__media img { transform: scale(1.035); }

.hh-product__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EAF1FB, #DCE8FA);
}

/* 限时价角标：橙底深字，对比度够，也不抢主价格 */
.hh-product__flag,
.hh-ps__flag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--hh-radius-pill);
  background: var(--hh-orange);
  color: #3B2A05;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hh-product__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.hh-product__cats { display: flex; flex-wrap: wrap; gap: 6px; }

.hh-product__cat {
  padding: 4px 10px;
  border-radius: var(--hh-radius-pill);
  background: #EAF1FB;
  color: var(--hh-navy);
  font-size: 12px;
  font-weight: 600;
  transition: background-color .2s ease;
}
.hh-product__cat:hover { background: #DCE8FA; }

.hh-product__title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.hh-product__title a { color: var(--hh-ink); transition: color .2s ease; }
.hh-product__title a:hover { color: var(--hh-navy); }

.hh-product__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--hh-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--hh-muted);
}
.hh-product__dot { color: #C9D6EC; }

.hh-product__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hh-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hh-navy);
}
.hh-product__more svg { transition: transform .2s ease; }
.hh-product__more:hover svg { transform: translateX(3px); }

/* ---------------- 价格块（卡片/详情共用） ---------------- */
.hh-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid #EDF1F7;
  border-radius: 14px;
  background: #F7F9FC;
}

.hh-price__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--hh-muted);
}
.hh-price__value { font-variant-numeric: tabular-nums; }
.hh-price__row s { text-decoration-thickness: 1px; color: #9AA6B8; }

.hh-price__row--main .hh-price__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hh-navy);
}
.hh-price__row--main .hh-price__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hh-navy);
  letter-spacing: -0.01em;
}
/* 活动价用暖色，比纯红克制，和站点的橙色强调色同族 */
.hh-price__row--promo .hh-price__label,
.hh-price__row--promo .hh-price__value { color: #D9480F; }

.hh-price__note {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--hh-muted);
}

.hh-price--empty {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hh-muted);
}

.hh-price--single { padding: 18px 22px; border-radius: 18px; gap: 5px; margin-top: 26px; }
.hh-price--single .hh-price__row { font-size: 14px; }
.hh-price--single .hh-price__row--main .hh-price__value { font-size: 34px; }
.hh-price--single .hh-price__note { font-size: 13px; margin-top: 6px; }

/* ---------------- 商品列表的分类筛选 ---------------- */
.hh-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hh-filter__item {
  padding: 9px 18px;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-pill);
  background: #fff;
  font-size: 14px;
  color: var(--hh-ink);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.hh-filter__item:hover { border-color: #C9D6EC; color: var(--hh-navy); }
.hh-filter__item.is-active {
  background: var(--hh-navy);
  border-color: var(--hh-navy);
  color: #fff;
}

/* ---------------- 商品详情页 ---------------- */
.hh-ps__top { padding: 36px 0 72px; }

.hh-ps__grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  margin-top: 26px;
}

.hh-ps__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-lg);
  background: #F4F6FA;
  overflow: hidden;
}
.hh-ps__media img { width: 100%; height: 100%; object-fit: cover; }
.hh-ps__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EAF1FB, #DCE8FA);
}
.hh-ps__flag { top: 16px; left: 16px; }

.hh-ps__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hh-ps__cat {
  padding: 5px 12px;
  border-radius: var(--hh-radius-pill);
  background: #EAF1FB;
  color: var(--hh-navy);
  font-size: 12.5px;
  font-weight: 600;
}
.hh-ps__cat:hover { background: #DCE8FA; }

.hh-ps__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hh-ps__lead {
  margin-top: 14px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--hh-muted);
}

.hh-ps__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  margin: 22px 0 0;
}
.hh-ps__spec { display: flex; gap: 10px; font-size: 14px; }
.hh-ps__spec dt { color: var(--hh-muted); }
.hh-ps__spec dd { margin: 0; font-weight: 600; color: var(--hh-ink); }

.hh-ps__marks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.hh-ps__marks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #23324A;
}
.hh-ps__marks svg { margin-top: 2px; }

.hh-ps__order {
  margin-top: 30px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 20px;
}
.hh-ps__order-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.hh-ps__steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hhstep;
}
.hh-ps__steps li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.7;
  color: #23324A;
  counter-increment: hhstep;
}
.hh-ps__steps li::before {
  content: counter(hhstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EAF1FB;
  color: var(--hh-navy);
  font-size: 12px;
  font-weight: 700;
}

.hh-ps__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hh-ps__cta .hh-btn { padding: 13px 22px; font-size: 14.5px; }

.hh-ps__hint { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--hh-muted); }

.hh-ps__notice {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hh-line);
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--hh-muted);
}

.hh-ps__body { border-top: 1px solid var(--hh-line); }
.hh-ps__body-title { font-size: 24px; font-weight: 700; }
.hh-ps__body .hh-prose { max-width: 860px; margin-top: 16px; }

/* ---------------- 同类商品 ---------------- */
.hh-related { padding: 8px 0 96px; }
.hh-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.hh-related__head h2 { font-size: 24px; font-weight: 700; }
.hh-related__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hh-navy);
}
.hh-related__all svg { transition: transform .2s ease; }
.hh-related__all:hover svg { transform: translateX(3px); }

/* ---------------- 商品模块响应式 ---------------- */
@media (max-width: 1080px) {
  .hh-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-ps__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hh-ps__media { max-width: 520px; }
}

@media (max-width: 900px) {
  .hh-ps__title { font-size: 30px; }
  .hh-ps__top { padding: 28px 0 56px; }
}

@media (max-width: 640px) {
  .hh-products { padding-bottom: 64px; }
  /* 首页精选商品不铺卡片，只留一个跳转商品列表的按钮。
     只作用于首页版块 .hh-products--home：列表页与单品页的相关商品
     也共用 .hh-products__grid，不能一起隐藏。
     卡片仍在 HTML 里（标题与内链保留给搜索引擎），
     但 display:none 后懒加载图片不会发起请求。 */
  .hh-products--home .hh-products__grid { display: none; }
  .hh-ps__title { font-size: 26px; }
  .hh-ps__order { padding: 20px 18px; }
  .hh-ps__cta .hh-btn { width: 100%; }
  .hh-products--home .hh-products__foot { margin-top: 24px; }
  .hh-products--home .hh-products__foot .hh-btn { width: 100%; }
  .hh-related { padding-bottom: 64px; }
}

/* 减少动态效果时，卡片图片不做放大 */
@media (prefers-reduced-motion: reduce) {
  .hh-product:hover .hh-product__media img { transform: none; }
}

/* ==========================================================================
   18. 易拉甄选：商品分类层（商品列表页第一屏）
   ========================================================================== */

.hh-cats {
  margin: 0 0 44px;
}

.hh-cats__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hh-ink);
  letter-spacing: .02em;
}

.hh-cats__title span {
  font-size: 13px;
  font-weight: 400;
  color: var(--hh-muted);
}

.hh-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}

.hh-cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 18px;
  background: var(--hh-card);
  border: 1px solid var(--hh-line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hh-cat:hover {
  border-color: #C3D3E8;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 22, 40, .07);
}

.hh-cat:focus-visible {
  outline: 2px solid #2B6CB0;
  outline-offset: 3px;
}

.hh-cat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #E8EEF7;
}

.hh-cat__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--hh-ink);
  letter-spacing: .01em;
}

.hh-cat__desc {
  min-height: 42px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--hh-muted);
}

.hh-cat__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--hh-line);
  font-size: 12.5px;
  color: #8792A2;
}

.hh-cat__go {
  font-weight: 600;
  color: #2B6CB0;
}

.hh-cat:hover .hh-cat__go {
  color: #1F4E82;
}

@media (max-width: 640px) {
  .hh-cats { margin-bottom: 32px; }
  .hh-cats__grid { grid-template-columns: minmax(0, 1fr); }
  .hh-cat__desc { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-cat:hover { transform: none; }
}
