:root {
    --zheng-ink: #111827;
    --zheng-muted: #6b7280;
    --zheng-line: #e5e7eb;
    --zheng-blue: #315cdb;
    --zheng-green: #059669;
    --zheng-paper: #fff;
    --zheng-bg: #f4f5f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.zheng-body { margin: 0; color: var(--zheng-ink); background: var(--zheng-bg); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
body.zheng-modal-open { overflow: hidden; }
.zheng-body .container { width: min(1160px, calc(100% - 32px)); max-width: none; margin: 0 auto; padding: 0; }

.zheng-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--zheng-line); backdrop-filter: blur(12px); }
.zheng-nav { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.zheng-brand-wrap { display: flex; align-items: center; flex: none; }
.zheng-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--zheng-ink); font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.zheng-brand:hover { color: var(--zheng-ink); }
.zheng-brand-mark { width: 34px; height: 34px; display: block; object-fit: contain; border-radius: 7px; }
.zheng-nav-main { display: flex !important; align-items: center; flex: 1 1 auto; }
.zheng-links { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.zheng-links a { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: #4b5563; border-radius: 6px; font-size: 13px; font-weight: 650; text-decoration: none; }
.zheng-links a:hover { color: var(--zheng-ink); background: #f3f4f6; }
.zheng-links a.active { color: var(--zheng-blue); background: #eef3ff; }
.zheng-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.zheng-actions > a { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; color: #374151; background: #fff; border: 1px solid var(--zheng-line); border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; }
.zheng-actions .zheng-button { color: #fff; background: #111827; border-color: #111827; }
.zheng-actions .zheng-button:hover { color: #fff; background: #273142; }
.zheng-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.zheng-menu { display: none; margin-left: auto; width: 38px; height: 38px; place-items: center; background: #fff; border: 1px solid var(--zheng-line); border-radius: 6px; }

.zheng-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 24px; padding-bottom: 48px; }
.zheng-sidebar, .zheng-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.zheng-panel { overflow: hidden; background: var(--zheng-paper); border: 1px solid var(--zheng-line); border-radius: 8px; box-shadow: 0 2px 8px rgba(17,24,39,.035); }
.zheng-panel-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--zheng-line); }
.zheng-kicker { display: block; margin-bottom: 3px; color: #9ca3af; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.zheng-panel-heading h2, .zheng-catalog-head h1 { margin: 0; color: var(--zheng-ink); font-size: 18px; font-weight: 800; letter-spacing: 0; }

.zheng-categories { padding: 9px; }
.zheng-categories a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; color: #374151; border: 1px solid transparent; border-radius: 6px; text-decoration: none; }
.zheng-categories a + a { margin-top: 4px; }
.zheng-categories a:hover { color: var(--zheng-ink); background: #f8fafc; }
.zheng-categories a.is-primary { color: var(--zheng-blue); background: #eef3ff; border-color: #dce6ff; font-weight: 750; }
.zheng-category-name { min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.zheng-category-icon { width: 30px; height: 30px; flex: none; background-size: cover; background-position: center; border: 1px solid rgba(17,24,39,.08); border-radius: 6px; }
.zheng-category-end { color: #b4bdc9; font-size: 11px; }

.zheng-contact { padding: 20px 18px 18px; text-align: center; background: #f0faf6; border-color: #cdeade; }
.zheng-contact-intro h2 { margin: 10px 0 7px; color: #153f32; font-size: 20px; font-weight: 850; }
.zheng-contact-intro p { margin: 0; color: #527065; font-size: 13px; line-height: 1.65; }
.zheng-fee-badge { min-height: 25px; display: inline-flex; align-items: center; padding: 0 10px; color: #047857; background: #dcfce7; border: 1px solid #a7e8c4; border-radius: 999px; font-size: 11px; font-weight: 800; }
.zheng-qr { width: 190px; max-width: 100%; height: auto; display: block; margin: 16px auto 10px; padding: 7px; object-fit: contain; background: #fff; border: 1px solid #cce4da; border-radius: 8px; }
.zheng-qr-placeholder { width: 180px; height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; margin: 16px auto 10px; color: #9aa2ac; background: #fff; border: 1px dashed #b9d8cc; border-radius: 8px; font-size: 12px; }
.zheng-qr-placeholder i { font-size: 42px; }
.zheng-contact-hint { margin: 0 0 13px; color: #5f786e; font-size: 12px; }
.zheng-contact-list { display: grid; gap: 8px; }
.zheng-contact-list a, .zheng-contact-list button { min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #205c49; background: #fff; border: 1px solid #cce4da; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; }

.zheng-catalog { overflow: visible; }
.zheng-catalog-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--zheng-line); }
.zheng-search-combo { width: min(430px, 58%); display: flex; align-items: stretch; gap: 8px; }
.zheng-search { min-width: 0; min-height: 40px; display: flex; align-items: center; flex: 1 1 auto; gap: 9px; padding: 0 12px; color: #9ca3af; background: #fff; border: 1px solid #d7dce3; border-radius: 6px; }
.zheng-search:focus-within { border-color: #9db1eb; box-shadow: 0 0 0 3px rgba(49,92,219,.09); }
.zheng-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--zheng-ink); background: transparent; font-size: 13px; }
.zheng-search-button { min-width: 82px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; color: #fff; background: #111827; border: 1px solid #111827; border-radius: 6px; font-size: 13px; font-weight: 750; }
.zheng-table-head, .zheng-product { display: grid; grid-template-columns: minmax(300px, 1fr) 110px 90px 92px; align-items: center; }
.zheng-table-head { min-height: 44px; padding: 0 18px; color: #8a94a3; background: #fafbfc; border-bottom: 1px solid var(--zheng-line); font-size: 11px; font-weight: 800; }
.zheng-product { min-height: 90px; padding: 11px 18px; border-bottom: 1px solid #edf0f3; }
.zheng-product:last-child { border-bottom: 0; }
.zheng-product:hover { background: #fbfcfe; }
.zheng-product-info { min-width: 0; display: flex; align-items: center; gap: 13px; color: var(--zheng-ink); text-decoration: none; }
.zheng-product-info:hover { color: var(--zheng-ink); }
.zheng-product-cover { width: 56px; height: 56px; flex: none; background-size: cover; background-position: center; border: 1px solid var(--zheng-line); border-radius: 7px; }
.zheng-product-copy { min-width: 0; display: grid; gap: 7px; }
.zheng-product-copy strong { overflow: hidden; color: #1f2937; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.zheng-product-copy small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--zheng-muted); font-size: 11px; }
.zheng-product-copy small > span:last-child { padding: 2px 7px; color: #047857; background: #ecfdf5; border-radius: 999px; font-weight: 750; }
.zheng-tag { padding: 2px 7px; color: #7a5200; background: #fff7db; border-radius: 999px; }
.zheng-price { color: #111827; font-size: 16px; font-weight: 800; }
.zheng-price small { margin-right: 2px; font-size: 11px; }
.zheng-stock { color: var(--zheng-green); font-size: 12px; font-weight: 750; }
.zheng-buy { width: 72px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: #111827; border: 1px solid #111827; border-radius: 6px; font-size: 12px; font-weight: 750; text-decoration: none; }
.zheng-buy:hover { color: #fff; background: #273142; }
.zheng-buy.is-disabled { color: #9ca3af; background: #f3f4f6; border-color: #e5e7eb; }
.zheng-product.is-soldout .zheng-product-info { opacity: .62; }
.zheng-product.is-soldout .zheng-stock { color: #9ca3af; }
.zheng-loading, .zheng-empty { min-height: 164px; display: grid; place-items: center; color: var(--zheng-muted); font-size: 13px; }
.zheng-notice-heading i { color: #9ca3af; font-size: 18px; }
.zheng-notice-body { padding: 18px; color: #535e6b; font-size: 13px; line-height: 1.8; }
.zheng-footer { padding: 8px 0 34px; color: #8a94a3; font-size: 12px; }
.zheng-footer .container { display: flex; justify-content: space-between; gap: 20px; }

.zheng-modal-open { overflow: hidden; }
.qq-service-pay { border-color: #a9d9b3 !important; background: #effaf1 !important; color: #19733a !important; }
.zheng-qq-pay-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #12bf68; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.zheng-qq-pay-overlay[hidden] { display: none; }
.zheng-qq-pay-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgba(17,24,39,.46); backdrop-filter: blur(3px); }
.zheng-qq-pay-dialog { position: relative; width: min(360px, 100%); padding: 36px 40px 24px; color: #17191d; background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; box-shadow: 0 28px 80px rgba(17,24,39,.28); text-align: center; }
.zheng-qq-pay-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #6b7280; background: #f3f4f6; border: 0; border-radius: 50%; font-size: 20px; line-height: 1; }
.zheng-qq-pay-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; color: #2b7a3c; background: #e7f6e9; border-radius: 999px; font-size: 12px; font-weight: 800; }
.zheng-qq-pay-dialog h2 { margin: 9px 0 5px; font-size: 21px; font-weight: 850; }
.zheng-qq-pay-dialog > p { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.6; }
.zheng-qq-pay-qr { margin: 16px auto 12px; padding: 12px; background: #fff; border: 1px solid #d8dde5; border-radius: 8px; }
.zheng-qq-pay-qr img { width: 100%; height: auto; display: block; }
.zheng-qq-pay-qr small { display: block; margin-top: 8px; color: #5f6773; font-size: 11px; }
.zheng-qq-pay-tip { margin-top: 4px !important; }
.zheng-qq-pay-number { min-height: 42px; display: flex; align-items: center; justify-content: center; margin-top: 14px; color: #fff; background: #080808; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; }
.zheng-qq-pay-number:hover { color: #fff; background: #242424; }

.zheng-product-detail { display: grid; gap: 14px; color: #354052; font-size: 14px; line-height: 1.75; }
.zheng-product-detail * { box-sizing: border-box; }
.zheng-detail-banner { padding: 16px 22px; color: #fff; border-radius: 8px; box-shadow: 0 7px 16px rgba(17,24,39,.14); text-align: center; }
.zheng-detail-banner strong { display: block; font-size: 20px; font-weight: 850; line-height: 1.45; }
.zheng-detail-banner span { display: block; margin-top: 3px; font-size: 13px; font-weight: 650; opacity: .95; }
.zheng-detail-banner--green { background: #07897e; }
.zheng-detail-banner--slate { background: #425864; }
.zheng-detail-banner--brown { background: #745045; }
.zheng-detail-rules { padding: 10px 2px 2px; }
.zheng-detail-rules h3 { margin: 0 0 9px; color: #f06b14; font-size: 17px; font-weight: 850; line-height: 1.6; }
.zheng-detail-rules ul { display: grid; gap: 5px; margin: 0; padding: 0 0 0 22px; }
.zheng-detail-rules li { padding-left: 3px; color: #18a963; }
.zheng-detail-rules li.is-warning { color: #dc3f32; }
.zheng-detail-contact { display: block; padding: 15px 20px; color: #fff; background: #0799d5; border-radius: 8px; box-shadow: 0 7px 16px rgba(7,153,213,.18); text-align: center; text-decoration: none; }
.zheng-detail-contact strong { display: block; font-size: 17px; font-weight: 850; }
.zheng-detail-contact b { display: block; margin-top: 2px; font-size: 18px; }
.zheng-detail-contact small { display: block; margin-top: 2px; font-size: 11px; }
.zheng-detail-contact:hover { color: #fff; background: #078bc1; }

.zheng-notice-overlay[hidden] { display: none; }
.zheng-notice-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(17,24,39,.42); backdrop-filter: blur(3px); }
.zheng-notice-dialog { width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; box-shadow: 0 24px 70px rgba(17,24,39,.22); }
.zheng-notice-modal-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--zheng-line); }
.zheng-notice-modal-head h2 { display: flex; align-items: center; gap: 9px; margin: 3px 0 0; font-size: 21px; font-weight: 850; }
.zheng-notice-close { width: 36px; height: 36px; display: grid; place-items: center; color: #6b7280; background: #fff; border: 1px solid var(--zheng-line); border-radius: 50%; font-size: 18px; }
.zheng-notice-modal-body { padding: 28px 38px 18px; text-align: center; }
.zheng-notice-copy { color: #4b5563; font-size: 14px; line-height: 1.8; }
.zheng-notice-copy h3 { color: #ef4c3e; font-size: 20px; }
.zheng-notice-contact { margin-top: 20px; display: grid; gap: 9px; color: #4b5563; font-size: 14px; }
.zheng-notice-contact a, .zheng-notice-contact button { color: #0797d5; background: none; border: 0; font-weight: 800; text-decoration: none; }
.zheng-notice-qr-box { margin-top: 20px; padding: 18px; color: #2f7d3f; background: #edf9ef; border: 1px solid #9ed1a8; border-radius: 8px; font-size: 14px; font-weight: 800; }
.zheng-notice-qr-box img { width: 220px; max-width: 100%; height: auto; display: block; margin: 12px auto 0; padding: 8px; background: #fff; border: 1px solid #dbe2e8; border-radius: 8px; }
.zheng-notice-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.zheng-notice-modal-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 750; }
.zheng-action-symbol { display: inline-grid; place-items: center; width: 16px; height: 16px; font-size: 16px; line-height: 1; font-weight: 800; }
.zheng-notice-cancel { color: #374151; background: #fff; border: 1px solid #d8dde5; }
.zheng-notice-confirm { color: #fff; background: #050505; border: 1px solid #050505; }
.zheng-notice-footnote { padding: 0 24px 20px; color: #9ca3af; font-size: 11px; text-align: right; }

@media (max-width: 991px) {
    .zheng-nav { min-height: 64px; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
    .zheng-brand-wrap { width: 100%; }
    .zheng-menu { display: inline-grid; }
    .zheng-nav-main { order: 4; display: none !important; flex-basis: 100%; }
    .zheng-nav-main.show { display: block !important; }
    .zheng-links { align-items: stretch; flex-direction: column; padding-top: 4px; }
    .zheng-links a { width: 100%; }
    .zheng-actions { position: absolute; top: 13px; right: 16px; margin-right: 48px; }
    .zheng-shell { grid-template-columns: 230px minmax(0, 1fr); padding-top: 16px; }
    .zheng-table-head, .zheng-product { grid-template-columns: minmax(220px, 1fr) 90px 70px 80px; }
    .zheng-qr { width: 160px; }
}

@media (max-width: 760px) {
    .zheng-body .container { width: calc(100% - 24px); }
    .zheng-actions .zheng-login { display: none; }
    .zheng-actions > a { padding: 0 10px; }
    .zheng-shell { grid-template-columns: 1fr; }
    .zheng-catalog-head { align-items: stretch; flex-direction: column; }
    .zheng-search-combo { width: 100%; }
    .zheng-table-head { display: none; }
    .zheng-product { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 14px; }
    .zheng-product-info { grid-column: 1 / -1; }
    .zheng-price, .zheng-stock { align-self: center; }
    .zheng-stock { text-align: right; }
    .zheng-buy { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
    .zheng-product-copy strong { white-space: normal; }
    .zheng-notice-overlay { padding: 12px; }
    .zheng-notice-modal-body { padding: 22px 18px 14px; }
}

@media (max-width: 430px) {
    .zheng-brand { max-width: calc(100vw - 150px); font-size: 15px; }
    .zheng-brand span { overflow: hidden; text-overflow: ellipsis; }
    .zheng-actions .zheng-button span, .zheng-search-button span { display: none; }
    .zheng-search-button { min-width: 42px; padding: 0 12px; }
    .zheng-product-cover { width: 50px; height: 50px; }
    .zheng-notice-modal-head { min-height: 72px; padding: 14px 18px; }
    .zheng-notice-modal-actions { padding: 0 18px 18px; }
    .zheng-qq-pay-overlay { padding: 14px; }
    .zheng-qq-pay-dialog { padding: 34px 22px 22px; }
    .zheng-detail-banner { padding: 14px 12px; }
    .zheng-detail-banner strong { font-size: 16px; }
    .zheng-detail-rules h3 { font-size: 15px; }
}
