/* ============================================================
   yjg111.com — 昊予宝科技重庆有限公司
   通用页面组件（面板 / 表单 / 按钮 / 表格 / 认证页 / 结果页 / 单页正文 / 商家卡）
   供登录注册、下单支付、会员中心、商家列表等页面复用。命名空间 hy_
   ============================================================ */

/* ---------- 面板 ---------- */
.hy_panel {
    background: var(--zh-bg-card);
    border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow-sm);
    padding: 26px 28px;
    margin-bottom: 20px;
}
.hy_panel_hd {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding-bottom: 16px; margin-bottom: 20px;
    border-bottom: 1px solid var(--zh-border);
}
.hy_panel_hd h3 {
    margin: 0; font-size: 18px; font-weight: 700; color: var(--zh-text-primary);
    display: flex; align-items: center; gap: 9px;
}
.hy_panel_hd h3 > i { color: var(--zh-primary); font-size: 16px; }
.hy_panel_hd h3 em {
    font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
    background: var(--zh-primary); border-radius: var(--zh-radius-pill); padding: 2px 9px;
}
.hy_panel_sub { margin: -8px 0 20px; font-size: 13px; color: var(--zh-text-tertiary); }
.hy_panel_tight { padding: 20px 22px; }

/* ---------- 表单 ---------- */
.hy_form_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.hy_form_grid.one { grid-template-columns: 1fr; }
.hy_form_grid.three { grid-template-columns: repeat(3, 1fr); }
.hy_fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hy_fld.full { grid-column: 1 / -1; }
.hy_fld > label { font-size: 13.5px; font-weight: 600; color: var(--zh-text-secondary); }
.hy_fld > label .req { color: var(--zh-error); margin-left: 3px; }

.hy_in, .hy_ta, .hy_sel {
    width: 100%; height: 44px; padding: 0 14px;
    font-family: inherit; font-size: 14px; color: var(--zh-text-primary);
    background: var(--zh-bg-light);
    border: 1.5px solid transparent; border-radius: var(--zh-radius-sm);
    outline: none; transition: background .2s, border-color .2s, box-shadow .2s;
}
.hy_ta { height: auto; padding: 12px 14px; line-height: 1.75; resize: vertical; }
.hy_in:focus, .hy_ta:focus, .hy_sel:focus {
    background: #fff; border-color: var(--zh-primary);
    box-shadow: 0 0 0 3px var(--zh-primary-glow);
}
.hy_in::placeholder, .hy_ta::placeholder { color: var(--zh-text-disabled); }
.hy_in:disabled, .hy_in[readonly] { color: var(--zh-text-tertiary); cursor: not-allowed; }
.hy_hint { font-size: 12px; color: var(--zh-text-tertiary); }
.hy_ingrp { display: flex; gap: 10px; align-items: stretch; }
.hy_ingrp > .hy_in { flex: 1; min-width: 0; }
.hy_ingrp > img { height: 44px; border-radius: var(--zh-radius-sm); cursor: pointer; flex: none; }

.hy_check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--zh-text-secondary); cursor: pointer; }
.hy_check input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--zh-primary); cursor: pointer; }
.hy_check a { color: var(--zh-primary); font-weight: 600; }

.hy_form_split {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
    margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--zh-text-secondary);
}
.hy_form_split::after { content: ""; flex: 1; height: 1px; background: var(--zh-border); }

/* ---------- 按钮 ---------- */
.hy_btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 42px; padding: 0 24px;
    border: 0; cursor: pointer; font-family: inherit;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    border-radius: var(--zh-radius-pill); transition: all .2s;
}
.hy_btn_p { background: var(--zh-primary); color: #fff; }
.hy_btn_p:hover { background: var(--zh-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px var(--zh-primary-glow); }
.hy_btn_a { background: var(--zh-accent); color: #fff; }
.hy_btn_a:hover { background: var(--zh-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,106,61,.32); }
.hy_btn_o { background: #fff; color: var(--zh-text-secondary); border: 1.5px solid var(--zh-border); }
.hy_btn_o:hover { border-color: var(--zh-primary); color: var(--zh-primary); }
.hy_btn_d { background: #fff; color: var(--zh-error); border: 1.5px solid #F5CFCC; }
.hy_btn_d:hover { background: var(--zh-error); color: #fff; border-color: var(--zh-error); }
.hy_btn_sm { height: 32px; padding: 0 14px; font-size: 12.5px; gap: 5px; }
.hy_btn_lg { height: 50px; padding: 0 34px; font-size: 15.5px; }
.hy_btn_block { width: 100%; }
.hy_btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.hy_btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hy_btns form { display: inline-flex; }

/* ---------- 表格 ---------- */
.hy_tbl_wrap { overflow-x: auto; }
.hy_tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.hy_tbl th {
    padding: 12px 14px; text-align: left; white-space: nowrap;
    font-size: 12.5px; font-weight: 600; color: var(--zh-text-tertiary);
    background: var(--zh-bg-light);
}
.hy_tbl th:first-child { border-radius: var(--zh-radius-sm) 0 0 var(--zh-radius-sm); }
.hy_tbl th:last-child { border-radius: 0 var(--zh-radius-sm) var(--zh-radius-sm) 0; }
.hy_tbl td { padding: 14px; border-bottom: 1px solid var(--zh-border); color: var(--zh-text-secondary); vertical-align: middle; }
.hy_tbl tbody tr:last-child td { border-bottom: 0; }
.hy_tbl tfoot td { border-bottom: 0; padding-top: 16px; }
.hy_tbl .num { text-align: right; }
.hy_tbl .price { color: var(--zh-price); font-weight: 700; }
.hy_tbl .price_lg { color: var(--zh-price); font-weight: 800; font-size: 18px; }
.hy_goods { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.hy_goods img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: var(--zh-radius-sm); background: var(--zh-bg-light); }
.hy_goods span, .hy_goods a { color: var(--zh-text-primary); line-height: 1.6; }
.hy_goods a:hover { color: var(--zh-primary); }

/* ---------- 键值信息行 ---------- */
.hy_kvs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.hy_kvs.one { grid-template-columns: 1fr; }
.hy_kv_row { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.8; }
.hy_kv_row > b { flex: none; min-width: 62px; font-weight: 600; color: var(--zh-text-tertiary); }
.hy_kv_row > span { color: var(--zh-text-primary); word-break: break-all; }

/* ---------- 标签 ---------- */
.hy_pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; font-size: 12px; font-weight: 600;
    border-radius: var(--zh-radius-pill);
    background: var(--zh-primary-light); color: var(--zh-primary);
}
.hy_pill.warn { background: #FFF6E8; color: #B54708; }
.hy_pill.ok { background: #ECFDF3; color: #05603A; }
.hy_pill.info { background: var(--zh-primary-light); color: var(--zh-primary); }
.hy_pill.gray { background: var(--zh-bg-muted); color: var(--zh-text-muted); }
.hy_pill.accent { background: #FFF1EC; color: var(--zh-accent-dark); }

/* ---------- 认证页 ---------- */
.hy_auth { max-width: 452px; margin: 34px auto 10px; }
.hy_auth_hd { text-align: center; margin-bottom: 24px; }
.hy_auth_hd h1 { margin: 0 0 7px; font-size: 24px; font-weight: 800; color: var(--zh-text-primary); }
.hy_auth_hd p { margin: 0; font-size: 13px; color: var(--zh-text-tertiary); }
.hy_auth_foot { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--zh-text-tertiary); }
.hy_auth_foot a { color: var(--zh-primary); font-weight: 600; }
.hy_auth_tip { margin-top: 14px; text-align: center; font-size: 12px; color: var(--zh-text-tertiary); line-height: 1.9; }
.hy_auth_tip a { color: var(--zh-text-muted); text-decoration: underline; }
.hy_auth_tip a:hover { color: var(--zh-primary); }

/* ---------- 错误提示 ---------- */
.hy_errs {
    background: #FEF3F2; border-left: 3px solid var(--zh-error);
    border-radius: var(--zh-radius-sm); padding: 12px 16px; margin-bottom: 18px;
    font-size: 13.5px; line-height: 1.8; color: #912018;
}

/* ---------- 提示条 ---------- */
.hy_note {
    display: flex; gap: 11px; padding: 15px 18px; margin-bottom: 20px;
    background: var(--zh-primary-light); border-radius: var(--zh-radius-md);
    font-size: 13px; line-height: 1.95; color: var(--zh-text-secondary);
}
.hy_note > i { color: var(--zh-primary); margin-top: 5px; flex: none; }
.hy_note b { color: var(--zh-text-primary); }

/* ---------- 空状态 ---------- */
.hy_empty { text-align: center; padding: 56px 20px; }
.hy_empty > i { display: block; font-size: 44px; color: var(--zh-text-disabled); margin-bottom: 14px; }
.hy_empty h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--zh-text-secondary); }
.hy_empty p { margin: 0 0 18px; font-size: 13px; color: var(--zh-text-tertiary); }

/* ---------- 结果页 ---------- */
.hy_result { max-width: 580px; margin: 38px auto 14px; text-align: center; }
.hy_result_ico {
    width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 36px;
    background: #ECFDF3; color: var(--zh-success);
}
.hy_result h1 { margin: 0 0 10px; font-size: 23px; font-weight: 800; color: var(--zh-text-primary); }
.hy_result > p { margin: 0 auto 10px; max-width: 460px; font-size: 14px; line-height: 1.95; color: var(--zh-text-muted); }
.hy_result_steps {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin: 22px 0 6px;
}
.hy_result_steps span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 15px; font-size: 12.5px; color: var(--zh-text-muted);
    background: var(--zh-bg-light); border-radius: var(--zh-radius-pill);
}
.hy_result_steps i { color: var(--zh-primary); }

/* ---------- 单页正文 ---------- */
.hy_article_hd { padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--zh-border); }
.hy_article_hd h1 { margin: 0 0 9px; font-size: 26px; font-weight: 800; color: var(--zh-text-primary); }
.hy_article_hd .meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--zh-text-tertiary); }
.hy_article_hd .meta i { margin-right: 5px; color: var(--zh-primary); }
.hy_article_body { font-size: 14.5px; line-height: 2.1; color: var(--zh-text-secondary); }
.hy_article_body p { margin: 0 0 15px; }
.hy_article_body h2 { margin: 30px 0 13px; font-size: 17px; font-weight: 700; color: var(--zh-text-primary); padding-left: 11px; border-left: 4px solid var(--zh-primary); }
.hy_article_body h3, .hy_article_body h4 { margin: 24px 0 10px; font-size: 15.5px; font-weight: 700; color: var(--zh-text-primary); }
.hy_article_body strong { color: var(--zh-text-primary); font-weight: 700; }
.hy_article_body a { color: var(--zh-primary); }
.hy_article_body img { border-radius: var(--zh-radius-md); }
.hy_article_body ul, .hy_article_body ol { margin: 0 0 15px; padding-left: 24px; }
.hy_article_body li { margin-bottom: 7px; list-style: disc; }
.hy_article_body ol > li { list-style: decimal; }
.hy_article_body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13.5px; }
.hy_article_body th, .hy_article_body td { border: 1px solid var(--zh-border); padding: 9px 12px; }
.hy_article_body th { background: var(--zh-bg-light); }

/* ---------- 商家列表 / 商家详情 ---------- */
.hy_mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hy_mcard {
    display: flex; flex-direction: column; gap: 14px;
    padding: 20px; background: var(--zh-bg-card);
    border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg);
    transition: all .2s;
}
.hy_mcard:hover { border-color: var(--zh-primary); transform: translateY(-3px); box-shadow: var(--zh-shadow-md); }
.hy_mcard_top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hy_mcard_top img {
    width: 56px; height: 56px; flex: none; object-fit: cover;
    border-radius: var(--zh-radius-full); border: 2px solid var(--zh-bg-light); background: #fff;
}
.hy_mcard_top h4 {
    margin: 0 0 5px; font-size: 15.5px; font-weight: 700; color: var(--zh-text-primary);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hy_mcard_desc {
    margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--zh-text-tertiary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hy_mcard_foot {
    margin-top: auto; padding-top: 13px; border-top: 1px dashed var(--zh-border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hy_mcard_foot .tel { font-size: 12.5px; color: var(--zh-text-muted); }
.hy_mcard_foot .tel i { color: var(--zh-primary); margin-right: 5px; }

.hy_mhead { display: flex; align-items: flex-start; gap: 24px; }
.hy_mhead_ava {
    width: 104px; height: 104px; flex: none; object-fit: cover;
    border-radius: var(--zh-radius-full); border: 3px solid var(--zh-bg-light); background: #fff;
}
.hy_mhead_main { flex: 1; min-width: 0; }
.hy_mhead_main h1 { margin: 0 0 14px; font-size: 24px; font-weight: 800; color: var(--zh-text-primary); }
.hy_mstats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hy_mstat {
    padding: 11px 22px; background: var(--zh-bg-light);
    border-radius: var(--zh-radius-md); text-align: center; min-width: 96px;
}
.hy_mstat b { display: block; font-size: 21px; font-weight: 800; color: var(--zh-primary); line-height: 1.2; }
.hy_mstat.alt b { color: var(--zh-accent); }
.hy_mstat span { font-size: 12px; color: var(--zh-text-tertiary); }

/* ---------- 地址卡 ---------- */
.hy_addr {
    padding: 16px 18px; background: var(--zh-bg-card);
    border: 1.5px solid var(--zh-border); border-radius: var(--zh-radius-md);
    margin-bottom: 12px; transition: all .2s;
}
.hy_addr_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hy_addr_who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--zh-text-primary); }
.hy_addr_who b { font-weight: 700; }
.hy_addr p { margin: 9px 0 0; font-size: 13px; color: var(--zh-text-muted); line-height: 1.8; }
.hy_addr_pick { cursor: pointer; position: relative; }
.hy_addr_pick:hover { border-color: var(--zh-primary); }
.hy_addr_pick.on { border-color: var(--zh-primary); background: var(--zh-primary-light); }
.hy_addr_pick.on::after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; right: 0; bottom: 0;
    width: 26px; height: 26px; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--zh-primary);
    border-radius: var(--zh-radius-md) 0 var(--zh-radius-sm) 0;
}

/* ---------- 结算总计条 ---------- */
.hy_sumbar {
    display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex-wrap: wrap;
    padding: 20px 28px; background: var(--zh-bg-card);
    border-radius: var(--zh-radius-lg); box-shadow: var(--zh-shadow-sm);
}
.hy_sumbar_total { font-size: 14px; color: var(--zh-text-secondary); }
.hy_sumbar_total b { font-size: 28px; font-weight: 800; color: var(--zh-price); margin-left: 8px; }

/* ---------- 支付页 ---------- */
.hy_pay { max-width: 520px; margin: 24px auto 8px; }
.hy_pay_amt {
    text-align: center; padding: 26px 20px; margin-bottom: 22px;
    background: linear-gradient(140deg, var(--zh-primary-light), #fff);
    border-radius: var(--zh-radius-lg);
}
.hy_pay_amt small { display: block; font-size: 13px; color: var(--zh-text-tertiary); margin-bottom: 6px; }
.hy_pay_amt b { font-size: 38px; font-weight: 800; color: var(--zh-price); }
.hy_pay_list { display: flex; flex-direction: column; gap: 12px; }
.hy_pay_item {
    display: flex; align-items: center; gap: 13px;
    padding: 16px 20px; border: 1.5px solid var(--zh-border);
    border-radius: var(--zh-radius-md); font-size: 15px; font-weight: 600;
    color: var(--zh-text-primary); transition: all .2s;
}
.hy_pay_item i { font-size: 24px; color: #1677FF; }
.hy_pay_item .go { margin-left: auto; color: var(--zh-text-disabled); font-size: 14px; }
.hy_pay_item:hover { border-color: var(--zh-primary); background: var(--zh-primary-light); color: var(--zh-primary); }
.hy_pay_item:hover .go { color: var(--zh-primary); }

/* ---------- 商品网格 / 商品卡（首页、商家页共用） ---------- */
.hy_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hy_grid_3 { grid-template-columns: repeat(3, 1fr); }
.hy_grid_5 { grid-template-columns: repeat(5, 1fr); }

.hy_pcard {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow-sm);
    transition: transform .22s, box-shadow .22s;
}
.hy_pcard:hover { transform: translateY(-5px); box-shadow: var(--zh-shadow-hover); }
.hy_pcard_img { position: relative; aspect-ratio: 1/1; background: var(--zh-bg-light); overflow: hidden; }
.hy_pcard_img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hy_pcard:hover .hy_pcard_img img { transform: scale(1.06); }
.hy_tag {
    position: absolute; right: 10px; top: 10px;
    padding: 4px 10px; font-size: 11px; font-weight: 700; color: #fff;
    border-radius: var(--zh-radius-pill);
}
.hy_tag.new { background: var(--zh-primary); }
.hy_tag.hot { background: var(--zh-accent); }

.hy_pcard_body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; }
.hy_pcard_body h3 {
    margin: 0 0 10px; font-size: 13.5px; font-weight: 500; line-height: 1.6;
    color: var(--zh-text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 43px;
}
.hy_pcard_foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hy_pcard_price span { font-size: 18px; font-weight: 800; color: var(--zh-price); }
.hy_pcard_price del { margin-left: 5px; font-size: 11.5px; color: var(--zh-text-disabled); }
.hy_pcard_foot em { font-size: 11.5px; font-style: normal; color: var(--zh-text-tertiary); white-space: nowrap; }


/* ---------- 信息卡片（首页、商家页共用） ---------- */
.hy_infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hy_info {
    display: flex; gap: 13px; padding: 14px;
    background: #fff; border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow-sm); transition: all .2s;
}
.hy_info:hover { transform: translateY(-3px); box-shadow: var(--zh-shadow-md); }
.hy_info_img { width: 84px; height: 84px; flex: none; border-radius: var(--zh-radius-md); overflow: hidden; background: var(--zh-bg-light); }
.hy_info_img img { width: 100%; height: 100%; object-fit: cover; }
.hy_info_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hy_info_txt h4 {
    margin: 0 0 8px; font-size: 13.5px; font-weight: 600; line-height: 1.55; color: var(--zh-text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hy_info_meta { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--zh-text-tertiary); }
.hy_info_meta i { width: 13px; margin-right: 5px; color: var(--zh-primary); }
.hy_info_meta .tel { color: var(--zh-accent); font-weight: 600; }
.hy_info_meta .tel i { color: var(--zh-accent); }


/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .hy_grid { grid-template-columns: repeat(3, 1fr); }
    .hy_grid_5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .hy_infos { grid-template-columns: 1fr 1fr; }
    .hy_mgrid { grid-template-columns: repeat(2, 1fr); }
    .hy_form_grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hy_panel { padding: 20px 18px; }
    .hy_form_grid, .hy_form_grid.three { grid-template-columns: 1fr; }
    .hy_kvs { grid-template-columns: 1fr; }
    .hy_mgrid { grid-template-columns: 1fr; }
    .hy_mhead { flex-direction: column; align-items: center; text-align: center; }
    .hy_mhead_main h1 { font-size: 20px; }
    .hy_mstats { justify-content: center; }
    .hy_sumbar { justify-content: space-between; padding: 16px 18px; }
    .hy_sumbar_total b { font-size: 23px; }
    .hy_article_hd h1 { font-size: 21px; }
    .hy_auth { margin-top: 20px; }
}
@media (max-width: 576px) {
    .hy_grid, .hy_grid_3, .hy_grid_5 { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .hy_infos { grid-template-columns: 1fr; }
}
