/* ==========================================================================
   172hk.cn · UI 精致化覆盖层 v2  (hu-ui-v2.css?v=20261126a)
   参照 172hk.com.cn 的设计 token + 卡片语法，纯覆盖、不改旧文件、可一键回退。
   引入顺序：必须位于 head 的 base.css 之后；若放页面尾部，须在 d172-style 之后。
   ========================================================================== */

/* ---------- 1. 统一设计 token：6 变量收敛全站三套配色 ---------- */
:root{
  --hu-brand:#4f46e5;    /* 品牌紫 */
  --hu-accent:#ff5a1f;   /* 强调橙：唯一主 CTA */
  --hu-ink:#1c2534;
  --hu-mute:#6b7688;
  --hu-line:#e6eaf3;
  --hu-soft:#fafbfe;

  --hu-accent-deep:#e2480f;
  --hu-accent-tint:#fff0e6;
  --hu-brand-tint:#eef0ff;
  --hu-radius:14px;
  --hu-shadow:0 4px 18px rgba(31,45,90,.06);

  /* 把目标站原有三套变量统一收敛到新 token（旧样式无需改动即换肤） */
  --brand:var(--hu-brand);
  --brand-dark:#4338ca;
  --fei-gradient:linear-gradient(135deg,#7c74f5,#4f46e5);
  --c-primary:var(--hu-accent);
  --c-primary-light:#ff7a45;
  --c-primary-dark:var(--hu-accent-deep);
  --c-primary-tint:var(--hu-accent-tint);
  --c-primary-grad:linear-gradient(135deg,#ff7a45,#ff4d00);
  --d172-brand:var(--hu-accent);
  --d172-brand-light:#ff7a45;
  --d172-brand-deep:var(--hu-accent-deep);
  --d172-brand-tint:var(--hu-accent-tint);
  --d172-brand-tint2:#ffdcc4;
  --d172-ink:var(--hu-ink);
  --d172-ink-2:var(--hu-mute);
  --d172-ink-3:#98a2b3;
  --d172-line:var(--hu-line);
  --d172-bg:var(--hu-soft);
  --d172-grad:linear-gradient(135deg,#ff7a45,#ff4d00);
  --d172-sh:var(--hu-shadow);
  --d172-sh-brand:0 8px 22px rgba(255,90,31,.22);
}

/* ---------- 2. 板块标题：左侧 4px 圆角竖线 ---------- */
.d172-sect__title,
.hySec__title,
.hu-sec__title,
.ui-menu-color .ui-menu-name{position:relative;padding-left:12px;}
.d172-sect__title::before,
.hySec__title::before,
.hu-sec__title::before,
.ui-menu-color .ui-menu-name::before{
  content:"";position:absolute;left:0;top:.18em;bottom:.18em;width:4px;
  border-radius:2px;background:var(--hu-brand);
}

/* ---------- 3. 卡片统一语法：白底 / 顶部 3px 色条 / 14px 圆角 / 轻阴影 ---------- */
.d172-sect,
.hyPlan,
.hkm-card,
.hu-card{
  background:#fff !important;
  border:1px solid var(--hu-line) !important;
  border-top:3px solid var(--hu-brand) !important;
  border-radius:14px !important;
  box-shadow:var(--hu-shadow) !important;
  overflow:hidden;
  box-sizing:border-box;
  max-width:100%;
}
.d172-sect,
.hyPlan{border-top-color:var(--hu-accent) !important;}
.hu-card--brand{border-top-color:var(--hu-brand) !important;}
.hu-card--accent{border-top-color:var(--hu-accent) !important;}
.hu-card--green{border-top-color:#0f9f7a !important;}

/* ---------- 4. 胶囊角标：11px / 20px 圆角 / 浅底深字 ---------- */
.d172-pcard__tag,
.hyPlan__tag,
.vstag,
.hu-card__badge{
  display:inline-block;
  background:var(--hu-brand-tint) !important;
  color:var(--hu-brand) !important;
  font-size:11px !important;font-weight:600 !important;line-height:1.4 !important;
  padding:4px 10px !important;border-radius:20px !important;
  margin-bottom:8px;
}
.hu-card--accent .hu-card__badge{background:var(--hu-accent-tint) !important;color:var(--hu-accent-deep) !important;}

/* ---------- 5. 主 CTA：全站唯一橙色渐变 + 橙色投影 ---------- */
.d172-fullbtn,
.d172-ov__open,
.d172-openlink,
.hyPlan__btn,
.cta-btn-main,
.hu-btn-main{
  background:linear-gradient(135deg,#ff7a18,#ff4d00) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 6px 16px rgba(255,90,31,.22) !important;
  border-radius:10px !important;
  font-weight:800 !important;
  text-align:center !important;
  text-decoration:none !important;
}
.d172-fullbtn{border-radius:999px !important;padding:8px 13px !important;}
.hyPlan__btn{height:44px;line-height:44px;padding:0 18px !important;border-radius:10px !important;}
.hu-btn-main{display:inline-block;height:44px;line-height:44px;padding:0 22px;font-size:15px;}

/* ---------- 6. 次级按钮：中性描边 + hover 三态 ---------- */
.cta-btn-line,
.hu-btn-line{
  background:#fff !important;color:var(--hu-mute) !important;
  border:1px solid var(--hu-line) !important;height:36px;line-height:34px;
  font-size:13px;border-radius:8px;padding:0 16px;text-align:center;text-decoration:none;
}
.cta-btn-line:hover,
.hu-btn-line:hover{background:#f6f8fc !important;color:var(--hu-brand) !important;border-color:#d5dcff !important;}

/* 快捷入口 5 按钮：白底 + 橙图标 + 深墨文字（收敛彩虹色） */
.hkm-agent-btn,
.hkm-agent-btn.purple,
.hkm-agent-btn.blue,
.hkm-agent-btn.cyan{
  background:#fff !important;color:var(--hu-ink) !important;
  border:1px solid var(--hu-line) !important;
  border-radius:10px !important;box-shadow:none !important;
}
.hkm-agent-btn span{color:var(--hu-accent) !important;}
.hkm-agent-btn:hover{border-color:#d5dcff !important;background:#fafbfe !important;transform:none !important;}
/* 广告位内两条空锚点（飞利猫注册/登录）无可用目标：隐藏，消除空 href */
.hkm-agent-btn[href="#"]{display:none !important;}

/* ---------- 7. 三平台 × 四入口矩阵（PC/WAP 通用，新增节点 .hu-matrix） ---------- */
.hu-matrix{margin:16px 12px 0;position:relative;z-index:20;width:calc(100% - 24px);}
.hu-matrix__head{margin-bottom:12px;}
.hu-matrix__title{font-size:20px;font-weight:800;color:var(--hu-ink);margin:0 0 4px;}
.hu-matrix__sub{font-size:13px;color:var(--hu-mute);}
.hu-matrix__grid{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;box-sizing:border-box;}
.hu-card{padding:18px 16px 16px;width:100%;}
.hu-card__icon{font-size:26px;color:var(--hu-accent);line-height:1;margin-bottom:8px;}
.hu-card__title{font-size:17px;font-weight:700;color:var(--hu-ink);margin:0 0 6px;}
.hu-card__desc{font-size:13px;color:var(--hu-mute);line-height:1.6;margin-bottom:12px;}
.hu-card__entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.hu-card__entries a{
  display:block;text-align:center;padding:9px 6px;border:1px solid var(--hu-line);
  border-radius:8px;color:var(--hu-ink);font-size:13px;text-decoration:none;background:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.hu-card__entries a:hover{border-color:#d5dcff;color:var(--hu-brand);background:#fafbfe;}
.hu-card__entries a.hu-entry-main{background:var(--hu-accent-tint);border-color:#ffdcc4;color:var(--hu-accent-deep);font-weight:700;}
@media (max-width:768px){
  .hu-matrix{margin:12px 12px 0;}
  .hu-matrix__grid{grid-template-columns:1fr;gap:12px;}
  .hu-card{padding:14px 12px 12px;}
  .hu-card__title{font-size:16px;}
  .hu-card__entries a{font-size:12.5px;}
}

/* ---------- 8. 弹窗常驻提示条（外域城市选择不可从本站关闭，只做引导） ---------- */
.d172-tip{
  position:relative;z-index:20;
  margin:10px 12px 0;padding:9px 12px;
  background:#fff8f0;border:1px solid #ffe0c2;border-left:3px solid var(--hu-accent);
  border-radius:10px;color:#9a5b2e;font-size:12px;line-height:1.6;
  box-sizing:border-box;max-width:100%;width:calc(100% - 24px);
}

/* ---------- 9. P0：全屏按钮压住外域弹窗「我知道了」的层级修复 ---------- */
.hkm-shops .hkm-open-ov{z-index:1 !important;}
.hkm-shops .hkm-open-ov span{font-size:0 !important;}
.hkm-shops .hkm-open-ov span::after{content:"前往店铺 ↗";font-size:13px !important;letter-spacing:0 !important;}
.hkm-shops .hkm-open-ov em{display:none !important;}
/*  iframe 有界视口：避免 658px 高 iframe 被灰罩覆盖时观感像白屏 */
.hkm-panel .hkm-frame{max-height:420px;}
@media (max-width:768px){.hkm-panel .hkm-frame{max-height:360px;}}

/* ---------- 10. 空友情链接板块收拢（无 <a> 时隐藏） ---------- */
.links:has(ul > li:only-child){display:none !important;}
.links.is-empty{display:none !important;}

/* ---------- 11. 悬浮客服：小字提示 12px ---------- */
.float-consult::after{
  content:"客服";position:absolute;right:calc(100% + 4px);bottom:2px;
  font-size:12px;color:var(--hu-mute);white-space:nowrap;
}
@media (max-width:768px){.float-consult::after{display:none;}}

/* ---------- 12. h1 层级统一（首页 32 / 栏目 20 / 城市 24） ---------- */
.hu-h1--home{font-size:32px !important;}
.hu-h1--col{font-size:20px !important;}
.hu-h1--city{font-size:24px !important;}
