/* =====================================================================
   校园租卡商城 H5 - Bento Grid 便当盒网格现代设计系统
   风格: 轻盈/简约/现代/亲和/高端系统UI质感
   规范: 无实线边框、柔和渐变区分区块、轻阴影+留白、大圆角卡片
   ===================================================================== */

:root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --text-2: #86868b;
    --text-3: #aeaeb2;
    --primary: #3478f6;
    --primary-soft: #eaf2ff;
    --danger: #ff3b30;
    --success: #34c759;
    --warning: #ff9500;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --grad-blue: linear-gradient(135deg, #eef4ff 0%, #e3ecff 100%);
    --grad-green: linear-gradient(135deg, #ecfaf1 0%, #dff5e8 100%);
    --grad-purple: linear-gradient(135deg, #f4efff 0%, #ece3ff 100%);
    --grad-orange: linear-gradient(135deg, #fff4ec 0%, #ffe9db 100%);
    --grad-pink: linear-gradient(135deg, #fff0f5 0%, #ffe3ec 100%);
    --grad-gray: linear-gradient(135deg, #f6f6f8 0%, #efeff2 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

body.has-tabbar { padding-bottom: 86px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; border: none; outline: none; background: none; }

/* ---------------- 顶部返回栏 ---------------- */
.h5-header {
    display: flex; align-items: center; padding: 14px 16px; gap: 8px;
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.h5-back {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--card); box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.h5-back::before {
    content: ''; width: 9px; height: 9px;
    border-left: 2px solid var(--text); border-bottom: 2px solid var(--text);
    transform: rotate(45deg); margin-left: 3px;
}
.h5-header-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.h5-header-right { width: 36px; }

/* ---------------- 主容器 ---------------- */
.h5-page { padding: 8px 16px 24px; }
.h5-page.compact { padding-top: 0; }

/* ---------------- 卡片(Bento 基础) ---------------- */
.h5-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 14px;
}
.h5-card-flat { box-shadow: var(--shadow-sm); }

/* 渐变卡片 */
.h5-grad { box-shadow: var(--shadow-sm); }
.h5-grad-blue { background: var(--grad-blue); }
.h5-grad-green { background: var(--grad-green); }
.h5-grad-purple { background: var(--grad-purple); }
.h5-grad-orange { background: var(--grad-orange); }
.h5-grad-pink { background: var(--grad-pink); }
.h5-grad-gray { background: var(--grad-gray); }

/* ---------------- 文字层级 ---------------- */
.h5-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.h5-sub { font-size: 13px; color: var(--text-2); }
.h5-num { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.h5-price { color: var(--danger); font-weight: 800; }
.h5-price-old { color: var(--text-3); text-decoration: line-through; font-weight: 400; font-size: 13px; }
.h5-dim { color: var(--text-2); }
.h5-faint { color: var(--text-3); font-size: 12px; }

/* ---------------- 按钮 ---------------- */
.h5-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px; border-radius: 999px;
    background: #efeff1; color: var(--text); font-weight: 600; font-size: 15px;
    transition: opacity .15s, transform .1s;
}
.h5-btn:active { transform: scale(0.97); opacity: .85; }
.h5-btn-primary { background: var(--primary); color: #fff; }
.h5-btn-danger { background: var(--danger); color: #fff; }
.h5-btn-block { display: flex; width: 100%; }
.h5-btn-lg { padding: 15px 22px; font-size: 16px; }
.h5-btn-sm { padding: 8px 16px; font-size: 13px; }
.h5-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------------- 搜索框 ---------------- */
.h5-search {
    display: flex; align-items: center; gap: 8px;
    background: #e9e9ec; border-radius: 999px;
    padding: 11px 16px;
}
.h5-search svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.h5-search input { flex: 1; font-size: 15px; color: var(--text); }
.h5-search input::placeholder { color: var(--text-3); }

/* ---------------- 轮播 ---------------- */
.h5-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.h5-banner-viewport { position: relative; height: 168px; }
.h5-banner-slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 24px;
    background: var(--grad-blue);
    opacity: 0; transition: opacity .5s;
}
.h5-banner-slide.active { opacity: 1; }
.h5-banner-slide h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.h5-banner-slide p { font-size: 13px; opacity: .9; margin-top: 4px; }
.h5-banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.h5-banner-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .3s; }
.h5-banner-dot.active { width: 20px; border-radius: 4px; background: #fff; }

/* ---------------- 八宫格功能入口 ---------------- */
.h5-grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.h5-grid8-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.h5-grid8-ico {
    width: 52px; height: 52px; border-radius: 18px;
    background: var(--card);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.h5-grid8-ico svg { width: 30px; height: 30px; display: block; }
.h5-grid8-ico .h5-ico-svg { display: flex; align-items: center; justify-content: center; }
.h5-grid8-ico .h5-ico-svg svg { width: 30px; height: 30px; }
.h5-grid8-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.h5-grid8-ico .h5-ico-fallback { font-size: 22px; font-weight: 800; color: rgba(0,0,0,.35); }
.h5-grid8-text { font-size: 12px; color: var(--text); font-weight: 500; }

/* ---------------- 院校卡片 ---------------- */
.h5-school-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.h5-school-logo {
    width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-blue); overflow: hidden;
}
.h5-school-logo img { width: 100%; height: 100%; object-fit: cover; }
.h5-school-logo .ph { font-weight: 800; color: var(--primary); font-size: 22px; }
.h5-school-info { flex: 1; min-width: 0; }
.h5-school-name { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5-school-price {
    margin-top: 6px; display: flex; align-items: baseline; gap: 6px;
    flex-wrap: nowrap; white-space: nowrap; min-width: 0;
}
.h5-school-price .cur { flex-shrink: 0; }
.h5-school-price .unit { flex-shrink: 0; }
.h5-school-price .old {
    flex-shrink: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-school-price .cur { font-size: 16px; color: var(--danger); font-weight: 800; }
.h5-school-price .unit { font-size: 10px; color: var(--danger); }

/* 标签 */
.h5-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.h5-tag-hot { background: linear-gradient(135deg, #fff0f0, #ffe3e3); color: #ff3b30; }
.h5-tag-ok { background: var(--primary-soft); color: var(--primary); }
.h5-tag-warn { background: #fff4e5; color: #ff9500; }

/* ---------------- 底部 Tab ---------------- */
.h5-tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 520px;
    display: flex; z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.h5-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; }
.h5-tab-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.h5-tab-icon svg { width: 22px; height: 22px; color: var(--text-3); }
.h5-tab-text { font-size: 11px; color: var(--text-3); }
.h5-tab.active .h5-tab-icon svg { color: var(--primary); }
.h5-tab.active .h5-tab-text { color: var(--primary); font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.h5-footer { text-align: center; font-size: 12px; color: var(--text-3); padding: 18px 16px 10px; }

/* ---------------- Modal ---------------- */
.h5-modal-mask, .h5-sheet-mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
    pointer-events: none;
}
.h5-modal-mask.show, .h5-sheet-mask.show { opacity: 1; pointer-events: auto; }
.h5-modal {
    width: 82%; max-width: 340px; background: var(--card);
    border-radius: 24px; padding: 22px; text-align: center;
    transform: scale(.92); transition: transform .2s;
}
.h5-modal-mask.show .h5-modal { transform: scale(1); }
.h5-modal-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.h5-modal-body { margin-bottom: 18px; }
.h5-modal-text { font-size: 15px; color: var(--text); line-height: 1.6; }
.h5-modal-btns { display: flex; gap: 10px; }
.h5-modal-btns .h5-btn { flex: 1; }

/* ---------------- ActionSheet ---------------- */
.h5-sheet-mask { align-items: flex-end; }
.h5-sheet {
    width: 100%; max-width: 520px; margin: 0 auto;
    background: var(--card); border-radius: 24px 24px 0 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .25s;
}
.h5-sheet-mask.show .h5-sheet { transform: translateY(0); }
.h5-sheet-item {
    display: block; width: 100%; padding: 16px; text-align: center;
    font-size: 16px; border-radius: 16px; margin-bottom: 6px;
}
.h5-sheet-item:active { background: #f2f2f4; }
.h5-sheet-cancel { color: var(--text-2); font-weight: 500; }

/* ---------------- Toast ---------------- */
.h5-toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.9);
    background: rgba(229, 229, 234, 0.95); color: #333;
    padding: 12px 22px; border-radius: 999px; font-size: 14px;
    z-index: 300; opacity: 0; transition: all .25s; max-width: 80%; text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.h5-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.h5-toast-error { background: rgba(255, 59, 48, 0.92); color: #fff; }

/* ---------------- 半屏弹窗(购买) ---------------- */
.h5-popup-mask {
    position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.4);
    display: flex; align-items: flex-end; opacity: 0; transition: opacity .2s;
    pointer-events: none;
}
.h5-popup-mask.show { opacity: 1; pointer-events: auto; }
.h5-popup {
    width: 100%; max-width: 520px; margin: 0 auto;
    background: var(--card); border-radius: 24px 24px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    max-height: 86vh; overflow-y: auto;
    transform: translateY(100%); transition: transform .28s;
}
.h5-popup-mask.show .h5-popup { transform: translateY(0); }
.h5-popup-handle { width: 40px; height: 5px; border-radius: 3px; background: #e0e0e3; margin: 0 auto 16px; }

/* ---------------- 表单 ---------------- */
.h5-field { margin-bottom: 16px; }
.h5-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.h5-input {
    width: 100%; background: #f2f2f5; border-radius: 14px;
    padding: 13px 16px; font-size: 15px; color: var(--text);
}
.h5-input::placeholder { color: var(--text-3); }
.h5-textarea { min-height: 100px; resize: vertical; }
.h5-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.h5-radio {
    padding: 10px 18px; border-radius: 999px; background: #f2f2f5;
    font-size: 14px; color: var(--text); transition: all .15s;
}
.h5-radio.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------------- 列表项 ---------------- */
.h5-list-item {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}
.h5-list-item .bd { flex: 1; min-width: 0; }
.h5-list-item .tt { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5-list-item .meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.h5-arrow { color: var(--text-3); flex-shrink: 0; }
.h5-arrow svg { width: 18px; height: 18px; }

/* ---------------- 折叠面板 FAQ ---------------- */
.h5-accordion { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.h5-accordion-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; background: var(--card); font-weight: 600; cursor: pointer;
}
.h5-accordion-head .plus { width: 22px; height: 22px; color: var(--text-2); transition: transform .2s; }
.h5-accordion.open .plus { transform: rotate(45deg); }
.h5-accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s; background: var(--card); }
.h5-accordion.open .h5-accordion-body { max-height: 2000px; }
.h5-accordion-body .inner { padding: 0 16px 16px; color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ---------------- 状态徽标 ---------------- */
.h5-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.h5-badge-unpaid { background: #fff4e5; color: #ff9500; }
.h5-badge-verifying { background: var(--primary-soft); color: var(--primary); }
.h5-badge-paid { background: #e8f9ee; color: #34c759; }

/* ---------------- 富文本排版 ---------------- */
.h5-rich { font-size: 15px; color: #333; line-height: 1.8; word-break: break-word; }
.h5-rich p { margin: 0 0 10px; }
.h5-rich p:last-child { margin-bottom: 0; }
.h5-rich strong, .h5-rich b { font-weight: 700; }
.h5-rich em, .h5-rich i { font-style: italic; }
.h5-rich a { color: var(--primary); text-decoration: underline; }
.h5-rich ul, .h5-rich ol { margin: 0 0 10px; padding-left: 22px; }
.h5-rich li { margin-bottom: 4px; }
.h5-rich blockquote {
    margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--primary);
    background: #f4f6fa; border-radius: 0 10px 10px 0; color: var(--text-2);
}
.h5-rich code { background: #f2f2f5; padding: 2px 6px; border-radius: 6px; font-size: 13px; color: #d6336c; }
.h5-rich pre {
    background: #1d1d1f; color: #eee; padding: 12px 14px; border-radius: 12px;
    overflow-x: auto; margin: 0 0 10px; font-size: 13px; line-height: 1.6;
}
.h5-rich pre code { background: none; color: inherit; padding: 0; }
.h5-rich table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 14px; }
.h5-rich th, .h5-rich td { border: 1px solid #e5e5e8; padding: 8px 10px; text-align: left; }
.h5-rich th { background: #f4f6fa; font-weight: 600; }
.h5-rich img { border-radius: 14px; margin: 10px 0; max-width: 100%; height: auto; }
.h5-rich h1, .h5-rich h2, .h5-rich h3, .h5-rich h4 { margin: 16px 0 10px; font-weight: 700; line-height: 1.4; }
.h5-rich h1 { font-size: 22px; }
.h5-rich h2 { font-size: 19px; }
.h5-rich h3 { font-size: 17px; }
.h5-rich h4 { font-size: 15px; }

/* ---------------- 通用 ---------------- */
.h5-row { display: flex; align-items: center; }
.h5-between { justify-content: space-between; }
.h5-gap8 { gap: 8px; }
.h5-gap12 { gap: 12px; }
.h5-mt8 { margin-top: 8px; }
.h5-mt16 { margin-top: 16px; }
.h5-center { text-align: center; }
.h5-empty { text-align: center; padding: 40px 0; color: var(--text-3); font-size: 14px; }
.h5-loading { text-align: center; padding: 18px; color: var(--text-3); font-size: 13px; }
.h5-more-btn { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--text-2); }
.h5-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.h5-section-head .tt { font-size: 17px; font-weight: 700; }

/* 营业执照查看: 禁止缩放/长按 */
.h5-license-img { -webkit-user-select: none; user-select: none; pointer-events: none; touch-action: none; }
.h5-no-select { -webkit-user-select: none; user-select: none; }

/* ---------------- 院校详情 ---------------- */
.h5-detail-hero { height: 220px; background: var(--grad-blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.h5-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.h5-detail-hero .ph { font-size: 72px; font-weight: 800; color: rgba(52, 120, 246, .4); }

/* 底部购买栏 */
body.has-buybar { padding-bottom: 96px; }
.h5-buy-bar, .h5-submit-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 520px; z-index: 100;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}
.h5-buy-price { flex: 1; display: flex; align-items: baseline; gap: 2px; }
.h5-buy-price .cur { color: var(--danger); font-size: 26px; font-weight: 800; }
.h5-buy-price .unit { color: var(--danger); font-size: 13px; }
.h5-buy-bar .h5-btn { flex-shrink: 0; }

/* ---------------- 用户中心 ---------------- */
.h5-user-hero {
    padding: 30px 20px; text-align: center;
    color: #fff; min-height: 160px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.h5-user-hero-grad {
    background: linear-gradient(135deg, #4a80f0 0%, #7a5cf0 55%, #a05cf0 100%);
}
.h5-user-avatar {
    width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.h5-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.h5-user-name { font-size: 18px; font-weight: 700; }
.h5-user-sig { font-size: 13px; opacity: .9; margin-top: 4px; }

/* e签宝 Logo */
.h5-esign-logo {
    width: 200px; height: 80px; margin: 0 auto; border-radius: 18px;
    background: var(--grad-blue); display: flex; align-items: center; justify-content: center;
    overflow: hidden; font-size: 26px; font-weight: 800; color: var(--primary);
}
.h5-esign-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- 热门院校横版两列图片卡片 ---------------- */
.h5-hot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.h5-hot-card {
    position: relative; display: block; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3;
    background: var(--grad-blue);
}
.h5-hot-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.h5-hot-card .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: rgba(52, 120, 246, .4); }
.h5-hot-card .tag {
    position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff;
    padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; z-index: 2;
}
.h5-hot-card .name-wrap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%); z-index: 1;
}
.h5-hot-card .name { color: #fff; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 商品分类页(左右两栏) ---------------- */
.h5-cate-page {
    height: calc(100vh - 72px - env(safe-area-inset-bottom));
    display: flex; flex-direction: column;
    padding: 0; overflow: hidden;
}
body.h5-cate-mode { padding-bottom: 0; }
.h5-cate-search { padding: 12px 16px; flex-shrink: 0; }
.h5-cate-body { flex: 1; display: flex; overflow: hidden; }
.h5-cate-left { width: 96px; flex-shrink: 0; overflow-y: auto; background: #f0f0f2; }
.h5-cate-left-item {
    padding: 15px 10px; text-align: center; font-size: 13px; color: var(--text-2);
    cursor: pointer; position: relative;
}
.h5-cate-left-item.active { background: var(--card); color: var(--primary); font-weight: 700; }
.h5-cate-left-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; border-radius: 2px; background: var(--primary);
}
.h5-cate-right { flex: 1; overflow-y: auto; padding: 12px; }
.h5-cate-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--card); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.h5-cate-item-logo {
    width: 42px; height: 42px; border-radius: 12px; background: var(--grad-blue);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    color: var(--primary); overflow: hidden; flex-shrink: 0;
}
.h5-cate-item-logo img { width: 100%; height: 100%; object-fit: cover; }
.h5-cate-item-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 查询订单顶部图标 ---------------- */
.h5-order-hero { text-align: center; padding: 52px 0 24px; }
.h5-order-icon {
    width: 104px; height: 104px; border-radius: 32px; margin: 0 auto;
    background: var(--grad-blue); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}
.h5-order-icon svg { width: 56px; height: 56px; color: var(--primary); }
.h5-order-title { margin-top: 16px; font-size: 22px; font-weight: 800; }
.h5-order-hero .h5-sub { margin-top: 6px; font-size: 14px; }

/* ---------------- 文章列表(公众号风格) ---------------- */
.h5-article-list { padding: 0; }
.h5-article-item {
    display: block; padding: 18px 16px; background: var(--card);
    position: relative;
}
.h5-article-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.h5-article-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.h5-article-cover {
    width: 100%; height: 180px; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg); margin-bottom: 12px;
}
.h5-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-article-body { padding: 0 2px; }
.h5-article-title {
    font-size: 17px; font-weight: 700; color: var(--text);
    line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.h5-article-meta { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.h5-article-divider {
    height: 1px; background: #e8e8ed; margin: 0 -16px;
    position: relative; top: 18px;
}

/* ---------------- 彩色标签(企业信息) ---------------- */
.h5-tag-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.h5-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; font-size: 13px;
    font-weight: 500; line-height: 1.4;
}
.h5-tag-label { color: var(--text-2); font-weight: 400; }
.h5-tag-value { font-weight: 600; }
.h5-tag-blue { background: var(--grad-blue); color: var(--primary); }
.h5-tag-green { background: var(--grad-green); color: #34c759; }
.h5-tag-purple { background: var(--grad-purple); color: #8b5cf6; }
.h5-tag-orange { background: var(--grad-orange); color: var(--warning); }
.h5-tag-pink { background: var(--grad-pink); color: #e74c8b; }

/* =====================================================================
   重构样式: 列表页/搜索页/详情页 增强
   ===================================================================== */

/* ---------------- 院校列表页(右栏卡片增强) ---------------- */
.h5-cate-left-ico { display: inline-flex; vertical-align: -3px; width: 15px; height: 15px; margin-right: 5px; }
.h5-cate-left-ico svg { width: 14px; height: 14px; }
.h5-cate-left-item.active .h5-cate-left-ico svg { color: var(--primary); }

.h5-cate-item {
    align-items: center; padding: 13px;
}
.h5-cate-item-left {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.h5-cate-item-hot {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 10.5px; font-weight: 700; color: #ff5f00;
    background: linear-gradient(135deg, #fff4ec, #ffe9db);
    padding: 2px 8px; border-radius: 999px;
}
.h5-cate-item-hot svg { width: 11px; height: 11px; }
.h5-cate-item-logo {
    width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px;
    background: var(--grad-blue); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px; overflow: hidden;
}
.h5-cate-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h5-cate-item-name {
    display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-cate-item-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.h5-cate-item-brief {
    font-size: 12px; color: var(--text-3); margin-top: 7px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-cate-item-price {
    display: flex; align-items: baseline; margin-top: 7px;
    flex-wrap: nowrap; white-space: nowrap; min-width: 0;
}
.h5-cate-item-price .cur {
    color: var(--danger); font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.h5-cate-item-price .unit { color: var(--danger); font-size: 10px; margin-left: 1px; flex-shrink: 0; }
.h5-cate-item-price .old {
    font-size: 10px; color: var(--text-3); text-decoration: line-through;
    margin-left: 5px; flex-shrink: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 彩色胶囊徽标 chip */
.h5-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
    line-height: 1.4; flex-shrink: 0;
}
.h5-chip i { display: inline-flex; }
.h5-chip svg { width: 12px; height: 12px; }
.h5-chip-hot { background: linear-gradient(135deg, #fff0f0, #ffe3e3); color: #ff3b30; }
.h5-chip-blue { background: var(--primary-soft); color: var(--primary); }
.h5-chip-green { background: #e8f9ee; color: #34c759; }
.h5-chip-orange { background: #fff4e5; color: #ff9500; }
.h5-chip-gray { background: #f2f2f5; color: var(--text-2); }
.h5-chip-purple { background: var(--grad-purple); color: #8b5cf6; }

/* 描边标签(985/211/双一流,无图标) */
.h5-chip-o { border: 1px solid; }
.h5-chip-o-red { background: #fff5f5; border-color: #ffd0d0; color: #ff3b30; }
.h5-chip-o-blue { background: #f4f8ff; border-color: #cfe0ff; color: #3478f6; }
.h5-chip-o-purple { background: #f8f4ff; border-color: #e2d4ff; color: #8b5cf6; }
.h5-chip-o-green { background: #f0faf3; border-color: #cdeedd; color: #0fb56b; }

/* ---------------- 搜索页 ---------------- */
.h5-result-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-2); margin: 0 16px 12px;
    padding: 10px 14px; background: var(--card); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.h5-result-head b { color: var(--primary); font-weight: 800; }
.h5-result-ico { display: inline-flex; color: var(--primary); }
.h5-result-ico svg { width: 16px; height: 16px; }
.h5-search-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    width: calc(100% - 32px); margin: 0 auto 12px;
}
.h5-search-card .h5-cate-item-chips { margin-top: 5px; }
.h5-search-card .h5-school-name { display: flex; align-items: center; gap: 5px; }
.h5-search-card .h5-school-price { margin-top: 6px; display: flex; align-items: baseline; }

/* ---------------- 空状态 ---------------- */
.h5-empty-ico {
    width: 64px; height: 64px; border-radius: 22px; margin: 0 auto 14px;
    background: var(--grad-gray); display: flex; align-items: center; justify-content: center;
    color: var(--text-3);
}
.h5-empty-ico svg { width: 30px; height: 30px; }
.h5-empty-tt { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.h5-empty-tip { font-size: 13px; color: var(--text-3); }

/* ---------------- 院校详情页 ---------------- */
.h5-detail-hero { position: relative; height: 210px; background: var(--grad-blue); overflow: hidden; }
.h5-detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-detail-hero .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.h5-detail-hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28) 100%);
    pointer-events: none;
}
.h5-detail-pricecard { margin-top: -18px; position: relative; z-index: 2; padding: 18px; }
.h5-detail-tags { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; margin-left: 10px; }
.h5-detail-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.h5-detail-tag svg { width: 12px; height: 12px; }
.h5-detail-tag-hot { background: linear-gradient(135deg, #fff4ec, #ffe9db); color: #ff5f00; }
.h5-detail-tag-blue { background: var(--primary-soft); color: var(--primary); }
.h5-detail-tag-green { background: #f0faf3; color: #0fb56b; }

/* 信息条(地区/押金/时长) */
.h5-detail-facts {
    display: flex; margin: 16px -18px -18px; padding: 14px 18px;
    background: #f7f8fa; border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.h5-detail-fact { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.h5-detail-fact + .h5-detail-fact { border-left: 1px solid #e9eaee; padding-left: 12px; margin-left: 12px; }
.h5-detail-fact-ico {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.h5-detail-fact-ico svg { width: 17px; height: 17px; }
.h5-ico-pin { background: var(--grad-blue); color: var(--primary); }
.h5-ico-coin { background: var(--grad-orange); color: var(--warning); }
.h5-ico-clock { background: var(--grad-purple); color: #8b5cf6; }
.h5-detail-fact .k { font-size: 11px; color: var(--text-3); }
.h5-detail-fact .v { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 服务保障四宫格 */
.h5-guarantee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.h5-guarantee-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-2);
}
.h5-guarantee-ico {
    width: 44px; height: 44px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
}
.h5-guarantee-ico svg { width: 22px; height: 22px; }

/* ---------------- 数值计数器(租卡时长) ---------------- */
.h5-counter {
    display: flex; align-items: center; justify-content: space-between;
    background: #f2f2f5; border-radius: 16px; padding: 6px;
    max-width: 260px;
}
.h5-counter-btn {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: var(--card); color: var(--text); font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); transition: transform .1s;
}
.h5-counter-btn:active { transform: scale(.94); }
.h5-counter-btn:disabled, .h5-counter-btn.disabled { opacity: .35; }
.h5-counter-btn svg { width: 18px; height: 18px; }
.h5-counter-val {
    flex: 1; text-align: center; font-size: 16px; font-weight: 700; color: var(--text);
}
