/* ============================================================
 * 赫莱特滚动科技（深圳）有限公司 · 在线商城
 * css/style.css —— 全站统一样式（多彩 · 简洁 · 大方）
 * ============================================================ */
:root {
  --c1: #2f7bf6;
  --c2: #00b578;
  --c3: #ff7d00;
  --c4: #9c6bff;
  --c5: #e63946;
  --cyan: #00a6c8;
  --grad: linear-gradient(135deg, #2f7bf6 0%, #00a6c8 100%);
  --grad2: linear-gradient(135deg, #ff7d00 0%, #ffb347 100%);
  --grad3: linear-gradient(135deg, #00b578 0%, #2fd9a0 100%);
  --text: #1f2937;
  --text2: #6b7280;
  --bg: #f4f7fc;
  --card: #ffffff;
  --line: #e6ebf3;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(31, 45, 70, 0.08);
  --shadow-hover: 0 10px 26px rgba(31, 45, 70, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
.hl-container { width: 1200px; max-width: 96%; margin: 0 auto; }
.hl-mt { margin-top: 20px; }
.hl-mb { margin-bottom: 20px; }

/* ---------- 按钮 ---------- */
.hl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 22px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; transition: all .2s; color: #fff;
  background: var(--grad); white-space: nowrap;
}
.hl-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }
.hl-btn-lg { padding: 11px 34px; font-size: 16px; border-radius: 10px; }
.hl-btn-block { width: 100%; }
.hl-btn-orange { background: var(--grad2); }
.hl-btn-green { background: var(--grad3); }
.hl-btn-line { background: transparent; color: var(--c1); border: 1px solid var(--c1); }
.hl-btn-line:hover { background: rgba(47, 123, 246, .06); }
.hl-btn-gray { background: #e6ebf3; color: var(--text2); }
.hl-btn-gray:hover { background: #dbe3ef; color: var(--text); }
.hl-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 顶部条 ---------- */
.hl-topbar { background: #17233b; color: #b8c4d9; font-size: 12px; }
.hl-topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.hl-topbar-links a { margin-left: 16px; color: #b8c4d9; transition: color .2s; }
.hl-topbar-links a:hover { color: #fff; }

/* ---------- 头部主区 ---------- */
.hl-header-main { background: #fff; border-bottom: 1px solid var(--line); }
.hl-header-row { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.hl-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hl-logo svg { background: var(--grad); border-radius: 10px; padding: 6px; }
.hl-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.hl-logo-text b { font-size: 19px; color: #17233b; letter-spacing: .5px; }
.hl-logo-text em { font-style: normal; font-size: 11px; color: var(--c1); letter-spacing: 1px; }
.hl-search { flex: 1; max-width: 460px; display: flex; }
.hl-search input {
  flex: 1; height: 40px; border: 2px solid var(--c1); border-right: none;
  border-radius: 8px 0 0 8px; padding: 0 14px; font-size: 14px;
}
.hl-search button {
  height: 40px; padding: 0 22px; border: none; border-radius: 0 8px 8px 0;
  background: var(--c1); color: #fff; cursor: pointer; font-size: 14px; transition: opacity .2s;
}
.hl-search button:hover { opacity: .85; }
.hl-header-user { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.hl-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #17233b; font-size: 15px; }
.hl-cart:hover { color: var(--c1); }
.hl-cart-badge {
  position: absolute; top: -8px; right: -14px; min-width: 18px; height: 18px; line-height: 18px;
  background: var(--c5); color: #fff; border-radius: 9px; font-size: 11px; text-align: center; padding: 0 5px;
}
.hl-user-area { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hl-user-link { color: #17233b; }
.hl-user-link:hover { color: var(--c1); }
.hl-slash { color: #c3ccdb; }
.hl-logout { color: var(--text2); font-size: 13px; }
.hl-logout:hover { color: var(--c5); }

/* ---------- 主导航 ---------- */
.hl-nav { background: var(--grad); }
.hl-nav-inner { display: flex; }
.hl-nav-inner a {
  color: #fff; padding: 0 26px; height: 44px; line-height: 44px; font-size: 15px;
  position: relative; transition: background .2s;
}
.hl-nav-inner a:hover, .hl-nav-inner a.active { background: rgba(255, 255, 255, .18); }
.hl-nav-inner a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--bg);
}

/* ---------- 页脚 ---------- */
.hl-footer { background: #17233b; color: #b8c4d9; margin-top: 40px; font-size: 13px; }
.hl-footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.6fr; gap: 30px; padding: 36px 0 26px;
}
.hl-footer-col { display: flex; flex-direction: column; gap: 8px; }
.hl-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.hl-footer-brand p { color: #9fb0c9; line-height: 1.8; }
.hl-footer-col a { color: #b8c4d9; transition: color .2s; }
.hl-footer-col a:hover { color: #fff; }
.hl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 0; font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8fa2bd;
}
.hl-footer-bottom a { color: #b8c4d9; }
.hl-footer-bottom a:hover { color: #fff; }

/* ---------- Hero Banner ---------- */
.hl-hero {
  position: relative; height: 360px; border-radius: 16px; overflow: hidden; margin-top: 20px;
  background: var(--grad);
}
.hl-hero img { width: 100%; height: 100%; object-fit: cover; }
.hl-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23, 35, 59, .62) 0%, rgba(23, 35, 59, .18) 55%, transparent 75%);
}
.hl-hero-text { position: absolute; left: 60px; top: 50%; transform: translateY(-50%); color: #fff; max-width: 560px; }
.hl-hero-text h2 { font-size: 36px; letter-spacing: 1px; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hl-hero-text p { font-size: 16px; opacity: .95; margin-bottom: 22px; }
.hl-hero-text .hl-btn { background: var(--grad2); }

/* ---------- 区块标题 ---------- */
.hl-sec { margin-top: 34px; }
.hl-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.hl-sec-title { font-size: 22px; font-weight: 700; color: #17233b; position: relative; padding-left: 14px; }
.hl-sec-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 3px; background: var(--grad); }
.hl-sec-more { color: var(--text2); font-size: 13px; }
.hl-sec-more:hover { color: var(--c1); }

/* ---------- 分类卡片 ---------- */
.hl-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.hl-cat-card {
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; display: block;
}
.hl-cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.hl-cat-banner { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 16px 20px; color: #fff; }
.hl-cat-banner h3 { font-size: 22px; margin-bottom: 2px; }
.hl-cat-banner p { font-size: 13px; opacity: .92; }
.hl-cat-body { padding: 16px 20px; }
.hl-cat-body p { color: var(--text2); font-size: 13px; line-height: 1.7; margin-bottom: 12px; min-height: 44px; }
.hl-cat-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* ---------- 商品网格与卡片 ---------- */
.hl-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl-pgrid-5 { grid-template-columns: repeat(5, 1fr); }
.hl-pcard {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.hl-pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.hl-pcard-img { display: block; aspect-ratio: 1/1; background: #f2f5fa; overflow: hidden; }
.hl-pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hl-pcard:hover .hl-pcard-img img { transform: scale(1.06); }
.hl-pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hl-pcard-name {
  font-size: 14px; color: var(--text); line-height: 1.45; height: 40px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hl-pcard-name:hover { color: var(--c1); }
.hl-pcard-tags { display: flex; gap: 6px; min-height: 20px; }
.hl-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 4px; color: #fff; line-height: 18px;
}
.hl-tag:nth-child(4n+1) { background: var(--c5); }
.hl-tag:nth-child(4n+2) { background: var(--c3); }
.hl-tag:nth-child(4n+3) { background: var(--c2); }
.hl-tag:nth-child(4n) { background: var(--c4); }
.hl-pcard-meta { display: flex; align-items: baseline; gap: 8px; }
.hl-price { color: var(--c5); font-size: 18px; font-weight: 700; }
.hl-price::before { content: "¥"; font-size: 12px; }
.hl-orig { color: #a8b2c2; font-size: 12px; text-decoration: line-through; }
.hl-pcard-sub { display: flex; justify-content: space-between; color: var(--text2); font-size: 12px; }

/* ---------- 分页 ---------- */
.hl-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 10px; }
.hl-pagination a, .hl-pagination span.page-btn {
  min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 10px;
  border-radius: 8px; background: #fff; color: var(--text); font-size: 14px; border: 1px solid var(--line);
  transition: all .2s; display: inline-block;
}
.hl-pagination a:hover { border-color: var(--c1); color: var(--c1); }
.hl-pagination a.active { background: var(--c1); border-color: var(--c1); color: #fff; }
.hl-pagination a.disabled { color: #c3ccdb; pointer-events: none; background: #f4f6fa; }
.hl-pagination .page-info { color: var(--text2); font-size: 13px; margin: 0 6px; }

/* ---------- 弹窗 ---------- */
.hl-modal-mask {
  position: fixed; inset: 0; background: rgba(15, 25, 45, .55); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hl-modal {
  background: #fff; border-radius: 16px; width: 520px; max-width: 96%; max-height: 92vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: hlPop .22s ease;
}
@keyframes hlPop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.hl-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.hl-modal-head h3 { font-size: 18px; color: #17233b; }
.hl-modal-close {
  width: 32px; height: 32px; border: none; background: #f0f3f9; border-radius: 8px;
  font-size: 18px; color: var(--text2); cursor: pointer; line-height: 1;
}
.hl-modal-close:hover { background: var(--c5); color: #fff; }
.hl-modal-body { padding: 18px 22px; overflow-y: auto; }
.hl-modal-foot { padding: 0 22px 20px; display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- Toast ---------- */
.hl-toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: #17233b; color: #fff; padding: 10px 22px; border-radius: 10px; font-size: 14px;
  z-index: 2000; opacity: 0; transition: all .3s; box-shadow: var(--shadow);
}
.hl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hl-toast-warn { background: var(--c3); }
.hl-toast-error { background: var(--c5); }

/* ---------- 表单 ---------- */
.hl-form { display: flex; flex-direction: column; gap: 16px; }
.hl-form-row { display: flex; flex-direction: column; gap: 6px; }
.hl-form-row label { font-size: 13px; color: var(--text2); }
.hl-form-row input[type="text"], .hl-form-row input[type="password"], .hl-form-row input[type="tel"],
.hl-form-row input[type="email"], .hl-form-row input[type="number"], .hl-form-row select, .hl-form-row textarea {
  height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 14px; background: #fbfcfe; transition: border .2s;
}
.hl-form-row textarea { height: auto; padding: 10px 14px; resize: vertical; }
.hl-form-row input:focus, .hl-form-row select:focus, .hl-form-row textarea:focus { border-color: var(--c1); background: #fff; }
.hl-form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text2); }
.hl-form-check input { margin-top: 3px; accent-color: var(--c1); }
.hl-form-check a { color: var(--c1); }

/* ---------- 面包屑 ---------- */
.hl-crumb { padding: 14px 0 2px; font-size: 13px; color: var(--text2); }
.hl-crumb a:hover { color: var(--c1); }
.hl-crumb .sep { margin: 0 8px; color: #c3ccdb; }

/* ---------- 页面头 ---------- */
.hl-page-head {
  background: #fff; border-radius: var(--radius); padding: 22px 26px; margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow);
}
.hl-page-head h2 { font-size: 24px; color: #17233b; }
.hl-page-head p { color: var(--text2); margin-top: 4px; }
.hl-page-head .hl-btn { flex-shrink: 0; }

/* ---------- 商品详情 ---------- */
.hl-detail { display: flex; gap: 30px; margin-top: 18px; }
.hl-gallery { width: 400px; flex-shrink: 0; }
.hl-gallery-main {
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
  aspect-ratio: 1/1;
}
.hl-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.hl-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.hl-gallery-thumbs img {
  width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .75; transition: all .2s;
}
.hl-gallery-thumbs img.active, .hl-gallery-thumbs img:hover { border-color: var(--c1); opacity: 1; }
.hl-info { flex: 1; background: #fff; border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.hl-info h1 { font-size: 22px; color: #17233b; line-height: 1.45; margin-bottom: 12px; }
.hl-info-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hl-price-box {
  background: linear-gradient(135deg, #fff7f2, #fff); border: 1px dashed #ffd9c2; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px;
}
.hl-price-box .now { color: var(--c5); font-size: 30px; font-weight: 700; }
.hl-price-box .now::before { content: "¥"; font-size: 18px; }
.hl-price-box .old { color: #a8b2c2; text-decoration: line-through; font-size: 14px; }
.hl-price-box .sales { color: var(--text2); font-size: 13px; margin-left: auto; }
.hl-spec-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.hl-spec-label { color: var(--text2); width: 52px; flex-shrink: 0; }
.hl-spec-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-spec-opt {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px;
  background: #fff; transition: all .2s; color: var(--text);
}
.hl-spec-opt:hover { border-color: var(--c1); color: var(--c1); }
.hl-spec-opt.active { border-color: var(--c1); color: var(--c1); background: rgba(47, 123, 246, .07); }
.hl-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hl-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hl-qty button { width: 34px; height: 36px; border: none; background: #f4f7fc; cursor: pointer; font-size: 16px; color: var(--text); }
.hl-qty button:hover { background: #e6ecf5; }
.hl-qty input { width: 52px; height: 36px; border: none; text-align: center; font-size: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.hl-stock { color: var(--text2); font-size: 13px; }
.hl-info-actions { display: flex; gap: 14px; }
.hl-info-actions .hl-btn { flex: 1; height: 48px; font-size: 16px; border-radius: 10px; }
.hl-info-actions .hl-btn-line { background: #fff; }

/* 详情选项卡 */
.hl-tabs { margin-top: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hl-tabs-nav { display: flex; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.hl-tabs-nav a {
  padding: 15px 30px; font-size: 15px; color: var(--text2); border-bottom: 3px solid transparent;
  margin-bottom: -1px; transition: all .2s; cursor: pointer;
}
.hl-tabs-nav a:hover { color: var(--c1); }
.hl-tabs-nav a.active { color: var(--c1); border-bottom-color: var(--c1); font-weight: 600; }
.hl-tab-pane { display: none; padding: 24px 28px; }
.hl-tab-pane.active { display: block; }
.hl-tab-pane p { color: #374151; line-height: 1.9; margin-bottom: 12px; }
.hl-param-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hl-param-table th, .hl-param-table td { border: 1px solid var(--line); padding: 11px 16px; text-align: left; font-size: 14px; }
.hl-param-table th { width: 150px; background: #f8fafd; color: var(--text2); font-weight: 400; }
.hl-param-table td { color: var(--text); }

/* 商家卡片（详情页右侧） */
.hl-merchant-box { margin-top: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.hl-merchant-box h3 { font-size: 17px; margin-bottom: 14px; }
.hl-merchant-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hl-merchant-row p { color: var(--text2); font-size: 13px; line-height: 1.7; }
.hl-merchant-row .hl-mavatar { width: 46px; height: 46px; font-size: 18px; }
.hl-mcontact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text2); }
.hl-mcontact span b { color: var(--text); font-weight: 500; }

/* ---------- 购物车 ---------- */
.hl-cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hl-cart-table th, .hl-cart-table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.hl-cart-table th { background: #f8fafd; color: var(--text2); font-weight: 500; }
.hl-cart-table td img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.hl-cart-name { color: var(--text); }
.hl-cart-name:hover { color: var(--c1); }
.hl-cart-del { color: var(--c5); cursor: pointer; font-size: 13px; }
.hl-cart-del:hover { text-decoration: underline; }
.hl-cart-foot {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 22px;
  display: flex; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap;
}
.hl-cart-foot .hl-spacer { flex: 1; }
.hl-cart-total { font-size: 14px; color: var(--text2); }
.hl-cart-total b { color: var(--c5); font-size: 24px; }
.hl-cart-total b::before { content: "¥"; font-size: 14px; }
.hl-checkbox { width: 17px; height: 17px; accent-color: var(--c1); cursor: pointer; }

/* ---------- 登录/注册 ---------- */
.hl-auth-wrap { display: flex; justify-content: center; padding: 46px 0 20px; }
.hl-auth-card {
  width: 420px; max-width: 96%; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 34px 36px; border-top: 4px solid var(--c1);
}
.hl-auth-card h2 { font-size: 22px; margin-bottom: 4px; }
.hl-auth-card .sub { color: var(--text2); font-size: 13px; margin-bottom: 22px; }
.hl-auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text2); }
.hl-auth-switch a { color: var(--c1); }
.hl-test-tip {
  margin-top: 14px; background: #f0f7ff; border: 1px dashed var(--c1); border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: #2563ab;
}

/* ---------- 商家卡片列表 ---------- */
.hl-mgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.hl-mcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s; }
.hl-mcard:hover { box-shadow: var(--shadow-hover); }
.hl-mcard-head { display: flex; align-items: center; gap: 12px; }
.hl-mavatar {
  width: 40px; height: 40px; border-radius: 10px; color: #fff; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700;
}
.hl-mcard-name { font-size: 16px; font-weight: 600; color: #17233b; flex: 1; }
.hl-mcard-name:hover { color: var(--c1); }
.hl-mcard-cat { font-size: 12px; color: var(--c1); background: rgba(47,123,246,.1); padding: 2px 10px; border-radius: 6px; }
.hl-mcard-intro { color: var(--text2); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-mcard-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hl-mcard-prods img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.hl-mcard-link { align-self: flex-start; }

/* 商家详情页 */
.hl-shop-head { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; margin-top: 20px; display: flex; gap: 22px; align-items: flex-start; }
.hl-shop-head .hl-mavatar { width: 76px; height: 76px; font-size: 30px; border-radius: 16px; }
.hl-shop-info { flex: 1; }
.hl-shop-info h1 { font-size: 24px; margin-bottom: 8px; }
.hl-shop-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text2); font-size: 13px; margin-bottom: 12px; }
.hl-shop-meta span b { color: var(--text); font-weight: 500; }
.hl-shop-info p { color: var(--text2); line-height: 1.8; font-size: 13px; }
.hl-shop-contact { background: #f8fafd; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--text2); display: flex; flex-direction: column; gap: 6px; min-width: 250px; }
.hl-shop-contact b { color: var(--text); font-weight: 500; }

/* ---------- 入驻流程步骤 ---------- */
.hl-steps { display: flex; justify-content: space-between; margin: 26px 0 10px; position: relative; }
.hl-steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); border-radius: 2px; }
.hl-step { position: relative; text-align: center; width: 20%; }
.hl-step i {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--c1);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-style: normal;
  border: 3px solid var(--c1); box-shadow: var(--shadow); position: relative; z-index: 1; font-weight: 700;
}
.hl-step:nth-child(2) i { color: var(--c2); border-color: var(--c2); }
.hl-step:nth-child(3) i { color: var(--c3); border-color: var(--c3); }
.hl-step:nth-child(4) i { color: var(--c4); border-color: var(--c4); }
.hl-step:nth-child(5) i { color: var(--c2); border-color: var(--c2); }
.hl-step b { display: block; margin-top: 10px; font-size: 14px; }
.hl-step span { font-size: 12px; color: var(--text2); }

.hl-upload-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap;
  opacity: 0;
}
.hl-lic-preview-img { display: inline-block; cursor: pointer; line-height: 0; border-radius: 10px; }
.hl-lic-preview-img:hover img { border-color: var(--c1); }

/* 上传预览 */
.hl-upload { display: flex; align-items: center; gap: 18px; }
.hl-upload-box {
  width: 150px; height: 150px; border: 2px dashed #c3ccdb; border-radius: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text2); font-size: 12px; background: #fbfcfe; transition: all .2s; overflow: hidden; position: relative;
}
.hl-upload-box:hover, .hl-upload-box.dragover { border-color: var(--c1); color: var(--c1); background: rgba(47,123,246,.05); }
.hl-upload-box.dragover { border-style: solid; transform: scale(1.02); }
.hl-upload-box .hl-upload-sub { font-size: 11px; color: #b0bacb; }
.hl-upload-box.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff;
}
.hl-upload-box.has-img span, .hl-upload-box.has-img .hl-upload-sub { display: none; }
.hl-upload-box.has-img:hover::after {
  content: "点击更换"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.45); color: #fff; font-size: 13px;
}
.hl-upload-tip { color: var(--text2); font-size: 12px; line-height: 1.8; }
.hl-lic-preview { display: flex; align-items: flex-start; gap: 14px; }
.hl-lic-preview img {
  max-width: 320px; max-height: 220px; border: 1px solid #e6ebf3; border-radius: 10px;
  cursor: pointer; box-shadow: 0 2px 10px rgba(15,23,42,.06);
}
.hl-lic-actions { display: flex; flex-direction: column; gap: 8px; }
.hl-btn-sm { padding: 6px 14px; font-size: 13px; }
.hl-btn-danger-line { border-color: #f2b8bd; color: #e63946; background: #fff; }
.hl-btn-danger-line:hover { background: #fff3f4; border-color: #e63946; }

/* ---------- 个人中心 ---------- */
.hl-user-layout { display: flex; gap: 20px; margin-top: 20px; align-items: flex-start; }
.hl-user-side { width: 220px; flex-shrink: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hl-user-side .uinfo { padding: 22px; text-align: center; background: var(--grad); color: #fff; }
.hl-user-side .uavatar { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.25); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.hl-user-side .uname { font-size: 15px; font-weight: 600; }
.hl-user-side ul { padding: 10px 0; }
.hl-user-side ul a { display: block; padding: 11px 22px; color: var(--text); font-size: 14px; border-left: 3px solid transparent; }
.hl-user-side ul a:hover, .hl-user-side ul a.active { color: var(--c1); border-left-color: var(--c1); background: rgba(47,123,246,.05); }
.hl-user-main { flex: 1; min-width: 0; }
.hl-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin-bottom: 20px; }
.hl-panel h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hl-order-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.hl-order-head { display: flex; justify-content: space-between; color: var(--text2); font-size: 12px; margin-bottom: 10px; }
.hl-order-head b { color: var(--c2); }
.hl-order-items { display: flex; flex-direction: column; gap: 8px; }
.hl-order-line { display: flex; align-items: center; gap: 12px; }
.hl-order-line img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.hl-order-line .nm { flex: 1; font-size: 13px; }
.hl-order-line .q { color: var(--text2); font-size: 12px; }
.hl-order-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.hl-order-foot b { color: var(--c5); font-size: 16px; }
.hl-status-pill { font-size: 12px; padding: 2px 10px; border-radius: 6px; background: rgba(0,181,120,.1); color: var(--c2); }

/* ---------- 公司介绍 ---------- */
.hl-company { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; margin-top: 20px; }
.hl-company h2 { font-size: 24px; color: #17233b; margin-bottom: 16px; }
.hl-company p { color: #374151; line-height: 2; margin-bottom: 14px; }
.hl-company-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.hl-fact { text-align: center; background: linear-gradient(135deg, #f0f6ff, #fdf3ff); border-radius: 12px; padding: 20px 10px; }
.hl-fact b { font-size: 26px; color: var(--c1); display: block; }
.hl-fact:nth-child(2) b { color: var(--c2); }
.hl-fact:nth-child(3) b { color: var(--c3); }
.hl-fact:nth-child(4) b { color: var(--c4); }
.hl-fact span { color: var(--text2); font-size: 13px; }

/* ---------- 联系我们 ---------- */
.hl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.hl-contact-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.hl-contact-info h3 { font-size: 18px; margin-bottom: 18px; }
.hl-contact-line { display: flex; gap: 12px; margin-bottom: 16px; color: var(--text2); font-size: 14px; }
.hl-contact-line svg { flex-shrink: 0; color: var(--c1); }
.hl-contact-line b { color: var(--text); font-weight: 500; }
.hl-contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }

/* ---------- 空状态 ---------- */
.hl-empty { text-align: center; padding: 60px 20px; color: var(--text2); }
.hl-empty .ico { font-size: 46px; margin-bottom: 10px; }

/* ---------- 排序条 ---------- */
.hl-sortbar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 10px 16px; box-shadow: var(--shadow); margin-top: 18px; flex-wrap: wrap; }
.hl-sortbar a { padding: 6px 14px; border-radius: 7px; font-size: 13px; color: var(--text2); border: 1px solid transparent; }
.hl-sortbar a:hover { color: var(--c1); }
.hl-sortbar a.active { background: var(--c1); color: #fff; }
.hl-sortbar .total { margin-left: auto; color: var(--text2); font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hl-pgrid { grid-template-columns: repeat(3, 1fr); }
  .hl-pgrid-5 { grid-template-columns: repeat(3, 1fr); }
  .hl-mgrid { grid-template-columns: 1fr; }
  .hl-detail { flex-direction: column; }
  .hl-gallery { width: 100%; }
  .hl-contact-grid { grid-template-columns: 1fr; }
  .hl-footer-grid { grid-template-columns: 1fr 1fr; }
  .hl-cats { grid-template-columns: 1fr; }
  .hl-user-layout { flex-direction: column; }
  .hl-user-side { width: 100%; }
  .hl-company-facts { grid-template-columns: repeat(2, 1fr); }
  .hl-hero { height: 280px; }
  .hl-hero-text { left: 30px; }
  .hl-hero-text h2 { font-size: 26px; }
}
@media (max-width: 640px) {
  .hl-pgrid, .hl-pgrid-5 { grid-template-columns: repeat(2, 1fr); }
  .hl-header-row { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .hl-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hl-topbar-links { display: none; }
  .hl-nav-inner { overflow-x: auto; }
  .hl-nav-inner a { padding: 0 16px; }
  .hl-hero { height: 210px; }
  .hl-hero-text { left: 20px; right: 20px; }
  .hl-hero-text h2 { font-size: 21px; }
  .hl-hero-text p { font-size: 13px; }
  .hl-steps { flex-direction: column; gap: 18px; }
  .hl-steps::before { display: none; }
  .hl-step { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
  .hl-step b, .hl-step span { margin-top: 0; }
  .hl-cart-table { display: block; overflow-x: auto; }
}
