/* Frontend light typography & form/table colors for Cartoon
   storefront, auth, and user/merchant center. Rev 20261130g.
   Loaded last from Cartoon theme headers only — not used by /admin.
   Owns labels, tables, helper text, placeholders on the light UI.
   Does not restyle the storefront navbar (.uc-topbar / .shop-nav). */

html, body, .uc-body, .uc-main, .uc-card, .uc-card__body,
.uc-card__title, .uc-card__head, .shop-home,
h1, h2, h3, h4, h5, h6, p, li, dt, dd {
    color: #1c2024;
}

.uc-card__sub,
.uc-welcome__sub,
.uc-stat__label,
.uc-info__k,
.muted, .text-muted,
.text-gray-600, .text-gray-500, .text-gray-400, .text-secondary {
    color: #5c6068 !important;
}

.text-dark, .text-gray-900, .text-gray-800, .text-gray-700 {
    color: #1c2024 !important;
}

.layui-table a:not(.layui-btn):not(.uc-unbind),
.bootstrap-table a:not(.btn):not(.layui-btn),
.uc-card a:not(.layui-btn):not(.btn):not(.uc-cta):not(.uc-unbind):not(.a-badge) {
    color: #3d2fa0;
}

/* Member tabs / subnav (not the storefront navbar) */
.uc-nav__link, .uc-nav__item, .uc-subitem, .uc-tab {
    color: #5c6068;
}
.uc-tab.active, .uc-nav__item.active, .uc-nav__link.active {
    color: #3d2fa0;
}
.uc-drawer__gtitle, .uc-drawer__link, .uc-home-btn { color: #5c6068; }
.uc-drawer__link, .uc-drawer__link .material-icons-outlined { color: #1c2024; }
.uc-drawer__gtitle { color: #8a8f99; }
html.uc-force-compact .uc-drawer {
    background: #fff !important;
    border-right: 1px solid #e0e1e6 !important;
    color: #1c2024;
}

/* Form labels, helper text, placeholders */
.form-header,
.uc-card .form-header,
.uc-form .form-header,
.uc-card .uc-field > .form-header,
.layui-form-label,
.form-label,
.col-form-label,
.uc-card label,
.uc-main label,
.mui-sf__label,
legend {
    color: #1c2024 !important;
}

.uc-domain-hint,
.uc-hint,
.form-text,
.elem-quote,
.uc-domain-hint b {
    color: #5c6068 !important;
}

.uc-domain-hint b { color: #1c2024 !important; }

.uc-cname,
.uc-cname code,
.uc-domain-hint code,
.uc-card code {
    color: #3d2fa0;
    background: #efecfb;
}

.layui-input,
.layui-textarea,
.layui-select,
.form-control,
.form-select {
    background: #fff !important;
    color: #1c2024 !important;
    border-color: #d4d5dc !important;
}

.layui-input::placeholder,
.layui-textarea::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #8a8f99 !important;
    opacity: 1 !important;
}

/* Bound / disabled fields stay readable */
.layui-input[disabled],
.layui-input[readonly],
.form-control[disabled],
.form-control[readonly],
input[disabled],
input[readonly] {
    background: #f4f3f9 !important;
    color: #3a3e46 !important;
    -webkit-text-fill-color: #3a3e46 !important;
    opacity: 1 !important;
}

/* Layui tables (商品设置 / 分类 / 多数用户中心表) */
.layui-table,
.layui-table-view,
.layui-table-header,
.layui-table-tool,
.layui-table-box,
.layui-table-body,
.layui-table-page {
    background: #fff !important;
    color: #1c2024 !important;
    border-color: #e0e1e6 !important;
}

.layui-table thead th,
.layui-table-header th,
.layui-table-header .layui-table-cell {
    background: #f4f3f9 !important;
    color: #1c2024 !important;
    font-weight: 700;
    border-color: #e0e1e6 !important;
}

.layui-table td,
.layui-table-cell,
.layui-table tbody td {
    background: transparent !important;
    color: #1c2024 !important;
    border-color: #ececf1 !important;
}

.layui-table tbody tr:hover,
.layui-table-hover,
.layui-table-click {
    background: #faf9ff !important;
}

.layui-table-sort,
.layui-table-sort-desc { color: #5c6068 !important; }
.layui-table-tips-main {
    background: #fff !important;
    color: #1c2024 !important;
    border: 1px solid #e0e1e6;
}

/* Bootstrap-table (订单 / 分类 / 卡密等列表) */
.bootstrap-table,
.bootstrap-table .table,
.fixed-table-container,
.fixed-table-header,
.fixed-table-body,
.fixed-table-toolbar {
    background: #fff !important;
    color: #1c2024 !important;
}

.bootstrap-table .table > thead > tr > th,
.fixed-table-header th {
    background: #f4f3f9 !important;
    color: #1c2024 !important;
    border-color: #e0e1e6 !important;
}

.bootstrap-table .table > tbody > tr > td {
    color: #1c2024 !important;
    border-color: #ececf1 !important;
    background: transparent !important;
}

.bootstrap-table .table-hover > tbody > tr:hover > * {
    background: #faf9ff !important;
    color: #1c2024 !important;
}

/* Layui / select2 dropdowns and layer dialogs */
.layui-form-select dl,
.layui-form-selected dl,
.select2-dropdown,
.layui-layer,
.layui-layer-dialog,
.layui-layer-title,
.layui-layer-content {
    background: #fff !important;
    color: #1c2024 !important;
    border-color: #e0e1e6;
}

.layui-form-select dl dd,
.select2-results__option { color: #1c2024 !important; }
.layui-form-select dl dd.layui-this,
.select2-results__option--highlighted,
.select2-results__option[aria-selected="true"] {
    background: #efecfb !important;
    color: #3d2fa0 !important;
}

.layui-layer-title { border-bottom: 1px solid #e0e1e6 !important; font-weight: 700; }

/* Storefront product titles already handled by shop-home-ui; keep readable fallbacks */
.goods-title, .goods-name, .item-detail, .item-buy, .item-buy h4, .item-buy .form-label {
    color: #1c2024;
}

/* Keep badge/button/tag author colors — no blanket revert */
.layui-btn:not(.layui-btn-primary):not(.layui-btn-default),
.a-badge,
.badge,
.uc-unbind { }

.layui-btn-primary,
.layui-btn-default {
    background: #fff !important;
    color: #1c2024 !important;
    border-color: #d4d5dc !important;
}

/* Help center (light defaults when theme is light; extra safety) */
.help-center-hero,
.help-article-list,
.help-article-detail {
    background: #fff;
    border-color: #e0e1e6;
    color: #1c2024;
}
.help-center-breadcrumb,
.help-center-hero p,
.help-article-copy p,
.help-article-copy time { color: #5c6068; }

/* Reinforce storefront navbar pin (loaded last; do not redesign). */
.uc-topbar .shop-nav {
    background: rgba(16, 20, 32, .88) !important;
    border: 1px solid rgba(143, 180, 255, .14) !important;
}
.uc-topbar .shop-brand,
.uc-topbar .shop-brand__name { color: #eef2fb !important; }
.uc-topbar .shop-nav__item { color: #9aa8c2 !important; }
.uc-topbar .shop-nav__item.active { color: #fff !important; background: #3a5fd6 !important; }
