/**
 * Overseas Blue theme (templates/overseas)
 *
 * Visual language ported from docs/cankao/abcdlink_ui_static(1).html:
 * blue brand (#1062ee), light blue-tinted background, white cards with
 * soft large shadows, 10-18px radius, navy footer.
 *
 * Strategy: token override first (common.css / homepage_redesign.css /
 * user.css all expose CSS variables), then reskin structural shells.
 * `html:root` / `body .x` selectors intentionally out-rank the later
 * loaded page CSS of the default skin without using !important walls.
 * No business markup, JS hooks or i18n strings are touched here.
 */

/* ---------------------------------------------------------------- *
 * 1. Design tokens
 *
 * CONSISTENCY CONTRACT (all numbered blocks 10+ MUST follow):
 *   card surface   : #fff | 1px solid var(--ovs-card-line) |
 *                    border-radius var(--ovs-radius) | var(--ovs-shadow)
 *   inner sub-card : #f8fbff | 1px solid #edf2f7 | radius 12-14px
 *   table          : header #f8fbff + muted 13px | hairline #edf2f7 |
 *                    row hover #f8fbff | price #ff3f22
 *   pills (status) : blue #eef5ff/#1062ee · green #eafff6/#059669 ·
 *                    orange #fff7ed/#ea580c · red #fff1ef/#ef4444 ·
 *                    gray #f1f5f9/#64748b   (radius 999px, 12px, 900)
 *   buttons        : primary linear-gradient(135deg,var(--ovs-blue),
 *                    var(--ovs-blue-dark)) · outline #b8d0ff/#fff/blue
 *   form field     : 1px #dbe4f0 | radius 8-10px | focus #8bb9ff +
 *                    0 0 0 4px rgba(16,98,238,.08)
 *   tabs           : blue text + 3px blue bottom bar on active
 *   No new hex for these roles — reuse tokens/values above.
 * ---------------------------------------------------------------- */

html:root {
    /* cankao palette */
    --ovs-blue: #1062ee;
    --ovs-blue-2: #2b7cff;
    --ovs-blue-dark: #004bdb;
    --ovs-green: #10b981;
    --ovs-orange: #f97316;
    --ovs-red: #ff4d35;
    --ovs-ink: #111827;
    --ovs-muted: #6b7280;
    --ovs-line: #e5e7eb;
    --ovs-card-line: #e8eef8;
    --ovs-bg: #f6f9ff;
    --ovs-shadow: 0 16px 42px rgba(15, 35, 80, .08);
    --ovs-radius: 18px;

    /* common.css tokens (nav underline, list actives, pagination...) */
    --main-color: #1062ee;
    --hover-color: #2b7cff;
    --bg-color: #2b7cff;
    --nav-underline-color: #1062ee;

    /* homepage_redesign.css tokens (home sections, search, login card) */
    --primary: #1062ee;
    --primary-dark: #0b4fc4;
    --primary-light: #7db5ff;
    --accent: #2b7cff;
    --accent-hover: #1062ee;
    --bg-page: #f6f9ff;
    --bg-card: #ffffff;
}

/* user.css tokens (member center) — user.css loads after theme.css in the
   member layout head, so double the pseudo-class to keep priority. */
html:root:root {
    --gradient-primary: linear-gradient(135deg, #1062ee 0%, #004bdb 100%);
    --primary-rgb: 16, 98, 238;
    --secondary: #2b7cff;
}

/* ---------------------------------------------------------------- *
 * 2. Global canvas
 * ---------------------------------------------------------------- */

/* `html body` outranks page-level `body` declarations (e.g. the purple
   radial backdrop in frontend/user/login.css) so the canvas stays uniform */
html body {
    color: var(--ovs-ink);
    /* latin-first stack for US/EU audiences, CJK fallbacks preserved */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(16, 98, 238, .10), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(43, 124, 255, .12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f6f9ff 42%, #ffffff 100%);
    background-attachment: fixed;
}

::selection {
    background: rgba(16, 98, 238, .16);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(16, 98, 238, .40);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(16, 98, 238, .70);
}

/* ---------------------------------------------------------------- *
 * 3. Top utility strip + main navigation (public shell)
 * ---------------------------------------------------------------- */

/* Pin topbar while scrolling.
   homepage_redesign.css sets overflow-x:hidden on html/body (≤767),
   which disables position:sticky — use fixed instead. */
body .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}
/* Reserve space so content is not hidden under the fixed bar */
body #mainbody {
    padding-top: 76px;
}
@media (max-width: 1300px) {
    body #mainbody {
        padding-top: 66px;
    }
}

/* (cleaned 2026-07-19 per css-audit A1/A2: the old .navTop / .ovs-nav-*
   rules written for the first-generation topbar were dead — nav.html is
   rebuilt on the ui-base vocabulary .topbar/.navlinks/.actions) */

/* ---------------------------------------------------------------- *
 * 4. Buttons
 * ---------------------------------------------------------------- */

body .btn {
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body .btn-primary {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(16, 98, 238, .24);
}

body .btn-primary:hover,
body .btn-primary:focus,
body .btn-primary:active,
body .btn-primary:active:focus {
    background: linear-gradient(135deg, #0b56d6, #0041bd);
    border-color: transparent;
    transform: translateY(-1px);
}

body .login-btn {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    box-shadow: 0 12px 28px rgba(16, 98, 238, .24);
    border-radius: 10px;
}

body .login-btn:hover {
    background: linear-gradient(135deg, #0b56d6, #0041bd);
}

/* ---------------------------------------------------------------- *
 * 5. Card surfaces (home + shared shells)
 * ---------------------------------------------------------------- */

body .searchRight,
body .goodsShow,
body .catShow,
body .announcement,
body .links-cat,
body .dataShow .container,
body .list-shell {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
}

/* Platform announcements: drop legacy max-height clamp and give the
   bordered card even inner padding so list text is not flush to the frame.
   Specificity must beat `.catShow .announcement` in home.css. */
body .catShow .announcement,
body .announcement {
    max-height: none !important;
    height: auto;
    min-height: 0;
    padding: 20px 22px 24px !important;
    box-sizing: border-box;
    overflow: visible;
}

body .catShow .announcement .title,
body .announcement .title {
    margin-bottom: 14px;
    padding-bottom: 12px;
}

body .catShow .announcement .news,
body .announcement .news {
    margin-top: 0;
}

body .catShow .announcement .news ul,
body .announcement .news ul {
    margin: 0;
    padding: 0;
}

body .catShow .announcement .news ul li:last-child,
body .announcement .news ul li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

body .goodsShow {
    border-color: rgba(16, 98, 238, .10);
}

/* input focus ring: purple leftovers -> blue */
body .searchRight .form-group input:focus,
body .tcdPageCode.item_page > input:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
}

/* ---------------------------------------------------------------- *
 * 6. List pages (links / googlelink / softtext / adsale / package)
 * ---------------------------------------------------------------- */

body .links-page .main-search,
body .links-page .main_index .main-search {
    border-radius: var(--ovs-radius);
}

body .links-page .price,
body .cart_item_box .price {
    color: #ff3f22 !important;
}

body .tcdPageCode.item_page > span,
body .tcdPageCode.item_page > a,
body .tcdPageCode.item_page > input {
    border-radius: 10px;
}

/* ---------------------------------------------------------------- *
 * 6a-0b. Market filter select groups (广告类型 / 其他筛选)
 * Card rows for mobile drawer + desktop aside. Must NOT live only
 * inside min-width:992 — mobile filter panel needs these too.
 * ---------------------------------------------------------------- */

body .ovs-market-side .main-filter-box .ovs-filter-select-group {
    display: flex;
    flex-direction: column;
    float: none;
    width: 100%;
    gap: 0;
    position: static;
    min-height: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-group-label {
    display: block;
    float: none !important;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0;
    font-weight: 800;
    font-size: 13px;
    color: var(--ovs-ink, #1f2937);
    line-height: 1.45;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e7edf7;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-row:hover,
body .ovs-market-side .main-filter-box .ovs-filter-select-row:focus-within {
    border-color: #c5d8ff;
    background: #fff;
    box-shadow: 0 4px 14px rgba(47, 107, 255, .06);
}

body .ovs-market-side .main-filter-box .ovs-filter-select-label {
    flex: 0 0 88px;
    width: 88px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    line-height: 1.35;
    white-space: nowrap;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-value {
    display: none;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    min-height: 32px;
    padding: 0 28px 0 12px;
    border: 1px solid #e3eaf5;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 32px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-value.active {
    color: var(--ovs-blue, #2f6bff);
    border-color: #bfd3ff;
    background-color: #eef5ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232f6bff' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
}

body .ovs-market-side .main-filter-box .ovs-filter-select-row .ovs-filter-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 36px;
    margin: 0;
    padding: 0 32px 0 12px;
    border: 1px solid #e3eaf5;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px 7px;
    color: var(--ovs-ink, #1f2937);
    font-size: 13px;
    font-weight: 700;
    line-height: 34px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: none;
}

body .ovs-market-side .main-filter-box .ovs-filter-select-row .ovs-filter-select:hover,
body .ovs-market-side .main-filter-box .ovs-filter-select-row .ovs-filter-select:focus {
    border-color: #b8d0ff;
    outline: none;
    color: var(--ovs-blue, #2f6bff);
}

@media (max-width: 991px) {
    body .ovs-market-side .main-filter-box .ovs-filter-select-row {
        position: relative;
    }

    body .ovs-market-side .main-filter-box .ovs-filter-select-value {
        display: inline-flex;
    }

    /* Prefer bottom sheet UX on mobile — keep native select for sync only */
    body .ovs-market-side .main-filter-box .ovs-filter-select-row .ovs-filter-select {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        opacity: 0;
        pointer-events: none;
    }
}

/* ---------------------------------------------------------------- *
 * 6a-0. Market pages: cankao two-column layout (sticky filter aside)
 * ---------------------------------------------------------------- */

@media (min-width: 992px) {
    body .ovs-market-layout {
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    body .ovs-market-side {
        flex: 0 0 280px;
        min-width: 0;
        position: sticky;
        top: 92px;
        max-height: calc(100vh - 108px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    /* Top promo / banner stays pinned; only filters scroll below */
    body .ovs-market-side > .exchange-promo-card,
    body .ovs-market-side .main-order-list {
        flex: 0 0 auto;
    }

    body .ovs-market-side > .links-page,
    body .ovs-market-side > .main-filter-wrap {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body .ovs-market-side > .links-page .main-filter-wrap {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body .ovs-market-side .main-filter-box {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(16, 98, 238, 0.32) transparent;
        padding-bottom: 28px;
    }

    body .ovs-market-side .main-filter-box::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    body .ovs-market-side .main-filter-box::-webkit-scrollbar-track {
        background: transparent;
    }

    body .ovs-market-side .main-filter-box::-webkit-scrollbar-thumb {
        background-color: rgba(16, 98, 238, 0.28);
        border-radius: 999px;
        border: 1px solid transparent;
        background-clip: padding-box;
        min-height: 48px;
    }

    body .ovs-market-side .main-filter-box::-webkit-scrollbar-thumb:hover {
        background-color: rgba(16, 98, 238, 0.48);
    }

    body .ovs-market-side .main-filter-box::-webkit-scrollbar-button,
    body .ovs-market-side .main-filter-box::-webkit-scrollbar-button:single-button {
        display: none;
        width: 0;
        height: 0;
    }

    body .ovs-market-side .main-filter-box::-webkit-scrollbar-corner {
        background: transparent;
    }

    body .ovs-market-main {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    /* filter panel becomes a vertical sidebar card */
    body .ovs-market-side .main-filter-wrap {
        width: 100%;
        margin-bottom: 0;
    }

    body .ovs-market-side .main-filter-box {
        width: 100%;
        float: none;
        border-radius: var(--ovs-radius);
    }

    body .ovs-market-side .main-filter-box .row-box > div {
        height: auto;
        min-height: 0;
        padding: 12px 0;
    }

    body .ovs-market-side .main-filter-box .row-box > div > span.pull-left {
        display: block;
        float: none !important;
        font-weight: 800;
        color: var(--ovs-ink);
        margin-bottom: 8px;
    }

    body .ovs-market-side .main-filter-box .row-box > div > ul.pull-left {
        display: block;
        float: none !important;
        width: 100%;
    }

    body .ovs-market-side .main-filter-box .row-box li {
        margin-bottom: 4px;
    }

    body .ovs-market-side .main-filter-box .main-more-btn {
        display: none;
    }

    /* Industry filter: compact select (cankao), not a tall chip list */
    body .ovs-market-side .main-filter-box .ovs-cate-select-row > .cate-box {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }

    body .ovs-market-side .main-filter-box .ovs-cate-select {
        display: block;
        width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 36px 0 12px;
        border: 1px solid #e3eaf5;
        border-radius: 10px;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E") no-repeat right 12px center;
        background-size: 10px 7px;
        color: var(--ovs-ink, #1f2937);
        font-size: 13px;
        font-weight: 600;
        line-height: 38px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        box-shadow: none;
    }

    body .ovs-market-side .main-filter-box .ovs-cate-select:hover,
    body .ovs-market-side .main-filter-box .ovs-cate-select:focus {
        border-color: #b8d0ff;
        outline: none;
        color: var(--ovs-blue, #2f6bff);
    }

    /* native filter selects — shared styles live outside this media query (6a-0b) */
    body .ovs-market-side .main-filter-box .ovs-filter-select-row {
        cursor: default;
    }

    body .ovs-market-side .main-filter-box .ovs-filter-select-value {
        display: none !important;
    }

    body .ovs-market-side .main-filter-box .reset-filter {
        float: none !important;
        display: inline-block;
        margin-top: 4px;
        cursor: pointer;
        color: var(--ovs-muted);
    }

    /* shared boxed reset under filter groups (links / softtext / adsale / exchange) */
    body .ovs-market-side .ovs-filter-reset-row {
        margin: 4px 0 0;
        padding: 10px 0 2px;
        border-top: 1px solid #edf2f7;
    }

    body .ovs-market-side .ovs-filter-reset-btn,
    body .ovs-market-side .main-filter-box .ovs-filter-reset-btn.reset-filter,
    body .ovs-market-side .ovs-filter-reset-btn.exchange-adtype-reset,
    html[lang="en"] body .ovs-market-side .main-filter-box .ovs-filter-reset-btn.reset-filter {
        float: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 36px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid #d7e0ec;
        border-radius: 8px;
        background: #ffffff !important;
        background-image: none !important;
        box-shadow: none;
        color: #6b7280 !important;
        font-size: 13px;
        font-weight: 600;
        font-style: normal;
        line-height: 1;
        text-align: center;
        cursor: pointer;
        white-space: nowrap;
        transform: none !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        order: 0;
        min-height: 36px;
    }

    body .ovs-market-side .ovs-filter-reset-btn:hover,
    body .ovs-market-side .main-filter-box .ovs-filter-reset-btn.reset-filter:hover,
    body .ovs-market-side .ovs-filter-reset-btn.exchange-adtype-reset:hover {
        border-color: #b8d0ff;
        background: #f8fbff !important;
        background-image: none !important;
        color: var(--ovs-blue, #2f6bff) !important;
    }

    /* category list: no clipped height in the sidebar */
    body .ovs-market-side .main-filter-box .row-box .cate-box,
    body .ovs-market-side .main-filter-box .row-box > div.open_cate,
    body .ovs-market-side .main-filter-box .row-box ul {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }

    /* sidebar banner above the filters */
    body .ovs-market-side .main-order-list {
        width: 100%;
        float: none;
        margin: 0 0 12px;
        height: auto !important;
        min-height: 0 !important;
        border-radius: var(--ovs-radius);
        overflow: hidden;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body .ovs-market-side .main-order-banner {
        line-height: 0;
    }

    body .ovs-market-side .main-order-banner img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        border-radius: var(--ovs-radius);
    }
}

/* ---------------------------------------------------------------- *
 * 6a. Market list pages: filter panel, sort bar, goods table
 * ---------------------------------------------------------------- */

body .links-page .main-search {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    box-shadow: var(--ovs-shadow);
}

body .links-page .main-order-bar {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 12px;
    box-shadow: var(--ovs-shadow);
}

body .links-page .main-order-bar .order-item {
    font-weight: 700;
    color: var(--ovs-muted);
}

body .links-page .main-order-bar .order-item.active {
    color: var(--ovs-blue);
}

body .links-page .main-goods-list {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    overflow: hidden;
}

body .links-page .main-goods-list .head.goto_header {
    background: #f8fbff;
    color: var(--ovs-muted);
    font-size: 13px;
}

body .links-page .main-goods-res > li:hover {
    background: #f8fbff;
}

/* ---------------------------------------------------------------- *
 * 6b. Homepage hero + stats strip (cankao hero + stats card)
 * ---------------------------------------------------------------- */

/* (cleaned 2026-07-19 per css-audit A1/A2: first-generation .ovs-hero /
   .ovs-eyebrow / .ovs-hero-* / .ovs-btn-ghost / .ovs-ill-card /
   .ovs-float-badge rules removed — the homepage hero is rebuilt on the
   ui-base vocabulary .hero/.hero-grid/.eyebrow/.ill-card/.float-badge) */

/* cankao search band: full-width tabbed search panel, then a slim member
   login / order-stats band below (cankao keeps the search full width, so the
   business login element is stacked underneath instead of squeezing the row) */
body .ovs-below-hero {
    display: block;
    margin-top: 18px;
}

/* cankao tabbed multi-field search: tabs + 5-field row + hot links.
   The .tabs/.tab/.search-row/.field/.hot base styles come from ui-base.css;
   these rules only adapt them to sit inside the themed panel + login grid. */
body .ovs-search-panel .ovs-search-tabs {
    margin-bottom: 4px;
}

body .ovs-search-panel .ovs-search-tabs .tab {
    font-size: 15px;
    padding: 10px 22px 12px;
}

body .ovs-search-panel .ovs-search-row {
    align-items: stretch;
}

body .ovs-search-panel .ovs-search-row .field {
    height: 48px;
    width: 100%;
    min-width: 0;
    font-size: 14px;
}

body .ovs-search-panel .ovs-search-row .ovs-search-go {
    height: 48px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 800;
    white-space: nowrap;
}

body .ovs-search-panel .ovs-hot {
    margin-top: 4px;
}

body .ovs-search-panel .ovs-hot a {
    color: var(--ovs-muted);
    font-weight: 600;
}

body .ovs-search-panel .ovs-hot a:hover {
    color: var(--ovs-blue);
}

/* keep the 5-field row on one line down to tablets, then collapse cleanly */
@media (max-width: 1100px) {
    body .ovs-search-panel .ovs-search-row {
        grid-template-columns: 1fr 1fr;
    }
    body .ovs-search-panel .ovs-search-row .ovs-search-go {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body .ovs-search-panel .ovs-search-row {
        grid-template-columns: 1fr;
    }
}

/* bootstrap .container clearfix pseudos would become anonymous grid items
   and shove the real columns around — remove them inside the grid */
body .ovs-below-hero:before,
body .ovs-below-hero:after {
    content: none;
}

body .ovs-search-panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--ovs-card-line);
    border-radius: 20px;
    box-shadow: var(--ovs-shadow);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

/* panel heading (cankao search-panel title row) */
body .ovs-search-panel .ovs-sp-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body .ovs-search-panel .ovs-sp-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--ovs-ink);
    letter-spacing: -.5px;
}

body .ovs-search-panel .ovs-sp-sub {
    font-size: 14px;
    color: var(--ovs-muted);
}

body .ovs-search-panel .searchTop {
    width: 100%;
    opacity: 1;
    animation: none;
}

/* prominent cankao search row: tall segmented select + input + blue btn */
body .ovs-search-panel .searchTop .search-form,
body .ovs-search-panel .searchTop .searchCenter .search-form {
    position: static;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: stretch;
    gap: 6px;
    background: #fff;
}

body .ovs-search-panel .searchTop .search-form:focus-within {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
}

body .ovs-search-panel .searchTop .search-select {
    flex: 0 0 auto;
    height: 48px;
    border: 0;
    border-right: 1px solid #edf2f7;
    border-radius: 8px 0 0 8px;
    background: #f8fbff;
    color: var(--ovs-ink);
    font-weight: 800;
    padding: 0 12px;
}

body .ovs-search-panel .searchTop .search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    border: 0;
    background: transparent;
    padding: 0 12px;
    font-size: 15px;
}

body .ovs-search-panel .searchTop .search-btn {
    flex: 0 0 auto;
    width: 56px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #fff;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
    cursor: pointer;
    transition: transform .15s ease;
}

body .ovs-search-panel .searchTop .search-btn:hover {
    transform: translateY(-1px);
}

/* hot searches (cankao .hot) */
body .ovs-search-panel .ovs-hot-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 14px;
    color: var(--ovs-muted);
}

body .ovs-search-panel .ovs-hot-search strong {
    color: var(--ovs-ink);
    font-weight: 800;
}

body .ovs-search-panel .ovs-hot-search a {
    color: var(--ovs-muted);
    font-weight: 600;
}

body .ovs-search-panel .ovs-hot-search a:hover {
    color: var(--ovs-blue) !important;
}

/* member login / order-stats: slim full-width band under the search panel */
body .ovs-below-hero .searchRight.ovs-login-card {
    float: none;
    width: auto;
    margin: 14px 0 0;
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 16px;
    box-shadow: var(--ovs-shadow);
    backdrop-filter: none;
    padding: 18px 22px;
}

body .ovs-login-card .login-panel {
    width: 100%;
}

body .ovs-login-card .login-panel h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ovs-ink);
}

/* logged-out: lay the quick-login form out horizontally so it reads as a band */
body .ovs-login-card #login-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

body .ovs-login-card #login-form .form-group {
    margin: 0;
    flex: 1 1 220px;
}

body .ovs-login-card #login-form .form-group.hidden {
    flex: 0 0 0;
    min-width: 0;
}

body .ovs-login-card #login-form input {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    color: var(--ovs-ink);
    outline: none;
}

body .ovs-login-card #login-form input:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
}

body .ovs-login-card #login-form .login-btn {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 30px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

body .ovs-login-card .secondary-actions {
    margin-top: 12px !important;
}

/* logged-in: order-stats strip spreads across the band */
body .ovs-login-card .user-group-center .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

@media (max-width: 767px) {
    body .ovs-login-card #login-form .login-btn {
        flex: 1 1 100%;
    }
}

/* ---- topbar fit (overseas) --------------------------------------------
   cankao's row has 6 short Chinese links; ours has a dynamic 8-item English
   nav + a wider logged-in action cluster (member dropdown, notifications,
   Publish). Inside the capped 1320 container those overflow horizontally for
   logged-in users on <=~1620px screens. Fix: (a) collapse the inline nav to
   the existing hamburger a bit earlier (<=1300), and (b) above 1300 compress
   the row (tighter gaps/font, member-center becomes an icon) so 8 links + the
   full actions — including the cankao Publish CTA — fit on one line.        */
@media (max-width: 1300px) {
    body .topbar .ovs-menu-toggle {
        display: inline-flex;
    }
    /* Full-bleed bar: menu | truly centered logo | search+cart */
    body .topbar .nav.ovs-container {
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 14px;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        box-sizing: border-box;
    }
    body .topbar .ovs-menu-toggle {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
    }
    body .topbar .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        margin: 0;
    }
    body .topbar .logo img {
        max-height: 40px;
    }
    body .topbar .actions {
        position: relative;
        z-index: 2;
        margin-left: auto;
        gap: 8px;
    }
    /* Compact bar: logo stays centered. News and help move into the drawer. */
    body .topbar .actions > :not(.nav-search-toggle):not(.ovs-cart-btn) {
        display: none !important;
    }
    body .topbar .actions .nav-search-toggle,
    body .topbar .actions .ovs-cart-btn {
        display: inline-flex !important;
    }
    /* Dim overlay behind left drawer (above mobile-bottom-nav: 1040) */
    body .ovs-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(15, 23, 42, .42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .28s ease, visibility .28s ease;
    }
    body .ovs-nav-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.ovs-nav-drawer-open {
        overflow: hidden;
    }
    body.ovs-nav-drawer-open .mobile-bottom-nav {
        visibility: hidden;
        pointer-events: none;
    }
    /*
     * Left slide-in drawer.
     * JS moves #ovs-navlinks to document.body (.ovs-nav-drawer) so topbar's
     * backdrop-filter / sticky does not trap position:fixed.
     */
    body .navlinks.ovs-nav-drawer {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        right: auto;
        width: min(86vw, 320px);
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding: 18px 12px calc(28px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: #fff;
        border: 0;
        border-right: 1px solid #e8eef8;
        border-radius: 0 18px 18px 0;
        box-shadow: 12px 0 40px rgba(15, 35, 80, .14);
        z-index: 1110;
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
        text-align: left;
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, visibility .28s ease;
    }
    body .navlinks.ovs-nav-drawer.open {
        display: flex;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    body .navlinks.ovs-nav-drawer::before {
        content: attr(data-drawer-title);
        display: block;
        margin: 4px 6px 14px;
        padding: 0 8px 12px;
        border-bottom: 1px solid #eef2f7;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .04em;
        color: #64748b;
        text-transform: uppercase;
    }
    /* Full-width rows — kill centered uneven pills */
    body .navlinks.ovs-nav-drawer > a,
    body .navlinks.ovs-nav-drawer > .has-dropdown {
        display: block;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    body .navlinks.ovs-nav-drawer > a,
    body .navlinks.ovs-nav-drawer > .has-dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        padding: 13px 14px;
        border-radius: 12px;
        color: #1f2937;
        background: transparent;
        text-decoration: none;
        white-space: nowrap;
        box-sizing: border-box;
    }
    body .navlinks.ovs-nav-drawer > a:hover,
    body .navlinks.ovs-nav-drawer > .has-dropdown > a:hover {
        background: #f5f8fc;
        color: var(--ovs-blue, #1062ee);
    }
    body .navlinks.ovs-nav-drawer > a.active,
    body .navlinks.ovs-nav-drawer > .has-dropdown > a.active {
        background: #eef5ff;
        color: var(--ovs-blue, #1062ee);
    }
    body .navlinks.ovs-nav-drawer a.active:after {
        content: none;
    }
    body .navlinks.ovs-nav-drawer > .has-dropdown > a .fa-angle-down {
        margin-left: 8px;
        font-size: 14px;
        color: #94a3b8;
        transition: transform .18s ease;
    }
    body .navlinks.ovs-nav-drawer > .has-dropdown.is-open > a .fa-angle-down {
        transform: rotate(180deg);
        color: var(--ovs-blue, #1062ee);
    }
    /* Accordion children: indented group, quieter than parents */
    body .navlinks.ovs-nav-drawer .has-dropdown .sub-menu {
        display: none;
        position: static;
        left: auto;
        top: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        margin: 2px 0 6px;
        padding: 4px;
        border: 0;
        border-radius: 12px;
        background: #f7f9fc;
        box-shadow: none;
        box-sizing: border-box;
    }
    body .navlinks.ovs-nav-drawer .has-dropdown.is-open .sub-menu {
        display: block;
    }
    body .navlinks.ovs-nav-drawer .has-dropdown:hover .sub-menu {
        display: none;
    }
    body .navlinks.ovs-nav-drawer .has-dropdown.is-open:hover .sub-menu,
    body .navlinks.ovs-nav-drawer .has-dropdown.is-open .sub-menu {
        display: block;
    }
    body .navlinks.ovs-nav-drawer .sub-menu a {
        display: block;
        width: 100%;
        margin: 0;
        padding: 11px 14px 11px 22px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        color: #475569;
        background: transparent;
        box-sizing: border-box;
    }
    body .navlinks.ovs-nav-drawer .sub-menu a:hover {
        background: #eef5ff;
        color: var(--ovs-blue, #1062ee);
    }
    body .navlinks.ovs-nav-drawer .sub-menu a.active {
        background: #eef5ff;
        color: var(--ovs-blue, #1062ee);
        font-weight: 700;
    }
}

@media (min-width: 1301px) {
    body .ovs-nav-backdrop {
        display: none !important;
    }
    body .topbar .ovs-menu-toggle {
        display: none !important;
    }
    body .topbar .nav {
        gap: 12px;
    }
    body .topbar .navlinks {
        gap: 10px;
        font-size: 13.5px;
    }
    body .topbar .actions {
        gap: 6px;
    }
}

/* Extra links only appear inside the mobile drawer, not the desktop nav row. */
body .topbar .navlinks .ovs-drawer-extra {
    display: none;
}

/* Member toggle: same icon-btn shell as globe/search/cart. */
body .topbar .actions .ovs-member-toggle {
    color: var(--ovs-blue);
    border: 1px solid #b8d0ff;
}
body .topbar .actions .ovs-member-toggle > i {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    width: 1em;
    height: 1em;
    text-align: center;
}

body .topbar .actions .ovs-top-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 35, 80, .08);
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}
body .topbar .actions .ovs-top-shortcut:hover,
body .topbar .actions .ovs-top-shortcut:focus {
    color: var(--ovs-blue, var(--blue));
}

/* Search toggle: common.css hover adds blue fill — icon must flip white or it vanishes. */
body .topbar .actions .icon-btn.nav-search-toggle:hover,
body .topbar .actions .icon-btn.search-click-btn:hover {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #fff;
}
body .topbar .actions .icon-btn.nav-search-toggle:hover > i,
body .topbar .actions .icon-btn.search-click-btn:hover > i {
    color: #fff;
}

/* Top nav: current page highlight (desktop underline + mobile pill) */
body .topbar .navlinks .sub-menu a.active {
    color: var(--ovs-blue, var(--blue));
    background: #eef5ff;
    border-radius: 8px;
    font-weight: 700;
}
body .topbar .navlinks .sub-menu a.active:after {
    content: none;
}

/* Right floating toolbar (.menu_list: Member / Cart / QQ / Phone /
   Feedback / back-to-top) stays visible — restored per product request.
   Mini-cart drawer (.menu-right-goods) and #feedbackModal remain intact. */

/* cankao's homepage flows hero -> search -> services with no member-login /
   order-stats band. Hide it to match, but keep the login-form / token /
   captcha / order-stat hooks in the DOM (S3 guard + business login stay intact;
   sign-in is available from the topbar account menu). */
body .ovs-below-hero .searchRight.ovs-login-card {
    display: none !important;
}

/* the 3 illustration promo cards (.adShow: Fast Link / Precision softtext /
   Premium Ad) duplicate the service grid and aren't in cankao — hide them so
   the homepage reads hero -> search -> services -> stats -> categories/news ->
   resource cards. (Markup kept in the DOM; overseas-only.) */
body .adShow {
    display: none !important;
}

/* ---------------------------------------------------------------- *
 * Homepage articles — Western editorial (spotlight + story grid)
 * ---------------------------------------------------------------- */
body#homepage .ovs-home-articles {
    margin: 48px 0 56px;
    clear: both;
}

body#homepage .ovs-home-articles-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 28px;
}

body#homepage .ovs-home-articles-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

body#homepage .ovs-home-articles-eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf3ff;
    border: 1px solid #cfe0ff;
    color: var(--ovs-blue, #1062ee);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

body#homepage .ovs-home-articles-intro h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--ovs-ink, #111827);
}

body#homepage .ovs-home-articles-lede {
    margin: 10px 0 0;
    max-width: 520px;
    color: var(--ovs-muted, #6b7280);
    font-size: 15px;
    line-height: 1.7;
}

body#homepage .ovs-home-articles-all {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    color: var(--ovs-blue, #1062ee);
    white-space: nowrap;
    padding-bottom: 4px;
}

body#homepage .ovs-home-articles-all:hover {
    text-decoration: underline;
}

/* Featured spotlight — magazine hero, not nested portal card */
body#homepage .ovs-home-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0;
    min-height: 320px;
    margin: 0 0 36px;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ovs-card-line, #e8eef8);
    box-shadow: var(--ovs-shadow, 0 16px 42px rgba(15, 35, 80, .08));
    transition: transform .2s ease, box-shadow .2s ease;
}

body#homepage .ovs-home-spotlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(16, 98, 238, .14);
}

body#homepage .ovs-home-spotlight-media {
    display: block;
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: #eef3f9;
}

body#homepage .ovs-home-spotlight-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body#homepage .ovs-home-spotlight:hover .ovs-home-spotlight-media img {
    transform: scale(1.08);
}

body#homepage .ovs-home-spotlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 36px 40px;
    min-width: 0;
}

body#homepage .ovs-home-spotlight-kicker {
    display: inline-flex;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ovs-blue, #1062ee);
}

body#homepage .ovs-home-spotlight-title {
    display: block;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.6px;
    line-height: 1.25;
    color: var(--ovs-ink, #111827);
}

body#homepage .ovs-home-spotlight-dek {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ovs-muted, #6b7280);
    font-size: 15px;
    line-height: 1.75;
}

body#homepage .ovs-home-spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

/* Stories + trending split */
body#homepage .ovs-home-articles-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: start;
}

body#homepage .ovs-home-stories {
    min-width: 0;
}

/* Underline tabs — Western magazine, not Chinese pills */
body#homepage .ovs-home-story-tabs,
body#homepage .ovs-home-news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin: 0 0 22px;
    padding: 0 0 2px;
    border-bottom: 1px solid #e8eef8;
}

body#homepage .ovs-home-story-tabs > a,
body#homepage .ovs-home-news-tabs > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body#homepage .ovs-home-story-tabs > a:hover,
body#homepage .ovs-home-news-tabs > a:hover {
    color: var(--ovs-ink, #111827);
    background: transparent;
    border-color: transparent;
}

body#homepage .ovs-home-story-tabs > a.active,
body#homepage .ovs-home-news-tabs > a.active {
    color: var(--ovs-blue, #1062ee);
    background: transparent;
    border-color: transparent;
}

body#homepage .ovs-home-story-tabs > a.active::after,
body#homepage .ovs-home-news-tabs > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--ovs-blue, #1062ee);
    border-radius: 2px 2px 0 0;
}

body#homepage .ovs-home-story-panes {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body#homepage .ovs-home-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

body#homepage .ovs-home-story-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    transition: transform .18s ease;
}

body#homepage .ovs-home-story-card:hover {
    transform: translateY(-3px);
}

body#homepage .ovs-home-story-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #eef3f9;
    box-shadow: 0 10px 28px rgba(15, 35, 80, .08);
}

body#homepage .ovs-home-story-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body#homepage .ovs-home-story-card:hover .ovs-home-story-thumb img {
    transform: scale(1.08);
}

body#homepage .ovs-home-story-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 2px 0;
    min-width: 0;
}

body#homepage .ovs-home-story-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.35;
    color: var(--ovs-ink, #111827);
}

body#homepage .ovs-home-story-card:hover .ovs-home-story-title {
    color: var(--ovs-blue, #1062ee);
}

body#homepage .ovs-home-story-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ovs-muted, #6b7280);
    font-size: 13px;
    line-height: 1.65;
}

body#homepage .ovs-home-story-meta {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

/* Quiet trending rail */
body#homepage .ovs-home-trending {
    min-width: 0;
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #e8eef8;
}

body#homepage .ovs-home-trending-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

body#homepage .ovs-home-trending-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ovs-ink, #111827);
}

body#homepage .ovs-home-trending-head a {
    font-size: 13px;
    font-weight: 800;
    color: var(--ovs-blue, #1062ee);
}

body#homepage .ovs-home-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body#homepage .ovs-home-trending-list li + li {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

body#homepage .ovs-home-trending-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
}

body#homepage .ovs-home-trending-num {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #cbd5e1;
}

body#homepage .ovs-home-trending-list li:nth-child(-n+3) .ovs-home-trending-num {
    color: var(--ovs-blue, #1062ee);
}

body#homepage .ovs-home-trending-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body#homepage .ovs-home-trending-list a:hover .ovs-home-trending-title {
    color: var(--ovs-blue, #1062ee);
}

body#homepage .ovs-home-articles-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 36px 20px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .7);
    border: 1px dashed #d8e8ff;
    color: var(--ovs-muted, #6b7280);
}

body#homepage .ovs-home-articles-empty strong {
    color: var(--ovs-ink, #111827);
    font-size: 15px;
}

body#homepage .ovs-home-articles-empty.compact {
    padding: 18px;
}

@media (max-width: 1100px) {
    body#homepage .ovs-home-articles-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body#homepage .ovs-home-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body#homepage .ovs-home-spotlight {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body#homepage .ovs-home-spotlight-media {
        min-height: 220px;
    }

    body#homepage .ovs-home-spotlight-copy {
        padding: 24px 22px 28px;
    }

    body#homepage .ovs-home-spotlight-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    body#homepage .ovs-home-articles {
        margin: 32px 0 40px;
    }

    body#homepage .ovs-home-articles-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    body#homepage .ovs-home-articles-intro h2 {
        font-size: 26px;
    }

    body#homepage .ovs-home-story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body#homepage .ovs-home-story-tabs,
    body#homepage .ovs-home-news-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px 18px;
    }
}

/* Homepage goods rail: follow between quality resources and free exchange */
body#homepage .ovs-home-goods-rail {
    position: fixed;
    /* Sit left of goods cards (.container-fixed 1140) with 5px gap */
    left: max(12px, calc((100vw - 1140px) / 2 - 101px));
    top: 42%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: 96px;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 35, 80, .10);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

body#homepage .ovs-home-goods-rail.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

body#homepage .ovs-home-goods-rail[hidden] {
    display: none !important;
}

body#homepage .ovs-home-goods-rail a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #4b5563;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    transition: color .15s ease, background .15s ease;
}

body#homepage .ovs-home-goods-rail a:last-child {
    border-bottom: 0;
}

body#homepage .ovs-home-goods-rail a:hover,
body#homepage .ovs-home-goods-rail a.active {
    color: var(--ovs-blue, #1062ee);
    background: #f5f9ff;
}

@media (max-width: 1199px) {
    body#homepage .ovs-home-goods-rail {
        display: none !important;
    }
}

/* cankao service grid — accordion on ≤900px; equal 4 cards on PC (≥901) */
body .ovs-service-grid.ovs-service-accordion {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin: 26px 0;
    height: 260px;
}

body .ovs-service-accordion .ovs-service-card {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    width: 0;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 20px 14px 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    transition: flex-grow .48s cubic-bezier(.22, 1, .36, 1),
                box-shadow .28s ease;
}

body .ovs-service-accordion .ovs-service-card.is-open {
    flex-grow: 5.2;
    box-shadow: 0 16px 36px rgba(15, 35, 80, .10);
}

body .ovs-service-accordion .ovs-service-card:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c), transparent);
    pointer-events: none;
}

body .ovs-service-accordion .ovs-service-hit {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

body .ovs-service-accordion .ovs-service-card.is-open .ovs-service-hit {
    pointer-events: none;
}

body .ovs-service-accordion .ovs-service-face {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 0 0 auto;
    transition: opacity .2s ease;
}

body .ovs-service-accordion .ovs-round-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--c);
    font-size: 22px;
    flex: 0 0 auto;
}

body .ovs-service-accordion .ovs-service-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--ovs-ink);
    line-height: 1.35;
    white-space: normal;
    transition: opacity .2s ease;
}

/* Panel stays absolute forever — only opacity changes (no layout jump) */
body .ovs-service-accordion .ovs-service-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 100px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity .18s ease, visibility 0s linear .18s;
}

body .ovs-service-accordion .ovs-service-card.is-open .ovs-service-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .32s ease .2s, visibility 0s linear 0s;
}

/* Leaving: hide copy first, keep width until JS drops is-open */
body .ovs-service-accordion .ovs-service-card.is-leaving .ovs-service-panel {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .16s ease, visibility 0s linear .16s !important;
}

body .ovs-service-accordion .ovs-service-card.is-leaving .ovs-service-face h3 {
    opacity: .25;
}

body .ovs-service-accordion .ovs-service-panel p {
    margin: 0 0 12px;
    color: var(--ovs-muted);
    line-height: 1.65;
    font-size: 14px;
}

body .ovs-service-accordion .checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 13px;
}

body .ovs-service-accordion .checks span:before {
    content: "\2713";
    color: var(--c);
    font-weight: 900;
    margin-right: 6px;
}

body .ovs-service-accordion .ovs-service-more {
    margin-top: auto;
    color: var(--c);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

body .ovs-service-accordion .ovs-service-more:hover {
    text-decoration: underline;
}

/* Collapsed strip — keep top-aligned to avoid face jump when opening */
body .ovs-service-accordion .ovs-service-card:not(.is-open) .ovs-service-face {
    align-items: center;
    width: 100%;
    padding-top: 20px;
    text-align: center;
    gap: 14px;
}

body .ovs-service-accordion .ovs-service-card:not(.is-open) h3 {
    font-size: 13px;
    font-weight: 800;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .06em;
    opacity: 1;
}

/* While leaving, keep horizontal title (still is-open) so text doesn't snap vertical mid-fade */
body .ovs-service-accordion .ovs-service-card.is-open.is-leaving h3 {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    letter-spacing: 0;
}

body .ovs-service-accordion .ovs-service-card:not(.is-open):hover {
    box-shadow: 0 12px 26px rgba(15, 35, 80, .09);
}

/* PC (≥901): equal four-column cards — accordion is mobile-only */
@media (min-width: 901px) {
    body .ovs-service-grid.ovs-service-accordion {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        height: auto;
        align-items: stretch;
    }

    body .ovs-service-accordion .ovs-service-card,
    body .ovs-service-accordion .ovs-service-card.is-open {
        display: block;
        flex: none;
        width: auto;
        min-width: 0;
        height: auto;
        padding: 24px;
        overflow: hidden;
        box-shadow: var(--ovs-shadow);
        transition: transform .18s ease, box-shadow .18s ease;
    }

    body .ovs-service-accordion .ovs-service-card:hover,
    body .ovs-service-accordion .ovs-service-card.is-open:hover,
    body .ovs-service-accordion .ovs-service-card:not(.is-open):hover {
        transform: translateY(-4px);
        box-shadow: var(--ovs-shadow);
    }

    body .ovs-service-accordion .ovs-service-hit {
        display: none;
    }

    body .ovs-service-accordion .ovs-service-face,
    body .ovs-service-accordion .ovs-service-card:not(.is-open) .ovs-service-face {
        display: block;
        align-items: flex-start;
        width: auto;
        padding-top: 0;
        text-align: left;
        gap: 0;
    }

    body .ovs-service-accordion .ovs-round-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 24px;
        margin: 0 0 14px;
    }

    body .ovs-service-accordion .ovs-service-card h3,
    body .ovs-service-accordion .ovs-service-card:not(.is-open) h3,
    body .ovs-service-accordion .ovs-service-card.is-open h3,
    body .ovs-service-accordion .ovs-service-card.is-open.is-leaving h3 {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        letter-spacing: 0;
        font-size: 20px;
        font-weight: 900;
        margin: 0 0 7px;
        line-height: 1.35;
        opacity: 1;
        white-space: normal;
    }

    body .ovs-service-accordion .ovs-service-panel,
    body .ovs-service-accordion .ovs-service-card.is-open .ovs-service-panel,
    body .ovs-service-accordion .ovs-service-card.is-leaving .ovs-service-panel {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto;
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible;
        transition: none !important;
    }

    body .ovs-service-accordion .ovs-service-panel p {
        margin: 0 0 14px;
        font-size: 14px;
        line-height: 1.7;
    }

    body .ovs-service-accordion .checks {
        margin: 0 0 14px;
        font-size: 13px;
    }

    body .ovs-service-accordion .ovs-service-more {
        margin-top: 0;
    }

    body .ovs-service-accordion .ovs-service-card.is-leaving .ovs-service-face h3 {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    body .ovs-service-grid.ovs-service-accordion {
        gap: 8px;
        height: 230px;
    }

    body .ovs-service-accordion .ovs-service-card {
        padding: 14px 8px 18px;
        border-radius: 14px;
    }

    body .ovs-service-accordion .ovs-service-card.is-open {
        flex-grow: 5.6;
    }

    body .ovs-service-accordion .ovs-round-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 18px;
    }

    body .ovs-service-accordion .ovs-service-card.is-open h3 {
        font-size: 16px;
    }

    body .ovs-service-accordion .ovs-service-card:not(.is-open) h3 {
        font-size: 12px;
    }

    body .ovs-service-accordion .ovs-service-panel {
        left: 10px;
        right: 10px;
        top: 88px;
        bottom: 16px;
    }

    body .ovs-service-accordion .ovs-service-panel p,
    body .ovs-service-accordion .checks {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body .ovs-service-grid.ovs-service-accordion {
        gap: 6px;
        height: 210px;
    }

    body .ovs-service-accordion .ovs-service-card {
        padding: 12px 6px 16px;
    }

    body .ovs-service-accordion .ovs-service-card.is-open {
        flex-grow: 6;
    }

    body .ovs-service-accordion .ovs-round-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 15px;
    }

    body .ovs-service-accordion .ovs-service-card.is-open h3 {
        font-size: 15px;
    }

    body .ovs-service-accordion .ovs-service-panel {
        left: 8px;
        right: 8px;
        top: 78px;
        bottom: 14px;
    }

    body .ovs-service-accordion .checks {
        gap: 6px 8px;
    }
}

/* Non-accordion grids (e.g. service-market category cards) keep the old layout */
body .ovs-service-grid:not(.ovs-service-accordion) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 26px 0;
}

body .ovs-service-grid:not(.ovs-service-accordion) .ovs-service-card {
    display: block;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    padding: 24px;
    box-shadow: var(--ovs-shadow);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease;
}

body .ovs-service-grid:not(.ovs-service-accordion) .ovs-service-card:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c), transparent);
}

body .ovs-service-grid:not(.ovs-service-accordion) .ovs-service-card:hover {
    transform: translateY(-4px);
}

body .ovs-round-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--c);
    font-size: 24px;
    margin-bottom: 14px;
}

body .ovs-service-grid:not(.ovs-service-accordion) .ovs-service-card h3 {
    margin: 0 0 7px;
    font-size: 20px;
    font-weight: 900;
    color: var(--ovs-ink);
}

body .ovs-service-grid:not(.ovs-service-accordion) .ovs-service-card p {
    margin: 0 0 14px;
    color: var(--ovs-muted);
    line-height: 1.7;
    font-size: 14px;
}

body .ovs-service-more {
    color: var(--c);
    font-weight: 800;
    font-size: 14px;
}

@media (max-width: 1100px) {
    body .ovs-service-grid:not(.ovs-service-accordion) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body .ovs-service-grid:not(.ovs-service-accordion) {
        grid-template-columns: 1fr;
    }
}

body .homeSearch {
    background: linear-gradient(135deg, #0061ff, #0e8bff 58%, #2b7cff);
}

body .searchLeft .title i,
body .searchLeft .fontx i {
    color: #cfe5ff;
}

body .searchTop .search-form {
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(6, 38, 96, .28);
}

body .dataShow {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
}

body .dataShow .stat-bar {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    padding: 18px;
}

body .dataShow .stat-item i {
    color: var(--ovs-blue);
}

body .dataShow .stat-item .count {
    color: var(--ovs-ink);
    font-weight: 900;
}

body .dataShow .stat-item .label {
    color: var(--ovs-muted);
}

/* section titles: blue leading bar via tokens; "more" links in blue */
body .goodsShow .title .more a,
body .links-cat .title .more a,
body .announcement .title .more a {
    color: var(--ovs-blue);
    font-weight: 700;
}

/* ---------------------------------------------------------------- *
 * 6c. (cleaned 2026-07-19 per css-audit A2: the .content_d/.block*
 * rules targeted the OLD default-skin detail markup; the overseas
 * site detail page is fully rebuilt in section 16a and never renders
 * those classes)
 * ---------------------------------------------------------------- */

/* ---------------------------------------------------------------- *
 * 7. Footer (navy, cankao style) + mobile bottom nav
 * ---------------------------------------------------------------- */

body .footer.ovs-footer {
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(47, 107, 255, .22), transparent 58%),
        radial-gradient(720px 360px at 92% 8%, rgba(14, 165, 233, .14), transparent 55%),
        #0b1220;
    color: #cbd5e1;
    margin-top: 36px;
    padding: 0;
    overflow: hidden;
}

body .footer.ovs-footer .container {
    max-width: 1200px;
}

/* cankao multi-column footer (flex adapts to any pageNav column count) */
body .footer-con.ovs-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 28px;
    text-align: left;
    padding: 48px 20px 32px;
}

body .ovs-footer-brand {
    flex: 1.4 1 240px;
    min-width: 220px;
    padding-right: 12px;
}

body .ovs-footer-cols {
    display: flex;
    flex: 2.6 1 480px;
    flex-wrap: wrap;
    gap: 28px 24px;
    min-width: 0;
}

body .ovs-footer-col {
    flex: 1 1 140px;
    min-width: 132px;
}

body .ovs-footer-brand .ovs-footer-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.15;
}

body .ovs-footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
    max-width: 280px;
}

body .ovs-footer-col b {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: .01em;
}

body .ovs-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body .ovs-footer-col ul li {
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.45;
}

body .footer-con b {
    color: #ffffff;
}

body .footer-con ul li a,
body .footer .copyright,
body .footer .copyright a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s ease;
}

body .footer-con ul li a:hover {
    color: #ffffff !important;
}

body .ovs-footer-social-tip {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
    max-width: 200px;
}

body .copyright.ovs-footer-copyright {
    position: static;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding: 16px 16px 20px;
    font-size: 13px;
    color: #64748b;
    background: rgba(0, 0, 0, .18);
}

body .copyright.ovs-footer-copyright p {
    margin: 0;
    line-height: 1.6;
}

body .copyright.ovs-footer-copyright a {
    color: #94a3b8;
}

body .copyright.ovs-footer-copyright a:hover {
    color: #e2e8f0;
}

@media (max-width: 991px) {
    body .footer-con.ovs-footer-grid {
        gap: 28px 20px;
        padding: 36px 18px 24px;
    }

    body .ovs-footer-cols {
        flex: 1 1 100%;
        gap: 22px 18px;
    }
}

@media (max-width: 767px) {
    body .footer.ovs-footer {
        margin-top: 24px;
        /* leave room for fixed mobile bottom nav */
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body .footer-con.ovs-footer-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 28px 16px 12px;
    }

    body .ovs-footer-brand {
        flex: none;
        width: 100%;
        min-width: 0;
        padding: 0 4px 18px;
        border-bottom: 1px solid rgba(148, 163, 184, .14);
        margin-bottom: 4px;
    }

    /* Brand title is not an accordion row — kill legacy .footer-con b:after */
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-brand > b {
        cursor: default;
        padding-right: 0;
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-brand > b:after {
        content: none !important;
    }

    body .ovs-footer-brand .ovs-footer-logo {
        font-size: 24px;
        margin-bottom: 8px;
    }

    body .ovs-footer-brand p {
        max-width: none;
        font-size: 13px;
        color: #94a3b8;
    }

    /* One section per row, accordion collapse */
    body .ovs-footer-cols {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col {
        flex: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(148, 163, 184, .12);
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > b {
        position: relative;
        display: block;
        width: 100%;
        margin: 0;
        padding: 15px 36px 15px 12px;
        font-size: 14px;
        font-weight: 800;
        color: #fff;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > b::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 14px;
        margin-top: -7px;
        border-radius: 2px;
        background: #3b82f6;
    }

    /* Chevron — restore accordion affordance (overrides prior content:none) */
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > b:after {
        content: "\f107" !important;
        font-family: FontAwesome;
        font-weight: 400;
        font-size: 16px;
        position: absolute;
        right: 8px;
        top: 50%;
        margin-top: 0;
        transform: translateY(-50%);
        color: #94a3b8;
        transition: transform .2s ease, color .15s ease;
        pointer-events: none;
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > b.active:after,
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col.is-open > b:after {
        transform: translateY(-50%) rotate(180deg);
        color: #60a5fa;
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > ul,
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > .ovs-footer-social-tip {
        display: none !important;
        margin: 0;
        padding: 0 12px 14px 12px;
        list-style: none;
    }

    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col.is-open > ul,
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > ul.show,
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col.is-open > .ovs-footer-social-tip,
    body .ovs-footer .footer-con.ovs-footer-grid .ovs-footer-col > .ovs-footer-social-tip.show {
        display: block !important;
    }

    body .ovs-footer-col ul li {
        margin: 0 0 10px;
        font-size: 13px;
    }

    body .ovs-footer-col ul li:last-child {
        margin-bottom: 0;
    }

    body .ovs-footer-col ul li a {
        display: inline-block;
        padding: 2px 0;
        color: #94a3b8;
    }

    body .ovs-footer-col-social {
        grid-column: auto;
        margin-top: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body .ovs-footer-col-social.is-open {
        padding-bottom: 0;
    }

    body .ovs-footer-social-tip {
        max-width: none;
        font-size: 12px;
        line-height: 1.65;
        color: #64748b;
    }

    body .copyright.ovs-footer-copyright {
        padding: 14px 16px 18px;
        font-size: 12px;
    }
}

/* Mobile bottom tab bar — keep icon+label stacked and aligned */
@media (max-width: 767px) {
    body .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
        width: 100%;
        height: auto;
        min-height: 56px;
        margin: 0;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(226, 232, 240, .85);
        box-shadow: 0 -8px 24px rgba(15, 35, 80, .06);
    }

    body .mobile-bottom-nav .mobile-nav-item {
        position: relative;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        height: auto;
        padding: 4px 2px;
        margin: 0;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-decoration: none !important;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
    }

    body .mobile-bottom-nav .mobile-nav-item > i {
        display: block;
        width: 24px;
        height: 22px;
        margin: 0;
        padding: 0;
        font-size: 20px;
        line-height: 22px;
        text-align: center;
        float: none;
        transform: none;
    }

    body .mobile-bottom-nav .mobile-nav-item > span {
        display: block;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
        transform: none !important;
    }

    body .mobile-bottom-nav .mobile-nav-item.active {
        color: var(--ovs-blue, #1062ee);
    }

    body .mobile-bottom-nav .mobile-nav-item.active > i {
        color: var(--ovs-blue, #1062ee);
    }

    body .mobile-bottom-nav .mobile-nav-cart-badge {
        position: absolute;
        top: 2px;
        left: calc(50% + 8px);
        z-index: 1;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        font-style: normal;
        line-height: 16px;
        text-align: center;
        box-shadow: 0 0 0 2px #fff;
        pointer-events: none;
        transform: none;
    }

    body #mainbody {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    body .mobile-bottom-nav {
        display: none !important;
    }
}

/* ---------------------------------------------------------------- *
 * 8. Member center shell (layout/default + sidenav)
 * ---------------------------------------------------------------- */

body .navbar-white {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    box-shadow: none;
}

/* PC top-right: Home / Language / Member center on one baseline */
@media (min-width: 768px) {
    body .member-nav-fluid {
        display: flex;
        align-items: center;
        min-height: 60px;
    }

    body .member-nav-fluid > #header-navbar {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        padding: 0;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary {
        display: flex;
        align-items: center;
        float: none;
        margin: 0;
        gap: 2px;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li {
        float: none;
        display: flex;
        align-items: center;
        margin: 0;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a,
    body .member-nav-fluid > .navbar-member-actions .mobile-header-user > .dropdown-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 36px;
        min-height: 36px;
        margin: 0;
        padding: 0 12px !important;
        line-height: 1 !important;
        font-size: 14px;
        font-weight: 600;
        color: #334155 !important;
        white-space: nowrap;
        box-sizing: border-box;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a:hover,
    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a:focus,
    body .member-nav-fluid > .navbar-member-actions .mobile-header-user > .dropdown-toggle:hover,
    body .member-nav-fluid > .navbar-member-actions .mobile-header-user > .dropdown-toggle:focus {
        color: var(--ovs-blue, #1062ee) !important;
        background: transparent !important;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a .fa-globe {
        margin: 0;
        font-size: 14px;
        line-height: 1;
        position: static;
        vertical-align: middle;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a .lang-text,
    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a .mobile-header-user-name {
        line-height: 1;
    }

    body .member-nav-fluid > #header-navbar .navbar-nav.member-nav-primary > li > a .caret,
    body .member-nav-fluid > .navbar-member-actions .mobile-header-user > .dropdown-toggle .caret {
        margin: 0 0 0 2px;
        position: static !important;
        display: inline-block;
        vertical-align: middle;
        border-top-width: 4px;
        border-right-width: 4px;
        border-left-width: 4px;
    }

    body .member-nav-fluid > .navbar-member-actions {
        display: flex;
        align-items: center;
        align-self: center;
        margin-left: 2px;
        gap: 2px;
    }

    body .member-nav-fluid > .navbar-member-actions .mobile-header-user {
        display: flex;
        align-items: center;
    }
}

body .sidenav {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    background: #ffffff;
}

body .sidenav .list-group a.active,
body .sidenav .list-group a.active:hover {
    background: #eef5ff;
    color: var(--ovs-blue);
    border-radius: 12px;
}

body .sidenav .list-group a:hover {
    color: var(--ovs-blue);
}

/* member content area: cankao card tokens for user.css panels */
body #content-container {
    --border: #e8eef8;
    --radius: 16px;
    --shadow-sm: 0 10px 30px rgba(15, 35, 80, .06);
}

/* ---------------------------------------------------------------- *
 * 8b. Login / register / pay pages (frontend/user/login.css tokens)
 * ---------------------------------------------------------------- */

html:root {
    --neo: #1062ee;
    --neo2: #2b7cff;
    --btn-color: #1062ee;
    --hoverbg-color: rgba(16, 98, 238, .10);
    --glow: 0 0 0 1px rgba(16, 98, 238, .20), 0 0 26px rgba(16, 98, 238, .22);
}

/* login announcements panel: --bg-color is now a mid blue for exchange
   buttons, restore a pale panel tint here */
body .login-announcements {
    background: #eef5ff;
    border-color: rgba(16, 98, 238, .14);
}

body .announcement-header {
    border-bottom-color: rgba(16, 98, 238, .35);
}

/* ---------------------------------------------------------------- *
 * 9. Misc accents
 * ---------------------------------------------------------------- */

/* (status-pill-success/-warning removed 2026-07-19 per css-audit A1:
   real status pills live in section 22c .exchange-status-pill/.sm-status-pill) */

/* toast/layer accent follows brand automatically via tokens */

/* tooltips / dropdown menus rounding */
body .dropdown-menu {
    border: 1px solid var(--ovs-card-line);
    border-radius: 12px;
    box-shadow: var(--ovs-shadow);
}

/* ---------------------------------------------------------------- *
 * 10. exchange & service market
 * ---------------------------------------------------------------- */

/* --- 10a. free exchange market: cankao two-column + card language --- */

/* the overseas template moves the filter shell + promo/feed cards into
   .ovs-market-side; neutralize the old 240px side-panel sizing there */
@media (min-width: 992px) {
    body .free-exchange-page .ovs-market-side > .exchange-promo-card {
        width: 100%;
        margin: 0 0 12px;
    }

    body .free-exchange-page .ovs-market-side .exchange-side-panel {
        width: 100%;
        flex: none;
        display: block;
        margin-top: 12px;
    }

    body .free-exchange-page .ovs-market-side .exchange-unified-wrap {
        margin-bottom: 0;
    }

    body .free-exchange-page .ovs-market-side .exchange-unified-wrap .main-filter-box {
        border: 1px solid var(--ovs-card-line);
        border-radius: var(--ovs-radius);
        box-shadow: var(--ovs-shadow);
    }

    /* filter rows stack vertically: bold label on top, wrapped chips below */
    body .free-exchange-page .ovs-market-side .exchange-chip-row,
    body .free-exchange-page .ovs-market-side .exchange-option-row,
    body .free-exchange-page .ovs-market-side .exchange-adtype-row {
        display: block;
        min-height: 0;
    }

    body .free-exchange-page .ovs-market-side .exchange-adtype-head {
        display: block;
        width: 100%;
        margin: 0 0 12px;
    }

    body .free-exchange-page .ovs-market-side .exchange-chip-row > span,
    body .free-exchange-page .ovs-market-side .exchange-option-row > span,
    body .free-exchange-page .ovs-market-side .exchange-adtype-label {
        display: block;
        float: none !important;
        width: auto;
        min-width: 0;
        margin: 0;
        font-weight: 800;
        font-size: 13px;
        color: var(--ovs-ink);
        line-height: 1.4;
    }

    body .free-exchange-page .ovs-market-side .exchange-category-list {
        display: none !important;
    }

    body .free-exchange-page .ovs-market-side .exchange-option-list {
        width: 100%;
        max-height: none;
        padding-right: 0;
        flex-wrap: wrap;
        white-space: normal;
        overflow-x: visible;
    }

    body .free-exchange-page .ovs-market-side .exchange-option-list li {
        margin-bottom: 6px;
    }

    /* Soft blue chips: keep readable blue text (exchange.css used white-on-primary) */
    body .free-exchange-page .ovs-market-side .exchange-option-list li > a,
    body .free-exchange-page .ovs-market-side .main-filter-box .exchange-option-list li > a {
        color: #4b5563 !important;
        background: #f8fbff !important;
        border: 1px solid #e3eaf5 !important;
        border-radius: 999px;
    }

    body .free-exchange-page .ovs-market-side .exchange-option-list li:hover > a,
    body .free-exchange-page .ovs-market-side .exchange-option-list li.active > a,
    body .free-exchange-page .ovs-market-side .main-filter-box .exchange-option-list li:hover > a,
    body .free-exchange-page .ovs-market-side .main-filter-box .exchange-option-list li.active > a {
        color: var(--ovs-blue) !important;
        background: #eef5ff !important;
        border-color: #b8d0ff !important;
        font-weight: 700;
    }

    body .free-exchange-page .ovs-market-side .exchange-more-btn {
        display: none !important;
    }

    body .free-exchange-page .ovs-market-side .ovs-cate-select {
        display: block;
        width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 36px 0 12px;
        border: 1px solid #e3eaf5;
        border-radius: 10px;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E") no-repeat right 12px center;
        background-size: 10px 7px;
        color: var(--ovs-ink, #1f2937);
        font-size: 13px;
        font-weight: 600;
        line-height: 38px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        box-shadow: none;
    }

    body .free-exchange-page .ovs-market-side .ovs-cate-select:hover,
    body .free-exchange-page .ovs-market-side .ovs-cate-select:focus {
        border-color: #b8d0ff;
        outline: none;
        color: var(--ovs-blue, #2f6bff);
    }

    /* ad-type native selects: label + full-width select per row */
    body .free-exchange-page .ovs-market-side .exchange-adtype-row .ovs-filter-select-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 38px;
        margin: 0 0 10px;
        padding: 4px 0;
        gap: 12px;
    }

    body .free-exchange-page .ovs-market-side .exchange-adtype-row .ovs-filter-select-row:last-of-type {
        margin-bottom: 0;
    }

    body .free-exchange-page .ovs-market-side .exchange-adtype-row .ovs-filter-select-row .ovs-filter-select {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* promo card -> cankao gradient CTA card with white primary button */
body .free-exchange-page .exchange-promo-card {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    border: 0;
    border-radius: var(--ovs-radius);
    box-shadow: 0 18px 40px rgba(16, 98, 238, .28);
    padding: 16px;
}

body .free-exchange-page .exchange-promo-card h3 {
    color: #ffffff;
    font-weight: 900;
}

body .free-exchange-page .exchange-promo-card p {
    color: rgba(255, 255, 255, .82);
}

body .free-exchange-page .exchange-promo-card .btn.btn-primary,
body .free-exchange-page .exchange-promo-card .btn.btn-primary:focus {
    background: #ffffff;
    border-color: transparent;
    color: var(--ovs-blue) !important;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(4, 32, 88, .25);
}

body .free-exchange-page .exchange-promo-card .btn.btn-primary:hover {
    background: #eef5ff;
    border-color: transparent;
}

body .free-exchange-page .exchange-side-stats {
    margin-top: 10px;
}

body .free-exchange-page .exchange-side-stat {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
}

body .free-exchange-page .exchange-side-stat small {
    color: rgba(255, 255, 255, .78);
}

body .free-exchange-page .exchange-side-stat strong {
    color: #ffffff;
}

/* live feed dock (fixed bottom) + sort bar + table */
body .free-exchange-page .exchange-feed-dock {
    background: #ffffff;
    border-top: 1px solid var(--ovs-card-line, #e3eaf5);
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.1);
}

body .free-exchange-page .exchange-feed-dock-title {
    color: var(--ovs-blue, #2f6bff);
}

body .free-exchange-page .exchange-order-bar {
    border: 1px solid var(--ovs-card-line);
    border-radius: 12px;
    box-shadow: var(--ovs-shadow);
    background: #ffffff;
    margin-bottom: 12px;
}

body .free-exchange-page .exchange-table-wrap {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: hidden;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container,
body .free-exchange-page .exchange-table-wrap .fixed-table-body,
body .free-exchange-page .exchange-table-wrap .fixed-table-header {
    overflow-x: hidden !important;
}

/* bootstrap-table may strip the `.table` class — target any table inside the wrap */
body .free-exchange-page .exchange-table-wrap .fixed-table-container table,
body .free-exchange-page .exchange-table-wrap .fixed-table-body > table,
body .free-exchange-page .exchange-table-wrap .fixed-table-header > table,
body .free-exchange-page .exchange-table-wrap table {
    table-layout: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th,
body .free-exchange-page .exchange-table-wrap table > thead > tr > th {
    background: #f8fbff;
    color: var(--ovs-muted);
    vertical-align: top;
}

/* Fit 10 columns into ~820px list shell; kill exchange.css 30% site width */
body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(1),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(1),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(1),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(1) {
    width: 24% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 8px !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(1) .th-inner {
    padding-left: 12px !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(2),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(2),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(2),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(2) {
    width: 9% !important;
    min-width: 0 !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(3),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(3),
body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(4),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(4),
body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(5),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(5),
body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(6),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(6),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(3),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(3),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(4),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(4),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(5),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(5),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(6),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(6) {
    width: 6.5% !important;
    min-width: 0 !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(7),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(7),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(7),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(7) {
    width: 9% !important;
    min-width: 0 !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(8),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(8),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(8),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(8) {
    width: 8% !important;
    min-width: 0 !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(9),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(9),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(9),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(9) {
    width: 8% !important;
    min-width: 0 !important;
}

body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th:nth-child(10),
body .free-exchange-page .exchange-table-wrap .fixed-table-container tbody td:nth-child(10),
body .free-exchange-page .exchange-table-wrap table > thead > tr > th:nth-child(10),
body .free-exchange-page .exchange-table-wrap table > tbody > tr > td:nth-child(10) {
    width: 13% !important;
    min-width: 0 !important;
    padding-left: 6px !important;
    padding-right: 10px !important;
    white-space: nowrap;
}

body .free-exchange-page .exchange-table-wrap .exchange-link-method {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

body .free-exchange-page .exchange-table-wrap .exchange-op-btn {
    display: inline-block;
    max-width: 100%;
    min-width: 0 !important;
    width: 100%;
    height: 28px;
    line-height: 26px;
    padding: 0 6px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Line1: title + (category/icon) packed left as two flex children */
body .free-exchange-page .exchange-table-wrap .exchange-site-row-title {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 0 4px;
    width: 100%;
    min-width: 0;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-row-title .res-title {
    flex: 0 1 auto;
    display: block !important;
    width: max-content;
    max-width: calc(100% - 108px);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-row-title .res-title a {
    display: inline;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-title-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    max-width: 100px;
    min-width: 0;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-row-title .label-box {
    flex: 0 1 auto;
    display: inline-flex !important;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    max-width: 5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-row-title .exchange-sensitive-flag {
    flex: 0 0 auto;
    margin-left: 0;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-domain {
    display: block;
    margin: 0 0 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ovs-muted, #6b7280);
    font-size: 12px;
    line-height: 1.3;
}

body .free-exchange-page .exchange-table-wrap .exchange-site-row-metric {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* exchange.css forces .th-inner to nowrap+ellipsis (fine for short Chinese
   labels), but the longer English labels truncate to "Show St...". Override
   the exact bootstrap-table selector so English headers wrap on two lines.
   Overseas/English-only — the default (Chinese) theme keeps nowrap. */
body .free-exchange-page .exchange-table-wrap .fixed-table-container thead th .th-inner,
body .free-exchange-page .exchange-table-wrap .table > thead > tr > th .th-inner {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word;
    word-break: normal;
    font-size: 12px;
    line-height: 1.25;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* --- 10b. service market list: hero + four-color category cards --- */

/* let the theme canvas show through the old gray slab */
body .service-market-public {
    background: transparent;
}

body .sm-market-hero {
    background: linear-gradient(135deg, #0061ff, #0e8bff 58%, #2b7cff);
    border: 0;
    border-radius: var(--ovs-radius);
    box-shadow: 0 18px 40px rgba(16, 98, 238, .26);
    padding: 34px 30px;
}

body .sm-market-hero h1 {
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -.5px;
}

body .sm-market-hero p {
    color: rgba(255, 255, 255, .88);
}

body .sm-market-hero .sm-hero-primary-btn,
body .sm-market-hero .sm-hero-primary-btn:focus {
    background: #ffffff;
    border-color: transparent;
    color: var(--ovs-blue);
    box-shadow: 0 10px 24px rgba(4, 32, 88, .25);
}

body .sm-market-hero .sm-hero-primary-btn:hover {
    background: #eef5ff;
    color: var(--ovs-blue);
}

/* four-color category entrance cards (reuses .ovs-service-card language) */
body .ovs-sm-cat-grid {
    margin: 0 0 22px;
}

body .ovs-sm-c0 { --c: #1062ee; }
body .ovs-sm-c1 { --c: #10b981; }
body .ovs-sm-c2 { --c: #f97316; }
body .ovs-sm-c3 { --c: #7c3aed; }

body a.ovs-sm-cat-card,
body a.ovs-sm-cat-card:hover,
body a.ovs-sm-cat-card:focus {
    text-decoration: none;
    color: inherit;
}

body .ovs-sm-cat-card .ovs-round-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
    margin-bottom: 12px;
}

body .ovs-sm-cat-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

body .ovs-sm-cat-card.is-active {
    box-shadow: 0 0 0 2px var(--c), var(--ovs-shadow);
}

/* Mobile only: force one row of four (PC keeps shared 4→2→1 breakpoints) */
@media (max-width: 640px) {
    body .ovs-service-grid.ovs-sm-cat-grid:not(.ovs-service-accordion) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 16px;
    }

    body .ovs-sm-cat-card {
        padding: 12px 8px 14px !important;
        text-align: center;
    }

    body .ovs-sm-cat-card .ovs-round-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 15px;
        margin: 0 auto 8px;
    }

    body .ovs-sm-cat-card h3 {
        font-size: 12px;
        font-weight: 800;
        margin: 0 0 4px;
        line-height: 1.25;
        word-break: break-word;
    }

    /* Whole card is the hit target — drop the verbose CTA on narrow screens */
    body .ovs-sm-cat-card .ovs-service-more {
        display: none;
    }

    body .ovs-sm-cat-card:before {
        height: 3px;
    }
}

/* slim result meta bar under the category cards */
body .ovs-sm-result-bar {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 12px;
    box-shadow: var(--ovs-shadow);
    padding: 12px 18px;
}

body .ovs-sm-result-bar .ovs-sm-result-label strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--ovs-ink);
    border-left: 4px solid var(--ovs-blue);
    padding-left: 10px;
    line-height: 1.2;
    display: inline-block;
}

/* service item cards + empty state pick up cankao card tokens */
body .sm-card {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
}

body .sm-card:hover {
    border-color: rgba(16, 98, 238, .35);
    box-shadow: 0 20px 48px rgba(15, 35, 80, .12);
}

body .sm-card__quote-value {
    color: #ff3f22;
}

body .sm-empty {
    border: 1px dashed #b8d0ff;
    border-radius: var(--ovs-radius);
}

/* service market buttons: purple -> cankao blue */
body .sm-btn-main {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    border-color: transparent;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(16, 98, 238, .24);
}

body .sm-btn-main:hover {
    background: linear-gradient(135deg, #0b56d6, #0041bd);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 98, 238, .30);
}

body .sm-btn-ghost {
    border-color: #b8d0ff;
    color: var(--ovs-blue);
    border-radius: 10px;
}

body .sm-btn-ghost:hover {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue-dark);
    background: #eef5ff;
}

body .sm-btn-outline {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
    border-radius: 10px;
}

body .sm-btn-outline:hover {
    border-color: var(--ovs-blue-dark);
    color: var(--ovs-blue-dark);
    background: #eef5ff;
}

/* --- 10c. service market detail: cankao card reskin --- */

body .sm-detail-card {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
}

body .sm-card-header {
    font-weight: 900;
    color: var(--ovs-ink);
    border-bottom: 1px solid var(--ovs-card-line);
}

body .sm-detail-media {
    border-radius: 14px;
    border-color: var(--ovs-card-line);
}

body .sm-badge {
    background: #eef5ff;
    color: var(--ovs-blue);
    border-radius: 6px;
}

body .sm-price-box {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

body .sm-price-value {
    color: #ff3f22;
}

body .sm-nav-tabs > li > a:hover {
    color: var(--ovs-blue);
}

body .sm-nav-tabs > li.active > a,
body .sm-nav-tabs > li.active > a:hover,
body .sm-nav-tabs > li.active > a:focus {
    color: var(--ovs-blue);
    border-bottom-color: var(--ovs-blue);
}

body .sm-features {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

body .sm-feature-icon {
    background: #eef5ff;
    color: var(--ovs-blue);
}

body .sm-provider-badge {
    background: #eef5ff;
    color: var(--ovs-blue);
}

body .sm-provider-badge.is-muted {
    background: #eef2f7;
    color: #64748b;
}

body .sm-recommend-price {
    color: #ff3f22;
}

/* ---------------------------------------------------------------- *
 * 11. auth & member overview
 * (login / register cankao page-login card + user/index dashboard)
 * login.css is linked inside the page body (after theme.css), so the
 * selectors below carry a body[data-*] prefix to win on specificity.
 * ---------------------------------------------------------------- */

/* -- 11a. login page (templates/overseas/user/login.html) --------- */

/* clean cankao canvas: drop the ink grid overlay of login.css */
body[data-controller="user"][data-action="login"]::before,
body[data-controller="user"][data-action="register"]::before {
    display: none;
}

body[data-controller="user"][data-action="login"] .login-container {
    max-width: 980px;
    border: 1px solid var(--ovs-card-line);
    border-radius: 22px;
    box-shadow: var(--ovs-shadow);
}

body[data-controller="user"][data-action="login"] .login-form-section {
    border-right: 1px solid #edf2f7;
    border-radius: 16px;
}

body[data-controller="user"][data-action="login"] .login-announcements {
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e3edff;
}

body[data-controller="user"][data-action="login"] .login-title h3 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="login"] .form-control {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: none;
}

body[data-controller="user"][data-action="login"] .form-control:focus,
body[data-controller="user"][data-action="register"] .form-control:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
}

body[data-controller="user"][data-action="login"] .login-btn {
    height: 50px;
    border-radius: 12px;
    font-weight: 800;
}

body[data-controller="user"][data-action="login"] .captcha-img {
    border-radius: 12px;
}

body[data-controller="user"][data-action="login"] .social-icon {
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    box-shadow: none;
}

body[data-controller="user"][data-action="login"] .social-icon:hover {
    border-color: #b8d0ff;
    background: #f8fbff;
    box-shadow: 0 10px 22px rgba(16, 98, 238, .12);
}

@media (max-width: 768px) {
    body[data-controller="user"][data-action="login"] .login-form-section {
        border-right: none;
    }
}

/* -- 11b. register page (templates/overseas/user/register.html) --- */

body[data-controller="user"][data-action="register"] .user-section.login-section {
    max-width: 560px;
    margin: 34px auto 60px;
    padding: 10px 12px 4px;
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 22px;
    box-shadow: var(--ovs-shadow);
}

body[data-controller="user"][data-action="register"] .login-main {
    padding: 30px 34px 18px;
}

/* card heading (new .ovs-auth-head markup) */
body .ovs-auth-head {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

body .ovs-auth-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.8px;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="register"] .control-label {
    font-weight: 700;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="register"] .form-control {
    height: 46px;
    padding: 6px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: none;
}

/* keep bootstrap input-group corners coherent with the 12px fields */
body[data-controller="user"][data-action="register"] .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body[data-controller="user"][data-action="register"] .input-group .btn-captcha {
    height: 46px;
    line-height: 32px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

body[data-controller="user"][data-action="register"] .captcha-img {
    height: 46px;
    border-radius: 12px;
    margin-left: 8px;
}

body[data-controller="user"][data-action="register"] .btn-primary.btn-block {
    height: 50px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
}

/* "already have an account" secondary action -> quiet blue link */
body[data-controller="user"][data-action="register"] .btn-default.no-border {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--ovs-blue);
    font-weight: 700;
}

body[data-controller="user"][data-action="register"] .btn-default.no-border:hover {
    color: var(--ovs-blue-dark) !important;
    background: transparent;
    text-decoration: underline;
}

@media (max-width: 767px) {
    body[data-controller="user"][data-action="register"] .user-section.login-section {
        margin: 16px 12px 32px;
    }

    body[data-controller="user"][data-action="register"] .login-main {
        padding: 20px 14px 10px;
    }
}

/* -- 11c. member overview (templates/overseas/user/index.html) ---- */

body[data-controller="user"][data-action="index"] .dashboard-infobar {
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .05);
}

/* command center strip -> cankao account-panel card */
body[data-controller="user"][data-action="index"] .command-center-box {
    padding: 18px;
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
}

/* balance / score / level cluster -> pale blue inner box (cankao) */
body[data-controller="user"][data-action="index"] .stats-area-horizontal {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 12px 18px;
}

body[data-controller="user"][data-action="index"] .stats-area-horizontal .h-value.text-primary {
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="index"] .badge-tech-sm {
    background: #eef5ff;
    color: var(--ovs-blue);
    border: 1px solid #d8e8ff;
}

/* (.profile-btn-outline removed 2026-07-19 per css-audit A2) */

/* data tiles -> cankao white cards with blue-line hover */
body[data-controller="user"][data-action="index"] .stat-tile {
    border: 1px solid var(--ovs-card-line);
    border-radius: 16px;
}

body[data-controller="user"][data-action="index"] .stat-tile .tile-header i {
    color: var(--ovs-blue);
    opacity: .85;
}

body[data-controller="user"][data-action="index"] .tile-number {
    font-weight: 900;
    letter-spacing: -.5px;
}

/* dashboard panels (todo / activity / quick actions / security) */
body[data-controller="user"][data-action="index"] .dashboard-card {
    border: 1px solid var(--ovs-card-line) !important;
    border-radius: var(--ovs-radius) !important;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .05) !important;
}

body[data-controller="user"][data-action="index"] .todo-item {
    border-radius: 12px;
}

/* (.action-btn/.action-name removed 2026-07-19 per css-audit A2:
   overseas member overview uses the section-16b vocabulary instead) */

body[data-controller="user"][data-action="index"] .view-all-link {
    color: var(--ovs-blue);
    font-weight: 700;
}

/* ---------------------------------------------------------------- *
 * 12. integration fixes (post-review of #6/#7 deliveries)
 * ---------------------------------------------------------------- */

/* tablet band 992-1199px: narrower filter aside + scrollable list column
   (exchange table has 10 columns; links/googlelink benefit as well) */
@media (min-width: 992px) and (max-width: 1199px) {
    body .ovs-market-side {
        flex-basis: 244px;
    }

    body .ovs-market-main {
        overflow-x: auto;
    }
}

/* bootstrap clearfix pseudos become ghost grid items inside the market
   grid container and shove the aside/list into the wrong tracks — kill
   them (same class of bug as the hero/search-band fix above) */
body .ovs-market-layout.layout:before,
body .ovs-market-layout.layout:after {
    content: none;
}

/* breathing room so hover dropdowns near the filter bottom stay reachable
   inside the scrollable filter box (see section 6a .main-filter-box) */

/* ---------------------------------------------------------------- *
 * 13. cart & order (pure CSS reskin; no markup/JS-hook changes)
 * ---------------------------------------------------------------- */

/* --- 13a. shopping cart (body.page-cart, Angular-heavy: CSS only) --- */

/* Cart template has no #mainbody, so the global topbar clearance
   (body #mainbody { padding-top: 76px }) never applies — content sat
   flush under the fixed nav. Reserve space here instead. */
html body.page-cart .cart_box {
    padding-top: 96px;
}
@media (max-width: 1300px) {
    html body.page-cart .cart_box {
        padding-top: 86px;
    }
}

/* Legacy links.css pins .cart_head fixed with a 30px white border-top
   meant for the old tall header; under overseas topbar it hid the
   column headers behind the nav. Keep it in document flow. */
@media (min-width: 768px) {
    html body.page-cart .cart_head {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: none;
        border-bottom: none;
        background: transparent;
        z-index: auto;
    }

    html body.page-cart .cart_head .cart_head_container {
        /* cart.css locks height:40px — English "Select all" wraps and
           sits on the blue border; grow with content instead. */
        height: auto !important;
        min-height: 48px;
        padding: 14px 16px !important;
        align-items: center;
        box-sizing: border-box;
        border: 1px solid var(--ovs-card-line);
        border-bottom: 2px solid var(--ovs-blue);
        border-radius: var(--ovs-radius) var(--ovs-radius) 0 0;
        box-shadow: var(--ovs-shadow);
        font-weight: 800;
        color: var(--ovs-ink);
        line-height: 1.35;
    }

    /* Template hardcodes width:40px on the 全选/Select-all label —
       fine for 全选, too narrow for English → wrap + crush the border. */
    html body.page-cart .cart_head .cart_head_container > span {
        align-self: center;
        line-height: 1.35;
    }
    html body.page-cart .cart_head .cart_head_container > span:nth-child(2) {
        width: auto !important;
        min-width: 4.5em;
        white-space: nowrap;
        padding: 0 6px 0 2px;
        text-align: left;
    }

    html body.page-cart .goods_item_box {
        border: 1px solid var(--ovs-card-line);
        border-radius: var(--ovs-radius);
        box-shadow: var(--ovs-shadow);
        padding: 0 14px;
        margin-top: 16px;
    }

    html body.page-cart .goods_item_box .item_con > li:hover {
        background-color: #f8fbff;
    }
}

html body.page-cart .goods_item_box .cate {
    border-radius: 6px;
}

/* agreement radio: red check -> brand blue */
html body.page-cart .icon-radios.checked::before {
    color: var(--ovs-blue);
}

/* Row delete: bare red FA icon -> soft danger chip */
html body.page-cart .goods_item_box .edit_btn.fa-trash-o {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
html body.page-cart .goods_item_box .edit_btn.fa-trash-o:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c !important;
    box-shadow: 0 6px 14px rgba(185, 28, 28, .12);
    transform: translateY(-1px);
}

/* checkout bar: rounded floating card while in document flow; square
   full-width strip is kept when .fix pins it to the viewport bottom */
html body.page-cart .cart-checkout-panel:not(.fix) {
    margin-top: 28px !important;
}

@media (min-width: 768px) {
    html body.page-cart .cart-checkout-panel:not(.fix) .cart-order-bar {
        border: 1px solid var(--ovs-card-line) !important;
        border-radius: var(--ovs-radius) !important;
        box-shadow: var(--ovs-shadow) !important;
        overflow: hidden;
        background: #fff !important;
        padding: 16px 0 16px 18px !important;
        row-gap: 12px !important;
        column-gap: 14px !important;
        min-height: 88px !important;
        align-items: center !important;
    }

    html body.page-cart .cart-checkout-panel.fix .cart-order-bar {
        border-color: var(--ovs-card-line) !important;
    }

    /* Toolbar: Select all / Batch delete / Clear cart */
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
        font-size: 13px !important;
        color: var(--ovs-ink);
        font-weight: 600;
    }
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions .hand {
        display: inline-flex;
        align-items: center;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569 !important;
        font-weight: 600;
        font-size: 13px;
        line-height: 1.2;
        cursor: pointer;
        transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions .hand:hover {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: var(--ovs-blue) !important;
    }
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions b.hand {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c !important;
        font-weight: 700;
    }
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions b.hand:hover {
        border-color: #f87171;
        background: #fee2e2;
        color: #991b1b !important;
    }

    /* Agreement: give bottom breathing room, quieter copy */
    html body.page-cart .cart-order-bar .order-bar-agreement {
        padding: 2px 0 2px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        color: #64748b !important;
    }
    html body.page-cart .cart-order-bar .order-bar-agreement a.text-color {
        color: var(--ovs-blue) !important;
        font-weight: 600;
    }

    /* Coupon select */
    html body.page-cart .cart-order-bar .order-bar-coupon .form-control {
        height: 36px !important;
        border-radius: 10px !important;
        border-color: #dbe3f0 !important;
        font-size: 13px !important;
        color: var(--ovs-ink);
        box-shadow: none !important;
        background: #f8fafc;
    }
    html body.page-cart .cart-order-bar .order-bar-coupon .form-control:focus {
        border-color: var(--ovs-blue) !important;
        background: #fff;
    }

    /* Totals */
    html body.page-cart .cart-order-bar .order-bar-selected-count {
        color: #64748b !important;
        font-size: 13px !important;
    }
    html body.page-cart .cart-order-bar .order-bar-selected-text .price {
        color: var(--ovs-blue) !important;
        font-weight: 800;
    }
    html body.page-cart .cart-order-bar .order-bar-total-price {
        color: #ef4444 !important;
        font-size: 22px !important;
        font-weight: 900 !important;
        letter-spacing: -.3px;
    }
    html body.page-cart .cart-order-bar .order-bar-balance-row {
        color: #64748b !important;
        font-size: 13px !important;
    }

    /* Submit: match overseas primary CTA; keep right-edge flush with card */
    html body.page-cart .cart-order-bar .order-btn {
        border-radius: 0 var(--ovs-radius) var(--ovs-radius) 0 !important;
        margin: -16px -1px -16px 0 !important;
        min-height: 88px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: .2px;
        border: none !important;
        box-shadow: none !important;
        transition: filter .15s ease, background .15s ease;
    }
    html body.page-cart .cart-order-bar .order-btn-submit {
        background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark)) !important;
        color: #fff !important;
    }
    html body.page-cart .cart-order-bar .order-btn-submit:hover {
        filter: brightness(1.05);
    }
    html body.page-cart .cart-order-bar .order-btn-disabled {
        background: #c9d2dc !important;
        color: #fff !important;
        cursor: not-allowed;
        opacity: 1;
    }
}

@media (max-width: 767px) {
    html body.page-cart .cart-checkout-panel:not(.fix) {
        margin-top: 20px !important;
    }
    html body.page-cart .cart-order-bar {
        border: 1px solid var(--ovs-card-line) !important;
        border-radius: var(--ovs-radius) !important;
        box-shadow: var(--ovs-shadow) !important;
        padding: 14px 15px 16px !important;
    }
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions .hand {
        display: inline-flex;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569 !important;
        font-weight: 600;
        font-size: 12px;
    }
    html body.page-cart .cart-order-bar .order-bar-toolbar-actions b.hand {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c !important;
    }
    html body.page-cart .cart-order-bar .order-btn {
        border-radius: 12px !important;
        min-height: 48px !important;
        font-weight: 800 !important;
    }
    html body.page-cart .cart-order-bar .order-btn-submit {
        background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark)) !important;
        color: #fff !important;
    }
}

/* cart modals follow the card language */
html body.page-cart .modal-content {
    border: 1px solid var(--ovs-card-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 35, 80, .18);
    overflow: hidden;
}

html body.page-cart .modal-header {
    background: #f8fbff;
}

/* Set-material modal footer: align actions; Delete was bare red text */
html body.page-cart .modal.modal-blue .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 20px;
    background: #f8fbff;
    border-top: 1px solid var(--ovs-card-line);
    text-align: left;
}

html body.page-cart .modal.modal-blue .modal-footer > .pull-left {
    float: none;
    margin-right: auto;
}

html body.page-cart .modal.modal-blue .modal-footer > .pull-right {
    float: none;
    margin-left: 4px;
}

html body.page-cart .modal.modal-blue .modal-footer .btn.pd835 {
    border-radius: 999px;
    padding: 8px 22px;
    font-weight: 700;
    min-width: 96px;
}

html body.page-cart .modal.modal-blue .modal-footer .edit_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    float: none;
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

html body.page-cart .modal.modal-blue .modal-footer .edit_btn::before {
    content: "\f1f8"; /* fa-trash */
    font-family: FontAwesome;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

html body.page-cart .modal.modal-blue .modal-footer .edit_btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b !important;
    box-shadow: 0 6px 14px rgba(185, 28, 28, .12);
    transform: translateY(-1px);
}

html body.page-cart .modal.modal-blue .modal-footer .edit_btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Material picker cards — cart page does not load links.css, so the
   gray_link/licai backgrounds never applied and "selected" looked dead. */
html body.page-cart .modal.modal-blue .list-link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
html body.page-cart .modal.modal-blue .list-link ul li {
    float: none;
    position: relative;
    box-sizing: border-box;
    width: calc(33.333% - 8px);
    min-width: 220px;
    max-width: 280px;
    min-height: 78px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
html body.page-cart .modal.modal-blue .list-link ul li:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 16px rgba(16, 98, 238, .08);
}
html body.page-cart .modal.modal-blue .list-link ul li.active {
    border-color: var(--ovs-blue);
    background: #f0f6ff;
    box-shadow: 0 0 0 2px rgba(16, 98, 238, .18);
}
html body.page-cart .modal.modal-blue .list-link ul li p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
    word-break: break-all;
}
html body.page-cart .modal.modal-blue .list-link ul li p:last-of-type {
    margin-bottom: 0;
}
html body.page-cart .modal.modal-blue .list-link ul li p ss {
    display: inline;
    width: auto;
    color: var(--ovs-ink);
    font-weight: 600;
}
html body.page-cart .modal.modal-blue .list-link ul li .default_link {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    border-radius: 0 12px 0 8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
html body.page-cart .modal.modal-blue .list-link .last_li,
html body.page-cart .modal.modal-blue .last_li {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: calc(33.333% - 8px);
    min-width: 220px;
    max-width: 280px;
    min-height: 78px;
    margin: 0;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}
html body.page-cart .modal.modal-blue .list-link .last_li:hover,
html body.page-cart .modal.modal-blue .last_li:hover {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
    background: #eff6ff;
}
html body.page-cart .modal.modal-blue .addlink_box,
html body.page-cart .modal.modal-blue .add_advlink_box {
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-top: 14px;
    padding: 18px 16px;
    border: 1px solid var(--ovs-card-line);
    border-radius: 12px;
    background: #fff;
    background-image: none;
}
html body.page-cart .modal.modal-blue .addlink_box input,
html body.page-cart .modal.modal-blue .add_advlink_box input {
    max-width: 100%;
}

@media (max-width: 767px) {
    html body.page-cart .modal.modal-blue .list-link ul li,
    html body.page-cart .modal.modal-blue .list-link .last_li,
    html body.page-cart .modal.modal-blue .last_li {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

/* --- 13b. order pay + rebuy (token/amount/countdown markup untouched) --- */

html body .pay-card,
html body .rebuy-card {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    padding: 26px 28px;
    margin: 28px auto;
}

html body .pay-title,
html body .rebuy-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--ovs-ink);
    letter-spacing: -.4px;
    border-left: 4px solid var(--ovs-blue);
    padding-left: 10px;
    line-height: 1.2;
}

html body .pay-amount,
html body .rebuy-amount {
    color: #ff3f22;
}

html body .pay-actions .btn {
    border-radius: 10px;
    font-weight: 700;
    min-height: 44px;
}

html body .pay-note,
html body .rebuy-note {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--ovs-muted);
}

html body .rebuy-card .form-control {
    border-radius: 10px;
    min-height: 40px;
}

html body .rebuy-card .form-control:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
}

html body .rebuy-card .btn-block {
    border-radius: 10px;
    font-weight: 800;
    min-height: 46px;
}

/* ---------------------------------------------------------------- *
 * 14. content & support
 * (article list/detail re-skin of shared frontend/article.css;
 * notice / help / linkcheck / signin templates carry their own
 * inline tokens already flipped to blue. article.css is linked
 * after theme.css, so selectors below carry html/body prefixes
 * to win on specificity, not on order.)
 * ---------------------------------------------------------------- */

/* canvas: replace the purple radials + ink grid of article.css */
html body.article-page,
html body.article-list-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(16, 98, 238, .10), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(43, 124, 255, .12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f6f9ff 42%, #ffffff 100%);
    background-attachment: fixed;
}

html body.article-page::before,
html body.article-list-page::before {
    display: none;
}

/* hero: ink-to-blue headline gradient + blue baseline divider */
body .ethereal-hero .hero-title {
    background: linear-gradient(135deg, #111827 0%, #1062ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body .ethereal-hero::after {
    background: linear-gradient(90deg, transparent, rgba(16, 98, 238, .28), transparent);
}

/* (.hero-badge removed 2026-07-19 per css-audit A1: no markup/JS emits it) */

/* floating category pill: blue hover / active states */
body .floating-nav-pill {
    border: 1px solid var(--ovs-card-line);
}

body .cat-item:hover {
    background: rgba(16, 98, 238, .06);
}

body .cat-item.active {
    box-shadow: 0 4px 12px rgba(16, 98, 238, .28);
}

/* article cards + infinite-scroll states */
body .card-clean:hover {
    border-color: rgba(16, 98, 238, .22);
}

body .scroll-load-hint {
    background: rgba(16, 98, 238, .07);
    border-color: rgba(16, 98, 238, .16);
    box-shadow: 0 4px 12px rgba(16, 98, 238, .10);
}

html body.article-list-page .loading-state,
html body.article-list-page .end-state {
    background: rgba(16, 98, 238, .05);
    border-color: rgba(16, 98, 238, .12);
}

/* AI summary panel (article detail + help center include) */
body .page-ai-summary {
    border-color: rgba(16, 98, 238, .14);
    background: linear-gradient(135deg, rgba(234, 243, 255, .88), rgba(248, 251, 255, .96));
}

/* article body accents: cyan blockquote -> pale blue */
body .article-content blockquote {
    border-left-color: var(--ovs-blue);
    background: #eef5ff;
    color: #0b4fc4;
}

/* ---------------------------------------------------------------- *
 * 15. market rebuild (links / googlelink / softtext / adsale)
 *
 * cankao is the style source of truth (ui-base.css). The four market
 * list templates stack the new vocabulary classes onto their shells:
 *   .ovs-market-layout += .layout      (grid 260px | 1fr)
 *   .ovs-market-side   += .side-filter (single white filter card)
 *   .ovs-market-main   += .list-shell  (single white list card)
 * The rules below re-assert the cankao geometry over the earlier flex
 * skin (section 6a-0) and flatten the legacy inner cards so the page
 * reads as cankao's page-softtext, not as the old site recolored.
 * Angular bindings / ng-* / id hooks are untouched.
 * ---------------------------------------------------------------- */

/* --- 15a. layout geometry --- */

@media (min-width: 992px) {
    body .ovs-market-layout.layout {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }

    body .ovs-market-side.side-filter {
        align-self: start;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body .ovs-market-layout.layout {
        grid-template-columns: 244px minmax(0, 1fr);
    }
}

/* --- 15b. side filter: one cankao card, legacy inner cards flattened --- */

@media (min-width: 768px) {
    body .ovs-market-side.side-filter {
        background: #ffffff;
        border: 1px solid #e8eef8;
        border-radius: var(--ovs-radius);
        box-shadow: var(--ovs-shadow);
        padding: 18px;
    }

    body .ovs-market-side.side-filter .main-filter-wrap,
    body .ovs-market-side.side-filter .main-filter-box {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
        float: none;
    }

    /* rows -> cankao .filter-group separators */
    body .ovs-market-side.side-filter .main-filter-box .row-box {
        border-top: 1px solid #edf2f7;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box:first-of-type {
        border-top: 0;
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box > div {
        padding: 16px 0;
        height: auto;
        min-height: 0;
    }

    /* group label -> cankao .filter-group h4 */
    body .ovs-market-side.side-filter .main-filter-box .row-box > div > span.pull-left {
        display: block;
        float: none !important;
        width: auto;
        margin: 0 0 12px;
        font-size: 14px;
        font-weight: 800;
        color: #374151;
        line-height: 1.45;
    }

    /* option pills -> quiet cankao lines with soft-blue active state */
    body .ovs-market-side.side-filter .main-filter-box li {
        line-height: 26px;
    }

    body .ovs-market-side.side-filter .main-filter-box li a {
        padding: 2px 10px;
        border-radius: 8px;
        color: #4b5563;
        background: transparent;
    }

    body .ovs-market-side.side-filter .main-filter-box li:hover a {
        background: #eef5ff;
        color: var(--ovs-blue);
    }

    body .ovs-market-side.side-filter .main-filter-box li.active a {
        background: #eef5ff;
        color: var(--ovs-blue);
        font-weight: 800;
    }

    /* min-max range inputs -> cankao .field mini */
    body .ovs-market-side.side-filter .main-filter-box .main-search-input .form-control {
        border: 1px solid #dbe4f0;
        border-radius: 8px;
        background: #fff;
    }

    body .ovs-market-side.side-filter .main-filter-box .main-search-input .form-control:focus {
        border-color: #8bb9ff;
        box-shadow: 0 0 0 3px rgba(16, 98, 238, .08);
    }

    /* sidebar banner keeps its own rounded block above the filters */
    body .ovs-market-side.side-filter .main-order-list {
        width: 100%;
        float: none;
        margin: 0 0 14px;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}

/* mobile keeps the legacy drawer behavior: no card wrapper */
@media (max-width: 767px) {
    body .ovs-market-side.side-filter {
        position: static;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        height: auto;
    }

    body .ovs-market-side .ovs-filter-reset-row {
        display: none !important;
    }
}

/* tablet band 768-991: side column is a full-width block, not sticky */
@media (min-width: 768px) and (max-width: 991px) {
    body .ovs-market-side.side-filter {
        position: static;
        margin-bottom: 16px;
        height: auto;
    }
}

/* --- 15c. list column: one cankao .list-shell card --- */

/* the .list-shell card itself comes from ui-base; flatten the legacy
   inner cards so toolbar + rows + pagination live in a single shell */

body .ovs-market-main.list-shell .main-order-bar {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #edf2f7;
    padding: 0 0 4px;
    margin-bottom: 6px;
}

/* sort entries -> cankao .sorts buttons */
body .ovs-market-main.list-shell .main-order-bar .order-item {
    border-right: 0;
    padding: 0;
    margin: 13px 20px 13px 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

body .ovs-market-main.list-shell .main-order-bar .order-item.active {
    color: var(--ovs-blue);
}

body .ovs-market-main.list-shell .main-order-bar .search-check {
    color: #6b7280;
    font-weight: 700;
}

body .ovs-market-main.list-shell .main-order-bar .flyall {
    border-radius: 9px;
    font-weight: 800;
}

/* cankao list rows use an outline-blue 购买 button (btn-outline btn-sm); the
   live row buy button was solid orange. Match cankao's outline-blue for the
   list rows (cankao reserves orange for the detail-page buy-now button). */
body .ovs-market-main .buy-item .btn.btn-info {
    background: #ffffff;
    color: var(--ovs-blue);
    border: 1px solid #bcd3f7;
    border-radius: 9px;
    font-weight: 800;
}

body .ovs-market-main .buy-item .btn.btn-info:hover,
body .ovs-market-main .buy-item .btn.btn-info:focus {
    background: var(--ovs-blue);
    color: #ffffff;
    border-color: var(--ovs-blue);
}

/* goods table shell -> transparent, cankao .ovs-table rhythm */
body .ovs-market-main.list-shell .main-goods-list {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    overflow: visible;
}

body .ovs-market-main.list-shell .main-goods-list .head {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    color: #6b7280;
    font-size: 13px;
}

body .ovs-market-main.list-shell .main-goods-res > li {
    border-bottom: 1px solid #edf2f7;
}

body .ovs-market-main.list-shell .main-goods-res > li:hover {
    background: #f8fbff;
}

/* pagination -> cankao .pagination / .page-btn */
body .ovs-market-main.list-shell .tcdPageCode.item_page {
    padding: 18px 0 6px;
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > span,
body .ovs-market-main.list-shell .tcdPageCode.item_page > a {
    min-width: 36px;
    min-height: 36px;
    border: 1px solid #d8e2f2;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-weight: 900;
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > .text {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-weight: 700;
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > .current {
    border-color: var(--ovs-blue);
    background: var(--ovs-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > .disabled {
    opacity: .45;
    background: #fff;
    border-color: #d8e2f2;
    color: #94a3b8;
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > a:hover {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
    background: #fff;
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > input {
    height: 36px;
    border: 1px solid #d8e2f2;
    border-radius: 10px;
}

body .ovs-market-main.list-shell .tcdPageCode.item_page > input:focus {
    border-color: var(--ovs-blue);
    box-shadow: 0 0 0 3px rgba(16, 98, 238, .10);
}

/* the shell card needs breathing room below the sticky topbar band */
@media (max-width: 767px) {
    body .ovs-market-main.list-shell {
        padding: 12px;
    }
}

/* ---------------------------------------------------------------- *
 * 16. detail rebuild + member overview rebuild
 * (site/index.html rebuilt on ui-base.css page-detail vocabulary;
 * user/index.html rebuilt on page-member intent. The member layout
 * does NOT load ui-base.css, so the small set of cankao member
 * classes used there is (re)defined here, consistent with ui-base.)
 * ---------------------------------------------------------------- */

/* -- 16a. site detail page glue (ui-base is loaded here) ---------- */

body .ovs-detail-page .breadcrumb-strip {
    margin-top: 12px;
}

body .ovs-detail-page .gallery-caption {
    position: relative;
    z-index: 1;
    text-shadow: 0 10px 26px rgba(0, 0, 0, .28);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

body .ovs-detail-page .detail-info h1 a {
    color: var(--ovs-ink);
}

body .ovs-detail-page .detail-info h1 a:hover {
    color: var(--ovs-blue) !important;
}

body .ovs-detail-page .detail-meta {
    color: var(--ovs-muted);
    line-height: 1.8;
    margin: 0 0 6px;
    word-break: break-all;
}

body .ovs-detail-page .detail-meta a {
    color: var(--ovs-blue);
    font-weight: 700;
}

body .ovs-detail-page .meta-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

/* tab panels: class-driven visibility (tiny template script toggles) */
body .ovs-detail-page .detail-tabs .tab-content {
    display: none;
}

body .ovs-detail-page .detail-tabs .tab-content.active {
    display: block;
}

body .ovs-detail-page .detail-desc {
    margin: 0 0 10px;
    color: #374151;
}

body .ovs-detail-page .detail-engines {
    color: var(--ovs-muted);
    margin: 0;
}

/* mobile refinements: ui-base collapses .data-strip to 1 column (6 tall
   rows) and the tab nav overflows; give a denser 3-col strip + scroll tabs */
@media (max-width: 640px) {
    /* prevent grid/flex children from forcing horizontal overflow on mobile
       (min-content of long labels was pushing the 2nd column off-screen) */
    body .ovs-detail-page .detail-card,
    body .ovs-detail-page .detail-card > div,
    body .ovs-detail-page .detail-info,
    body .ovs-detail-page .gallery-main {
        min-width: 0;
        max-width: 100%;
    }

    body .ovs-detail-page .detail-card .data-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px 8px;
    }

    body .ovs-detail-page .detail-card .data-strip .data-box {
        min-width: 0;
    }

    body .ovs-detail-page .detail-card .data-strip .data-box small {
        white-space: normal;
        font-size: 11px;
        line-height: 1.3;
    }

    body .ovs-detail-page .detail-tabs nav {
        gap: 14px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body .ovs-detail-page .detail-tabs nav button {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

body .ovs-detail-page .detail-engines a {
    color: var(--ovs-blue);
    font-weight: 700;
    margin-right: 6px;
}

body .ovs-detail-page .siteinfo-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

body .ovs-detail-page .siteinfo-head a {
    border: 1px solid #b8d0ff;
    color: var(--ovs-blue);
    border-radius: 9px;
    background: #fff;
    font-weight: 700;
    padding: 5px 12px;
    font-size: 13px;
}

body .ovs-detail-page .siteinfo-head a.is-loading {
    opacity: .6;
    pointer-events: none;
}

body .ovs-detail-page .siteinfo-table {
    width: 100%;
    border-collapse: collapse;
}

body .ovs-detail-page .siteinfo-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    vertical-align: top;
    word-break: break-all;
}

body .ovs-detail-page .siteinfo-table td:first-child {
    color: var(--ovs-muted);
    white-space: nowrap;
    width: 150px;
}

body .ovs-detail-page .metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 12px;
}

body .ovs-detail-page .metrics-grid .data-box a {
    color: var(--ovs-blue);
}

/* buy box: five service offer rows */
body .ovs-detail-page .buy-box-title {
    font-weight: 900;
    font-size: 16px;
    color: var(--ovs-ink);
    margin-bottom: 10px;
}

body .ovs-detail-page .offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

body .ovs-detail-page .offer-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--ovs-shadow);
}

body .ovs-detail-page .offer-row:last-child {
    margin-bottom: 0;
}

body .ovs-detail-page .offer-name {
    font-weight: 800;
    color: var(--ovs-ink);
    font-size: 14px;
}

body .ovs-detail-page .offer-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

body .ovs-detail-page .offer-ok {
    color: #059669;
    font-size: 13px;
    font-weight: 700;
}

body .ovs-detail-page .offer-muted {
    color: #9ca3af;
    font-size: 13px;
}

body .ovs-detail-page a.offer-btn {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #fff;
    border-radius: 9px;
    padding: 6px 16px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
}

body .ovs-detail-page a.offer-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

body .ovs-detail-page span.offer-btn.is-disabled {
    background: #eef2f7;
    color: #9ca3af;
    border-radius: 9px;
    padding: 6px 16px;
    font-weight: 800;
    font-size: 13px;
    cursor: not-allowed;
}

/* recommendation chip lists */
body .ovs-detail-page .chip-shell {
    padding: 14px;
    margin-bottom: 6px;
}

body .ovs-detail-page .chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .ovs-detail-page .chip-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 8px 12px;
    max-width: 260px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

body .ovs-detail-page .chip-list a:hover {
    border-color: #b8d0ff;
    color: var(--ovs-blue) !important;
}

body .ovs-detail-page .chip-index {
    color: var(--ovs-blue);
    font-weight: 900;
    font-size: 12px;
}

body .ovs-detail-page .chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* guarantee mini cards */
body .ovs-detail-page .guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}

body .ovs-detail-page .guarantee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 14px;
}

body .ovs-detail-page .guarantee-card img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}

body .ovs-detail-page .guarantee-card b {
    display: block;
    color: var(--ovs-ink);
    font-size: 14px;
}

body .ovs-detail-page .guarantee-card p {
    margin: 4px 0 0;
    color: var(--ovs-muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    body .ovs-detail-page .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body .ovs-detail-page .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body .ovs-detail-page .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body .ovs-detail-page .guarantee-grid {
        grid-template-columns: 1fr;
    }

    body .ovs-detail-page .offer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -- 16b. member overview: inner grid + account panel ------------- *
 * layout/default.html loads user.css + theme.css only (no ui-base),
 * so the cankao member classes used by user/index.html live here.  */

body[data-controller="user"][data-action="index"] .member-inner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1199px) {
    body[data-controller="user"][data-action="index"] .member-inner-grid {
        display: flex;
        flex-direction: column;
        /* base rule uses align-items:start for desktop grid; must stretch on mobile
           or display:contents children shrink to content width (narrow left column) */
        align-items: stretch;
        grid-template-columns: none;
        width: 100%;
    }

    /* Flatten columns so account-panel can sit right under the profile card */
    body[data-controller="user"][data-action="index"] .member-main-col,
    body[data-controller="user"][data-action="index"] .member-side-col {
        display: contents;
    }

    body[data-controller="user"][data-action="index"] .command-center-box,
    body[data-controller="user"][data-action="index"] .account-panel,
    body[data-controller="user"][data-action="index"] .member-stat-tiles,
    body[data-controller="user"][data-action="index"] .member-main-col > .dashboard-card,
    body[data-controller="user"][data-action="index"] .member-side-col > .dashboard-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex: 0 0 auto;
        align-self: stretch;
    }

    body[data-controller="user"][data-action="index"] .command-center-box {
        order: 1;
    }

    body[data-controller="user"][data-action="index"] .account-panel {
        order: 2;
    }

    body[data-controller="user"][data-action="index"] .member-stat-tiles {
        order: 3;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    body[data-controller="user"][data-action="index"] .member-stat-tiles::-webkit-scrollbar {
        display: none;
    }

    body[data-controller="user"][data-action="index"] .member-stat-tiles::before,
    body[data-controller="user"][data-action="index"] .member-stat-tiles::after {
        display: none;
        content: none;
    }

    body[data-controller="user"][data-action="index"] .member-stat-tiles > [class*="col-"] {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        flex: 0 0 132px;
        float: none;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0;
        scroll-snap-align: start;
    }

    body[data-controller="user"][data-action="index"] .member-stat-tiles .stat-tile,
    body[data-controller="user"][data-action="index"] .member-stat-tiles .stat-tile-link {
        height: 100%;
        margin-bottom: 0;
        display: block;
    }

    body[data-controller="user"][data-action="index"] .member-main-col > .dashboard-card,
    body[data-controller="user"][data-action="index"] .member-side-col > .dashboard-card {
        order: 4;
    }
}

/* cankao account-panel (reference: page-member right column) */
body[data-controller="user"][data-action="index"] .account-panel {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    padding: 18px;
}

body[data-controller="user"][data-action="index"] .account-panel-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="index"] .account-balance-box {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

body[data-controller="user"][data-action="index"] .ab-label {
    color: var(--ovs-muted);
    font-size: 13px;
}

body[data-controller="user"][data-action="index"] .ab-value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--ovs-ink);
    margin: 4px 0 10px;
}

body[data-controller="user"][data-action="index"] .ab-actions {
    display: flex;
    gap: 8px;
}

body[data-controller="user"][data-action="index"] .ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease;
}

body[data-controller="user"][data-action="index"] .ab-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

body[data-controller="user"][data-action="index"] .ab-btn-primary {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
}

body[data-controller="user"][data-action="index"] .ab-btn-primary:hover,
body[data-controller="user"][data-action="index"] .ab-btn-primary:focus {
    color: #fff;
}

body[data-controller="user"][data-action="index"] .ab-btn-outline {
    border: 1px solid #b8d0ff;
    background: #fff;
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="index"] .ab-btn-outline:hover,
body[data-controller="user"][data-action="index"] .ab-btn-outline:focus {
    color: var(--ovs-blue);
    background: #eef5ff;
}

/* cankao quick entries (reference .quick-grid/.quick) */
body[data-controller="user"][data-action="index"] .quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

body[data-controller="user"][data-action="index"] .quick {
    position: relative;
    display: block;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #4b5563;
    background: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-controller="user"][data-action="index"] .quick:hover,
body[data-controller="user"][data-action="index"] .quick:focus {
    border-color: #b8d0ff;
    color: var(--ovs-blue);
    background: #f8fbff;
    text-decoration: none;
}

body[data-controller="user"][data-action="index"] .quick-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 6px;
}

/* ---------------------------------------------------------------- *
 * 18. table rebuild (market list rows -> cankao .ovs-table grid)
 * DECISION-001 (confirmed): keep the div/li structure and ALL
 * Angular hooks; on desktop (>=768px) the header row and both data
 * lists (PHP first screen + ng-repeat pagination) share one CSS
 * Grid track per page, matching the cankao .ovs-table alignment.
 * <768px is untouched: the existing data-label card system of
 * links.css keeps full ownership (media query hard isolation).
 * Note: the single width:auto !important below is required because
 * the header spans carry inline style="width:NN%" (inline styles
 * cannot be beaten by specificity); it is one targeted rule, not a
 * carpet — row cells are neutralized via plain high specificity.
 * ---------------------------------------------------------------- */

@media (min-width: 768px) {

    /* -- 18a. links page (10 tracks) ------------------------------ */

    body .links-page .main-goods-list .head.goto_header,
    body .links-page .main-goods-res.goods-friend > li {
        display: grid;
        grid-template-columns:
            44px minmax(0, 2.9fr)
            repeat(6, minmax(58px, .8fr))
            minmax(104px, 1.1fr) minmax(150px, 1.9fr);
        align-items: center;
    }

    /* clearfix pseudos would become phantom grid items — remove them */
    body .links-page .main-goods-list .head.goto_header::before,
    body .links-page .main-goods-list .head.goto_header::after,
    body .links-page .main-goods-res.goods-friend > li::before,
    body .links-page .main-goods-res.goods-friend > li::after {
        content: none;
    }

    /* header spans carry inline percent widths: the one targeted
       !important (see block note) hands sizing to the grid tracks */
    body .links-page .main-goods-list .head.goto_header > span {
        width: auto !important;
        float: none;
    }

    /* row cells: stylesheet percents/floats neutralized by specificity */
    body .links-page .main-goods-res.goods-friend > li > .checkbox-wrap,
    body .links-page .main-goods-res.goods-friend > li > .website-msg,
    body .links-page .main-goods-res.goods-friend > li > .detail-item {
        width: auto;
        float: none;
        min-width: 0;
    }

    body .links-page .main-goods-res.goods-friend > li > .detail-item {
        min-height: 0;
    }

    /* cankao .ovs-table visual: light header band, hairline rows,
       hover row tint, numeric emphasis */
    body .links-page .main-goods-list .head.goto_header {
        background: #f8fbff;
        color: var(--ovs-muted);
        font-size: 13px;
        border-bottom: 1px solid #edf2f7;
    }

    body .links-page .main-goods-res.goods-friend > li {
        border-bottom: 1px solid #edf2f7;
    }

    body .links-page .main-goods-res.goods-friend > li:hover {
        background: #f8fbff;
    }

    body .links-page .goods-friend .detail-price span.value-box {
        font-weight: 800;
    }

    body .links-page .goods-friend .detail-price span {
        color: #ff3f22 !important;
    }

    body .links-page .goods-friend .detail-price .links-price {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        line-height: 1.15;
        max-width: 100%;
        text-align: center;
    }

    body .links-page .goods-friend .detail-price .links-price-scope {
        font-size: 12px;
        font-weight: 700;
        color: #ff3f22 !important;
        white-space: nowrap;
    }

    body .links-page .goods-friend .detail-price .links-price-amount {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -.02em;
        color: #ff3f22 !important;
        white-space: nowrap;
    }

    body .links-page .goods-friend .detail-price .links-price-unit {
        font-size: 12px;
        font-weight: 600;
        color: #ff7a63 !important;
        white-space: nowrap;
    }

    body .links-page .goods-friend .detail-price.qz-price > .value-box.links-price {
        position: relative;
        padding-right: 14px;
    }

    body .links-page .goods-friend .detail-price.qz-price > .value-box.links-price::after {
        content: '';
        position: absolute;
        border: 5px solid transparent;
        border-top-color: #ff3f22;
        right: -2px;
        top: 50%;
        margin-top: -2.5px;
    }

    body .links-page .goods-friend .detail-price.qz-price .links-price-scope::after,
    body .links-page .goods-friend .detail-price.qz-price .links-price-amount::after,
    body .links-page .goods-friend .detail-price.qz-price .links-price-unit::after {
        content: none !important;
        display: none !important;
    }

    /* Rank badges on their own row under status icons */
    body .links-page .goods-friend .site-rank-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        row-gap: 8px;
        margin: 0 0 10px;
    }

    /* -- 18b. googlelink page (10 tracks, wider price/action) ------ */

    body .googlelink-page .main-goods-list .head.goto_header,
    body .googlelink-page .main-goods-res.goods-friend > li {
        display: grid;
        grid-template-columns:
            44px minmax(0, 2.6fr)
            repeat(6, minmax(58px, .8fr))
            minmax(120px, 1.6fr) minmax(120px, 1.4fr);
        align-items: center;
    }

    body .googlelink-page .main-goods-list .head.goto_header::before,
    body .googlelink-page .main-goods-list .head.goto_header::after,
    body .googlelink-page .main-goods-res.goods-friend > li::before,
    body .googlelink-page .main-goods-res.goods-friend > li::after {
        content: none;
    }

    body .googlelink-page .main-goods-list .head.goto_header > span {
        width: auto !important;
        float: none;
    }

    body .googlelink-page .main-goods-res.goods-friend > li > .checkbox-wrap,
    body .googlelink-page .main-goods-res.goods-friend > li > .website-msg,
    body .googlelink-page .main-goods-res.goods-friend > li > .detail-item {
        width: auto;
        float: none;
        min-width: 0;
    }

    body .googlelink-page .main-goods-res.goods-friend > li > .detail-item {
        min-height: 0;
    }

    body .googlelink-page .main-goods-list .head.goto_header {
        background: #f8fbff;
        color: var(--ovs-muted);
        font-size: 13px;
        border-bottom: 1px solid #edf2f7;
    }

    body .googlelink-page .main-goods-res.goods-friend > li {
        border-bottom: 1px solid #edf2f7;
    }

    body .googlelink-page .main-goods-res.goods-friend > li:hover {
        background: #f8fbff;
    }

    body .googlelink-page .goods-friend .detail-price span {
        color: #ff3f22 !important;
    }

    body .googlelink-page .goods-friend .detail-price .links-price {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        line-height: 1.15;
        max-width: 100%;
        text-align: center;
    }

    body .googlelink-page .goods-friend .detail-price .links-price-scope {
        font-size: 12px;
        font-weight: 700;
        color: #ff3f22 !important;
        white-space: nowrap;
    }

    body .googlelink-page .goods-friend .detail-price .links-price-amount {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -.02em;
        color: #ff3f22 !important;
        white-space: nowrap;
    }

    body .googlelink-page .goods-friend .detail-price .links-price-unit {
        font-size: 12px;
        font-weight: 600;
        color: #ff7a63 !important;
        white-space: nowrap;
    }

    body .googlelink-page .goods-friend .detail-price.qz-price > .value-box.links-price {
        position: relative;
        padding-right: 14px;
    }

    body .googlelink-page .goods-friend .detail-price.qz-price > .value-box.links-price::after {
        content: '';
        position: absolute;
        border: 5px solid transparent;
        border-top-color: #ff3f22;
        right: -2px;
        top: 50%;
        margin-top: -2.5px;
    }

    body .googlelink-page .goods-friend .detail-price.qz-price .links-price-scope::after,
    body .googlelink-page .goods-friend .detail-price.qz-price .links-price-amount::after,
    body .googlelink-page .goods-friend .detail-price.qz-price .links-price-unit::after {
        content: none !important;
        display: none !important;
    }

    /* -- 18c. softtext page (7 tracks; header cell 2 spans pic+info) */

    body .softtext-page .main-goods-list .head.goto_header,
    body .softtext-page .main-goods-res.goods-softtext > li {
        display: grid;
        /* Keep mins modest: market main column is ~820px with the left filter
           open; large minmax floors overflow and the browser shrinks tracks
           unpredictably. */
        grid-template-columns:
            44px 140px minmax(0, 2.8fr) minmax(0, 2.2fr)
            minmax(52px, .5fr) minmax(96px, .75fr) minmax(118px, .9fr);
        align-items: center;
        column-gap: 10px;
    }

    body .softtext-page .main-goods-list .head.goto_header::before,
    body .softtext-page .main-goods-list .head.goto_header::after,
    body .softtext-page .main-goods-res.goods-softtext > li::before,
    body .softtext-page .main-goods-res.goods-softtext > li::after {
        content: none;
    }

    body .softtext-page .main-goods-list .head.goto_header > span {
        width: auto !important;
        float: none;
    }

    /* header 网站信息 covers the pic + info tracks */
    body .softtext-page .main-goods-list .head.goto_header > span:nth-child(2) {
        grid-column: span 2;
    }

    body .softtext-page .main-goods-res.goods-softtext > li > .checkbox-wrap,
    body .softtext-page .main-goods-res.goods-softtext > li > .detail-pic,
    body .softtext-page .main-goods-res.goods-softtext > li > .website-msg,
    body .softtext-page .main-goods-res.goods-softtext > li > .sell-msg-item,
    body .softtext-page .main-goods-res.goods-softtext > li > .detail-item {
        width: auto;
        float: none;
        min-width: 0;
    }

    /* links.css float-era flex basis / max-width (calc(44% - 136px)) collapses
       to ~0 inside CSS grid tracks — force cells to fill their grid areas. */
    body .softtext-page .main-goods-res.goods-softtext > li > .website-msg,
    body .softtext-page .main-goods-res.goods-softtext > li > .sell-msg-item {
        flex: 1 1 auto !important;
        max-width: none !important;
        width: auto !important;
    }

    body .softtext-page .main-goods-res.goods-softtext > li > .detail-pic {
        width: 140px !important;
        flex: 0 0 140px !important;
        max-width: 140px !important;
    }

    body .softtext-page .main-goods-res.goods-softtext > li > .detail-item {
        line-height: 1.6;
        height: auto;
    }

    body .softtext-page .main-goods-list .head.goto_header {
        background: #f8fbff;
        color: var(--ovs-muted);
        font-size: 13px;
        border-bottom: 1px solid #edf2f7;
    }

    body .softtext-page .main-goods-res.goods-softtext > li {
        border-bottom: 1px solid #edf2f7;
    }

    body .softtext-page .main-goods-res.goods-softtext > li:hover {
        background: #f8fbff;
    }

    body .softtext-page .goods-softtext .detail-price span.softtext-price {
        display: inline-flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2px;
        line-height: 1;
        max-width: 100%;
    }

    body .softtext-page .goods-softtext .detail-price .softtext-price-amount {
        color: #ff3f22 !important;
        font-weight: 800;
        font-size: 18px;
        letter-spacing: -.02em;
        white-space: nowrap;
    }

    body .softtext-page .goods-softtext .detail-price .softtext-price-unit {
        color: #ff7a63 !important;
        font-weight: 600;
        font-size: 12px;
        white-space: nowrap;
    }

    body .softtext-page .goods-softtext .detail-price span:not(.softtext-price):not(.softtext-price-amount):not(.softtext-price-unit) {
        color: #ff3f22 !important;
        font-weight: 800;
    }

    /* -- 18d. adsale page: APPROVED DEGRADATION — header visual
       alignment only. Rows keep the legacy float layout because each
       row nests a second-level offer list (.imagetext-detail
       .detail-content-box li with its own percent cells and Angular
       expand/collapse); grid-ifying across that wrapper boundary is
       the high-risk case DECISION-001 explicitly allowed to skip.  */

    body .adsale-page .main-goods-list .head.goto_header {
        background: #f8fbff;
        color: var(--ovs-muted);
        font-size: 13px;
        border-bottom: 1px solid #edf2f7;
    }

    body .adsale-page .main-goods-res.goods-font > li {
        position: relative;
        display: grid;
        grid-template-columns: minmax(168px, 30%) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-items: start;
        column-gap: 16px;
        row-gap: 10px;
        border-bottom: 1px solid #edf2f7;
        padding: 16px 12px;
        padding-right: 0;
    }

    body .adsale-page .main-goods-res.goods-font > li::before,
    body .adsale-page .main-goods-res.goods-font > li::after {
        content: none;
    }

    body .adsale-page .main-goods-res.goods-font > li:hover {
        background: #f8fbff;
    }

    /* Site column: image on top, meta below (roomier than side-by-side) */
    body .adsale-page .goods-font > li > .detail-pic {
        grid-column: 1;
        grid-row: 1;
        flex: none !important;
        float: none;
        width: 100% !important;
        max-width: none !important;
        height: auto;
        aspect-ratio: 16 / 10;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        background: #eef3f9;
        box-sizing: border-box;
    }

    body .adsale-page .goods-font > li > .detail-pic img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body .adsale-page .goods-font > li > .website-msg {
        grid-column: 1;
        grid-row: 2;
        float: none;
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        justify-content: flex-start;
        align-items: stretch;
        text-align: left;
    }

    body .adsale-page .goods-font > li > .website-msg .res-title {
        max-width: 100%;
    }

    /* Indexed stats: stack left-aligned, no dead space on the left */
    body .adsale-page .goods-font > li > .website-msg > p:nth-child(3) {
        display: block !important;
        width: 100%;
        margin: 0 0 6px;
        padding: 0;
        text-align: left !important;
    }

    body .adsale-page .goods-font > li > .website-msg > p:nth-child(3) > .mr10 {
        display: block;
        width: 100%;
        margin: 0 0 2px;
        padding: 0;
        float: none;
        text-align: left !important;
    }

    /* Footer shares exact column width with .detail-pic above */
    body .adsale-page .goods-font > li > .website-msg > .adsale-site-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 4px 0 0;
        padding: 0;
        box-sizing: border-box;
    }

    body .adsale-page .goods-font > li > .website-msg > .adsale-site-footer > .res-url {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body .adsale-page .goods-font > li > .website-msg > .adsale-site-footer > .adsale-title-favorite,
    body .adsale-page .goods-font > li > .website-msg > .adsale-site-footer > .adsale-title-favorite-mobile {
        position: static !important;
        top: auto !important;
        right: auto !important;
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin: 0 !important;
        margin-left: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Desktop offer-card rail — compact hierarchy, no label clutter */
    body .adsale-page .main-goods-list .head.goto_header {
        display: flex;
        align-items: center;
    }

    body .adsale-page .main-goods-list .head.goto_header > span:first-child {
        flex: 0 0 30%;
        width: auto !important;
        max-width: 30%;
        justify-content: flex-start;
        text-align: left;
    }

    body .adsale-page .main-goods-list .head.goto_header > .adsale-offers-head {
        flex: 1 1 auto;
        width: auto !important;
        justify-content: flex-start;
        text-align: left;
    }

    body .adsale-page .goods-font .imagetext-detail {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: stretch;
        min-width: 0;
        min-height: 0;
        width: auto;
        float: none;
        display: flex;
        flex-direction: column;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box {
        flex: 1 1 auto;
        height: 100% !important;
        min-height: 0;
        padding: 4px 6px 6px;
        justify-content: stretch;
        overflow: visible;
        background: transparent;
        position: relative;
        display: flex !important;
        flex-direction: column;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box.open-detail {
        position: relative !important;
        height: 100% !important;
        box-shadow: none !important;
        z-index: auto;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box ul {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 12px;
        height: 100% !important;
        min-height: 0;
        max-height: none !important;
        margin: 0;
        padding: 2px 2px 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        cursor: grab;
        /* Always reserve thin scrollbar gutter — only tint thumb on hover (no card lift) */
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box ul.is-dragging {
        cursor: grabbing;
        user-select: none;
        scroll-snap-type: none;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box ul::-webkit-scrollbar {
        height: 6px;
        background: transparent;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box ul::-webkit-scrollbar-track {
        background: transparent;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box ul::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    /* Scrollbar thumb only while hovering the rail (gutter already reserved) */
    body .adsale-page .goods-font .imagetext-detail .detail-content-box:hover ul,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box:focus-within ul {
        scrollbar-color: rgba(16, 98, 238, 0.35) transparent;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box:hover ul::-webkit-scrollbar-thumb,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box:focus-within ul::-webkit-scrollbar-thumb {
        background: rgba(16, 98, 238, 0.35);
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box .adsale-offer-rail-arrow {
        position: absolute;
        /* Center against card band, excluding bottom scrollbar gutter */
        top: 0;
        bottom: 8px;
        z-index: 6;
        width: 34px;
        height: 34px;
        margin-top: auto;
        margin-bottom: auto;
        padding: 0;
        border: 1px solid #d7e3f4;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--ovs-blue, #1062ee);
        box-shadow: 0 6px 16px rgba(16, 98, 238, 0.14);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transform: none;
        transition: opacity .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box .adsale-offer-rail-arrow > span {
        display: block;
        line-height: 1;
        /* Optical center for ‹ › glyphs */
        transform: translateY(-1px);
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box .adsale-offer-rail-arrow-prev {
        left: 2px;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box .adsale-offer-rail-arrow-next {
        right: 2px;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box.has-offer-overflow:hover .adsale-offer-rail-arrow,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box.has-offer-overflow:focus-within .adsale-offer-rail-arrow {
        opacity: 1;
        pointer-events: auto;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box .adsale-offer-rail-arrow:hover {
        background: #f5f9ff;
        border-color: #b8d0ff;
        box-shadow: 0 8px 18px rgba(16, 98, 238, 0.18);
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box .adsale-offer-rail-arrow.is-disabled {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Portrait offer cards — fill left-column height, no dead band below */
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li {
        flex: 0 0 188px;
        width: 188px;
        max-width: 78%;
        align-self: stretch;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        margin: 0;
        padding: 14px 12px 12px;
        border: 1px solid #e6eef8;
        border-radius: 14px;
        background:
            linear-gradient(90deg, var(--ovs-blue, #1062ee), #5b9bff) top / 100% 3px no-repeat,
            #fff;
        box-shadow:
            0 1px 2px rgba(23, 46, 88, 0.04),
            0 8px 20px rgba(16, 98, 238, 0.05);
        box-sizing: border-box;
        scroll-snap-align: start;
        position: relative;
        overflow: hidden;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li::before,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li::after {
        content: none !important;
        display: none !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li:hover {
        transform: translateY(-2px);
        border-color: #cfe0f8;
        box-shadow:
            0 4px 10px rgba(23, 46, 88, 0.06),
            0 14px 28px rgba(16, 98, 238, 0.1);
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .detail-item {
        float: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1.35;
        text-align: left !important;
        order: 0;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-type {
        order: 1;
        flex: 0 0 auto;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-size {
        order: 2;
        flex: 0 0 auto;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-sales {
        order: 3;
        flex: 0 0 auto;
        margin-top: 4px !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-price,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .detail-price {
        order: 4;
        flex: 0 0 auto;
        text-align: left !important;
        margin-top: 2px !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-action,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn {
        order: 5;
        flex: 0 0 auto;
        margin-top: auto !important;
    }

    /* Hide noisy field labels; keep only a tiny Sales caption */
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .detail-item::before {
        content: none !important;
        display: none !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-sales::before {
        content: attr(data-label) !important;
        display: block !important;
        margin-bottom: 2px;
        color: #8b99ad;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        line-height: 1.2;
    }

    /* Placement/type must stay visible — was getting clipped/lost in prior grid layout */
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-type .adsale-meta-tip,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-type .adsale-meta-inline {
        display: block !important;
        max-width: 100%;
        overflow: visible !important;
        white-space: normal !important;
        word-break: break-word;
        color: #152033 !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        letter-spacing: -.01em;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-type .adsale-meta-inline > span {
        display: inline !important;
        color: inherit !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-size .adsale-meta-tip {
        display: block !important;
        max-width: 100%;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-size .adsale-meta-inline {
        display: inline-block !important;
        max-width: 100%;
        margin-top: 0;
        padding: 4px 9px;
        border-radius: 999px;
        background: #f3f7fd;
        border: 1px solid #e4eefb;
        color: #4b6280 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.35;
        white-space: normal !important;
        word-break: break-word;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .adsale-page .goods-font .adsale-meta-tip {
        display: block;
        max-width: 100%;
        cursor: default;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-sales {
        color: #1f2a37;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
    }

    body .adsale-page .goods-font .adsale-price {
        display: inline-flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2px;
        line-height: 1;
        max-width: 100%;
    }

    body .adsale-page .goods-font .adsale-price-amount {
        color: #ff3f22 !important;
        font-weight: 800;
        font-size: 22px;
        letter-spacing: -.02em;
        white-space: nowrap;
    }

    body .adsale-page .goods-font .adsale-price-unit {
        color: #ff7a63 !important;
        font-weight: 600;
        font-size: 12px;
        white-space: nowrap;
    }

    body .adsale-page .goods-font .detail-price span:not(.adsale-price):not(.adsale-price-amount):not(.adsale-price-unit) {
        color: #ff3f22 !important;
        font-weight: 800;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .adsale-col-action,
    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn {
        width: 100% !important;
        min-width: 0;
        padding-top: 10px !important;
        border-top: 1px solid #eef3f9 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        justify-content: stretch;
        gap: 8px;
        float: none !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn span {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 0 10px;
        min-height: 34px;
        border-radius: 10px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn span:first-child {
        border: 1px solid #d7e3f4;
        background: #fff;
        color: var(--ovs-blue, #1062ee) !important;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn span:first-child:hover {
        border-color: #b8d0ff;
        background: #f5f9ff;
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn span:last-child {
        border: 1px solid transparent;
        background: linear-gradient(135deg, var(--ovs-blue, #1062ee), #0b4fc7);
        color: #fff !important;
        box-shadow: 0 6px 14px rgba(16, 98, 238, 0.22);
    }

    body .adsale-page .goods-font .imagetext-detail .detail-content-box li > .buy-btn span:last-child:hover {
        filter: brightness(1.04);
    }

    /* All slots live in the rail — no vertical expand/collapse. */
    body .adsale-page .goods-font .text_icon {
        display: none !important;
    }

    /* -- 18e. header label readability (English labels are longer than
       the original Chinese, so the narrow data tracks made headers wrap
       and collide). Compact font + clean wrap + top align, no overlap. */
    body .links-page .main-goods-list .head.goto_header > span,
    body .googlelink-page .main-goods-list .head.goto_header > span,
    body .softtext-page .main-goods-list .head.goto_header > span,
    body .adsale-page .main-goods-list .head.goto_header > span {
        font-size: 11px;
        line-height: 1.25;
        letter-spacing: -.2px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
        padding: 8px 4px;
        text-align: center;
        min-width: 0;
    }

    /* first column (site info) stays left-aligned */
    body .links-page .main-goods-list .head.goto_header > span:nth-child(2),
    body .googlelink-page .main-goods-list .head.goto_header > span:nth-child(2),
    body .softtext-page .main-goods-list .head.goto_header > span:nth-child(2) {
        text-align: left;
        justify-content: flex-start;
    }

    /* Keep label + "?" on one optical baseline inside the grid header cell */
    body .links-page .main-goods-list .head.goto_header > span,
    body .googlelink-page .main-goods-list .head.goto_header > span,
    body .softtext-page .main-goods-list .head.goto_header > span,
    body .adsale-page .main-goods-list .head.goto_header > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px 4px;
    }

    /* header row auto height so wrapped 2-line labels sit cleanly */
    body .links-page .main-goods-list .head.goto_header,
    body .googlelink-page .main-goods-list .head.goto_header,
    body .softtext-page .main-goods-list .head.goto_header {
        align-items: stretch;
        min-height: 48px;
    }
}

/* Adsale favorite: button chrome shared; layout is breakpoint-scoped below */
body .adsale-page .goods-font .adsale-title-favorite,
body .adsale-page .goods-font .adsale-title-favorite-mobile {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid #d7dfeb;
    border-radius: 10px;
    background: #fff;
    color: #7b879b;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    box-shadow: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

body .adsale-page .goods-font .adsale-title-favorite::before,
body .adsale-page .goods-font .adsale-title-favorite-mobile::before {
    content: "\f08a";
    font-family: FontAwesome;
    font-size: 15px;
    line-height: 1;
}

body .adsale-page .goods-font .adsale-title-favorite:hover,
body .adsale-page .goods-font .adsale-title-favorite:focus,
body .adsale-page .goods-font .adsale-title-favorite-mobile:hover,
body .adsale-page .goods-font .adsale-title-favorite-mobile:focus {
    border-color: var(--main-color, #2f6bff);
    color: var(--main-color, #2f6bff);
    background: #fff;
    text-decoration: none;
}

body .adsale-page .goods-font .adsale-title-favorite.is-collected,
body .adsale-page .goods-font .adsale-title-favorite-mobile.is-collected {
    border-color: var(--main-color, #2f6bff);
    color: var(--main-color, #2f6bff);
    background: #fff;
}

body .adsale-page .goods-font .adsale-title-favorite.is-collected::before,
body .adsale-page .goods-font .adsale-title-favorite-mobile.is-collected::before {
    content: "\f004";
}

/* Domain + favorite footer base (desktop alignment reinforced in ≥768 block) */
body .adsale-page .goods-font .adsale-site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    min-width: 0;
    box-sizing: border-box;
}

body .adsale-page .goods-font .adsale-site-footer > .res-url {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .adsale-page .goods-font .adsale-site-footer > .adsale-title-favorite,
body .adsale-page .goods-font .adsale-site-footer > .adsale-title-favorite-mobile {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    margin: 0;
}

/* PC: no extra card padding — favorite lives in the left site column */
@media (min-width: 768px) {
    body .adsale-page .main-goods-res.goods-font > li {
        padding-right: 12px;
    }
}

/* Mobile: same footer placement (domain left, favorite right) */
@media (max-width: 767px) {
    body .adsale-page .goods-font .adsale-title-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px 8px;
        margin-bottom: 8px;
    }
}

/* ---------------------------------------------------------------- *
 * Header "?" help badges (links / googlelink / softtext)
 * links.css draws .question_tip::after with absolute top:50% on an
 * empty 0×0 inline-block, so the badge sinks below the label text.
 * Size the host and flow the badge so it centers with the copy.
 * ---------------------------------------------------------------- */
body .main-goods-list .head .wenhao.question_tip,
body .main-goods-list .goto_header .wenhao.question_tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 3px;
    vertical-align: middle;
    position: relative;
    top: 0;
    flex: 0 0 15px;
}

body .main-goods-list .head .wenhao.question_tip::after,
body .main-goods-list .goto_header .wenhao.question_tip::after {
    position: static;
    right: auto;
    top: auto;
    margin-top: 0;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

/* Keep the label and "?" on one line — wrapping put the badge on a
   second row under the text (looked like vertical misalignment). */
body .main-goods-list .head.goto_header > span:has(.wenhao.question_tip) {
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- *
 * 17. exchange & packages rebuild (second batch)
 *
 * exchange/index.html now stacks the cankao vocabulary classes
 * (layout / side-filter / list-shell) like the four market pages.
 * 17a flattens the double card shells that appear when the legacy
 * exchange skin (section 10a) sits inside the new white shells.
 * 17b reskins the package cards (.pack_index, shared by
 * package/index.html and softtext/package.html) to the cankao
 * resource-card language — pure CSS, zero template changes.
 * Buttons reuse the ui-base blue tokens (--ovs-blue = --blue).
 * ---------------------------------------------------------------- */

/* --- 17a. exchange: flatten legacy cards inside the new shells --- */

/* the side-filter card is now the single white shell: strip the old
   filter-panel card that section 10a / exchange.css painted inside */
@media (min-width: 768px) {
    body .free-exchange-page .ovs-market-side.side-filter .exchange-unified-wrap {
        margin-bottom: 0;
    }

    body .free-exchange-page .ovs-market-side.side-filter .exchange-unified-wrap .main-filter-box {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* feed stays as compact sub-card below filters */
    body .free-exchange-page .ovs-market-side.side-filter > .exchange-promo-card {
        margin: 0 0 14px;
    }

    body .free-exchange-page .ovs-market-side.side-filter .exchange-side-panel {
        margin-top: 14px;
    }
}

/* the list-shell card is the single white shell on the right: strip
   the legacy order-bar / table-wrap cards from section 10a */
body .free-exchange-page .ovs-market-main.list-shell .exchange-order-bar {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 6px;
    padding: 0 0 4px;
}

body .free-exchange-page .ovs-market-main.list-shell .exchange-table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

body .free-exchange-page .ovs-market-main.list-shell .exchange-table-wrap .fixed-table-body,
body .free-exchange-page .ovs-market-main.list-shell .exchange-table-wrap .fixed-table-header,
body .free-exchange-page .ovs-market-main.list-shell .exchange-table-wrap .fixed-table-container {
    overflow-x: hidden !important;
}

body .free-exchange-page .ovs-market-main.list-shell .exchange-order-bar .order-link {
    color: #6b7280;
    font-weight: 800;
}

body .free-exchange-page .ovs-market-main.list-shell .exchange-order-bar .order-link.active {
    color: var(--ovs-blue);
}

/* --- 17b. package cards -> cankao resource-card (both package pages) --- */

/* toolbar row becomes the list-toolbar separator inside the shell */
body .package-page .package-desktop-search {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

body .package-page .package-desktop-search .search-item.active,
body .package-page .package-desktop-search li.active span {
    color: var(--ovs-blue);
}

/* the package card itself */
body .package-page .package_list .pack_index {
    background: #ffffff;
    border: 1px solid #e7edf7;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .06);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

body .package-page .package_list .pack_index:hover {
    transform: translateY(-4px);
    box-shadow: var(--ovs-shadow);
}

body .package-page .package_list .pack_index h4 {
    font-weight: 900;
    color: var(--ovs-ink);
}

/* discount badge -> cankao rtag chip; prices -> market price red */
body .package-page .package_list ul li .text span:first-child {
    background: #fff7ed;
    color: #f97316;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-weight: 900;
}

body .package-page .package_list ul li .text span {
    color: #ff3f22;
}

body .package-page .package_list ul li .text span:last-child {
    color: #9ca3af;
}

/* bottom action bar: pale blue strip + ui-base blue-gradient buy button */
body .package-page .package_list ul li .bottom {
    background: #f8fbff;
    border-top: 1px solid #edf2f7;
    color: #4b5563;
}

body .package-page .package_list ul li .bottom a {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    border-radius: 9px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
}

body .package-page .package_list .bottom .top {
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--ovs-blue);
}

/* expanded detail table -> white card with pale blue header */
body .package-page .pack_detail {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .06);
    overflow: hidden;
}

body .package-page .pack_detail table th {
    background: #f8fbff;
    color: #6b7280;
    font-size: 13px;
    border-bottom: 1px solid #edf2f7;
}

body .package-page .pack_detail table td {
    border-color: #edf2f7;
}

/* pagination -> cankao page-btn (package pages lack .list-shell scope) */
body .package-page .tcdPageCode.item_page > span,
body .package-page .tcdPageCode.item_page > a {
    min-width: 36px;
    min-height: 36px;
    border: 1px solid #d8e2f2;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-weight: 900;
}

body .package-page .tcdPageCode.item_page > .text {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-weight: 700;
}

body .package-page .tcdPageCode.item_page > .current {
    border-color: var(--ovs-blue);
    background: var(--ovs-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
}

body .package-page .tcdPageCode.item_page > .disabled {
    opacity: .45;
    background: #fff;
    border-color: #d8e2f2;
    color: #94a3b8;
}

body .package-page .tcdPageCode.item_page > a:hover {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
    background: #fff;
}

/* ---------------------------------------------------------------- *
 * 19. side-filter option density (cankao chips, explode-approved)
 *
 * In the 260px aside the legacy option <li> stacked one-per-line with
 * loose leading — the industry group alone stretched the sidebar to
 * several screens. cankao's side-filter reads compact: options become
 * wrapping pill chips; range-input rows stay full width. Desktop only,
 * templates and Angular untouched (min-width:768px, drawer exempt).
 * ---------------------------------------------------------------- */

@media (min-width: 768px) {
    /* option lists -> wrapping chip rows */
    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li {
        float: none;
        display: inline-flex;
        margin: 0;
        padding: 0;
        height: auto;
        line-height: 1.2;
        width: auto;
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li > a,
    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li > span {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border: 1px solid #e3eaf5;
        border-radius: 999px;
        background: #f8fbff;
        color: #4b5563;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        cursor: pointer;
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li:hover > a,
    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li:hover > span {
        border-color: #b8d0ff;
        color: var(--ovs-blue);
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li.active > a,
    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li.active > span {
        background: #eef5ff;
        border-color: #b8d0ff;
        color: var(--ovs-blue);
        font-weight: 700;
    }

    /* range-input rows (min - max) keep full width below the chips */
    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li.main-search-input {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 4px;
    }

    body .ovs-market-side.side-filter .main-filter-box .row-box > div > ul > li.main-search-input input {
        flex: 1 1 56px;
        min-width: 0;
        height: 30px;
        border: 1px solid #dbe4f0;
        border-radius: 8px;
        padding: 0 8px;
        background: #fff;
    }

    /* industry group: legacy desktop rules reserve a 92px gutter for an
       absolutely-positioned first item ("不限") — in a 260px aside that
       leaves room for only one chip per row. Neutralize so the group
       wraps exactly like the ad-type group above it. */
    body .ovs-market-side.side-filter .main-filter-box .cate-box ul {
        padding-left: 0;
        height: auto;
        position: static;
    }

    body .ovs-market-side.side-filter .main-filter-box .cate-box ul li:nth-child(1),
    body .ovs-market-side.side-filter .main-filter-box .cate-box ul li:nth-of-type(8n+1) {
        position: static;
        left: auto;
        margin: 0;
    }

    /* the industry group renders 20+ chips; cap it and let it scroll a
       little instead of stretching the sidebar for screens */
    body .ovs-market-side.side-filter .main-filter-box .row-box > div.cate-box > ul,
    body .ovs-market-side.side-filter .main-filter-box .open_cate {
        max-height: 220px;
        overflow-y: auto;
    }

    /* expanded category flyout (cateMore) stays inside the aside card */
    body .ovs-market-side.side-filter .main-filter-box .open_cate_box {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    /* "more/collapse" toggle stays reachable under the chips */
    body .ovs-market-side.side-filter .main-filter-box .main-more-btn {
        display: inline-block;
        position: static;
        margin-top: 8px;
        color: var(--ovs-blue);
        cursor: pointer;
    }

    /* dropdown rows under 广告类型 / select-box-wrap: title + stacked fields */
    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap {
        display: flex;
        flex-direction: column;
        float: none;
        width: 100%;
        gap: 0;
        position: static;
        min-height: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap > span.pull-left {
        display: block;
        float: none !important;
        position: static !important;
        left: auto;
        top: auto;
        width: 100% !important;
        min-width: 0;
        margin: 0 0 12px !important;
        padding: 0;
        font-weight: 800;
        font-size: 13px;
        color: var(--ovs-ink, #1f2937);
        line-height: 1.45;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        float: none !important;
        width: 100%;
        height: auto;
        min-height: 38px;
        margin: 0 0 10px !important;
        padding: 4px 0;
        gap: 12px;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box:last-of-type {
        margin-bottom: 0 !important;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box > span:not(.value-box) {
        flex: 0 0 auto;
        color: #6b7280;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box .value-box {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: auto;
        padding: 0 28px 0 12px;
        min-height: 34px;
        border: 1px solid #e3eaf5;
        border-radius: 10px;
        background: #f8fbff;
        color: #374151;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box .value-box.active {
        color: var(--ovs-blue);
        border-color: #b8d0ff;
        background: #eef5ff;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box .value-box::after {
        right: 10px;
        border-top-color: #94a3b8;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box .value-box.active::after {
        border-top-color: var(--ovs-blue);
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box {
        cursor: pointer;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box ul {
        display: none;
    }

    body .ovs-market-side.side-filter .main-filter-box .select-box-wrap .select-box.is-open ul {
        display: block;
    }

    /* keep boxed reset row; hide legacy inline reset inside ad-type block */
    body .ovs-market-side.side-filter .select-box-wrap > .reset-filter,
    body .ovs-market-side.side-filter .select-box-wrap > i.reset-filter {
        display: none !important;
    }
}

/* --- 19b. shared partials polish (breadcrumb / empty / loading) --- */

body .breadcrumb-strip .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding-left: 0;
    font-size: 13px;
}

body .breadcrumb-strip .breadcrumb a {
    color: var(--ovs-muted);
    font-weight: 700;
}

body .breadcrumb-strip .breadcrumb a:hover {
    color: var(--ovs-blue) !important;
}

body .breadcrumb-strip .breadcrumb-current {
    color: var(--ovs-ink);
    font-weight: 800;
}

body .common-nofound {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
    padding: 34px 20px;
    text-align: center;
}

body .common-nofound .common-nofound-text {
    color: var(--ovs-muted);
    font-weight: 700;
}

body .item_load {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: var(--ovs-radius);
}

/* ---------------------------------------------------------------- *
 * 24. consistency pass (align stragglers to the contract)
 * ---------------------------------------------------------------- */

/* member pages: Bootstrap nested .row negative-margin gutters bleed ~9px
   past the viewport on mobile (scrollWidth 399>390 -> stray horizontal
   scroll). Clip the bleed at the member content container; real content
   stays within width, and navbar dropdowns live outside this container. */
@media (max-width: 767px) {
    body[data-controller="user"] #content-container,
    body[data-controller="recharge"] #content-container,
    body[data-controller="withdraw"] #content-container {
        overflow-x: hidden;
    }
}

/* homepage business sections: saturated color panels -> white cards
   with a per-section accent bar (keeps the four-color language the
   service grid uses, drops the off-brand solid green/orange slabs) */
body .goodsShow .left {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    position: relative;
    overflow: hidden;
}

body .goodsShow .left:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--primary, #1062ee), transparent);
}

body .goodsShow .left h2,
body .goodsShow .left p {
    color: var(--ovs-ink);
    text-shadow: none;
}

body .goodsShow .left p {
    color: var(--ovs-muted);
}

body .goodsShow .left img[src*="line.png"] {
    filter: grayscale(1) opacity(.35);
}

body .goodsShow .left .seesaw-more .seesaw-bar {
    background: #fff;
    border: 1px solid #b8d0ff;
    color: var(--ovs-blue);
    border-radius: 10px;
}

body .goodsShow .left .seesaw-more .seesaw-label,
body .goodsShow .left .seesaw-more .icon {
    color: var(--ovs-blue);
}

/* ---------------------------------------------------------------- *
 * 25b. homepage free-exchange
 * Uses the shared home-goods-card-section-ready + resource-card
 * pipeline (public/assets/js/frontend/index.js). Do not re-cardify
 * the source table here — JS hides it and injects .home-goods-cards.
 * ---------------------------------------------------------------- */

body .goods-exchange .home-goods-cards .price-free {
    font-size: 22px;
}

/* PC: multi-column grid (mobile peek scroller lives in homepage_redesign.css ≤767) */
body .goodsShow.home-goods-card-section-ready .home-goods-cards-scroller {
    container-type: normal;
    overflow: visible;
    scroll-snap-type: none;
}
body .goodsShow.home-goods-card-section-ready .home-goods-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    padding-right: 0;
    flex-wrap: unset;
}
body .goodsShow.home-goods-card-section-ready .home-goods-cards > .resource-card {
    flex: unset;
    width: auto;
    max-width: none;
    min-width: 0;
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    body .goodsShow.home-goods-card-section-ready .home-goods-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 991px) {
    body .goodsShow.home-goods-card-section-ready .home-goods-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 767px) {
    body .goodsShow.home-goods-card-section-ready .home-goods-cards-scroller {
        container-type: inline-size;
        container-name: home-goods;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    body .goodsShow.home-goods-card-section-ready .home-goods-cards {
        --home-goods-peek: 36px;
        --home-goods-gap: 12px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--home-goods-gap);
        width: max-content;
        padding-right: var(--home-goods-peek);
        grid-template-columns: none;
    }
    body .goodsShow.home-goods-card-section-ready .home-goods-cards > .resource-card {
        flex: 0 0 calc(100cqw - var(--home-goods-peek) - var(--home-goods-gap));
        width: calc(100cqw - var(--home-goods-peek) - var(--home-goods-gap));
        max-width: calc(100cqw - var(--home-goods-peek) - var(--home-goods-gap));
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* ---------------------------------------------------------------- *
 * 25. homepage goods sections -> cankao resource-card grids
 *
 * The three commodity sections (.goods-links/.goods-soft/.goods-ads)
 * keep their server-rendered 7-column tables (mobile swiper + empty
 * state JS depend on them below 768px); on desktop CSS re-flows each
 * table into a resource-card grid: thead hidden, tbody -> grid,
 * tr -> card (title / weight chips / price / buy CTA). Age + indexed
 * columns are hidden on cards (unlabeled numbers read as noise);
 * they remain in the market list pages. Exchange uses the JS
 * resource-card pipeline (see 25b).
 * ---------------------------------------------------------------- */

@media (min-width: 768px) {
    body .goods-links .right .bottom table,
    body .goods-soft .right .bottom table,
    body .goods-ads .right .bottom table {
        display: block;
        border: 0;
        background: transparent;
    }

    body .goods-links .right .bottom table thead,
    body .goods-soft .right .bottom table thead,
    body .goods-ads .right .bottom table thead {
        display: none;
    }

    body .goods-links .right .bottom table tbody,
    body .goods-soft .right .bottom table tbody,
    body .goods-ads .right .bottom table tbody {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
        gap: 12px;
    }

    /* row -> card */
    body .goods-links .right .bottom table tbody > tr,
    body .goods-soft .right .bottom table tbody > tr,
    body .goods-ads .right .bottom table tbody > tr {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: #ffffff;
        border: 1px solid #e7edf7;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(15, 35, 80, .05);
        padding: 14px;
        transition: transform .18s ease, box-shadow .18s ease;
    }

    body .goods-links .right .bottom table tbody > tr:hover,
    body .goods-soft .right .bottom table tbody > tr:hover,
    body .goods-ads .right .bottom table tbody > tr:hover {
        transform: translateY(-3px);
        box-shadow: var(--ovs-shadow);
    }

    body .goods-links .right .bottom table tbody > tr > td,
    body .goods-soft .right .bottom table tbody > tr > td,
    body .goods-ads .right .bottom table tbody > tr > td {
        display: block;
        border: 0;
        padding: 0;
        height: auto;
        line-height: 1.5;
        text-align: left;
        font-size: 13px;
        background: transparent;
    }

    /* col 1: title */
    body .goods-links .right .bottom table tbody > tr > td:nth-child(1),
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(1),
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(1) {
        border-bottom: 1px solid #eef2f7;
        padding-bottom: 9px;
    }

    body .goods-links .right .bottom table tbody > tr > td:nth-child(1) a,
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(1) a,
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(1) a {
        font-size: 15px;
        font-weight: 900;
        color: var(--ovs-ink);
        width: 100% !important;
    }

    body .goods-links .right .bottom table tbody > tr > td:nth-child(1) a:hover,
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(1) a:hover,
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(1) a:hover {
        color: var(--ovs-blue) !important;
    }

    /* cols 2+3: weight chips shown side by side */
    body .goods-links .right .bottom table tbody > tr > td.bdsl,
    body .goods-soft .right .bottom table tbody > tr > td.bdsl,
    body .goods-ads .right .bottom table tbody > tr > td.bdsl {
        display: inline-flex;
        align-items: center;
        margin-right: 10px;
    }

    body .goods-links .right .bottom table tbody > tr > td.bdsl > span,
    body .goods-soft .right .bottom table tbody > tr > td.bdsl > span,
    body .goods-ads .right .bottom table tbody > tr > td.bdsl > span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #f8fbff;
        border: 1px solid #edf2f7;
        border-radius: 8px;
        padding: 3px 8px;
        font-weight: 800;
    }

    body .goods-links .right .bottom table tbody > tr > td.bdsl img,
    body .goods-soft .right .bottom table tbody > tr > td.bdsl img,
    body .goods-ads .right .bottom table tbody > tr > td.bdsl img {
        width: 15px;
        height: 15px;
    }

    /* cols 4 (age) + 5 (indexed): unlabeled numbers -> hidden on cards */
    body .goods-links .right .bottom table tbody > tr > td:nth-child(4),
    body .goods-links .right .bottom table tbody > tr > td:nth-child(5),
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(4),
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(5),
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(4),
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(5) {
        display: none;
    }

    /* col 6: price emphasis */
    body .goods-links .right .bottom table tbody > tr > td:nth-child(6),
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(6),
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(6) {
        color: #ff3f22;
        font-weight: 900;
        font-size: 16px;
        margin-top: 2px;
    }

    /* col 7: buy CTA pinned to card bottom */
    body .goods-links .right .bottom table tbody > tr > td:nth-child(7),
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(7),
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(7) {
        margin-top: auto;
        padding-top: 9px;
        border-top: 1px solid #eef2f7;
        display: flex;
    }

    body .goods-links .right .bottom table tbody > tr > td:nth-child(7) a,
    body .goods-soft .right .bottom table tbody > tr > td:nth-child(7) a,
    body .goods-ads .right .bottom table tbody > tr > td:nth-child(7) a {
        flex: 1 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 9px;
        background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
        color: #fff !important;
        font-weight: 800;
        box-shadow: 0 8px 18px rgba(16, 98, 238, .18);
    }

    body .goods-links .right .bottom table tbody > tr > td:nth-child(7) a:hover {
        transform: translateY(-1px);
    }

    /* mobile-only google-index companion span hidden inside cards */
    body .goodsShow .right .bottom table tbody .home-mobile-google-index {
        display: none;
    }

    /* tab strip above the grids: cankao order-tabs look */
    body .goodsShow .right .top .pull-left ul li a {
        font-weight: 800;
    }

    body .goodsShow .right .top .pull-left ul li.active a {
        color: var(--ovs-blue);
        border-bottom: 3px solid var(--ovs-blue);
    }

    /* --- 25b. middle quick-link column -> cankao chips --------------- */

    body .goodsShow .cen .middle {
        border-bottom: 1px solid #edf2f7;
    }

    body .goodsShow .cen .middle li a {
        background: #f8fbff;
        border: 1px solid #e3eaf5;
        border-radius: 999px;
        color: #4b5563;
        font-weight: 700;
    }

    body .goodsShow .cen .middle li a:hover {
        background: #eef5ff;
        border-color: #b8d0ff;
        color: var(--ovs-blue);
    }

    body .goodsShow .cen .bottom li a {
        color: var(--ovs-muted);
        font-weight: 700;
    }

    body .goodsShow .cen .bottom li a:before {
        background-color: #b8d0ff;
    }

    body .goodsShow .cen .bottom li a:hover {
        color: var(--ovs-blue);
    }

    body .goodsShow .cen .bottom li a:hover:before {
        background-color: var(--ovs-blue);
    }
}

/* package/softtext-package "sell products" CTA: legacy black slab ->
   contract blue gradient (links.css .btn_right a sets background:#000) */
body .btn_right a,
body .package-mobile-summary a {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #fff;
    border-radius: 9px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .2);
}

body .btn_right a:hover,
body .package-mobile-summary a:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

/* css-audit S1-2 fix: message page mobile padding must not exceed the
   12px desktop rhythm set by section 23d (23g's generic 16px inverted it) */
@media (max-width: 767px) {
    body[data-controller="user"][data-action="message"] #content-container .panel-body {
        padding: 12px;
    }
}

/* right floating toolbar: purple/amber rails -> blue family */
@media (min-width: 768px) {
    body .menu-right .menu-right-btns > li {
        --menu-right-item-border: rgba(16, 98, 238, 0.16);
        --menu-right-item-rail: rgba(184, 208, 255, 0.95);
    }

    body .menu-right .menu-right-btns > li:hover {
        --menu-right-item-border: rgba(16, 98, 238, 0.30);
    }

    body .menu-right.open .menu_right_btn {
        --menu-right-item-bg: #eef5ff;
        --menu-right-item-border: rgba(16, 98, 238, 0.32);
        box-shadow: 0 16px 32px rgba(16, 98, 238, 0.18);
    }

    body .menu-right .menu-right-header,
    body .menu-right .menu-right-footer {
        background: #f8fbff;
    }

    body .menu-right .menu-right-header {
        border-bottom: 1px solid #e8eef8;
    }

    body .menu-right .menu_tel .title {
        border-color: #d8e8ff;
    }
}

/* ---------------------------------------------------------------- *
 * 22. member exchange & sm workbench
 *
 * The member layout does not load ui-base.css, so this block carries
 * the cankao card / tab / status / table language locally. Existing
 * ids, formatter classes and delegated-action hooks stay untouched.
 * ---------------------------------------------------------------- */

/* --- 22a. shared workbench headers and cards --------------------- */

body .service-market-orders-page .page-header,
body .service-market-bids-page .page-header,
body .service-market-order-detail-page .page-header,
body .provider-profile-page .page-header {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

body .service-market-orders-page .page-header h3,
body .service-market-bids-page .page-header h3,
body .service-market-order-detail-page .page-header h3,
body .provider-profile-page .page-header h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--ovs-ink);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.45px;
}

body .service-market-orders-page .page-header h3 > i,
body .service-market-bids-page .page-header h3 > i,
body .service-market-order-detail-page .page-header h3 > i,
body .provider-profile-page .page-header h3 > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eef5ff;
    color: var(--ovs-blue);
    font-size: 17px;
    font-style: normal;
}

body .service-market-orders-page .page-header small,
body .service-market-bids-page .page-header small,
body .service-market-order-detail-page .page-header small,
body .provider-profile-page .page-header small {
    margin: 0 0 0 2px;
    color: var(--ovs-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

body .exchange-list-page > .dashboard-card,
body .sm-orders-page > .sm-orders-panel,
body .sm-bids-page > .sm-bids-panel,
body .sm-order-detail-page > .sm-order-detail-panel,
body .provider-profile-main > .dashboard-card,
body .exchange-market-page .dashboard-card.exchange-block {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ovs-card-line) !important;
    border-radius: var(--ovs-radius) !important;
    box-shadow: var(--ovs-shadow) !important;
}

body .exchange-list-page > .dashboard-card > .panel-heading,
body .sm-orders-page .sm-orders-panel-heading,
body .sm-bids-page .sm-bids-panel-heading,
body .provider-profile-main > .dashboard-card > .panel-heading,
body .exchange-market-page .exchange-heading {
    padding: 18px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #edf2f7;
}

body .exchange-list-page .page-header-content h3,
body .exchange-market-page .exchange-heading .panel-title-modern,
body .sm-orders-page .panel-title-modern,
body .sm-bids-page .panel-title-modern,
body .provider-profile-main .panel-title-modern {
    margin: 0;
    color: var(--ovs-ink);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.25px;
}

body .exchange-list-page .page-header-content h3 i,
body .exchange-market-page .exchange-heading .panel-title-modern i,
body .sm-orders-page .panel-title-modern i,
body .sm-bids-page .panel-title-modern i,
body .provider-profile-main .panel-title-modern i {
    margin-right: 8px;
    color: var(--ovs-blue);
}

body .exchange-list-page .page-header-content p,
body .exchange-market-page .exchange-heading-desc {
    margin: 5px 0 0;
    color: var(--ovs-muted);
    font-size: 13px;
}

body .exchange-list-page > .dashboard-card > .panel-body,
body .sm-orders-page > .sm-orders-panel > .panel-body,
body .sm-bids-page > .sm-bids-panel > .panel-body,
body .sm-order-detail-page > .sm-order-detail-panel > .panel-body,
body .provider-profile-main > .dashboard-card > .panel-body {
    padding: 20px;
}

/* --- 22b. exchange settings + tab navigation -------------------- */

body .exchange-market-page .exchange-market-hero {
    margin-bottom: 18px;
    padding: 22px 24px 0;
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-top: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: var(--ovs-shadow);
}

body .exchange-market-page .exchange-market-hero-main h3 {
    margin: 0;
    color: var(--ovs-ink);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.45px;
}

body .exchange-market-page .exchange-market-hero-main h3 .icon-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 8px;
    border-radius: 12px;
    background: #eef5ff;
    color: var(--ovs-blue);
    font-size: 16px;
}

body .exchange-market-page .exchange-market-hero-main p {
    margin: 6px 0 0 50px;
    color: var(--ovs-muted);
    font-size: 13px;
}

body .exchange-market-page .exchange-market-hero-links,
body .exchange-list-page .exchange-subtabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    overflow-x: auto;
    margin: 18px 0 0 !important;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    scrollbar-width: thin;
}

body .exchange-list-page .exchange-subtabs {
    margin: 0 20px !important;
}

body .exchange-list-page .exchange-subtabs > li {
    flex: 0 0 auto;
    margin: 0;
}

body .exchange-market-page .exchange-market-hero-links .btn,
body .exchange-list-page .exchange-subtabs > li > a.btn {
    position: relative;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 14px 2px 13px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

body .exchange-market-page .exchange-market-hero-links .btn:hover,
body .exchange-list-page .exchange-subtabs > li > a.btn:hover {
    transform: none;
    background: transparent;
    color: var(--ovs-blue);
}

body .exchange-market-page .exchange-market-hero-links .btn.btn-primary,
body .exchange-list-page .exchange-subtabs > li.active > a.btn {
    background: transparent;
    border: 0;
    color: var(--ovs-blue);
}

body .exchange-market-page .exchange-market-hero-links .btn.btn-primary::after,
body .exchange-list-page .exchange-subtabs > li.active > a.btn::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--ovs-blue);
}

body .exchange-market-page .exchange-heading {
    align-items: center;
    background: #ffffff;
}

body .exchange-market-page .exchange-setting-body {
    padding: 20px 22px;
    background: #ffffff;
}

body .exchange-market-page .exchange-setting-empty {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #d8e8ff;
    border-radius: 12px;
    background: #f8fbff;
    color: #315d9f;
    font-size: 13px;
}

body .exchange-market-page .exchange-setting-wrap .form-group,
body .provider-profile-page .form-group {
    margin-bottom: 18px;
}

body .exchange-market-page .exchange-setting-wrap .control-label,
body .provider-profile-page .control-label {
    padding-top: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

body .exchange-market-page .exchange-setting-wrap .form-control,
body .provider-profile-page .form-control {
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    box-shadow: none;
    color: #27364a;
}

body .exchange-market-page .exchange-setting-wrap textarea.form-control,
body .provider-profile-page textarea.form-control {
    height: auto;
    min-height: 118px;
}

body .exchange-market-page .exchange-setting-wrap .form-control:focus,
body .provider-profile-page .form-control:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
}

body .exchange-market-page .exchange-setting-wrap .help-block,
body .provider-profile-page .help-block {
    color: var(--ovs-muted);
    font-size: 12px;
}

body .exchange-market-page .exchange-site-picked,
body .exchange-market-page .exchange-site-info {
    border-color: #dbe4f0;
    border-radius: 10px;
    background: #f8fbff;
}

body .exchange-market-page .exchange-radio-group .radio-inline {
    padding: 7px 13px;
    border-color: #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
}

body .exchange-market-page .exchange-radio-group .radio-inline:has(input:checked) {
    border-color: #b8d0ff;
    background: #eef5ff;
    color: var(--ovs-blue);
}

body .exchange-market-page .exchange-industry-tags .exchange-industry-tag {
    border-radius: 999px;
    background: #eef5ff;
    color: var(--ovs-blue);
}

body .exchange-market-page .exchange-setting-toolbar .btn,
body .exchange-market-page .exchange-site-picker .btn,
body .exchange-market-page #btn-exchange-industry-pick,
body .provider-profile-page #provider-profile-submit {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 800;
}

body .exchange-market-page .exchange-setting-toolbar .btn-default,
body .exchange-market-page .exchange-site-picker .btn-default,
body .exchange-market-page #btn-exchange-industry-pick {
    border-color: #b8d0ff;
    background: #ffffff;
    color: var(--ovs-blue);
}

body .exchange-market-page .exchange-setting-toolbar .btn-primary,
body .exchange-market-page .exchange-setting-wrap button[type="submit"],
body .provider-profile-page #provider-profile-submit {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 98, 238, .22);
}

/* --- 22c. exchange + service tables ----------------------------- */

body .exchange-list-page .exchange-table-shell,
body .service-market-orders-page .fixed-table-container,
body .service-market-bids-page .fixed-table-container {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 14px;
}

body .exchange-list-page .fixed-table-toolbar,
body .service-market-orders-page .fixed-table-toolbar,
body .service-market-bids-page .fixed-table-toolbar {
    padding: 10px 12px 7px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

body .exchange-list-page .fixed-table-toolbar .form-control,
body .service-market-orders-page .fixed-table-toolbar .form-control,
body .service-market-bids-page .fixed-table-toolbar .form-control,
body .service-market-orders-page .sm-orders-status {
    height: 38px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    box-shadow: none;
}

body .exchange-list-page table.exchange-list-table > thead > tr > th,
body .service-market-orders-page table.sm-orders-table > thead > tr > th,
body .service-market-bids-page table.sm-bids-table > thead > tr > th {
    padding: 14px 10px;
    background: #f8fbff;
    border-top: 0;
    border-bottom: 1px solid #e6edf7 !important;
    color: var(--ovs-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

body .exchange-list-page table.exchange-list-table > tbody > tr > td,
body .service-market-orders-page table.sm-orders-table > tbody > tr > td,
body .service-market-bids-page table.sm-bids-table > tbody > tr > td {
    padding: 13px 10px;
    background: #ffffff;
    border-top: 0;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
    vertical-align: middle;
}

body .exchange-list-page table.exchange-list-table.table-striped > tbody > tr:nth-of-type(odd) > td,
body .service-market-orders-page table.sm-orders-table.table-striped > tbody > tr:nth-of-type(odd) > td,
body .service-market-bids-page table.sm-bids-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: #ffffff;
}

body .exchange-list-page table.exchange-list-table > tbody > tr:hover > td,
body .service-market-orders-page table.sm-orders-table > tbody > tr:hover > td,
body .service-market-bids-page table.sm-bids-table > tbody > tr:hover > td {
    background: #f3f8ff;
}

body .exchange-list-page .fixed-table-pagination,
body .service-market-orders-page .fixed-table-pagination,
body .service-market-bids-page .fixed-table-pagination {
    padding: 0 12px;
}

body .exchange-list-page .pagination > li > a,
body .exchange-list-page .pagination > li > span,
body .service-market-orders-page .pagination > li > a,
body .service-market-orders-page .pagination > li > span,
body .service-market-bids-page .pagination > li > a,
body .service-market-bids-page .pagination > li > span {
    min-width: 34px;
    margin: 0 3px;
    border: 1px solid #d8e2f2;
    border-radius: 9px;
    color: #475569;
    font-weight: 700;
    text-align: center;
}

body .exchange-list-page .pagination > .active > a,
body .exchange-list-page .pagination > .active > span,
body .service-market-orders-page .pagination > .active > a,
body .service-market-orders-page .pagination > .active > span,
body .service-market-bids-page .pagination > .active > a,
body .service-market-bids-page .pagination > .active > span {
    border-color: var(--ovs-blue);
    background: var(--ovs-blue);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(16, 98, 238, .20);
}

/* status pills: success / warning / danger / blue information */
body .exchange-list-page .exchange-status-pill,
body .sm-orders-page .sm-status-pill,
body .sm-bids-page .sm-status-pill,
body .sm-order-detail-page .sm-status-pill {
    min-width: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

body .exchange-list-page .exchange-status-pill.is-success,
body .sm-orders-page .sm-status-pill.is-success,
body .sm-bids-page .sm-status-pill.is-success,
body .sm-order-detail-page .sm-status-pill.is-success {
    background: #eafff6;
    color: #059669;
}

body .exchange-list-page .exchange-status-pill.is-pending,
body .sm-orders-page .sm-status-pill.is-warning,
body .sm-bids-page .sm-status-pill.is-warning,
body .sm-order-detail-page .sm-status-pill.is-warning {
    background: #fff7ed;
    color: #ea580c;
}

body .exchange-list-page .exchange-status-pill.is-rejected,
body .exchange-list-page .exchange-status-pill.is-canceled,
body .sm-orders-page .sm-status-pill.is-danger,
body .sm-bids-page .sm-status-pill.is-danger,
body .sm-order-detail-page .sm-status-pill.is-danger {
    background: #fff1f0;
    color: #dc2626;
}

body .exchange-list-page .exchange-status-pill.is-expired,
body .sm-orders-page .sm-status-pill.is-primary,
body .sm-orders-page .sm-status-pill.is-info,
body .sm-bids-page .sm-status-pill.is-primary,
body .sm-bids-page .sm-status-pill.is-info,
body .sm-order-detail-page .sm-status-pill.is-primary,
body .sm-order-detail-page .sm-status-pill.is-info {
    background: #eef5ff;
    color: var(--ovs-blue);
}

body .exchange-list-page .exchange-status-pill.is-closed,
body .exchange-list-page .exchange-status-pill.is-default,
body .sm-orders-page .sm-status-pill.is-default,
body .sm-bids-page .sm-status-pill.is-default,
body .sm-order-detail-page .sm-status-pill.is-default {
    background: #eef2f7;
    color: #64748b;
}

/* compact primary / secondary actions */
body .exchange-list-page .exchange-op-btn {
    padding: 6px 10px;
    border-radius: 9px;
    background: #ffffff;
    font-weight: 800;
    box-shadow: none;
}

body .exchange-list-page .exchange-op-btn.op-detail,
body .exchange-list-page .exchange-op-btn.op-publish {
    border-color: #b8d0ff;
    background: #ffffff;
    color: var(--ovs-blue);
}

body .exchange-list-page .exchange-op-btn.op-accept {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(16, 98, 238, .18);
}

body .exchange-list-page .exchange-op-btn.op-reject {
    border-color: #fecaca;
    background: #fffafa;
    color: #dc2626;
}

body .exchange-list-page .exchange-op-btn.op-cancel {
    border-color: #fed7aa;
    background: #fffaf4;
    color: #c2410c;
}

body .service-market-orders-page .sm-orders-create-btn,
body .service-market-orders-page .sm-table-action-btn,
body .service-market-bids-page .btn-primary,
body .service-market-order-detail-page .sm-order-detail-actions .btn-primary,
body .service-market-order-detail-page .sm-order-detail-actions .btn-success {
    border-color: transparent;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .18);
}

body .service-market-orders-page .btn-default,
body .service-market-bids-page .btn-default,
body .service-market-order-detail-page .btn-default {
    border-color: #b8d0ff;
    border-radius: 9px;
    background: #ffffff;
    color: var(--ovs-blue);
    font-weight: 800;
}

/* --- 22d. service order detail and provider profile ------------- */

body .service-market-order-detail-page .sm-order-detail-page-actions .btn {
    min-height: 38px;
    padding: 8px 13px;
}

body .service-market-order-detail-page .sm-order-detail-layer {
    padding: 0;
}

body .service-market-order-detail-page .sm-order-detail-service {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #dfe9f8;
    border-radius: 14px;
    background: #f8fbff;
}

body .service-market-order-detail-page .sm-order-detail-service-image {
    border-color: #dbe4f0;
    border-radius: 11px;
}

body .service-market-order-detail-page .sm-order-detail-grid {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    background: #ffffff;
}

body .service-market-order-detail-page .sm-order-detail-row {
    padding: 12px 14px;
    border-bottom-color: #edf2f7;
}

body .service-market-order-detail-page .sm-order-detail-label {
    color: var(--ovs-muted);
    font-weight: 700;
}

body .service-market-order-detail-page .sm-order-detail-value {
    color: var(--ovs-ink);
    font-weight: 800;
}

body .service-market-order-detail-page .sm-order-detail-block {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 35, 80, .04);
}

body .service-market-order-detail-page .sm-order-detail-block-title {
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
    color: var(--ovs-ink);
    font-size: 14px;
    font-weight: 900;
}

body .service-market-order-detail-page .sm-order-detail-phase {
    border-color: #d8e8ff;
    border-radius: 14px;
    background: #f8fbff;
}

body .service-market-order-detail-page .sm-order-bids-table > thead > tr > th {
    background: #f8fbff;
    border-bottom: 1px solid #e6edf7;
    color: var(--ovs-muted);
    font-size: 12px;
}

body .service-market-order-detail-page .sm-order-bids-table > tbody > tr > td {
    border-top: 0;
    border-bottom: 1px solid #edf2f7;
}

body .service-market-order-detail-page .sm-order-detail-actions {
    padding-top: 4px;
    gap: 9px;
}

body .service-market-order-detail-page .sm-order-detail-actions .btn {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 9px;
    font-weight: 800;
}

body #provider-gate-banner .provider-gate-banner {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-width: 1px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 35, 80, .05);
}

body #provider-gate-banner .provider-gate-banner.alert-success {
    border-color: #b7f3dd;
    background: #effdf8;
    color: #047857;
}

body #provider-gate-banner .provider-gate-banner.alert-warning {
    border-color: #fed7aa;
    background: #fffaf3;
    color: #c2410c;
}

body #provider-gate-banner .provider-gate-banner.alert-info {
    border-color: #bfdbfe;
    background: #f3f8ff;
    color: #1d4ed8;
}

body #provider-gate-banner .provider-gate-banner.alert-danger {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

body .provider-profile-page .form-horizontal {
    max-width: 900px;
    margin: 0 auto;
}

body .provider-profile-page #provider-profile-submit {
    min-width: 148px;
}

/* create-order modal follows the same white-card vocabulary */
body #sm-create-order-modal .sm-order-modal-content {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    box-shadow: 0 26px 70px rgba(15, 35, 80, .22);
}

body #sm-create-order-modal .sm-order-modal-header,
body #sm-create-order-modal .sm-order-modal-footer {
    background: #f8fbff;
    border-color: #e8eef8;
}

body #sm-create-order-modal .sm-selected-service,
body #sm-create-order-modal .sm-chat-type-card,
body #sm-create-order-modal .sm-third-party-panel {
    border-color: #e1eaf6;
    border-radius: 12px;
}

body #sm-create-order-modal .sm-chat-type-card.active {
    border-color: #b8d0ff;
    background: #eef5ff;
    box-shadow: 0 0 0 2px rgba(16, 98, 238, .08);
}

body #sm-create-order-modal #btn-sm-create-submit {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(16, 98, 238, .20);
}

/* --- 22e. compact member breakpoints ---------------------------- */

@media (max-width: 767px) {
    body .service-market-orders-page .page-header h3,
    body .service-market-bids-page .page-header h3,
    body .service-market-order-detail-page .page-header h3,
    body .provider-profile-page .page-header h3,
    body .exchange-market-page .exchange-market-hero-main h3 {
        font-size: 20px;
    }

    body .service-market-orders-page .page-header small,
    body .service-market-bids-page .page-header small,
    body .service-market-order-detail-page .page-header small,
    body .provider-profile-page .page-header small {
        flex-basis: calc(100% - 48px);
    }

    body .exchange-market-page .exchange-market-hero {
        padding: 16px 16px 0;
        border-radius: 14px;
    }

    body .exchange-market-page .exchange-market-hero-main p {
        margin-left: 0;
    }

    body .exchange-market-page .exchange-market-hero-links,
    body .exchange-list-page .exchange-subtabs {
        gap: 20px;
    }

    body .exchange-list-page .exchange-subtabs {
        margin: 0 14px !important;
    }

    body .exchange-list-page > .dashboard-card > .panel-heading,
    body .sm-orders-page .sm-orders-panel-heading,
    body .sm-bids-page .sm-bids-panel-heading,
    body .provider-profile-main > .dashboard-card > .panel-heading,
    body .exchange-market-page .exchange-heading {
        padding: 15px 16px;
    }

    body .exchange-list-page > .dashboard-card > .panel-body,
    body .sm-orders-page > .sm-orders-panel > .panel-body,
    body .sm-bids-page > .sm-bids-panel > .panel-body,
    body .sm-order-detail-page > .sm-order-detail-panel > .panel-body,
    body .provider-profile-main > .dashboard-card > .panel-body,
    body .exchange-market-page .exchange-setting-body {
        padding: 14px;
    }

    body .exchange-market-page .exchange-heading {
        align-items: stretch;
    }

    body .exchange-market-page .exchange-setting-toolbar {
        display: flex;
    }

    body .exchange-market-page .exchange-setting-toolbar .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    body .service-market-order-detail-page .sm-order-detail-block {
        padding: 12px;
    }

    body .service-market-order-detail-page .sm-order-detail-actions .btn {
        flex: 1 1 calc(50% - 9px);
    }

    body #provider-gate-banner .provider-gate-banner {
        align-items: flex-start !important;
    }
}

/* ---------------------------------------------------------------- *
 * 23. member account pages
 *
 * profile / changepwd / bind / message / favorite / coupon / score
 * keep their FastAdmin form tokens and user.js selectors untouched.
 * This block only supplies the cankao card, form, table and state
 * language that ui-base.css cannot provide inside the member layout.
 * ---------------------------------------------------------------- */

/* --- 23a. shared account-page rhythm, cards and form controls --- */

body[data-controller="user"][data-action="profile"],
body[data-controller="user"][data-action="changepwd"],
body[data-controller="user"][data-action="bind"],
body[data-controller="user"][data-action="message"],
body[data-controller="user"][data-action="favorite"],
body[data-controller="user"][data-action="coupon"],
body[data-controller="user"][data-action="score"] {
    --member-field-line: #dbe4f0;
    --member-soft-blue: #f8fbff;
    --member-focus: 0 0 0 4px rgba(16, 98, 238, .10);
}

body[data-controller="user"][data-action="profile"] #content-container .page-header,
body[data-controller="user"][data-action="changepwd"] #content-container .page-header,
body[data-controller="user"][data-action="bind"] #content-container .page-header,
body[data-controller="user"][data-action="message"] #content-container .page-header,
body[data-controller="user"][data-action="favorite"] #content-container .page-header,
body[data-controller="user"][data-action="coupon"] #content-container .page-header,
body[data-controller="user"][data-action="score"] #content-container .page-header {
    margin-bottom: 20px;
    padding: 0;
    border: 0;
}

body[data-controller="user"][data-action="profile"] #content-container .page-header h3,
body[data-controller="user"][data-action="changepwd"] #content-container .page-header h2,
body[data-controller="user"][data-action="bind"] #content-container .page-header h3,
body[data-controller="user"][data-action="message"] #content-container .page-header h3,
body[data-controller="user"][data-action="favorite"] #content-container .page-header h3,
body[data-controller="user"][data-action="coupon"] #content-container .page-header h3,
body[data-controller="user"][data-action="score"] #content-container .page-header h3,
body[data-controller="user"][data-action="profile"] #content-container .page-header-content h3 {
    margin: 0;
    color: var(--ovs-ink);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.45px;
}

body[data-controller="user"][data-action="bind"] #content-container .page-header h3 > i,
body[data-controller="user"][data-action="message"] #content-container .page-header h3 > i,
body[data-controller="user"][data-action="favorite"] #content-container .page-header h3 > i,
body[data-controller="user"][data-action="coupon"] #content-container .page-header h3 > i,
body[data-controller="user"][data-action="score"] #content-container .page-header h3 > i {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    background: #eaf3ff;
    box-shadow: none;
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="profile"] #content-container .page-header p,
body[data-controller="user"][data-action="changepwd"] #content-container .page-header p,
body[data-controller="user"][data-action="bind"] #content-container .page-header small,
body[data-controller="user"][data-action="message"] #content-container .page-header small,
body[data-controller="user"][data-action="favorite"] #content-container .page-header small,
body[data-controller="user"][data-action="coupon"] #content-container .page-header small,
body[data-controller="user"][data-action="score"] #content-container .page-header small,
body[data-controller="user"][data-action="profile"] #content-container .page-header-content p {
    color: var(--ovs-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

body[data-controller="user"][data-action="profile"] #content-container .user-center .panel,
body[data-controller="user"][data-action="changepwd"] #content-container .user-center .panel,
body[data-controller="user"][data-action="bind"] #content-container .user-center .panel,
body[data-controller="user"][data-action="message"] #content-container .user-center .panel,
body[data-controller="user"][data-action="favorite"] #content-container .user-center .panel,
body[data-controller="user"][data-action="coupon"] #content-container .user-center .panel,
body[data-controller="user"][data-action="score"] #content-container .user-center .panel {
    border: 1px solid var(--ovs-card-line);
    border-radius: var(--ovs-radius);
    background: #ffffff;
    box-shadow: var(--ovs-shadow);
    overflow: hidden;
}

body[data-controller="user"][data-action="profile"] #content-container .user-center .dashboard-card,
body[data-controller="user"][data-action="bind"] #content-container .user-center .dashboard-card,
body[data-controller="user"][data-action="message"] #content-container .user-center .dashboard-card,
body[data-controller="user"][data-action="favorite"] #content-container .user-center .dashboard-card,
body[data-controller="user"][data-action="coupon"] #content-container .user-center .dashboard-card,
body[data-controller="user"][data-action="score"] #content-container .user-center .dashboard-card {
    border: 1px solid var(--ovs-card-line) !important;
    border-radius: var(--ovs-radius) !important;
    box-shadow: var(--ovs-shadow) !important;
}

body[data-controller="user"][data-action="profile"] #content-container .panel-heading,
body[data-controller="user"][data-action="changepwd"] #content-container .panel-heading,
body[data-controller="user"][data-action="bind"] #content-container .panel-heading,
body[data-controller="user"][data-action="message"] #content-container .panel-heading,
body[data-controller="user"][data-action="favorite"] #content-container .panel-heading,
body[data-controller="user"][data-action="coupon"] #content-container .panel-heading,
body[data-controller="user"][data-action="score"] #content-container .panel-heading {
    min-height: 60px;
    padding: 17px 22px;
    border-bottom: 1px solid #edf2f7;
    background: var(--member-soft-blue);
}

body[data-controller="user"][data-action="profile"] #content-container .panel-heading h3,
body[data-controller="user"][data-action="changepwd"] #content-container .panel-heading h4,
body[data-controller="user"][data-action="message"] #content-container .panel-heading h3,
body[data-controller="user"][data-action="coupon"] #content-container .panel-heading h4,
body[data-controller="user"][data-action="score"] #content-container .panel-heading h4 {
    margin: 0;
    color: var(--ovs-ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;
}

body[data-controller="user"][data-action="profile"] #content-container .panel-body,
body[data-controller="user"][data-action="changepwd"] #content-container .panel-body,
body[data-controller="user"][data-action="bind"] #content-container .panel-body,
body[data-controller="user"][data-action="message"] #content-container .panel-body,
body[data-controller="user"][data-action="favorite"] #content-container .panel-body,
body[data-controller="user"][data-action="coupon"] #content-container .panel-body,
body[data-controller="user"][data-action="score"] #content-container .panel-body {
    padding: 24px;
}

body[data-controller="user"][data-action="profile"] #content-container .control-label,
body[data-controller="user"][data-action="changepwd"] #content-container .control-label,
body[data-controller="user"][data-action="coupon"] #content-container .control-label,
body[data-controller="user"][data-action="score"] #content-container label,
body[data-controller="user"][data-action="profile"] .form-layer .control-label {
    color: #374151;
    font-weight: 700;
}

body[data-controller="user"][data-action="profile"] #content-container .form-control,
body[data-controller="user"][data-action="changepwd"] #content-container .form-control,
body[data-controller="user"][data-action="coupon"] #content-container .form-control,
body[data-controller="user"][data-action="score"] #content-container .form-control,
body[data-controller="user"][data-action="profile"] .form-layer .form-control {
    height: 46px;
    padding: 8px 14px;
    border: 1px solid var(--member-field-line);
    border-radius: 11px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body[data-controller="user"][data-action="profile"] #content-container .form-control:focus,
body[data-controller="user"][data-action="changepwd"] #content-container .form-control:focus,
body[data-controller="user"][data-action="coupon"] #content-container .form-control:focus,
body[data-controller="user"][data-action="score"] #content-container .form-control:focus,
body[data-controller="user"][data-action="profile"] .form-layer .form-control:focus {
    border-color: #8bb9ff;
    outline: none;
    box-shadow: var(--member-focus);
}

body[data-controller="user"][data-action="profile"] #content-container .form-control[disabled] {
    border-color: #e3eaf5;
    background: #f8fafc;
    color: #64748b;
    cursor: default;
    opacity: 1;
}

body[data-controller="user"][data-action="profile"] #content-container .input-group .form-control,
body[data-controller="user"][data-action="profile"] .form-layer .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body[data-controller="user"][data-action="profile"] #content-container .input-group-btn .btn,
body[data-controller="user"][data-action="profile"] .form-layer .input-group-btn .btn {
    min-height: 46px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

body[data-controller="user"][data-action="profile"] #content-container .btn-primary,
body[data-controller="user"][data-action="profile"] #content-container .btn-gradient,
body[data-controller="user"][data-action="changepwd"] #content-container button[type="submit"],
body[data-controller="user"][data-action="message"] #content-container .btn-gradient,
body[data-controller="user"][data-action="coupon"] #content-container .btn-primary,
body[data-controller="user"][data-action="score"] #content-container .btn-primary,
body[data-controller="user"][data-action="score"] #content-container #btn-promo-redeem,
body[data-controller="user"][data-action="profile"] .form-layer .btn-gradient {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark)) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(16, 98, 238, .22);
}

body[data-controller="user"][data-action="profile"] #content-container .btn-primary:hover,
body[data-controller="user"][data-action="profile"] #content-container .btn-gradient:hover,
body[data-controller="user"][data-action="changepwd"] #content-container button[type="submit"]:hover,
body[data-controller="user"][data-action="message"] #content-container .btn-gradient:hover,
body[data-controller="user"][data-action="coupon"] #content-container .btn-primary:hover,
body[data-controller="user"][data-action="score"] #content-container .btn-primary:hover,
body[data-controller="user"][data-action="score"] #content-container #btn-promo-redeem:hover,
body[data-controller="user"][data-action="profile"] .form-layer .btn-gradient:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 98, 238, .28);
}

body[data-controller="user"][data-action="profile"] #content-container .btn:focus-visible,
body[data-controller="user"][data-action="changepwd"] #content-container .btn:focus-visible,
body[data-controller="user"][data-action="bind"] #content-container .btn:focus-visible,
body[data-controller="user"][data-action="message"] #content-container button:focus-visible,
body[data-controller="user"][data-action="favorite"] #content-container .btn:focus-visible,
body[data-controller="user"][data-action="coupon"] #content-container .btn:focus-visible,
body[data-controller="user"][data-action="score"] #content-container .btn:focus-visible,
body[data-controller="user"][data-action="favorite"] #favorite-type-tabs a:focus-visible {
    outline: 3px solid rgba(16, 98, 238, .28);
    outline-offset: 2px;
}

/* --- 23b. profile and password forms --- */

body[data-controller="user"][data-action="profile"] #profile-form,
body[data-controller="user"][data-action="changepwd"] #changepwd-form {
    max-width: 900px;
    margin: 0 auto;
}

body[data-controller="user"][data-action="profile"] #content-container .panel-section-title {
    margin: 0 0 22px;
    padding: 0 0 14px;
    border-bottom: 1px solid #edf2f7;
}

body[data-controller="user"][data-action="profile"] #content-container .panel-section-title h3 {
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 800;
}

body[data-controller="user"][data-action="profile"] .profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 4px 0 18px;
    border-radius: 50%;
}

body[data-controller="user"][data-action="profile"] .profile-avatar-container .avatar-halo {
    position: absolute;
    inset: -8px;
    border: 1px solid #b8d0ff;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 98, 238, .14), rgba(43, 124, 255, .03));
    box-shadow: 0 12px 30px rgba(16, 98, 238, .16);
}

body[data-controller="user"][data-action="profile"] .profile-user-img {
    position: relative;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 26px rgba(15, 35, 80, .14);
}

body[data-controller="user"][data-action="profile"] .profile-avatar-text {
    background: rgba(4, 32, 88, .66) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

body[data-controller="user"][data-action="profile"] .form-layer .form-body {
    padding: 24px 22px 8px;
}

body[data-controller="user"][data-action="profile"] .form-layer .form-footer {
    padding: 16px 22px 20px;
    border-top: 1px solid #edf2f7;
    background: #f8fbff;
}

body[data-controller="user"][data-action="changepwd"] #content-container .user-center > .panel {
    max-width: 900px;
}

body[data-controller="user"][data-action="changepwd"] #content-container .panel-heading i {
    color: var(--ovs-blue);
}

@media (min-width: 768px) {
    body[data-controller="user"][data-action="profile"] #profile-form > .form-group > .col-sm-4,
    body[data-controller="user"][data-action="changepwd"] #changepwd-form > .form-group > .col-sm-4 {
        width: 58.33333333%;
    }
}

/* --- 23c. third-party binding cards --- */

body[data-controller="user"][data-action="bind"] #content-container .user-center > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

body[data-controller="user"][data-action="bind"] #content-container .user-center > .row::before,
body[data-controller="user"][data-action="bind"] #content-container .user-center > .row::after {
    content: none;
}

body[data-controller="user"][data-action="bind"] #content-container .user-center > .row > [class*="col-"] {
    float: none;
    width: auto;
    padding: 0;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-card {
    position: relative;
    min-height: 116px;
    margin: 0;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ovs-blue), var(--ovs-blue-2));
}

body[data-controller="user"][data-action="bind"] #content-container .bind-card:hover {
    border-color: #cfe0ff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 35, 80, .11) !important;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-card .panel-body {
    min-height: 114px;
    gap: 16px;
    padding: 22px 20px 22px 24px;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 17px;
    font-size: 25px;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-info h4 {
    margin-bottom: 7px;
    color: var(--ovs-ink);
    font-size: 17px;
    font-weight: 900;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-status.bound {
    border-color: #a8f0d2;
    background: #eafff6;
    color: #059669;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-status.unbound {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

body[data-controller="user"][data-action="bind"] #content-container .bind-action .btn {
    min-width: 84px;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 800;
}

/* --- 23d. message list: unread state with a visible blue dot --- */

body[data-controller="user"][data-action="message"] #content-container .panel-heading.header-flex {
    gap: 16px;
}

body[data-controller="user"][data-action="message"] #content-container .panel-body {
    padding: 12px;
}

body[data-controller="user"][data-action="message"] #content-container .message-list {
    border: 0;
    border-radius: 14px;
    background: transparent;
    overflow: hidden;
}

body[data-controller="user"][data-action="message"] #content-container .message-item {
    position: relative;
    min-height: 88px;
    padding: 18px 20px 17px 34px;
    border: 1px solid transparent;
    border-bottom-color: #edf2f7;
    background: #ffffff;
    transition: background .18s ease, border-color .18s ease;
}

body[data-controller="user"][data-action="message"] #content-container .message-item:last-child {
    border-bottom-color: transparent;
}

body[data-controller="user"][data-action="message"] #content-container .message-item:hover {
    border-color: #d8e8ff;
    border-radius: 12px;
    background: #f8fbff;
}

body[data-controller="user"][data-action="message"] #content-container .message-item.unread {
    border-color: #d8e8ff;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef5ff 0%, #f8fbff 54%, #ffffff 100%);
}

body[data-controller="user"][data-action="message"] #content-container .message-item.unread::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 24px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--ovs-blue);
    box-shadow: 0 0 0 3px rgba(16, 98, 238, .13);
}

body[data-controller="user"][data-action="message"] #content-container .message-item .message-title {
    color: var(--ovs-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

body[data-controller="user"][data-action="message"] #content-container .message-item .message-content {
    margin-top: 5px;
    color: #526074;
    font-size: 13px;
    line-height: 1.65;
}

body[data-controller="user"][data-action="message"] #content-container .message-item .message-time {
    color: #8a96a8;
    font-size: 12px;
}

body[data-controller="user"][data-action="message"] #content-container .message-item.revoked {
    opacity: .68;
}

body[data-controller="user"][data-action="message"] #message-filter-group {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
}

body[data-controller="user"][data-action="message"] #message-filter-group .btn {
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    color: #64748b;
    font-weight: 800;
}

body[data-controller="user"][data-action="message"] #message-filter-group .btn.active {
    background: #eef5ff !important;
    color: var(--ovs-blue) !important;
}

body[data-controller="user"][data-action="message"] #content-container .js-mark-all-read {
    min-height: 42px;
    border-color: #cfe0ff;
    color: var(--ovs-blue);
    font-weight: 800;
}

/* --- 23e. favorite and coupon rows as light cankao cards --- */

body[data-controller="user"][data-action="favorite"] #favorite-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border: 0;
}

body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li {
    float: none;
    margin: 0;
}

body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li > a {
    margin: 0;
    padding: 10px 17px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
    color: #526074;
    font-weight: 800;
}

body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li > a:hover {
    border-color: #b8d0ff;
    background: #f8fbff;
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li.active > a,
body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li.active > a:hover,
body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li.active > a:focus {
    border-color: #b8d0ff;
    background: #eef5ff;
    color: var(--ovs-blue);
    box-shadow: 0 8px 20px rgba(16, 98, 238, .10);
}

body[data-controller="user"][data-action="favorite"] #content-container .panel-body {
    padding: 16px;
}

body[data-controller="user"][data-action="favorite"] #favorite-empty {
    border: 1px dashed #b8d0ff;
    border-radius: 14px;
    background: #f8fbff;
}

body[data-controller="user"][data-action="favorite"] #favorite-empty .fa {
    color: #8bb9ff;
}

body[data-controller="user"][data-action="favorite"] .fixed-table-container {
    border: 0;
    border-radius: 0;
}

body[data-controller="user"][data-action="favorite"] .fixed-table-toolbar,
body[data-controller="user"][data-action="favorite"] .fixed-table-pagination {
    padding-right: 4px;
    padding-left: 4px;
}

body[data-controller="user"][data-action="favorite"] #favorite-table,
body[data-controller="user"][data-action="coupon"] #content-container .table-common,
body[data-controller="user"][data-action="score"] #content-container .table-common {
    border-collapse: separate !important;
    border-spacing: 0 10px;
    background: transparent;
}

body[data-controller="user"][data-action="favorite"] #favorite-table > thead > tr > th,
body[data-controller="user"][data-action="coupon"] #content-container .table-common > thead > tr > th,
body[data-controller="user"][data-action="score"] #content-container .table-common > thead > tr > th {
    padding: 10px 14px;
    border: 0;
    background: #f8fbff;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

body[data-controller="user"][data-action="favorite"] #favorite-table > tbody > tr > td,
body[data-controller="user"][data-action="coupon"] #content-container .table-common > tbody > tr > td,
body[data-controller="user"][data-action="score"] #content-container .table-common > tbody > tr > td {
    padding: 15px 14px;
    border-top: 1px solid #e7edf7;
    border-bottom: 1px solid #e7edf7;
    background: #ffffff;
    vertical-align: middle;
}

body[data-controller="user"][data-action="favorite"] #favorite-table > tbody > tr > td:first-child,
body[data-controller="user"][data-action="coupon"] #content-container .table-common > tbody > tr > td:first-child,
body[data-controller="user"][data-action="score"] #content-container .table-common > tbody > tr > td:first-child {
    border-left: 1px solid #e7edf7;
    border-radius: 12px 0 0 12px;
}

body[data-controller="user"][data-action="favorite"] #favorite-table > tbody > tr > td:last-child,
body[data-controller="user"][data-action="coupon"] #content-container .table-common > tbody > tr > td:last-child,
body[data-controller="user"][data-action="score"] #content-container .table-common > tbody > tr > td:last-child {
    border-right: 1px solid #e7edf7;
    border-radius: 0 12px 12px 0;
}

body[data-controller="user"][data-action="favorite"] #favorite-table > tbody > tr > td:only-child,
body[data-controller="user"][data-action="coupon"] #content-container .table-common > tbody > tr > td:only-child,
body[data-controller="user"][data-action="score"] #content-container .table-common > tbody > tr > td:only-child {
    border-right: 1px solid #e7edf7;
    border-left: 1px solid #e7edf7;
    border-radius: 12px;
}

body[data-controller="user"][data-action="favorite"] #favorite-table > tbody > tr:hover > td,
body[data-controller="user"][data-action="coupon"] #content-container .table-common > tbody > tr:hover > td,
body[data-controller="user"][data-action="score"] #content-container .table-common > tbody > tr:hover > td {
    border-color: #cfe0ff;
    background: #f8fbff;
}

body[data-controller="user"][data-action="favorite"] #favorite-table .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body[data-controller="user"][data-action="favorite"] #favorite-table .btn {
    float: none;
    border-radius: 9px !important;
    font-weight: 700;
}

body[data-controller="user"][data-action="favorite"] .favorite-unavailable-badge {
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

body[data-controller="user"][data-action="coupon"] #content-container .dashboard-card {
    position: relative;
}

body[data-controller="user"][data-action="coupon"] #content-container .dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ovs-blue), var(--ovs-blue-2));
    z-index: 2;
}

body[data-controller="user"][data-action="coupon"] #content-container .form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
}

body[data-controller="user"][data-action="coupon"] #content-container .form-inline .form-group {
    margin: 0;
}

body[data-controller="user"][data-action="coupon"] #content-container .form-inline .form-control {
    min-width: 260px !important;
}

body[data-controller="user"][data-action="coupon"] #content-container .label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

body[data-controller="user"][data-action="coupon"] #content-container .label-success {
    background: #eafff6;
    color: #059669;
}

body[data-controller="user"][data-action="coupon"] #content-container .label-danger {
    background: #fff1ef;
    color: #dc2626;
}

body[data-controller="user"][data-action="coupon"] #content-container .label-default {
    background: #f1f5f9;
    color: #64748b;
}

body[data-controller="user"][data-action="coupon"] #content-container .table-common > tbody > tr > td:first-child {
    color: var(--ovs-ink);
    font-weight: 800;
}

/* --- 23f. points center cards, progress and promotion plans --- */

body[data-controller="user"][data-action="score"] #content-container .stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

body[data-controller="user"][data-action="score"] #content-container .stat-item {
    min-height: 142px;
    padding: 22px;
    border: 1px solid var(--ovs-card-line);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 35, 80, .06);
}

body[data-controller="user"][data-action="score"] #content-container .stat-item.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    box-shadow: 0 18px 38px rgba(16, 98, 238, .24);
}

body[data-controller="user"][data-action="score"] #content-container .stat-item.active .stat-item-label,
body[data-controller="user"][data-action="score"] #content-container .stat-item.active .stat-item-value {
    color: #ffffff;
}

body[data-controller="user"][data-action="score"] #content-container .stat-item.active .stat-item-label {
    opacity: .82;
}

body[data-controller="user"][data-action="score"] #content-container .stat-item.success {
    border-color: #c7f4df;
    background: linear-gradient(145deg, #f0fff8, #ffffff);
}

body[data-controller="user"][data-action="score"] #content-container .stat-item.info {
    border-color: #d8e8ff;
    background: linear-gradient(145deg, #eef5ff, #ffffff);
}

body[data-controller="user"][data-action="score"] #content-container .stat-item-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body[data-controller="user"][data-action="score"] #content-container .stat-item-value {
    margin-top: 5px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.7px;
}

body[data-controller="user"][data-action="score"] #content-container .progress {
    height: 12px !important;
    border-radius: 999px;
    background: #eaf1fb;
    box-shadow: inset 0 1px 2px rgba(15, 35, 80, .08);
    overflow: hidden;
}

body[data-controller="user"][data-action="score"] #content-container .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ovs-blue), var(--ovs-blue-2));
    box-shadow: 0 4px 12px rgba(16, 98, 238, .24);
}

body[data-controller="user"][data-action="score"] #content-container .score-promotion-form {
    padding: 18px;
    border: 1px solid #e7edf7;
    border-radius: 16px;
    background: #f8fbff;
}

body[data-controller="user"][data-action="score"] #content-container .promo-item-pick-btn {
    min-height: 46px;
    border-color: var(--member-field-line);
    border-radius: 11px;
}

body[data-controller="user"][data-action="score"] #content-container .promo-item-pick-btn:hover,
body[data-controller="user"][data-action="score"] #content-container .promo-item-pick-btn:focus {
    border-color: #8bb9ff;
    box-shadow: var(--member-focus);
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-card {
    min-height: 170px;
    border: 1px solid #dbe4f0;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 35, 80, .05);
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-card:hover:not(.is-incompatible):not(.is-insufficient):not(.is-active-conflict):not(.is-selected) {
    border-color: #8bb9ff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 98, 238, .12);
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-card.is-selected {
    border-color: var(--ovs-blue) !important;
    background: linear-gradient(145deg, #eef5ff 0%, #ffffff 64%) !important;
    box-shadow: 0 0 0 3px rgba(16, 98, 238, .12), 0 14px 28px rgba(16, 98, 238, .14) !important;
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-card.is-selected::before {
    background: linear-gradient(180deg, var(--ovs-blue-2), var(--ovs-blue));
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-card:focus-visible {
    border-color: var(--ovs-blue);
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .16);
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-selected-label {
    background: var(--ovs-blue);
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-score {
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="score"] #content-container .promo-plan-badge--home {
    background: #eef5ff;
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="score"] #content-container .promo-form-actions {
    margin-top: 6px;
}

body[data-controller="user"][data-action="score"] #content-container #btn-promo-redeem {
    min-height: 46px;
    border-radius: 11px;
}

body[data-controller="user"][data-action="score"] .promo-item-picker-grid .exchange-picker-card {
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    background: #ffffff;
}

body[data-controller="user"][data-action="score"] .promo-item-picker-grid .exchange-picker-card:hover,
body[data-controller="user"][data-action="score"] .promo-item-picker-grid .exchange-picker-card.is-selected {
    border-color: var(--ovs-blue);
    background: #eef5ff;
    box-shadow: 0 8px 20px rgba(16, 98, 238, .12);
}

/* --- 23g. responsive account layouts --- */

@media (max-width: 991px) {
    body[data-controller="user"][data-action="bind"] #content-container .user-center > .row {
        grid-template-columns: 1fr;
    }

    body[data-controller="user"][data-action="score"] #content-container .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-controller="user"][data-action="score"] #content-container .stat-item.info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    body[data-controller="user"][data-action="profile"] #content-container .panel-heading,
    body[data-controller="user"][data-action="changepwd"] #content-container .panel-heading,
    body[data-controller="user"][data-action="message"] #content-container .panel-heading,
    body[data-controller="user"][data-action="coupon"] #content-container .panel-heading,
    body[data-controller="user"][data-action="score"] #content-container .panel-heading {
        padding: 15px 16px;
    }

    body[data-controller="user"][data-action="profile"] #content-container .panel-body,
    body[data-controller="user"][data-action="changepwd"] #content-container .panel-body,
    body[data-controller="user"][data-action="bind"] #content-container .panel-body,
    body[data-controller="user"][data-action="message"] #content-container .panel-body,
    body[data-controller="user"][data-action="favorite"] #content-container .panel-body,
    body[data-controller="user"][data-action="coupon"] #content-container .panel-body,
    body[data-controller="user"][data-action="score"] #content-container .panel-body {
        padding: 16px;
    }

    body[data-controller="user"][data-action="bind"] #content-container .page-header h3,
    body[data-controller="user"][data-action="message"] #content-container .page-header h3,
    body[data-controller="user"][data-action="favorite"] #content-container .page-header h3,
    body[data-controller="user"][data-action="coupon"] #content-container .page-header h3,
    body[data-controller="user"][data-action="score"] #content-container .page-header h3,
    body[data-controller="user"][data-action="changepwd"] #content-container .page-header h2 {
        align-items: flex-start;
        flex-wrap: wrap;
        font-size: 22px;
    }

    body[data-controller="user"][data-action="bind"] #content-container .page-header small,
    body[data-controller="user"][data-action="message"] #content-container .page-header small,
    body[data-controller="user"][data-action="favorite"] #content-container .page-header small,
    body[data-controller="user"][data-action="coupon"] #content-container .page-header small,
    body[data-controller="user"][data-action="score"] #content-container .page-header small {
        width: 100%;
        margin: 6px 0 0;
    }

    body[data-controller="user"][data-action="profile"] #profile-form .normal-footer .btn,
    body[data-controller="user"][data-action="profile"] #profile-form > .form-group:last-child .btn,
    body[data-controller="user"][data-action="changepwd"] #changepwd-form .normal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0 0 9px;
    }

    body[data-controller="user"][data-action="bind"] #content-container .bind-card .panel-body {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    body[data-controller="user"][data-action="bind"] #content-container .bind-action {
        width: 100%;
        padding-left: 72px;
        justify-content: flex-start;
    }

    body[data-controller="user"][data-action="message"] #content-container .panel-heading.header-flex {
        align-items: stretch;
        flex-direction: column;
    }

    body[data-controller="user"][data-action="message"] #content-container .message-item {
        padding: 16px 14px 15px 31px;
    }

    body[data-controller="user"][data-action="message"] #content-container .message-item.unread::before {
        left: 12px;
        top: 22px;
    }

    body[data-controller="user"][data-action="favorite"] #favorite-type-tabs {
        padding-bottom: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body[data-controller="user"][data-action="favorite"] #favorite-type-tabs > li > a {
        white-space: nowrap;
    }

    body[data-controller="user"][data-action="coupon"] #content-container .form-inline {
        align-items: stretch;
        flex-direction: column;
    }

    body[data-controller="user"][data-action="coupon"] #content-container .form-inline .form-group,
    body[data-controller="user"][data-action="coupon"] #content-container .form-inline .form-control,
    body[data-controller="user"][data-action="coupon"] #content-container .form-inline .btn {
        width: 100%;
        min-width: 0 !important;
    }

    body[data-controller="user"][data-action="score"] #content-container .stats-bar {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    body[data-controller="user"][data-action="score"] #content-container .stats-bar .stat-item,
    body[data-controller="user"][data-action="score"] #content-container .stat-item.info {
        grid-column: auto;
        min-width: 0;
    }

    body[data-controller="user"][data-action="score"] #content-container .score-promotion-form {
        padding: 14px;
    }

    body[data-controller="user"][data-action="score"] #content-container .promo-plan-grid {
        grid-template-columns: 1fr;
    }

    body[data-controller="user"][data-action="favorite"] #content-container .table-responsive,
    body[data-controller="user"][data-action="coupon"] #content-container .table-responsive,
    body[data-controller="user"][data-action="score"] #content-container .table-responsive {
        border: 0;
        -webkit-overflow-scrolling: touch;
    }

    body[data-controller="user"][data-action="favorite"] #favorite-table,
    body[data-controller="user"][data-action="coupon"] #content-container .table-common,
    body[data-controller="user"][data-action="score"] #content-container .table-common {
        min-width: 720px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-controller="user"][data-action="profile"] #content-container .btn,
    body[data-controller="user"][data-action="changepwd"] #content-container .btn,
    body[data-controller="user"][data-action="bind"] #content-container .bind-card,
    body[data-controller="user"][data-action="message"] #content-container .message-item,
    body[data-controller="user"][data-action="favorite"] #content-container .btn,
    body[data-controller="user"][data-action="coupon"] #content-container .btn,
    body[data-controller="user"][data-action="score"] #content-container .btn,
    body[data-controller="user"][data-action="score"] #content-container .promo-plan-card {
        transition: none;
    }

    body[data-controller="user"][data-action="profile"] #content-container .btn:hover,
    body[data-controller="user"][data-action="changepwd"] #content-container .btn:hover,
    body[data-controller="user"][data-action="bind"] #content-container .bind-card:hover,
    body[data-controller="user"][data-action="favorite"] #content-container .btn:hover,
    body[data-controller="user"][data-action="coupon"] #content-container .btn:hover,
    body[data-controller="user"][data-action="score"] #content-container .btn:hover,
    body[data-controller="user"][data-action="score"] #content-container .promo-plan-card:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------------- *
 * 20. finance pages (recharge x4 + withdraw x2, member layout)
 *
 * Pure-CSS cankao reskin for the money flow member pages. The member
 * layout does not load ui-base.css, so the needed cankao vocabulary
 * (white cards, duration-style capsule options, field inputs, table
 * rhythm) is self-contained here, like section 16b. Selectors use the
 * `html body[data-controller=...]` prefix to outrank the per-template
 * inline <style> blocks (lowercase attr values per layout/default).
 * Iron rule: amount fields / pay-type switches / {:token()} / form
 * actions / recharge.js & withdraw.js hooks are untouched.
 * ---------------------------------------------------------------- */

/* --- 20a. form pages: recharge / manual / withdraw --- */

/* cards -> cankao white cards */
html body[data-controller="recharge"] .recharge-card,
html body[data-controller="recharge"] .account-item,
html body[data-controller="withdraw"] .withdraw-card {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .06);
}

html body[data-controller="recharge"] .recharge-card:hover,
html body[data-controller="recharge"] .account-item:hover,
html body[data-controller="withdraw"] .withdraw-card:hover {
    border-color: #b8d0ff;
}

/* option capsules -> cankao duration buttons (soft-blue active) */
html body[data-controller="recharge"] .money-option,
html body[data-controller="recharge"] .pay-option,
html body[data-controller="recharge"] .pay-type-item,
html body[data-controller="withdraw"] .pay-option {
    background: #ffffff;
    border: 1px solid #d8e2f2;
    border-radius: 9px;
    font-weight: 800;
    color: #4b5563;
}

html body[data-controller="recharge"] .money-option:hover,
html body[data-controller="recharge"] .pay-option:hover,
html body[data-controller="recharge"] .pay-type-item:hover,
html body[data-controller="withdraw"] .pay-option:hover {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
}

html body[data-controller="recharge"] .money-option.active,
html body[data-controller="recharge"] .pay-option.active,
html body[data-controller="recharge"] .pay-type-item.active,
html body[data-controller="withdraw"] .pay-option.active {
    background: #eef5ff;
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
}

/* inputs -> cankao field */
html body[data-controller="recharge"] .custom-money-input,
html body[data-controller="withdraw"] .withdraw-input {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
}

html body[data-controller="recharge"] .custom-money-input:focus,
html body[data-controller="withdraw"] .withdraw-input:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
    background: #ffffff;
}

/* balance / fee summaries -> pale blue panel, amounts in market red */
html body[data-controller="recharge"] .recharge-summary,
html body[data-controller="withdraw"] .withdraw-summary {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

html body[data-controller="recharge"] .recharge-summary .amount,
html body[data-controller="withdraw"] .withdraw-summary .amount {
    color: #ff3f22;
}

/* manual recharge helpers: qrcode panel picks up the card language */
html body[data-controller="recharge"] .qrcode-display {
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
}

/* --- 20b. log pages: moneylog / manuallog / withdrawlog --- */

/* moneylog entries -> white cards with hairline + pale hover */
html body[data-controller="recharge"] .moneylog-item {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .04);
}

html body[data-controller="recharge"] .moneylog-item:hover {
    background: #f8fbff;
    border-color: #b8d0ff;
}

/* manuallog table -> cankao table rhythm */
html body[data-controller="recharge"] .log-table th {
    background: #f8fbff;
    color: #6b7280;
    font-size: 13px;
    border-bottom: 1px solid #edf2f7;
}

html body[data-controller="recharge"] .log-table td {
    border-bottom: 1px solid #edf2f7;
}

html body[data-controller="recharge"] .log-table tr:hover td {
    background: #f8fbff;
}

/* withdrawlog entries -> white cards */
html body[data-controller="withdraw"] .withdrawlog-item {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .04);
}

html body[data-controller="withdraw"] .withdrawlog-item:hover {
    background: #f8fbff;
    box-shadow: 0 12px 34px rgba(15, 35, 80, .08);
}

/* status badges -> cankao pills */
html body[data-controller="recharge"] .status-badge,
html body[data-controller="withdraw"] .status-badge {
    border-radius: 999px;
    font-weight: 800;
}

/* ---------------------------------------------------------------- *
 * 21. member lists (buy_order / sell_order / site_list / goods /
 * finance -> cankao order-tabs + .ovs-table + status pills)
 * Pure CSS: colors/radii/backgrounds/borders only — no display,
 * visibility or sizing property is touched, so every user.js hook
 * (bootstrap-table, filters, batch ops, drawers) keeps working.
 * Scope: the five data-action selectors are written out explicitly
 * (leader review: avoid :is() for old-Chromium compatibility).
 * The active bar on stat items uses an ::after bar instead of
 * box-shadow because the page-inline style blocks already own
 * box-shadow/border-color on .active (buy/sell order pages).
 * ---------------------------------------------------------------- */

/* -- 21a. page header: blue icon + tight title -------------------- */

body[data-controller="user"][data-action="buy_order"] .page-header h3 i,
body[data-controller="user"][data-action="sell_order"] .page-header h3 i,
body[data-controller="user"][data-action="site_list"] .page-header h3 i,
body[data-controller="user"][data-action="goods"] .page-header h3 i,
body[data-controller="user"][data-action="finance"] .page-header h3 i {
    color: #fff;
}

body[data-controller="user"][data-action="buy_order"] .page-header h3,
body[data-controller="user"][data-action="sell_order"] .page-header h3,
body[data-controller="user"][data-action="site_list"] .page-header h3,
body[data-controller="user"][data-action="goods"] .page-header h3,
body[data-controller="user"][data-action="finance"] .page-header h3 {
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--ovs-ink);
}

/* -- 21b. stats bar: cankao cards + order-tabs style active bar --- */

body[data-controller="user"][data-action="buy_order"] .stats-bar .stat-item,
body[data-controller="user"][data-action="sell_order"] .stats-bar .stat-item,
body[data-controller="user"][data-action="finance"] .stats-bar .stat-item {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
}

body[data-controller="user"][data-action="buy_order"] .stats-bar .stat-item:hover .stat-item-label,
body[data-controller="user"][data-action="sell_order"] .stats-bar .stat-item:hover .stat-item-label {
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="buy_order"] .stats-bar .stat-item.active::after,
body[data-controller="user"][data-action="sell_order"] .stats-bar .stat-item.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
    background: var(--ovs-blue);
}

body[data-controller="user"][data-action="buy_order"] .stats-bar .stat-item.active .stat-item-label,
body[data-controller="user"][data-action="sell_order"] .stats-bar .stat-item.active .stat-item-label {
    color: var(--ovs-blue);
    font-weight: 700;
}

/* mobile: wrap the stats bar (user.css makes it overflow-x:auto, hiding
   the later counts off-screen); show all counts 2-per-row instead */
@media (max-width: 767px) {
    body[data-controller="user"][data-action="buy_order"] .stats-bar,
    body[data-controller="user"][data-action="sell_order"] .stats-bar,
    body[data-controller="user"][data-action="finance"] .stats-bar {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    body[data-controller="user"][data-action="buy_order"] .stats-bar .stat-item,
    body[data-controller="user"][data-action="sell_order"] .stats-bar .stat-item,
    body[data-controller="user"][data-action="finance"] .stats-bar .stat-item {
        flex: 1 1 42%;
        min-width: 0;
    }
}

/* -- 21c. goods page tabs: order-tabs style ----------------------- */

body[data-controller="user"][data-action="goods"] .nav-tabs.nav-tabs-custom {
    border-bottom: 1px solid #edf2f7;
}

body[data-controller="user"][data-action="goods"] .nav-tabs.nav-tabs-custom > li > a {
    color: var(--ovs-muted);
    font-weight: 700;
    border: 0;
    background: transparent;
}

body[data-controller="user"][data-action="goods"] .nav-tabs.nav-tabs-custom > li > a:hover {
    color: var(--ovs-blue);
    background: transparent;
    border: 0;
}

body[data-controller="user"][data-action="goods"] .nav-tabs.nav-tabs-custom > li.active > a,
body[data-controller="user"][data-action="goods"] .nav-tabs.nav-tabs-custom > li.active > a:hover,
body[data-controller="user"][data-action="goods"] .nav-tabs.nav-tabs-custom > li.active > a:focus {
    color: var(--ovs-blue);
    font-weight: 800;
    border: 0;
    border-bottom: 3px solid var(--ovs-blue);
    background: transparent;
}

/* -- 21d. filter shells / toolbars / panels: cankao white cards --- */

body[data-controller="user"][data-action="buy_order"] .filter-box,
body[data-controller="user"][data-action="sell_order"] .filter-box,
body[data-controller="user"][data-action="goods"] .goods-toolbar-body,
body[data-controller="user"][data-action="goods"] .goods-toolbar-modern,
body[data-controller="user"][data-action="site_list"] .panel.dashboard-card,
body[data-controller="user"][data-action="goods"] .panel.dashboard-card,
body[data-controller="user"][data-action="finance"] .panel.dashboard-card {
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .05);
    background: #ffffff;
}

/* -- 21e. list headers + tables: cankao .ovs-table palette -------- */

body[data-controller="user"][data-action="buy_order"] .order-list-header-row,
body[data-controller="user"][data-action="sell_order"] .order-list-header-row {
    background: #f8fbff;
    color: var(--ovs-muted);
    font-size: 13px;
    border: 1px solid #edf2f7;
    border-radius: 10px 10px 0 0;
}

body[data-controller="user"][data-action="buy_order"] .table-common thead th,
body[data-controller="user"][data-action="sell_order"] .table-common thead th,
body[data-controller="user"][data-action="site_list"] .table-common thead th,
body[data-controller="user"][data-action="goods"] .table-common thead th,
body[data-controller="user"][data-action="finance"] .table-common thead th {
    background: #f8fbff;
    color: var(--ovs-muted);
    font-size: 13px;
    border-bottom: 1px solid #edf2f7;
}

body[data-controller="user"][data-action="buy_order"] .table-common tbody td,
body[data-controller="user"][data-action="sell_order"] .table-common tbody td,
body[data-controller="user"][data-action="site_list"] .table-common tbody td,
body[data-controller="user"][data-action="goods"] .table-common tbody td,
body[data-controller="user"][data-action="finance"] .table-common tbody td {
    border-top: 0;
    border-bottom: 1px solid #edf2f7;
}

body[data-controller="user"][data-action="buy_order"] .table-common tbody tr:hover,
body[data-controller="user"][data-action="sell_order"] .table-common tbody tr:hover,
body[data-controller="user"][data-action="site_list"] .table-common tbody tr:hover > td,
body[data-controller="user"][data-action="goods"] .table-common tbody tr:hover > td,
body[data-controller="user"][data-action="finance"] .table-common tbody tr:hover > td {
    background: #f8fbff;
}

body[data-controller="user"][data-action="buy_order"] .fixed-table-container,
body[data-controller="user"][data-action="sell_order"] .fixed-table-container,
body[data-controller="user"][data-action="site_list"] .fixed-table-container,
body[data-controller="user"][data-action="goods"] .fixed-table-container,
body[data-controller="user"][data-action="finance"] .fixed-table-container {
    border-color: #e8eef8;
    border-radius: 10px;
}

/* order card rows rendered by user.js cardFormatter */
body[data-controller="user"][data-action="buy_order"] .order-item-container,
body[data-controller="user"][data-action="sell_order"] .order-item-container {
    border-bottom: 1px solid #edf2f7;
}

/* -- 21f. status labels -> cankao pills --------------------------- */

body[data-controller="user"][data-action="buy_order"] .label,
body[data-controller="user"][data-action="sell_order"] .label,
body[data-controller="user"][data-action="site_list"] .label,
body[data-controller="user"][data-action="goods"] .label,
body[data-controller="user"][data-action="finance"] .label {
    border-radius: 999px;
    font-weight: 800;
    padding: 4px 10px;
}

body[data-controller="user"][data-action="buy_order"] .label-success,
body[data-controller="user"][data-action="sell_order"] .label-success,
body[data-controller="user"][data-action="site_list"] .label-success,
body[data-controller="user"][data-action="goods"] .label-success,
body[data-controller="user"][data-action="finance"] .label-success {
    background: #eafff6;
    color: #059669;
}

body[data-controller="user"][data-action="buy_order"] .label-warning,
body[data-controller="user"][data-action="sell_order"] .label-warning,
body[data-controller="user"][data-action="site_list"] .label-warning,
body[data-controller="user"][data-action="goods"] .label-warning,
body[data-controller="user"][data-action="finance"] .label-warning {
    background: #fff7ed;
    color: #ea580c;
}

body[data-controller="user"][data-action="buy_order"] .label-danger,
body[data-controller="user"][data-action="sell_order"] .label-danger,
body[data-controller="user"][data-action="site_list"] .label-danger,
body[data-controller="user"][data-action="goods"] .label-danger,
body[data-controller="user"][data-action="finance"] .label-danger {
    background: #fef2f2;
    color: #dc2626;
}

body[data-controller="user"][data-action="buy_order"] .label-info,
body[data-controller="user"][data-action="sell_order"] .label-info,
body[data-controller="user"][data-action="site_list"] .label-info,
body[data-controller="user"][data-action="goods"] .label-info,
body[data-controller="user"][data-action="finance"] .label-info,
body[data-controller="user"][data-action="buy_order"] .label-primary,
body[data-controller="user"][data-action="sell_order"] .label-primary,
body[data-controller="user"][data-action="site_list"] .label-primary,
body[data-controller="user"][data-action="goods"] .label-primary,
body[data-controller="user"][data-action="finance"] .label-primary {
    background: #eef5ff;
    color: #1062ee;
}

body[data-controller="user"][data-action="buy_order"] .label-default,
body[data-controller="user"][data-action="sell_order"] .label-default,
body[data-controller="user"][data-action="site_list"] .label-default,
body[data-controller="user"][data-action="goods"] .label-default,
body[data-controller="user"][data-action="finance"] .label-default {
    background: #f1f5f9;
    color: #64748b;
}

/* -- 21g. secondary buttons: blue outline ------------------------- */

body[data-controller="user"][data-action="buy_order"] .btn-default,
body[data-controller="user"][data-action="sell_order"] .btn-default,
body[data-controller="user"][data-action="site_list"] .btn-default,
body[data-controller="user"][data-action="goods"] .btn-default,
body[data-controller="user"][data-action="finance"] .btn-default {
    border-color: #b8d0ff;
    color: var(--ovs-blue);
    background: #ffffff;
}

body[data-controller="user"][data-action="buy_order"] .btn-default:hover,
body[data-controller="user"][data-action="sell_order"] .btn-default:hover,
body[data-controller="user"][data-action="site_list"] .btn-default:hover,
body[data-controller="user"][data-action="goods"] .btn-default:hover,
body[data-controller="user"][data-action="finance"] .btn-default:hover,
body[data-controller="user"][data-action="buy_order"] .btn-default:focus,
body[data-controller="user"][data-action="sell_order"] .btn-default:focus,
body[data-controller="user"][data-action="site_list"] .btn-default:focus,
body[data-controller="user"][data-action="goods"] .btn-default:focus,
body[data-controller="user"][data-action="finance"] .btn-default:focus {
    border-color: #8bb9ff;
    color: var(--ovs-blue);
    background: #eef5ff;
}

/* -- 21h. mobile-only: order card actions + pagination footer ----- */
@media (max-width: 767px) {
    body[data-controller="user"][data-action="buy_order"] .order-meta-actions,
    body[data-controller="user"][data-action="sell_order"] .order-meta-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    body[data-controller="user"][data-action="buy_order"] .order-meta-actions > .btn,
    body[data-controller="user"][data-action="sell_order"] .order-meta-actions > .btn {
        flex: none;
        width: 100%;
        min-height: 38px;
        margin: 0;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
    }

    body[data-controller="user"][data-action="buy_order"] .order-meta-actions > .btn-group,
    body[data-controller="user"][data-action="sell_order"] .order-meta-actions > .btn-group {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body[data-controller="user"][data-action="buy_order"] .order-meta-actions > .btn-group > .btn,
    body[data-controller="user"][data-action="sell_order"] .order-meta-actions > .btn-group > .btn {
        width: 100%;
        min-height: 38px;
        border-radius: 10px;
        font-weight: 700;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .fixed-table-pagination,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .fixed-table-pagination {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        float: none;
        width: 100%;
        margin: 12px 0 calc(72px + env(safe-area-inset-bottom, 0px));
        padding: 14px 12px;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 35, 80, .05);
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .fixed-table-pagination::before,
    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .fixed-table-pagination::after,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .fixed-table-pagination::before,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .fixed-table-pagination::after {
        content: none;
        display: none;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .fixed-table-pagination .pagination-detail,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .fixed-table-pagination .pagination-detail {
        float: none !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100% !important;
        margin: 0 !important;
        padding: 0;
        line-height: 1.55;
        font-size: 12px;
        color: #64748b;
        text-align: left;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .custom-toolbar-buttons,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .custom-toolbar-buttons {
        display: block;
        width: 100%;
        margin: 0 !important;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .custom-toolbar-buttons .btn-batch-delete,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .custom-toolbar-buttons .btn-batch-delete {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        margin: 0;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        gap: 6px;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination-detail .pagination-info,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination-detail .pagination-info {
        display: block;
        margin: 0;
        line-height: 1.5;
        word-break: break-word;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination-detail .page-list,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination-detail .page-list {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 8px;
        margin: 0;
        float: none !important;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination-detail .page-list .btn-group,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination-detail .page-list .btn-group {
        margin: 0 4px;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination-detail .page-list .btn,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination-detail .page-list .btn {
        min-height: 32px;
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 700;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .fixed-table-pagination .pagination,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .fixed-table-pagination .pagination {
        float: none !important;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination > li > a,
    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination > li > span,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination > li > a,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination > li > span {
        min-width: 36px;
        height: 36px;
        margin: 0 3px 6px;
        padding: 0 10px;
        border-radius: 10px !important;
        line-height: 34px;
        text-align: center;
        font-weight: 700;
    }

    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination > .active > a,
    body[data-controller="user"][data-action="buy_order"] .order-table-wrap .pagination > .active > span,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination > .active > a,
    body[data-controller="user"][data-action="sell_order"] .order-table-wrap .pagination > .active > span {
        background: var(--ovs-blue);
        border-color: var(--ovs-blue);
        color: #fff;
    }
}

/* 27. cart drawer & color debt zero */
@media (min-width: 992px) {
    body .menu-right .menu-right-goods {
        border: 1px solid var(--ovs-card-line);
        border-right: 0;
        border-radius: var(--ovs-radius) 0 0 var(--ovs-radius);
        background: #ffffff;
        box-shadow: var(--ovs-shadow);
    }

    body .menu-right .menu-right-header,
    body .menu-right .menu-right-footer {
        padding: 16px 18px;
        background: #ffffff;
    }

    body .menu-right .menu-right-header {
        align-items: center;
        border-bottom: 1px solid #edf2f7;
    }

    body .menu-right .menu-right-header .cart_boxs {
        color: var(--ovs-muted);
    }

    body .menu-right .header-text ss {
        color: var(--ovs-blue);
        font-weight: 700;
    }

    body .menu-right .header-text ss:hover {
        color: var(--ovs-blue-2);
    }

    body .menu-right .menu-right-con {
        padding: 14px 18px;
        background: #ffffff;
    }

    body .menu-right .menu-right-con > div + div {
        margin-top: 14px;
    }

    body .menu-right .menu-right-con .title {
        padding: 10px 12px;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #f8fbff;
        color: var(--ovs-ink);
        font-weight: 800;
    }

    body .menu-right .menu-right-con ul {
        margin: 8px 0 0;
        border-top: 1px solid #edf2f7;
    }

    body .menu-right .menu-right-con ul li {
        margin: 0;
        padding: 14px 2px;
        border: 0;
        border-bottom: 1px solid #edf2f7;
        border-radius: 0;
        background: #ffffff;
        transition: background-color .18s ease;
    }

    body .menu-right .menu-right-con ul li:hover {
        background: #f8fbff;
    }

    body .menu-right .check_boxs {
        border-color: #dbe4f0;
        background: #ffffff;
    }

    body .menu-right .check_boxs.checked {
        border-color: var(--ovs-blue);
        background: var(--ovs-blue);
    }

    body .menu-right .name,
    body .menu-right .con-title {
        color: var(--ovs-ink);
        font-weight: 800;
    }

    body .menu-right .deleteCar {
        color: var(--ovs-muted);
        border-radius: 8px;
    }

    body .menu-right .deleteCar:hover {
        color: #ef4444;
        background: #fff1ef;
    }

    body .menu-right .link_type span {
        background: #f1f5f9;
        color: #64748b;
    }

    body .menu-right .con-price,
    body .menu-right .menu-right-total-price {
        color: #ff3f22 !important;
        font-weight: 900;
    }

    body .menu-right .menu-right-empty {
        min-height: 300px;
        margin: 18px 0;
        padding: 48px 24px;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #f8fbff;
        color: var(--ovs-muted);
    }

    body .menu-right .menu-right-empty img {
        opacity: .9;
    }

    body .menu-right .menu-right-footer {
        border-top: 1px solid #edf2f7;
    }

    body .menu-right .menu-right-footer .btn-info {
        min-width: 140px;
        height: 40px;
        padding: 0 18px;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(16, 98, 238, .24);
        font-weight: 800;
        line-height: 40px;
    }

    body .menu-right .menu-right-footer .btn-info:hover,
    body .menu-right .menu-right-footer .btn-info:focus {
        background: linear-gradient(135deg, var(--ovs-blue-2), var(--ovs-blue));
        color: #ffffff;
    }
}

/* ---------------------------------------------------------------- *
 * 28. materials & invoice (member layout)
 *
 * Pages: user/{article, article_add, article_edit, link_material,
 * ad_material, attachment, invoice, category} + public/art_recommend.
 * Pure CSS: colors / radii / backgrounds / borders / shadows / weight
 * only — no display, visibility or sizing property is touched, so every
 * hook stays live: user.js attachment() (#table, .faupload, #faupload-image,
 * .btn-choose-multi, [data-field="mimetype"] tabs), the per-page inline
 * scripts (#search-input, #btn-search, #btn-add/#btn-save, .btn-edit,
 * .btn-delete, #material-modal, #table-articles/#table-materials,
 * #table-invoice, #applyModal, #orderPickerModal, #picker-*), and the
 * rich-text editor container #c-content / UE.getEditor / .editor (untouched).
 * Selectors written out per action (no :is(), old-Chromium safe).
 * ---------------------------------------------------------------- */

body[data-controller="user"][data-action="article"],
body[data-controller="user"][data-action="article_add"],
body[data-controller="user"][data-action="article_edit"],
body[data-controller="user"][data-action="link_material"],
body[data-controller="user"][data-action="ad_material"],
body[data-controller="user"][data-action="attachment"],
body[data-controller="user"][data-action="invoice"],
body[data-controller="user"][data-action="category"] {
    --m28-field: #dbe4f0;
    --m28-focus: 0 0 0 4px rgba(16, 98, 238, .08);
    --m28-soft: #f8fbff;
    --m28-line: #edf2f7;
}

/* -- 28a. page headers: blue icon + tight titles ------------------ */

body[data-controller="user"][data-action="article"] .page-header h3 i,
body[data-controller="user"][data-action="link_material"] .page-header h3 i,
body[data-controller="user"][data-action="ad_material"] .page-header h3 i,
body[data-controller="user"][data-action="attachment"] .page-header h3 i,
body[data-controller="user"][data-action="invoice"] .page-header h3 i,
body[data-controller="user"][data-action="category"] .page-header h3 i {
    color: #fff;
}

body[data-controller="user"][data-action="article"] .panel-heading .page-header-content h3 i,
body[data-controller="user"][data-action="article_add"] .panel-heading h4 i,
body[data-controller="user"][data-action="article_edit"] .panel-heading h4 i,
body[data-controller="user"][data-action="link_material"] .panel-heading h4 i,
body[data-controller="user"][data-action="ad_material"] .panel-heading h4 i,
body[data-controller="user"][data-action="invoice"] .panel-heading h4 i,
body[data-controller="user"][data-action="category"] .panel-heading h4 i {
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="article"] .page-header h3,
body[data-controller="user"][data-action="link_material"] .page-header h3,
body[data-controller="user"][data-action="ad_material"] .page-header h3,
body[data-controller="user"][data-action="attachment"] .page-header h3,
body[data-controller="user"][data-action="invoice"] .page-header h3,
body[data-controller="user"][data-action="category"] .page-header h3,
body[data-controller="user"][data-action="article"] .page-header-content h3,
body[data-controller="user"][data-action="article_add"] .panel-heading h4,
body[data-controller="user"][data-action="article_edit"] .panel-heading h4 {
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--ovs-ink);
}

/* -- 28b. invoice stat cards + attachment tabs -------------------- */

body[data-controller="user"][data-action="invoice"] .dashboard-card.stat-card-mini {
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .05);
}

body[data-controller="user"][data-action="invoice"] .stat-icon-mini.bg-warning {
    background: #fff7ed;
    color: #ea580c;
}

body[data-controller="user"][data-action="invoice"] .stat-icon-mini.bg-success {
    background: #eafff6;
    color: #059669;
}

body[data-controller="user"][data-action="invoice"] .stat-value-mini {
    color: var(--ovs-ink);
    font-weight: 800;
}

body[data-controller="user"][data-action="invoice"] .stat-label-mini {
    color: var(--ovs-muted);
}

body[data-controller="user"][data-action="attachment"] .nav-tabs.nav-tabs-modern {
    border-bottom: 1px solid var(--m28-line);
}

body[data-controller="user"][data-action="attachment"] .nav-tabs.nav-tabs-modern > li > a {
    border: 0;
    background: transparent;
    color: var(--ovs-muted);
    font-weight: 700;
}

body[data-controller="user"][data-action="attachment"] .nav-tabs.nav-tabs-modern > li > a:hover {
    border: 0;
    background: transparent;
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="attachment"] .nav-tabs.nav-tabs-modern > li.active > a,
body[data-controller="user"][data-action="attachment"] .nav-tabs.nav-tabs-modern > li.active > a:hover,
body[data-controller="user"][data-action="attachment"] .nav-tabs.nav-tabs-modern > li.active > a:focus {
    border: 0;
    border-bottom: 3px solid var(--ovs-blue);
    background: transparent;
    color: var(--ovs-blue);
    font-weight: 800;
}

/* -- 28c. toolbars, info alert, search group ---------------------- */

body[data-controller="user"][data-action="article_add"] .alert.alert-info-light,
body[data-controller="user"][data-action="article_edit"] .alert.alert-info-light,
body[data-controller="user"][data-action="link_material"] .alert.alert-info-light,
body[data-controller="user"][data-action="ad_material"] .alert.alert-info-light {
    border: 1px solid #d7e6ff;
    border-radius: 12px;
    background: #eef5ff;
    color: #1d4ed8;
}

body[data-controller="user"][data-action="attachment"] .toolbar .btn-refresh {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #ffffff;
}

body[data-controller="user"][data-action="attachment"] .toolbar .faupload,
body[data-controller="user"][data-action="link_material"] .panel-heading .btn-embossed,
body[data-controller="user"][data-action="ad_material"] .panel-heading .btn-embossed,
body[data-controller="user"][data-action="article"] .toolbar .btn-gradient {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(16, 98, 238, .22);
}

body[data-controller="user"][data-action="attachment"] .toolbar .faupload:hover,
body[data-controller="user"][data-action="link_material"] .panel-heading .btn-embossed:hover,
body[data-controller="user"][data-action="ad_material"] .panel-heading .btn-embossed:hover,
body[data-controller="user"][data-action="article"] .toolbar .btn-gradient:hover,
body[data-controller="user"][data-action="attachment"] .toolbar .faupload:focus,
body[data-controller="user"][data-action="link_material"] .panel-heading .btn-embossed:focus,
body[data-controller="user"][data-action="ad_material"] .panel-heading .btn-embossed:focus,
body[data-controller="user"][data-action="article"] .toolbar .btn-gradient:focus {
    background: linear-gradient(135deg, var(--ovs-blue-2), var(--ovs-blue));
    color: #ffffff;
}

body[data-controller="user"][data-action="attachment"] .toolbar .btn-choose-multi {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ovs-green), #059669);
    color: #ffffff;
}

body[data-controller="user"][data-action="article"] .toolbar .input-group .form-control,
body[data-controller="user"][data-action="link_material"] .input-group .form-control,
body[data-controller="user"][data-action="ad_material"] .input-group .form-control {
    border: 1px solid var(--m28-field);
    border-right: 0;
    background: #ffffff;
    color: var(--ovs-ink);
    box-shadow: none;
}

body[data-controller="user"][data-action="article"] .toolbar .input-group .form-control:focus,
body[data-controller="user"][data-action="link_material"] .input-group .form-control:focus,
body[data-controller="user"][data-action="ad_material"] .input-group .form-control:focus {
    border-color: #8bb9ff;
    box-shadow: var(--m28-focus);
}

/* -- 28d. list tables: cankao .ovs-table palette ------------------ */

body[data-controller="user"][data-action="article"] .table-common thead th,
body[data-controller="user"][data-action="link_material"] .table-common thead th,
body[data-controller="user"][data-action="ad_material"] .table-common thead th,
body[data-controller="user"][data-action="attachment"] .table-common thead th,
body[data-controller="user"][data-action="invoice"] .table-common thead th {
    background: var(--m28-soft);
    color: var(--ovs-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--m28-line);
}

body[data-controller="user"][data-action="article"] .table-common tbody td,
body[data-controller="user"][data-action="link_material"] .table-common tbody td,
body[data-controller="user"][data-action="ad_material"] .table-common tbody td,
body[data-controller="user"][data-action="attachment"] .table-common tbody td,
body[data-controller="user"][data-action="invoice"] .table-common tbody td {
    border-top: 0;
    border-bottom: 1px solid var(--m28-line);
}

body[data-controller="user"][data-action="article"] .table-common tbody tr:hover > td,
body[data-controller="user"][data-action="link_material"] .table-common tbody tr:hover > td,
body[data-controller="user"][data-action="ad_material"] .table-common tbody tr:hover > td,
body[data-controller="user"][data-action="attachment"] .table-common tbody tr:hover > td,
body[data-controller="user"][data-action="invoice"] .table-common tbody tr:hover > td {
    background: var(--m28-soft);
}

body[data-controller="user"][data-action="article"] .fixed-table-container,
body[data-controller="user"][data-action="link_material"] .fixed-table-container,
body[data-controller="user"][data-action="ad_material"] .fixed-table-container,
body[data-controller="user"][data-action="attachment"] .fixed-table-container,
body[data-controller="user"][data-action="invoice"] .fixed-table-container {
    border-color: var(--ovs-card-line);
    border-radius: 10px;
}

/* -- 28e. status labels -> cankao pills --------------------------- */

body[data-controller="user"][data-action="article"] .label,
body[data-controller="user"][data-action="link_material"] .label,
body[data-controller="user"][data-action="ad_material"] .label,
body[data-controller="user"][data-action="attachment"] .label,
body[data-controller="user"][data-action="invoice"] .label {
    border-radius: 999px;
    font-weight: 800;
    padding: 4px 10px;
}

body[data-controller="user"][data-action="article"] .label-success,
body[data-controller="user"][data-action="link_material"] .label-success,
body[data-controller="user"][data-action="ad_material"] .label-success,
body[data-controller="user"][data-action="attachment"] .label-success,
body[data-controller="user"][data-action="invoice"] .label-success {
    background: #eafff6;
    color: #059669;
}

body[data-controller="user"][data-action="article"] .label-warning,
body[data-controller="user"][data-action="link_material"] .label-warning,
body[data-controller="user"][data-action="ad_material"] .label-warning,
body[data-controller="user"][data-action="attachment"] .label-warning,
body[data-controller="user"][data-action="invoice"] .label-warning {
    background: #fff7ed;
    color: #ea580c;
}

body[data-controller="user"][data-action="article"] .label-danger,
body[data-controller="user"][data-action="link_material"] .label-danger,
body[data-controller="user"][data-action="ad_material"] .label-danger,
body[data-controller="user"][data-action="attachment"] .label-danger,
body[data-controller="user"][data-action="invoice"] .label-danger {
    background: #fef2f2;
    color: #dc2626;
}

body[data-controller="user"][data-action="article"] .label-info,
body[data-controller="user"][data-action="link_material"] .label-info,
body[data-controller="user"][data-action="ad_material"] .label-info,
body[data-controller="user"][data-action="attachment"] .label-info,
body[data-controller="user"][data-action="invoice"] .label-info,
body[data-controller="user"][data-action="article"] .label-primary,
body[data-controller="user"][data-action="link_material"] .label-primary,
body[data-controller="user"][data-action="ad_material"] .label-primary,
body[data-controller="user"][data-action="attachment"] .label-primary,
body[data-controller="user"][data-action="invoice"] .label-primary {
    background: #eef5ff;
    color: #1062ee;
}

body[data-controller="user"][data-action="article"] .label-default,
body[data-controller="user"][data-action="link_material"] .label-default,
body[data-controller="user"][data-action="ad_material"] .label-default,
body[data-controller="user"][data-action="attachment"] .label-default,
body[data-controller="user"][data-action="invoice"] .label-default {
    background: #f1f5f9;
    color: #64748b;
}

/* -- 28f. secondary buttons: blue outline ------------------------- */

body[data-controller="user"][data-action="article"] .btn-default,
body[data-controller="user"][data-action="article_add"] .btn-default,
body[data-controller="user"][data-action="article_edit"] .btn-default,
body[data-controller="user"][data-action="link_material"] .btn-default,
body[data-controller="user"][data-action="ad_material"] .btn-default,
body[data-controller="user"][data-action="invoice"] .btn-default {
    border-color: #b8d0ff;
    color: var(--ovs-blue);
    background: #ffffff;
}

body[data-controller="user"][data-action="article"] .btn-default:hover,
body[data-controller="user"][data-action="article_add"] .btn-default:hover,
body[data-controller="user"][data-action="article_edit"] .btn-default:hover,
body[data-controller="user"][data-action="link_material"] .btn-default:hover,
body[data-controller="user"][data-action="ad_material"] .btn-default:hover,
body[data-controller="user"][data-action="invoice"] .btn-default:hover,
body[data-controller="user"][data-action="article"] .btn-default:focus,
body[data-controller="user"][data-action="article_add"] .btn-default:focus,
body[data-controller="user"][data-action="article_edit"] .btn-default:focus,
body[data-controller="user"][data-action="link_material"] .btn-default:focus,
body[data-controller="user"][data-action="ad_material"] .btn-default:focus,
body[data-controller="user"][data-action="invoice"] .btn-default:focus {
    border-color: #8bb9ff;
    color: var(--ovs-blue);
    background: #eef5ff;
}

/* -- 28g. modals (material / invoice apply / order picker) -------- */

body[data-controller="user"][data-action="link_material"] #material-modal .modal-content,
body[data-controller="user"][data-action="ad_material"] #material-modal .modal-content,
body[data-controller="user"][data-action="invoice"] #applyModal .modal-content,
body[data-controller="user"][data-action="invoice"] #orderPickerModal .modal-content {
    border: 1px solid var(--ovs-card-line);
    border-radius: 16px;
    box-shadow: var(--ovs-shadow);
}

body[data-controller="user"][data-action="link_material"] #material-modal .modal-header,
body[data-controller="user"][data-action="ad_material"] #material-modal .modal-header,
body[data-controller="user"][data-action="invoice"] #applyModal .modal-header,
body[data-controller="user"][data-action="invoice"] #orderPickerModal .modal-header {
    border-bottom: 1px solid var(--m28-line);
}

body[data-controller="user"][data-action="link_material"] #material-modal .modal-title,
body[data-controller="user"][data-action="ad_material"] #material-modal .modal-title,
body[data-controller="user"][data-action="invoice"] #applyModal .modal-title,
body[data-controller="user"][data-action="invoice"] #orderPickerModal .modal-title {
    color: var(--ovs-ink);
    font-weight: 800;
}

body[data-controller="user"][data-action="link_material"] #material-modal .modal-footer,
body[data-controller="user"][data-action="ad_material"] #material-modal .modal-footer,
body[data-controller="user"][data-action="invoice"] #applyModal .modal-footer,
body[data-controller="user"][data-action="invoice"] #orderPickerModal .modal-footer {
    border-top: 1px solid var(--m28-line);
}

body[data-controller="user"][data-action="invoice"] .order-picker-filter-shell {
    border: 1px solid var(--m28-line);
    border-radius: 12px;
    background: var(--m28-soft);
}

/* -- 28h. article forms + shared form controls -------------------- */

body[data-controller="user"][data-action="article_add"] #content-container .form-control,
body[data-controller="user"][data-action="article_edit"] #content-container .form-control,
body[data-controller="user"][data-action="link_material"] #material-modal .form-control,
body[data-controller="user"][data-action="ad_material"] #material-modal .form-control,
body[data-controller="user"][data-action="invoice"] #applyModal .form-control {
    border: 1px solid var(--m28-field);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ovs-ink);
    box-shadow: none;
}

body[data-controller="user"][data-action="article_add"] #content-container .form-control:focus,
body[data-controller="user"][data-action="article_edit"] #content-container .form-control:focus,
body[data-controller="user"][data-action="link_material"] #material-modal .form-control:focus,
body[data-controller="user"][data-action="ad_material"] #material-modal .form-control:focus,
body[data-controller="user"][data-action="invoice"] #applyModal .form-control:focus {
    border-color: #8bb9ff;
    outline: none;
    box-shadow: var(--m28-focus);
}

body[data-controller="user"][data-action="article_add"] .control-label,
body[data-controller="user"][data-action="article_edit"] .control-label,
body[data-controller="user"][data-action="link_material"] .control-label,
body[data-controller="user"][data-action="ad_material"] .control-label {
    color: var(--ovs-ink);
    font-weight: 700;
}

body[data-controller="user"][data-action="article_add"] .form-control.editor,
body[data-controller="user"][data-action="article_edit"] .form-control.editor {
    border: 1px solid var(--m28-field);
    border-radius: 10px;
}

/* -- 28i. category: cards, child entries, empty state ------------- */

body[data-controller="user"][data-action="category"] .dashboard-card .panel-heading h4 {
    color: var(--ovs-ink);
    font-weight: 800;
}

body[data-controller="user"][data-action="category"] .panel-body .btn-default.btn-block {
    border: 1px solid var(--ovs-card-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ovs-ink);
    font-weight: 600;
}

body[data-controller="user"][data-action="category"] .panel-body .btn-default.btn-block:hover,
body[data-controller="user"][data-action="category"] .panel-body .btn-default.btn-block:focus {
    border-color: #8bb9ff;
    background: var(--m28-soft);
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="category"] .panel-body .btn-default.btn-block i {
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="category"] .panel-body.text-center .fa {
    color: #b8c6de;
}

/* -- 28j. art_recommend partial (public sidebar, not member layout) */

.new_artice li i {
    background: #eef5ff;
    color: var(--ovs-blue, #1062ee);
    border-radius: 8px;
    font-weight: 800;
}

.new_artice li a:hover {
    color: var(--ovs-blue, #1062ee);
}

.salelinks-goods .links li.title {
    background: #f8fbff;
    color: #6b7280;
    border-radius: 10px 10px 0 0;
}

.salelinks-goods .links li.row:not(.title):hover {
    background: #f8fbff;
}

.salelinks-goods .links li.row:not(.title) a:hover {
    color: var(--ovs-blue, #1062ee);
}

/* ---------------------------------------------------------------- *
 * 26. seller onboarding & dashboards
 * (user/site_add + user/site_edit + user/statistics + user/analysis,
 * member layout: user.css + theme.css only, no ui-base.css — every
 * cankao class used here is self-contained, like sections 16b/23.)
 * Markup delta is cosmetic wrappers only (.site-form-stack/-card/
 * -card-head/.sfc-num/.site-form-actions). Frozen JS hooks untouched:
 * #site-form (serialize -> all input name=), #faupload-site-image
 * (data-input-id/mimetype/multiple/preview-id), #c-site-image,
 * #p-site-image, .faupload/.faupload-preview.
 * Colors reuse the block-1 consistency contract — no new role hex.
 * ---------------------------------------------------------------- */

/* -- 26a. page headers: blue icon + tight ink title (21a language) - */

body[data-controller="user"][data-action="site_add"] .page-header h3 i,
body[data-controller="user"][data-action="site_edit"] .page-header h3 i,
body[data-controller="user"][data-action="statistics"] .page-header h3 i,
body[data-controller="user"][data-action="analysis"] .page-header h3 i {
    color: #fff;
}

body[data-controller="user"][data-action="site_add"] .page-header h3,
body[data-controller="user"][data-action="site_edit"] .page-header h3,
body[data-controller="user"][data-action="statistics"] .page-header h3,
body[data-controller="user"][data-action="analysis"] .page-header h3 {
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="site_add"] .page-header h3 small,
body[data-controller="user"][data-action="site_edit"] .page-header h3 small,
body[data-controller="user"][data-action="statistics"] .page-header h3 small,
body[data-controller="user"][data-action="analysis"] .page-header h3 small {
    color: var(--ovs-muted);
}

/* -- 26b. onboarding form: sectioned white cards ------------------- */

body[data-controller="user"][data-action="site_add"] .site-form-card,
body[data-controller="user"][data-action="site_edit"] .site-form-card {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .05);
    margin-bottom: 18px;
}

body[data-controller="user"][data-action="site_add"] .site-form-card-head,
body[data-controller="user"][data-action="site_edit"] .site-form-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border-bottom: 1px solid #edf2f7;
    padding: 14px 18px;
}

body[data-controller="user"][data-action="site_add"] .site-form-card-head h4,
body[data-controller="user"][data-action="site_edit"] .site-form-card-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="site_add"] .sfc-num,
body[data-controller="user"][data-action="site_edit"] .sfc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--ovs-blue);
    font-size: 12px;
    font-weight: 900;
}

body[data-controller="user"][data-action="site_add"] .site-form-card label,
body[data-controller="user"][data-action="site_edit"] .site-form-card label {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

body[data-controller="user"][data-action="site_add"] .site-form-card .help-block,
body[data-controller="user"][data-action="site_edit"] .site-form-card .help-block {
    color: var(--ovs-muted);
}

/* -- 26c. form fields: contract border + blue focus halo ----------- */

body[data-controller="user"][data-action="site_add"] .site-form-card .form-control,
body[data-controller="user"][data-action="site_edit"] .site-form-card .form-control {
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    box-shadow: none;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="site_add"] .site-form-card .form-control:focus,
body[data-controller="user"][data-action="site_edit"] .site-form-card .form-control:focus {
    border-color: #8bb9ff;
    box-shadow: 0 0 0 4px rgba(16, 98, 238, .08);
    outline: 0;
}

body[data-controller="user"][data-action="site_add"] .domain-input-group .input-group-addon,
body[data-controller="user"][data-action="site_edit"] .domain-input-group .input-group-addon {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 10px 0 0 10px;
    color: var(--ovs-muted);
}

body[data-controller="user"][data-action="site_add"] .domain-input-group .input-group-addon .form-control,
body[data-controller="user"][data-action="site_edit"] .domain-input-group .input-group-addon .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* -- 26d. actions: gradient primary + outline secondary ------------ */

body[data-controller="user"][data-action="site_add"] .site-form-actions,
body[data-controller="user"][data-action="site_edit"] .site-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 2px 8px;
}

body[data-controller="user"][data-action="site_add"] .site-form-actions .btn-primary,
body[data-controller="user"][data-action="site_edit"] .site-form-actions .btn-primary {
    background: linear-gradient(135deg, var(--ovs-blue), var(--ovs-blue-dark));
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    padding: 9px 22px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 98, 238, .22);
}

body[data-controller="user"][data-action="site_add"] .site-form-actions .btn-primary:hover,
body[data-controller="user"][data-action="site_edit"] .site-form-actions .btn-primary:hover,
body[data-controller="user"][data-action="site_add"] .site-form-actions .btn-primary:focus,
body[data-controller="user"][data-action="site_edit"] .site-form-actions .btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--ovs-blue-2), var(--ovs-blue));
}

body[data-controller="user"][data-action="site_add"] .site-form-actions .btn-default,
body[data-controller="user"][data-action="site_edit"] .site-form-actions .btn-default,
body[data-controller="user"][data-action="site_add"] .site-form-card .btn-default.faupload,
body[data-controller="user"][data-action="site_edit"] .site-form-card .btn-default.faupload {
    border: 1px solid #b8d0ff;
    background: #ffffff;
    color: var(--ovs-blue);
    border-radius: 10px;
    font-weight: 700;
}

body[data-controller="user"][data-action="site_add"] .site-form-actions .btn-default:hover,
body[data-controller="user"][data-action="site_edit"] .site-form-actions .btn-default:hover,
body[data-controller="user"][data-action="site_add"] .site-form-card .btn-default.faupload:hover,
body[data-controller="user"][data-action="site_edit"] .site-form-card .btn-default.faupload:hover,
body[data-controller="user"][data-action="site_add"] .site-form-actions .btn-default:focus,
body[data-controller="user"][data-action="site_edit"] .site-form-actions .btn-default:focus,
body[data-controller="user"][data-action="site_add"] .site-form-card .btn-default.faupload:focus,
body[data-controller="user"][data-action="site_edit"] .site-form-card .btn-default.faupload:focus {
    background: #eef5ff;
    color: var(--ovs-blue);
    border-color: #b8d0ff;
}

body[data-controller="user"][data-action="site_add"] .faupload-preview img,
body[data-controller="user"][data-action="site_edit"] .faupload-preview img {
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

/* -- 26e. statistics: white stat cards + blue numbers (21b language) */

body[data-controller="user"][data-action="statistics"] .panel.dashboard-card,
body[data-controller="user"][data-action="analysis"] .panel.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 35, 80, .05);
}

body[data-controller="user"][data-action="statistics"] .panel-heading {
    background: transparent;
    border-bottom: 1px solid #edf2f7;
}

body[data-controller="user"][data-action="statistics"] .panel-heading h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--ovs-ink);
}

body[data-controller="user"][data-action="statistics"] .panel-heading h4 i {
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="statistics"] .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

body[data-controller="user"][data-action="statistics"] .stat-grid .stat-item {
    background: #ffffff;
    border: 1px solid var(--ovs-card-line);
    border-radius: 14px;
    padding: 14px;
}

body[data-controller="user"][data-action="statistics"] .stat-grid .stat-label {
    display: block;
    font-size: 13px;
    color: var(--ovs-muted);
    margin-bottom: 6px;
}

body[data-controller="user"][data-action="statistics"] .stat-grid .stat-value {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--ovs-blue);
}

/* keep the contract green for the "Completed" accent */
body[data-controller="user"][data-action="statistics"] .stat-grid .stat-value.text-success {
    color: #059669;
}

/* -- 26f. analysis: metric cards + tip strip ----------------------- */

body[data-controller="user"][data-action="analysis"] .panel.dashboard-card {
    margin-bottom: 18px;
}

body[data-controller="user"][data-action="analysis"] .panel.dashboard-card h2 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--ovs-blue);
}

body[data-controller="user"][data-action="analysis"] .panel.dashboard-card p.text-muted {
    font-size: 13px;
    color: var(--ovs-muted);
}

body[data-controller="user"][data-action="analysis"] .panel-body.text-muted {
    color: var(--ovs-muted);
}

body[data-controller="user"][data-action="analysis"] .panel-body.text-muted .fa {
    color: var(--ovs-blue);
}

/* Market list status flags: i18n text badges (replace baked-in 荐/促 PNGs) */
.goods-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    margin: 0 2px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    vertical-align: middle;
    box-sizing: border-box;
    white-space: nowrap;
}
.goods-flag-rec {
    background: #ff7a1a;
}
.goods-flag-promo {
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffb347 0%, #f0881a 55%, #e07010 100%);
    box-shadow: 0 0 0 1px rgba(224, 112, 16, 0.25);
}
html[lang^="en"] .goods-flag {
    font-size: 9px;
    letter-spacing: 0.02em;
    min-width: 22px;
    padding: 0 4px;
}
html[lang^="en"] .goods-flag-promo {
    min-width: 26px;
    height: 18px;
    border-radius: 9px;
}

/* ---------------------------------------------------------------- *
 * 27. Wide-desktop canvas (overseas market)
 * EN-market PC pages read cramped on large monitors. On >=1500px
 * viewports loosen the boxed shells:
 *   .ovs-container (topbar / home / site)        1320 -> 1440
 *   bootstrap .container (market / member pages) 1170 -> 1400
 *   homepage rebuilt goods rows (card grid)      1140 -> 1380
 *   footer inner container                       1200 -> 1400
 * Below 1500px every shell keeps its current geometry.
 * ---------------------------------------------------------------- */

@media (min-width: 1500px) {
    body .ovs-container {
        width: min(1440px, calc(100% - 48px));
    }

    body .container {
        width: 1400px;
    }

    body .goodsShow.home-goods-card-section-ready .container-fixed {
        max-width: 1380px;
    }

    /* floating goods rail keeps its 5px gap left of the wider goods box */
    body#homepage .ovs-home-goods-rail {
        left: max(12px, calc((100vw - 1380px) / 2 - 101px));
    }

    body .footer.ovs-footer .container {
        max-width: 1400px;
    }
}

/* ---------------------------------------------------------------- *
 * Topbar alignment (>1300px inline nav)
 *
 * The inline desktop topbar sat in the wide .ovs-container (1320/1440)
 * while page content lives in Bootstrap .container (1170/1400); flex
 * free-space distribution then floated the logo ~90px right of the
 * content column on wide screens, and the nav links were cramped
 * (gap ~10px). Match the topbar inner box to .container and pin the
 * logo hard-left / actions hard-right (auto margins) so the brand
 * left-aligns with the breadcrumb + sidebar below, keeping the menu
 * centered with more breathing room. Mobile drawer (<=1300px) is
 * handled separately above and stays untouched.
 * ---------------------------------------------------------------- */
@media (min-width: 1301px) {
    body .topbar .nav.ovs-container {
        width: 1170px;
        max-width: calc(100% - 30px);
        padding: 0 15px;
        gap: 0;
        justify-content: flex-start;
    }
    body .topbar .logo {
        margin-right: auto;
    }
    body .topbar .actions {
        margin-left: auto;
    }
    body .topbar .navlinks {
        gap: 24px;
    }
}

@media (min-width: 1500px) {
    body .topbar .nav.ovs-container {
        width: 1400px;
    }
    body .topbar .navlinks {
        gap: 34px;
    }
}
