/*
 * 微联创富微信优先 UI 基线
 * 色彩语义对齐微信官方 WeUI 2.6.26；业务页面使用 wl- 前缀，避免污染旧页面。
 */
:root,
[data-weui-theme="light"] {
    --weui-BG-0: #ededed;
    --weui-BG-1: #f7f7f7;
    --weui-BG-2: #ffffff;
    --weui-BRAND: #07c160;
    --weui-BRAND-90: #06ae56;
    --weui-BRAND-80: #059a4c;
    --weui-BRAND-120: #38cd7f;
    --weui-FG-0: rgba(0, 0, 0, .9);
    --weui-FG-1: rgba(0, 0, 0, .55);
    --weui-FG-2: rgba(0, 0, 0, .3);
    --weui-FG-3: rgba(0, 0, 0, .1);
    --weui-SEPARATOR-0: rgba(0, 0, 0, .1);
    --weui-SEPARATOR-1: rgba(0, 0, 0, .15);
    --weui-SECONDARY-BG: rgba(0, 0, 0, .05);
    --weui-LINK: #576b95;
    --weui-RED: #fa5151;
    --weui-ORANGE: #fa9d3b;
    --weui-WHITE: #ffffff;
    --wl-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --wl-page-gutter: 16px;
    --wl-cell-height: 56px;
    --wl-touch-size: 44px;
    --wl-radius-small: 6px;
    --wl-radius: 8px;
    --wl-radius-large: 12px;
}

.wl-wechat-ui {
    margin: 0;
    color: var(--weui-FG-0);
    background: var(--weui-BG-0);
    font-family: var(--wl-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

.wl-page {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--weui-BG-0);
}

.wl-page__hd,
.wl-page__bd,
.wl-section {
    padding-right: var(--wl-page-gutter);
    padding-left: var(--wl-page-gutter);
}

.wl-page-title {
    margin: 0;
    color: var(--weui-FG-0);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.wl-section-title {
    margin: 0 0 12px;
    color: var(--weui-FG-0);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.wl-section-desc {
    margin: 4px 0 0;
    color: var(--weui-FG-1);
    font-size: 14px;
}

.wl-card,
.wl-cells {
    overflow: hidden;
    border-radius: var(--wl-radius-large);
    background: var(--weui-BG-2);
}

.wl-cells {
    position: relative;
}

.wl-cell {
    position: relative;
    min-height: var(--wl-cell-height);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    color: var(--weui-FG-0);
    background: var(--weui-BG-2);
    font-size: 17px;
}

.wl-cell + .wl-cell::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 16px;
    height: 1px;
    background: var(--weui-SEPARATOR-0);
    transform: scaleY(.5);
    transform-origin: 0 0;
}

.wl-cell__bd {
    min-width: 0;
    flex: 1;
}

.wl-cell__bd strong {
    display: block;
    font-size: 17px;
    font-weight: 500;
}

.wl-cell__bd p {
    margin: 3px 0 0;
    color: var(--weui-FG-1);
    font-size: 14px;
}

.wl-cell__ft {
    margin-left: 12px;
    color: var(--weui-FG-2);
    font-size: 14px;
}

.wl-cell_access:active,
.wl-grid__item:active {
    background: var(--weui-BG-1);
}

.wl-cell_access .wl-cell__ft::after {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.wl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wl-grid__item {
    min-height: 118px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--wl-radius-large);
    color: var(--weui-FG-0);
    background: var(--weui-BG-2);
}

.wl-btn {
    min-height: 48px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--wl-radius);
    font: 500 17px/1.4 var(--wl-font);
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wl-btn_primary {
    color: #ffffff;
    background: var(--weui-BRAND);
}

.wl-btn_primary:active {
    background: var(--weui-BRAND-90);
}

.wl-btn_default {
    color: var(--weui-FG-0);
    background: var(--weui-SECONDARY-BG);
}

.wl-link {
    color: var(--weui-LINK);
}

.wl-tag {
    min-height: 24px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    color: var(--weui-BRAND-90);
    background: rgba(7, 193, 96, .1);
    font-size: 12px;
}

.wl-icon-box {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--weui-BRAND-90);
    background: rgba(7, 193, 96, .1);
    font-size: 22px;
    font-weight: 600;
}

.wl-safe-bottom {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
    .wl-wechat-ui *,
    .wl-wechat-ui *::before,
    .wl-wechat-ui *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
