/* ==========================================================================
   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{
  display:inline-block;vertical-align:top;
  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;}

/* ---------- 13. 页面显示网址 172hk.cn（仅显示文字，不改链接） ---------- */
.hu-site-url{display:block;font-size:12px;color:#6b7688;line-height:1.5;margin-top:2px;font-weight:400;}
.hu-card--accent .hu-card__title::after{content:"172hk.cn";display:block;font-size:12px;color:#6b7688;line-height:1.5;margin-top:2px;font-weight:400;}

/* ---------- 13. PC logo 下方补网址（2026-11-26c） ---------- */
.citytop .logo a{position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;}
.citytop .logo a::after{
  content:"172hk.cn";display:block;margin-top:1px;
  font-size:12px;line-height:1.2;letter-spacing:.5px;color:#6b7688;
}

/* ---------- 14. PC 店铺嵌入区左右分栏（2026-11-26d） ---------- */
/* 14.1 容器：左引导 + 右手机框。hosts 由模板加 .hu-shop-embed-host，DB 广告位渲染为 .vsBox */
.hu-shop-embed-host{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  width:100%;max-width:100%;box-sizing:border-box;
}
.hu-shop-embed-host > .hu-shop-side{order:1;flex:1 1 56%;min-width:0;}
.hu-shop-embed-host > .vsBox{order:2;flex:0 0 40%;width:40%!important;min-width:0;}

/* 14.2 左侧「在线办理引导」卡片 */
.hu-shop-side{
  background:#fff;border:1px solid var(--hu-line);border-top:3px solid var(--hu-accent);
  border-radius:var(--hu-radius);box-shadow:var(--hu-shadow);
  padding:20px 22px;box-sizing:border-box;
  font-family:"Microsoft YaHei",PingFang SC,system-ui,sans-serif;
}
.hu-shop-side__head{margin-bottom:16px;}
.hu-shop-side__title{margin:0 0 6px;font-size:24px;line-height:1.3;font-weight:800;color:var(--hu-ink);}
.hu-shop-side__sub{margin:0;font-size:13px;color:var(--hu-mute);line-height:1.6;}
.hu-shop-steps{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px;}
.hu-shop-step{
  display:flex;align-items:flex-start;gap:12px;
  background:var(--hu-soft);border:1px solid var(--hu-line);border-radius:12px;padding:12px 14px;
}
.hu-shop-step__no{
  flex:0 0 28px;width:28px;height:28px;border-radius:50%;
  background:var(--hu-brand-tint);color:var(--hu-brand);
  font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.hu-shop-step b{display:block;font-size:15px;color:var(--hu-ink);line-height:1.4;}
.hu-shop-step small{display:block;font-size:12px;color:var(--hu-mute);line-height:1.6;margin-top:2px;}
.hu-shop-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;}
.hu-shop-pills span{
  display:inline-block;padding:5px 12px;border-radius:999px;
  background:var(--hu-accent-tint);color:var(--hu-accent-deep);font-size:12px;font-weight:600;
}
.hu-shop-auth{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.hu-shop-auth a{
  display:flex;align-items:center;justify-content:center;height:46px;
  border-radius:9px;font-size:15px;font-weight:700;text-decoration:none;transition:filter .2s;
}
.hu-shop-auth a:hover{filter:brightness(1.04);}
.hu-shop-auth__reg{background:linear-gradient(135deg,#ff7a18,#ff4d00);color:#fff;box-shadow:0 6px 16px rgba(255,90,31,.22);}
.hu-shop-auth__login{background:#fff;color:#1d4ed8;border:1px solid #1d4ed8;}
.hu-shop-qcard{background:var(--hu-soft);border:1px solid var(--hu-line);border-radius:12px;padding:14px 16px;}
.hu-shop-qcard__title{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--hu-ink);}
.hu-shop-qcard__desc{margin:0 0 12px;font-size:12px;color:var(--hu-mute);line-height:1.6;}
.hu-shop-qcard__btn{
  display:inline-block;height:38px;line-height:38px;padding:0 18px;border-radius:9px;
  background:#1d4ed8;color:#fff;font-size:14px;font-weight:700;text-decoration:none;
}

/* 14.3 右侧手机框：顶条 44px 墨蓝 + 绿点，iframe 收窄到约 440px，原 iframe 与全屏覆盖层均保留 */
.hu-shop-embed-host .hkm-embed-wrapper{max-width:460px;margin:0 auto;}
.hu-shop-embed-host .hkm-card{
  border:1px solid var(--hu-line)!important;border-top:1px solid var(--hu-line)!important;
  border-radius:22px!important;background:#fff!important;
  box-shadow:0 10px 30px rgba(31,45,90,.12)!important;
  padding:44px 8px 8px!important;position:relative;overflow:hidden!important;
}
.hu-shop-embed-host .hkm-card::before{
  content:"官方店铺 · 号卡套餐";
  position:absolute;left:0;right:0;top:0;height:44px;z-index:2;
  display:flex;align-items:center;padding-left:34px;
  background:radial-gradient(circle at 19px 22px,#22c55e 0 4px,transparent 5px) no-repeat,#192c4c;
  color:#fff;font-size:14px;font-weight:700;letter-spacing:.5px;
}
.hu-shop-embed-host .hkm-card::after{
  content:"官方入口 · 套餐与发货以店铺页为准";
  display:block;padding:8px 6px 2px;text-align:center;
  color:#8a94a6;font-size:11px;background:#fff;
}
.hu-shop-embed-host .hkm-tabs{padding:9px 8px!important;gap:6px!important;}
.hu-shop-embed-host .hkm-tab{font-size:13px!important;padding:7px 12px!important;}
.hu-shop-embed-host .hkm-panel.active .hkm-frame{
  width:100%!important;height:600px!important;min-height:0!important;max-height:none!important;
  border-radius:0;background:#fff;
}
/* 14.4 手机框内快捷入口压成两列；a.hkm-open-ov 的 pointer-events / 点击功能不改动 */
.hu-shop-embed-host .hkm-quick-actions{padding:12px 10px 14px!important;}
.hu-shop-embed-host .hkm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
.hu-shop-embed-host .hkm-agent-btn{height:44px!important;font-size:13px!important;}

/* 14.5 窄视口恢复单栏（WAP 模板不受影响） */
@media (max-width:768px){
  .hu-shop-embed-host{display:block;}
  .hu-shop-embed-host > .hu-shop-side,
  .hu-shop-embed-host > .vsBox{width:100%!important;flex:none;}
  .hu-shop-side{margin-bottom:14px;padding:16px;}
  .hu-shop-side__title{font-size:20px;}
  .hu-shop-embed-host .hkm-embed-wrapper{max-width:100%;}
}

/* ---------- 15. 去快捷入口 + 两栏等高对齐（2026-11-26e） ---------- */
.hu-shop-embed-host{align-items:stretch !important;}
.hkm-quick-actions{display:none !important;}
