* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f3f3f6;
    color: #131313;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.neo-page {
    min-height: 100vh;
}

.neo-shell {
    max-width: 1920px;
    margin: 0 auto;
    padding: 18px 22px 24px;
}

.neo-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 14px 16px 14px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.neo-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.neo-brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffd3dd;
    flex: 0 0 48px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.neo-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.neo-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.neo-brand-copy strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.neo-brand-copy span {
    max-width: 780px;
    color: #6f747d;
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neo-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    justify-content: center;
}

.neo-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #666d77;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
    white-space: nowrap;
}

.neo-nav-link.is-active,
.neo-nav-link:hover {
    background: #fff;
    color: #1d1f23;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.neo-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.neo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.neo-btn-ghost {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.neo-btn-solid {
    background: #050505;
    color: #fff;
}

.neo-main {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 22px;
    padding-top: 22px;
    min-height: calc(100vh - 140px);
}

.neo-side-card,
.neo-catalog-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 26px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.neo-card-head,
.neo-catalog-head {
    padding: 26px 28px;
}

.neo-card-tag {
    display: inline-block;
    color: #6d737c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.neo-card-head h2,
.neo-catalog-title h2 {
    margin: 16px 0 0;
    font-size: 24px;
    font-weight: 800;
}

.neo-category-scroll {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    height: 100%;
    overflow: hidden;
}

.neo-category-items {
    min-height: 100%;
    overflow-y: auto;
    padding: 16px 14px;
}

.neo-category-item {
    width: 100%;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    margin-bottom: 4px;
    transition: .2s ease;
}

.neo-category-item:hover,
.neo-category-item.is-active {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    outline: 1px solid rgba(0, 0, 0, 0.06);
}

.neo-category-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f3f6 center/cover no-repeat;
}

.neo-category-name {
    font-size: 15px;
    font-weight: 700;
    color: #4f555d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neo-category-count {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f2f7;
    color: #686e78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.neo-catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.neo-search {
    width: 460px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    background: #fff;
    border: 2px solid #d9dce5;
    border-radius: 999px;
    padding: 4px;
}

.neo-search-icon {
    text-align: center;
    color: #8a9098;
    font-size: 18px;
}

.neo-search-input {
    border: 0;
    outline: none;
    background: transparent;
    color: #23262b;
    font-size: 13px;
    padding-right: 10px;
}

.neo-search-input::placeholder {
    color: #a2a7b0;
}

.neo-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.neo-table {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.neo-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 100px 128px;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 0;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    background: #f6f7fb;
    color: #666d77;
    font-size: 14px;
    font-weight: 800;
}

.neo-table-body {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    overflow: hidden;
    background: #fff;
    min-height: 360px;
}

.neo-shop-list {
    display: flex;
    flex-direction: column;
}

.neo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 100px 128px;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.neo-row:first-child {
    border-top: 0;
}

.neo-col-product,
.neo-col-price,
.neo-col-stock,
.neo-col-action {
    min-width: 0;
}

.neo-product-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.neo-product-cover {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f2f3f8 center/cover no-repeat;
    flex: 0 0 52px;
}

.neo-product-copy {
    min-width: 0;
}

.neo-product-copy h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    color: #191b1f;
}

.neo-price-main {
    font-size: 15px;
    font-weight: 900;
    color: #5b2dd1;
}

.neo-stock-main {
    font-size: 15px;
    color: #57a9ff;
}

.neo-buy-btn {
    width: 104px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.neo-empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8c929b;
    font-size: 13px;
    padding: 24px;
}

.neo-footer {
    padding: 24px 0 8px;
    text-align: center;
    color: #8d929a;
}

.neo-notice-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.neo-notice-layer.is-visible {
    opacity: 1;
    visibility: visible;
}

.neo-notice-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px);
}

.neo-notice-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(720px, calc(100vw - 24px));
    max-height: 78vh;
    transform: translate(-50%, calc(-50% + 18px)) scale(.96);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.neo-notice-layer.is-visible .neo-notice-dialog {
    transform: translate(-50%, -50%) scale(1);
}

.neo-notice-layer.is-closing {
    opacity: 0;
}

.neo-notice-header {
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.neo-notice-chip {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f2f7;
    color: #5d636d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.neo-notice-header h3 {
    margin: 18px 0 0;
    font-size: 25px;
    font-weight: 900;
}

.neo-notice-body {
    padding: 24px 28px 30px;
    overflow-y: auto;
    max-height: calc(78vh - 110px);
    color: #2d3137;
    line-height: 1.8;
    font-size: 14px;
}

.neo-notice-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f6;
    color: #555b64;
}

.neo-popup-shell,
.open-query {
    padding: 22px;
}

.layui-layer[type=page] {
    background: #fff !important;
    border-radius: 22px !important;
}

.layui-layer,
.layui-layer-content {
    border-radius: 22px !important;
}

.commodity_name {
    color: #17191d;
    font-weight: 800;
    font-size: 21px;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.commodity-di .general,
.draft_status,
.description,
.description p,
.share_url,
.qq-service,
.pay-content label {
    color: #5e6670 !important;
}

.web-service {
    display: none !important;
}

.commodity-di .price,
.trade_amount,
.draft_premium {
    color: #111 !important;
    font-weight: 800;
}

.layui-layer-page input[type=text],
.commodity-di input[type=number],
.commodity-di input[type=password],
.commodity-di input[type=email],
.commodity-di input[type=text] {
    width: 240px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px !important;
    background: #fff !important;
    color: #1a1d22;
    padding-left: 12px !important;
}

.pay-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pay-button img {
    height: 22px;
    border-radius: 8px;
}

.pay-button span,
.pay-button *,
.pay_list .pay-button,
.pay_list .pay-button:hover,
.pay_list .pay-button:focus,
.pay_list .pay-button:visited {
    color: #fff !important;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.14);
    border-radius: 999px;
}

@media (max-width: 1500px) {
    .neo-main {
        grid-template-columns: 400px minmax(0, 1fr);
    }
}

@media (max-width: 1200px) {
    .neo-topbar {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .neo-main {
        grid-template-columns: 1fr;
    }

    .neo-category-scroll {
        height: 360px;
    }
}

@media (max-width: 900px) {
    .neo-shell {
        padding: 14px;
    }

    .neo-brand-copy strong {
        font-size: 18px;
    }

    .neo-brand-copy span {
        font-size: 13px;
    }

    .neo-nav,
    .neo-user-actions,
    .neo-catalog-head {
        flex-wrap: wrap;
    }

    .neo-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .neo-nav-link {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        padding: 12px 10px;
        text-align: center;
    }

    .neo-user-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .neo-btn {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        padding: 12px 14px;
    }

    .neo-search {
        width: 100%;
        grid-template-columns: 40px minmax(0, 1fr) 44px;
    }

    .neo-search-input {
        min-width: 0;
        padding-right: 6px;
    }

    .neo-search-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .neo-search-btn span {
        display: none;
    }

    .neo-category-scroll {
        height: min(62vh, 420px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .neo-category-items {
        max-height: none;
        overflow-y: visible;
    }

    .neo-table-head {
        display: none;
    }

    .neo-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "product product"
            "price stock"
            "action action";
        gap: 12px;
        align-items: center;
    }

    .neo-col-product {
        grid-area: product;
    }

    .neo-col-price {
        grid-area: price;
    }

    .neo-col-stock {
        grid-area: stock;
        text-align: right;
    }

    .neo-col-action {
        grid-area: action;
        text-align: left;
    }

    .neo-price-main,
    .neo-stock-main {
        font-size: 14px;
        line-height: 1.2;
    }

    .neo-buy-btn {
        width: 100%;
    }
}
