/* ==========================================================================
   FIVECOCO - 自定义样式（Bootstrap 4 之上）
   ========================================================================== */

:root {
    --storefront-primary-color: #12214E;
    --storefront-secondary-color: #0866FF;
    --ceo-sidebar-width: 260px;
    --ceo-navbar-height: 70px;
    --ceo-body-bg: #f6f8fc;
    --ceo-card-bg: #ffffff;
    --ceo-text: #12214E;
    --ceo-muted: #8492a6;
    --ceo-border: #e6ebf2;
    --ceo-radius: 12px;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--ceo-body-bg);
    color: var(--ceo-text);
    font-size: 14px;
}

a {
    color: var(--storefront-secondary-color);
}

a:hover {
    color: #0552cc;
}

/* ---------------------------------------------------------------- 加载动画 */
#loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, .92);
    transition: opacity .3s ease;
}

#loading.is-hidden {
    opacity: 0;
    visibility: hidden;
}

#loading-center {
    background: url('/uploads/assets/storage/images/gif_loaderKRJ.png') no-repeat scroll 50%;
    background-size: 20%;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ---------------------------------------------------------------- 侧边栏 */
.wrapper {
    min-height: 100vh;
}

.iq-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ceo-sidebar-width);
    background: linear-gradient(#12214E, #12214E, #0866FF);
    color: #fff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}

.iq-sidebar-logo {
    height: var(--ceo-navbar-height);
    padding: 0 16px;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.iq-sidebar-logo .header-logo img {
    max-height: 34px;
}

.iq-sidebar .data-scrollbar {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.iq-sidebar .data-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.iq-sidebar .data-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 3px;
}

.side-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0 0;
}

.side-menu > li > a {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    margin: 2px 10px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: background .2s, color .2s;
}

.side-menu > li > a:hover,
.side-menu > li > a:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.side-menu .ceo-menu-icon {
    width: 18px;
    text-align: center;
    flex: 0 0 18px;
}

.side-menu > li > a .iq-arrow-right {
    margin-left: auto;
    font-size: 12px;
    transition: transform .25s ease;
}

.side-menu > li > a[aria-expanded="true"] .iq-arrow-right {
    transform: rotate(90deg);
}

.side-menu .submenu {
    list-style: none;
    margin: 0;
    padding: 2px 0 6px;
}

.side-menu .submenu > li > a {
    display: flex;
    align-items: center;
    padding: 7px 18px 7px 34px;
    margin: 1px 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
}

.side-menu .submenu > li > a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.iq-sidebar .wrapper-menu {
    cursor: pointer;
    display: none;
}

/* ---------------------------------------------------------------- 顶栏 */
.iq-top-navbar {
    position: fixed;
    top: 0;
    left: var(--ceo-sidebar-width);
    right: 0;
    height: var(--ceo-navbar-height);
    background: #fff;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(18, 33, 78, .06);
}

.iq-navbar-custom {
    height: 100%;
    padding: 0 18px;
}

.iq-navbar-custom .navbar {
    height: 100%;
    display: flex;
    align-items: center;
}

.side-menu-bt-sidebar {
    font-size: 18px;
    cursor: pointer;
    color: var(--ceo-text);
}

.top-nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.top-nav-actions .language-toggle {
    border: 1px solid var(--ceo-border);
    border-radius: 20px;
    font-size: 13px;
    padding: 5px 12px;
    color: var(--ceo-text);
    background: #fff;
}

.top-nav-actions .language-menu {
    max-height: 340px;
    overflow-y: auto;
    min-width: 160px;
}

.top-nav-actions .language-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.top-nav-actions .language-menu .language-check {
    display: inline-block;
    width: 16px;
    margin-right: 6px;
    color: var(--ceo-primary, #12214E);
    visibility: hidden;
}

.top-nav-actions .language-menu .dropdown-item.active,
.top-nav-actions .language-menu .dropdown-item:active {
    background: transparent;
    color: var(--ceo-primary, #12214E);
    font-weight: 600;
}

.top-nav-actions .language-menu .dropdown-item.active .language-check {
    visibility: visible;
}

body.dark .top-nav-actions .language-menu .language-check {
    color: inherit;
}

.top-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.top-nav-user > a {
    display: flex;
    align-items: center;
    color: var(--ceo-text);
    text-decoration: none;
}

.top-nav-user .avatar-rounded {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.top-nav-user .user-name {
    font-size: 14px;
}

/* 亮暗模式开关 */
.change-mode .custom-switch-inner {
    position: relative;
}

.change-mode .custom-control-label {
    width: 62px;
    height: 30px;
    background: #e9eef5;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    display: block;
}

.change-mode .custom-control-label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--storefront-primary-color);
    transition: all .25s ease;
    z-index: 2;
}

.change-mode .custom-control-input:checked ~ .custom-control-label:after {
    left: 34px;
    background: #f2b705;
}

.change-mode .switch-icon-left,
.change-mode .switch-icon-right {
    position: absolute;
    top: 5px;
    color: #8492a6;
    z-index: 1;
}

.change-mode .switch-icon-left {
    left: 7px;
}

.change-mode .switch-icon-right {
    right: 7px;
}

/* ---------------------------------------------------------------- 内容区 */
.ceo-content-holder {
    margin-left: var(--ceo-sidebar-width);
    padding-top: 90px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.content-page .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

/* ---------------------------------------------------------------- 首页 Hero */
.ceo-hero-card {
    background: linear-gradient(145deg, #fafcff, #ffffff);
    border-radius: 30px;
    border: 1px solid rgba(79, 70, 229, .2);
    box-shadow: 0 20px 35px -12px rgba(79, 70, 229, .35), 0 4px 12px rgba(0, 0, 0, .08);
    margin-bottom: 30px;
    overflow: hidden;
    padding: 8px 18px 18px;
    position: relative;
    text-align: center;
}

.ceo-hero-glow {
    position: absolute;
    border-radius: 50%;
    height: 250px;
    width: 250px;
    z-index: 0;
    pointer-events: none;
}

.ceo-hero-glow.is-indigo {
    background: radial-gradient(circle, rgba(79, 70, 229, .12) 0%, rgba(255, 255, 255, 0) 70%);
    right: -30px;
    top: -40px;
}

.ceo-hero-glow.is-emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, .1) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -40px;
    left: -30px;
}

.ceo-hero-head {
    position: relative;
    z-index: 3;
}

.ceo-hero-head h3 {
    margin: 14px 0 4px;
}

.ceo-hero-brand {
    color: #1a1a1a;
    font-size: 24px;
}

.ceo-hero-suffix {
    color: #1a1a1a;
    font-size: 18px;
}

.ceo-hero-sub {
    color: #65676b;
    font-size: 13px;
    line-height: 1.4;
}

.ceo-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.ceo-quick-link {
    flex: 1 1 auto;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all .15s;
    border: none;
}

.ceo-quick-link:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.ceo-quick-link.is-indigo  { background: linear-gradient(145deg, #4f46e5, #7c3aed); box-shadow: 0 8px 16px -6px rgba(79, 70, 229, .4); }
.ceo-quick-link.is-gold    { background: linear-gradient(145deg, #B8860B, #DAA520); box-shadow: 0 8px 16px -6px rgba(212, 175, 55, .4); }
.ceo-quick-link.is-emerald { background: linear-gradient(145deg, #059669, #10b981); box-shadow: 0 8px 16px -6px rgba(5, 150, 105, .4); }
.ceo-quick-link.is-red     { background: linear-gradient(145deg, #b91c1c, #dc2626); box-shadow: 0 8px 16px -6px rgba(185, 28, 28, .4); }
.ceo-quick-link.is-blue    { background: linear-gradient(145deg, #0077b6, #0088cc); box-shadow: 0 8px 16px -6px rgba(0, 119, 182, .4); font-size: 14px; font-weight: bold; }

.ceo-divider {
    align-items: center;
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.ceo-divider-line {
    background: linear-gradient(90deg, transparent, #94a3b8, transparent);
    flex: 1;
    height: 1px;
}

.ceo-divider span {
    color: #94a3b8;
    font-size: 14px;
}

.ceo-notice-row {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.ceo-notice {
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #7ab3d9;
    box-shadow: 0 2px 6px rgba(0, 100, 150, .1);
    color: #0369a1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 100%;
    padding: 16px 20px;
    text-align: center;
    width: 100%;
}

.ceo-tips-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 15px;
}

.ceo-tip {
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    padding: 14px;
    text-align: center;
}

.ceo-tip.is-muted {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.ceo-tip.is-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ---------------------------------------------------------------- 搜索框 */
.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    padding: 2px 4px 2px 18px;
    border: 1.5px solid var(--ceo-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    transition: all .3s cubic-bezier(.25, .46, .45, .94);
    height: 45px;
}

.search-wrapper:focus-within {
    border-color: var(--storefront-secondary-color);
    box-shadow: 0 2px 12px rgba(8, 102, 255, .12), 0 0 0 3px rgba(8, 102, 255, .06);
}

.search-wrapper .search-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 8px;
    transition: color .3s;
}

.search-wrapper:focus-within .search-icon {
    color: var(--storefront-secondary-color);
}

.search-input-modern {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ceo-text);
    height: 100%;
}

.search-wrapper .clear-btn {
    border: none;
    background: transparent;
    color: #b8c2cf;
    padding: 0 8px;
    cursor: pointer;
    display: none;
}

.search-wrapper.has-value .clear-btn {
    display: block;
}

.search-wrapper .search-btn {
    border: none;
    background: linear-gradient(135deg, #12214E, #0866FF);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------------- 分类标签 */
#pills-tab-1.shop-account-category-tabs {
    display: flex;
    flex-wrap: wrap;
}

#pills-tab-1.shop-account-category-tabs .nav-item {
    flex: 1 1 auto;
    max-width: 100%;
}

#pills-tab-1.shop-account-category-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ceo-text);
    border: 1px solid var(--ceo-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin: 2px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .2s;
}

#pills-tab-1.shop-account-category-tabs .nav-link:hover {
    border-color: var(--storefront-secondary-color);
    color: var(--storefront-secondary-color);
}

#pills-tab-1.shop-account-category-tabs .nav-link img {
    margin-right: 6px;
    flex: 0 0 25px;
}

#pills-tab-1.shop-account-category-tabs .nav-link.active {
    background: linear-gradient(135deg, #12214E, #0866FF);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px -6px rgba(8, 102, 255, .6);
}

#showProduct[aria-busy="true"] {
    opacity: .6;
}

.catalog-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--ceo-muted);
}

/* ---------------------------------------------------------------- 商品表格 */
.table-responsive {
    border-radius: var(--ceo-radius);
}

#showProduct .table,
.ceo-panel .table {
    background: #fff;
}

.table thead.table-color-heading th {
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 12px;
    vertical-align: middle;
}

.table tbody td {
    border-top: 1px solid var(--ceo-border);
    padding: 14px 12px;
    vertical-align: top;
}

.col-product-name {
    display: flex;
    align-items: flex-start;
}

.product-icon,
.shop-product-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 2px;
    box-sizing: border-box;
    object-fit: contain;
    vertical-align: middle;
    flex: 0 0 40px;
}

.name-product {
    min-width: 0;
    flex: 1;
}

.name-product h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0 0 6px;
    color: var(--ceo-text);
    word-break: break-word;
}

.content-mota {
    color: var(--ceo-muted);
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
}

.d-none-more-than-601 {
    display: none;
}

/* 商品徽标 */
.product-feature-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
    user-select: none;
}

.product-feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .02em;
    white-space: nowrap;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    animation: productBadgeGlow 2.8s ease-in-out infinite;
}

@keyframes productBadgeGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.18); }
}

.product-feature-badge-hot    { background: linear-gradient(135deg, #ef4444, #dc2626) !important; border: 1px solid #b91c1c !important; }
.product-feature-badge-new    { background: linear-gradient(135deg, #10b981, #059669) !important; border: 1px solid #047857 !important; }
.product-feature-badge-multi  { background: #2563eb !important; border: 1px solid #1e40af !important; }
.product-feature-badge-sale   { background: linear-gradient(135deg, #f97316, #ea580c) !important; border: 1px solid #c2410c !important; }
.product-feature-badge-select { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; border: 1px solid #6d28d9 !important; }
.product-feature-badge-manual { background: linear-gradient(135deg, #d97706, #b45309) !important; border: 1px solid #92400e !important; }

.btn-outline-danger.btn-sm b,
.btn-outline-info.btn-sm b {
    font-size: 13px;
}

/* ---------------------------------------------------------------- 认证 / 面板 */
.ceo-auth-card,
.ceo-panel {
    border: none;
    border-radius: 18px;
    box-shadow: 0 12px 30px -18px rgba(18, 33, 78, .35);
}

.ceo-panel {
    margin-top: 6px;
}

.ceo-page-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #12214E, #0866FF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ceo-feature-grid {
    margin-top: 8px;
}

.ceo-feature-item {
    background: #f8fafc;
    border: 1px solid var(--ceo-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #475569;
}

.ceo-order-name {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------------------------------------------------------------- 购买弹窗 */
.mw-650px {
    max-width: 650px;
}

#modalBuy .modal-header,
.shop-feature-modal .modal-header {
    border-bottom: 1px solid var(--ceo-border);
    align-items: center;
}

#modalBuy .modal-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
}

#modalBuy .modal-title small {
    font-size: 12px;
    color: var(--ceo-muted);
    font-weight: 400;
}

.purchase-product-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ceo-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.purchase-product-name {
    background: #f6f8fc;
    border: 1px solid var(--ceo-border);
    font-size: 13px;
    height: auto;
    padding: 10px 12px;
}

.purchase-quantity-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.purchase-quantity-row .form-group {
    flex: 1 1 180px;
}

.purchase-total-field {
    flex: 0 0 150px;
}

.purchase-live-total {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 20px;
    font-weight: 800;
    padding: 8px 12px;
    text-align: center;
}

.purchase-checkout-actions {
    width: 100%;
}

.purchase-method-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.purchase-method-heading strong {
    font-size: 15px;
}

.purchase-method-heading small {
    color: var(--ceo-muted);
    font-size: 12px;
}

.purchase-payment-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.purchase-payment-button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--ceo-border);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all .18s;
}

.purchase-payment-button:hover {
    border-color: var(--storefront-secondary-color);
    box-shadow: 0 8px 18px -12px rgba(8, 102, 255, .8);
    transform: translateY(-1px);
}

.purchase-payment-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3fb;
    color: var(--storefront-primary-color);
    font-size: 15px;
    flex: 0 0 34px;
}

.purchase-asset-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .02em;
}

.purchase-payment-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.purchase-payment-copy strong {
    font-size: 13px;
    color: var(--ceo-text);
}

.purchase-payment-copy small {
    font-size: 11px;
    color: var(--ceo-muted);
}

.purchase-payment-button.is-cart .purchase-payment-icon { background: #eef3fb; color: #2563eb; }
.purchase-payment-button.is-balance .purchase-payment-icon { background: #ecfdf5; color: #059669; }
.purchase-payment-button.is-alipay .purchase-payment-icon { background: #e8f4ff; color: #1677ff; font-size: 20px; }

/* ---------------------------------------------------------------- 购物车 */
.cart-table thead th {
    background: #f6f8fc;
    border-bottom: 1px solid var(--ceo-border);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ceo-muted);
    padding: 12px 16px;
}

.cart-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

.cart-item-name {
    font-size: 13px;
    line-height: 1.5;
    max-width: 360px;
}

.cart-qty-input {
    width: 70px;
    text-align: center;
}

/* ---------------------------------------------------------------- 工具类 */
.blink-new {
    background-color: #ff4757;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-block;
    animation: blink-animation 2.5s ease-in-out infinite;
    vertical-align: middle;
    text-transform: uppercase;
    line-height: 1.4;
}

@keyframes blink-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.swal2-popup {
    font-size: 14px !important;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 991.98px) {
    .iq-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0, 0, 0, .3);
    }

    body.sidebar-open .iq-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 1035;
    }

    .iq-sidebar .wrapper-menu {
        display: inline-block;
    }

    .iq-top-navbar {
        left: 0;
    }

    .ceo-content-holder {
        margin-left: 0;
        padding-top: 84px;
    }
}

@media (max-width: 600px) {
    .hidemobile {
        display: none !important;
    }

    .d-none-600 {
        display: none !important;
    }

    .d-none-more-than-601 {
        display: block !important;
    }

    .ceo-hero-brand {
        font-size: 20px;
    }

    .ceo-hero-suffix {
        font-size: 15px;
    }

    .ceo-tips-grid {
        grid-template-columns: 1fr;
    }

    .purchase-total-field {
        flex: 1 1 100%;
    }
}

/* ---------------------------------------------------------------- 暗色模式 */
body.dark {
    --ceo-body-bg: #0f1626;
    --ceo-card-bg: #16203a;
    --ceo-text: #e8edf7;
    --ceo-muted: #9aa8c2;
    --ceo-border: #26324f;
    background: var(--ceo-body-bg);
    color: var(--ceo-text);
}

body.dark .iq-top-navbar {
    background: #16203a;
    box-shadow: none;
}

body.dark .top-nav-user > a,
body.dark .side-menu-bt-sidebar,
body.dark .top-nav-actions .language-toggle {
    color: var(--ceo-text);
}

body.dark .top-nav-actions .language-toggle {
    background: #16203a;
}

body.dark .table,
body.dark #showProduct .table,
body.dark .ceo-panel .table {
    background: #16203a;
    color: var(--ceo-text);
}

body.dark .table tbody td {
    border-top-color: var(--ceo-border);
}

body.dark .table-hover tbody tr:hover {
    background: #1b2745;
    color: var(--ceo-text);
}

body.dark .search-wrapper {
    background: #16203a;
}

body.dark .search-input-modern {
    color: var(--ceo-text);
}

body.dark #pills-tab-1.shop-account-category-tabs .nav-link {
    background: #16203a;
    color: var(--ceo-text);
    border-color: var(--ceo-border);
}

body.dark .ceo-hero-card {
    background: linear-gradient(145deg, #16203a, #1b2745);
    border-color: rgba(124, 58, 237, .3);
}

body.dark .ceo-hero-brand,
body.dark .ceo-hero-suffix {
    color: #f1f5f9;
}

body.dark .ceo-hero-sub {
    color: #9aa8c2;
}

body.dark .ceo-tip.is-muted,
body.dark .ceo-feature-item {
    background: #1b2745;
    border-color: var(--ceo-border);
    color: #c4d0e6;
}

body.dark .ceo-notice {
    background: #12233a;
    border-color: #1f4a68;
    color: #9fc7e8;
}

body.dark .cart-table thead th,
body.dark .purchase-product-name {
    background: #1b2745;
    color: var(--ceo-text);
}

body.dark .purchase-payment-button {
    background: #16203a;
    border-color: var(--ceo-border);
}

body.dark .purchase-payment-copy strong {
    color: var(--ceo-text);
}

body.dark .modal-content {
    background: #16203a;
    color: var(--ceo-text);
}

body.dark .close {
    color: var(--ceo-text);
}

body.dark #loading {
    background: rgba(15, 22, 38, .92);
}

/* ---------------------------------------------------------------- 分站顶栏 */
.ceo-store-bar {
    align-items: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .7);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 20px 16px;
    padding: 10px 18px;
}

.ceo-store-bar-name {
    font-size: 15px;
    font-weight: 700;
}

.ceo-store-bar-tip {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.ceo-store-bar-exit {
    background: rgba(255, 255, 255, .18);
    border-radius: 30px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    padding: 5px 14px;
    text-decoration: none !important;
    transition: background .15s ease;
    white-space: nowrap;
}

.ceo-store-bar-exit:hover {
    background: rgba(255, 255, 255, .32);
}

@media (max-width: 991px) {
    .ceo-store-bar {
        margin: 0 12px 14px;
    }
}

/* ---------------------------------------------------------------- 分站中心 */
.ceo-agent-card {
    background: #fff;
    border: 1px solid rgba(18, 33, 78, .08);
    border-radius: 18px;
    box-shadow: 0 14px 30px -20px rgba(18, 33, 78, .5);
    margin-bottom: 20px;
    padding: 22px;
}

.ceo-agent-stat {
    background: linear-gradient(150deg, #f7f9ff, #ffffff);
    border: 1px solid rgba(79, 70, 229, .14);
    border-radius: 14px;
    padding: 14px 16px;
    height: 100%;
}

.ceo-agent-stat-label {
    color: #6b7280;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ceo-agent-stat-value {
    color: #12214E;
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.ceo-agent-code {
    background: #eef2ff;
    border-radius: 8px;
    color: #4338ca;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
    padding: 3px 9px;
}

.ceo-agent-link {
    background: #f8fafc;
    border: 1px dashed rgba(79, 70, 229, .35);
    border-radius: 10px;
    color: #4f46e5;
    display: block;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
    padding: 10px 14px;
    word-break: break-all;
}

body.dark .ceo-agent-card {
    background: #16203a;
    border-color: rgba(255, 255, 255, .08);
}

body.dark .ceo-agent-stat {
    background: linear-gradient(150deg, #1b2740, #16203a);
    border-color: rgba(255, 255, 255, .08);
}

body.dark .ceo-agent-stat-value {
    color: var(--ceo-text);
}

body.dark .ceo-agent-code {
    background: rgba(79, 70, 229, .22);
    color: #c7d2fe;
}

body.dark .ceo-agent-link {
    background: #1b2740;
    border-color: rgba(255, 255, 255, .14);
    color: #a5b4fc;
}
