/* 聚惠台 H5 · 小程序风格样式 */
:root {
    --jt-brand: #e11d48;
    --jt-brand-soft: #fff1f2;
    --jt-brand-deep: #be123c;
    --jt-ink: #1f2937;
    --jt-muted: #6b7280;
    --jt-line: #eef0f3;
    --jt-bg: #f4f5f7;
    --jt-card: #ffffff;
    --jt-ok: #059669;
    --jt-warn: #d97706;
}

/* 让业务面板铺满，隐藏框架自带底部导航，由业务自身的 tabbar 接管 */
.member-pages > .card[data-panel="juhuitai"] {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
body[data-channel="h5"] .app.h5 { padding-bottom: 0 !important; }
body[data-channel="h5"] .app.h5 .tabbar { display: none !important; }
/* 品牌、标题、登录入口统一由 jt-topbar 承担，隐藏框架重复层 */
body[data-channel="h5"] .app.h5 > .topbar { display: none !important; }
body[data-channel="h5"] .app.h5 .member-pages > .card[data-panel="juhuitai"] > h2 { display: none !important; }
body[data-channel="h5"] .app.h5 [data-panel="juhuitai"] { display: block !important; }
body[data-channel="h5"] .app.h5 > .layout > .hero,
body[data-channel="h5"] .app.h5 > .layout > section[data-panel="mine"],
body[data-channel="h5"] .app.h5 #home-guest-card,
body[data-channel="h5"] .app.h5 > .member-pages > .card:not([data-panel="juhuitai"]) { display: none !important; }

.jt-app {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--jt-ink);
    background: var(--jt-bg);
    min-height: 100vh;
    padding-bottom: 64px;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}
.jt-app * { box-sizing: border-box; }
.jt-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(120deg, #fb7185, var(--jt-brand));
}
.jt-topbar .jt-back {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}
.jt-topbar .jt-title { flex: 1; font-size: 16px; font-weight: 700; }
.jt-topbar .jt-account-mini { font-size: 12px; opacity: .95; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

.jt-view { padding: 16px 14px 28px; }
.jt-searchbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.jt-searchbar input {
    flex: 1;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--jt-line);
    border-radius: 19px;
    background: #fff;
    font-size: 13px;
}
.jt-searchbar button {
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 19px;
    color: #fff;
    background: var(--jt-brand);
    font-size: 13px;
    cursor: pointer;
}

.jt-hero {
    position: relative;
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 16px;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, var(--jt-brand) 60%, var(--jt-brand-deep));
    overflow: hidden;
}
.jt-hero h1 { margin: 0; font-size: 20px; }
.jt-hero p { margin: 10px 0 0; font-size: 12px; opacity: .92; line-height: 1.7; }

.jt-grid-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    margin: 16px 0 20px;
}
.jt-grid-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 2px;
    color: var(--jt-ink);
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-size: 12px;
}
.jt-grid-menu .jt-ico {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #fb7185, var(--jt-brand));
}

.jt-card {
    background: var(--jt-card);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}
.jt-card h3 { margin: 0 0 12px; font-size: 15px; }
.jt-card h3 small { font-weight: 400; color: var(--jt-muted); font-size: 11px; margin-left: 6px; }
.jt-sub { color: var(--jt-muted); font-size: 12px; line-height: 1.7; margin: 0; }
.jt-hint { color: var(--jt-muted); font-size: 12px; line-height: 1.7; }
.jt-empty { color: var(--jt-muted); font-size: 13px; text-align: center; padding: 22px 8px; }

.jt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--jt-line);
}
.jt-row:last-child { border-bottom: 0; }
.jt-row-main { flex: 1; min-width: 0; }
.jt-title-line { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.jt-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--jt-brand-soft);
    color: var(--jt-brand-deep);
    font-size: 10px;
    white-space: nowrap;
}
.jt-tag.gray { background: #f3f4f6; color: var(--jt-muted); }
.jt-tag.ok { background: #ecfdf5; color: var(--jt-ok); }
.jt-tag.warn { background: #fffbeb; color: var(--jt-warn); }
.jt-price { color: var(--jt-brand); font-weight: 700; }
.jt-price del { color: var(--jt-muted); font-weight: 400; font-size: 11px; margin-left: 4px; }

.jt-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 15px;
    color: #fff;
    background: var(--jt-brand);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.jt-btn:disabled { opacity: .5; cursor: not-allowed; }
.jt-btn.ghost { background: #f3f4f6; color: var(--jt-ink); }
.jt-btn.line { background: #fff; color: var(--jt-brand); border: 1px solid var(--jt-brand); }
.jt-btn.block { display: block; width: 100%; padding: 12px; font-size: 14px; }
.jt-btn.sm { padding: 5px 10px; font-size: 11px; }

.jt-form label { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--jt-muted); }
.jt-input, .jt-select, .jt-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jt-line);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: var(--jt-ink);
}
.jt-textarea { min-height: 80px; resize: vertical; }
.jt-region-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jt-region-row .jt-select { padding: 9px 6px; font-size: 12px; }
.jt-form label.jt-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
    font-size: 12px;
    color: var(--jt-ink);
    cursor: pointer;
}
.jt-checkbox {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    accent-color: var(--jt-brand);
    cursor: pointer;
}
.jt-checkbox:focus { outline: none; }
.jt-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.jt-inline > * { flex: 1 1 40%; }

.jt-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.jt-tabs button {
    border: 1px solid var(--jt-line);
    background: #fff;
    color: var(--jt-muted);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.jt-tabs button.on { border-color: var(--jt-brand); color: var(--jt-brand); background: var(--jt-brand-soft); }

.jt-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.jt-product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.jt-product .jt-cover {
    height: 108px;
    background: linear-gradient(135deg, #fecdd3, #fda4af);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
}
.jt-product .jt-cover img { width: 100%; height: 100%; object-fit: cover; }
.jt-product .jt-info { padding: 11px 10px; }
.jt-product .jt-name { font-size: 13px; line-height: 1.4; min-height: 36px; }
.jt-product .jt-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.jt-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--jt-brand);
}
.jt-carousel-track {
    display: flex;
    transition: transform .38s ease;
    will-change: transform;
}
.jt-banner-item {
    flex: 0 0 100%;
    min-height: 84px;
    padding: 16px 18px 24px;
    color: #fff;
    background: linear-gradient(120deg, #fb7185, var(--jt-brand));
}
.jt-banner-item:nth-child(even) { background: linear-gradient(120deg, var(--jt-brand), var(--jt-brand-deep)); }
.jt-banner-item b { font-size: 14px; }
.jt-banner-item span { display: block; margin-top: 6px; font-size: 11px; opacity: .9; }
.jt-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}
.jt-carousel-dots i {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .5);
    transition: width .2s, background .2s;
}
.jt-carousel-dots i.on { width: 14px; background: #fff; }

.jt-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 480px);
    height: 56px;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--jt-line);
    z-index: 30;
}
.jt-bottom-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    color: #909399;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}
.jt-bottom-nav button.on { color: var(--jt-brand); font-weight: 700; }
.jt-bottom-nav .jt-nav-ico { font-size: 18px; line-height: 1; }

.jt-toast {
    position: fixed;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    z-index: 99;
    max-width: 86%;
    padding: 9px 16px;
    border-radius: 20px;
    color: #fff;
    background: rgba(17, 24, 39, .9);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.jt-toast.on { opacity: 1; }
.jt-toast.ok { background: rgba(5, 150, 105, .95); }

.jt-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .45);
    display: grid;
    place-items: end center;
}
.jt-modal {
    width: min(100%, 480px);
    max-height: 82vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px 26px;
}
.jt-modal h3 { margin: 0 0 12px; font-size: 16px; }
.jt-modal .jt-close { float: right; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--jt-muted); }

.jt-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--jt-line);
    border-radius: 9px;
    cursor: pointer;
}
.jt-option.on { border-color: var(--jt-brand); background: var(--jt-brand-soft); }
.jt-option input { width: 16px; }

.jt-disclaimer {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.7;
    margin-top: 14px;
}
.jt-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jt-stat { background: #fff; border-radius: 10px; padding: 14px 6px; text-align: center; }
.jt-stat b { display: block; font-size: 17px; color: var(--jt-brand); }
.jt-stat span { font-size: 11px; color: var(--jt-muted); }
.jt-progress { height: 7px; border-radius: 4px; background: #f3f4f6; overflow: hidden; margin-top: 9px; }
.jt-progress i { display: block; height: 100%; background: var(--jt-brand); }
.jt-mask-photo { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
