.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: auto;
    max-width: 480px;
    margin: 0 auto;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    border-top: 1px solid #eef0f3;
    overflow: visible;
}

.tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9aa3af;
    text-decoration: none;
    font-size: 11px;
}

.tabbar a.on { color: #3b82f6; }

.tab-ico {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabbar a.on .tab-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    margin-top: -18px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
}

html {
    background: #d7e2f0;
}

.app-page {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: #f3f5f8;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
}

.app-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.app-top svg { display: block; }

.dash {
    width: 100%;
    margin: 0 auto;
    padding: 0 12px 20px;
}

.hero {
    margin-top: 8px;
    border-radius: 18px;
    padding: 16px 16px 12px;
    color: #fff;
    background: linear-gradient(135deg, #4c7dff 0%, #6b8cff 55%, #8b9bff 100%);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
    position: relative;
    overflow: hidden;
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.hero:before { width: 140px; height: 140px; right: -40px; top: -50px; }
.hero:after { width: 90px; height: 90px; left: -30px; bottom: -30px; }

.hero-top, .hero-foot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-top span { font-size: 14px; opacity: 0.95; }

.chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 120, 120, 0.35);
}

.hero-num {
    position: relative;
    z-index: 1;
    margin: 10px 0 14px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-foot {
    background: rgba(37, 99, 235, 0.28);
    border-radius: 12px;
    padding: 10px 8px;
}

.hero-foot div { flex: 1; text-align: center; }
.hero-foot strong { display: block; font-size: 18px; }
.hero-foot em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    color: #dbeafe;
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 4px 10px;
    color: #6b7280;
    font-size: 13px;
}

.sec-title:before,
.sec-title:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.stat {
    background: #fff;
    border-radius: 14px;
    padding: 12px 8px 10px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.stat-ico {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.stat-ico.blue { background: #60a5fa; }
.stat-ico.green { background: #86efac; color: #166534; }
.stat-ico.purple { background: #c4b5fd; color: #5b21b6; }

.stat b { display: block; font-size: 20px; }
.stat p { margin: 4px 0 0; color: #6b7280; font-size: 11px; }
.down {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 11px;
}

.menu {
    margin-top: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 8px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 0;
}

.menu a {
    text-align: center;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
}

.menu i {
    display: flex;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.menu i.c1 { background: #7dd3fc; }
.menu i.c2 { background: #86efac; }
.menu i.c3 { background: #fde68a; color: #92400e; }
.menu i.c4 { background: #c4b5fd; }
.menu i.c5 { background: #fda4af; }
.menu i.c6 { background: #5eead4; color: #115e59; }

.app-toast {
    position: fixed;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    z-index: 120;
    max-width: 78%;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 1.45;
    pointer-events: none;
}

.team-head {
    display: flex;
    align-items: center;
    margin: 18px 4px 10px;
    font-weight: 700;
}

.lv {
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 6px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

.more {
    margin-left: auto;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.team {
    background: #fff;
    border-radius: 16px;
    padding: 16px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
}

.team b { display: block; font-size: 18px; }
.team span { display: block; margin-top: 6px; color: #9ca3af; font-size: 12px; }

.invite-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 16px 0 0;
    padding: 18px 16px;
    border: 0;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff 0%, #8b5cf6 45%, #6d5efc 100%);
    box-shadow: 0 10px 22px rgba(109, 94, 252, 0.28);
}
.invite-banner strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.invite-banner span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.92;
}
.invite-banner em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    color: #fff;
}

.invite-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(15, 23, 42, 0.45);
}
.invite-mask.show { display: flex; }
.invite-modal {
    width: min(100%, 360px);
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}
.invite-modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
}
.invite-label {
    margin: 0 0 8px;
    color: #9ca3af;
    font-size: 13px;
}
.invite-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.invite-row span {
    flex: 1;
    padding: 10px 12px;
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}
.invite-row button {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0 16px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
}
.invite-stat {
    margin: 14px 0 16px;
    padding: 14px 0;
    text-align: center;
    background: #f3f4f6;
    border-radius: 10px;
}
.invite-stat b { display: block; font-size: 22px; }
.invite-stat span { display: block; margin-top: 4px; color: #9ca3af; font-size: 13px; }
.invite-qr-wrap {
    display: flex;
    justify-content: center;
    min-height: 200px;
}
.invite-qr {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    background: #fff;
}
.invite-tip {
    margin: 0 0 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}
.invite-share {
    display: block;
    width: 100%;
    margin: 0;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
}

.page-title {
    padding: 14px 16px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
}

.mall-head {
    position: sticky;
    top: 0;
    z-index: 12;
    padding: 10px 12px 12px;
    background: #fff;
}

.mall-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mall-search input {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 20px;
    background: #f3f5f8;
    padding: 0 16px;
    font-size: 15px;
}

.mall-search input:focus {
    outline: 2px solid rgba(59, 130, 246, 0.35);
    background: #fff;
}

.mall-search button {
    margin: 0;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 20px;
    background: #3b82f6;
    color: #fff;
    font-size: 15px;
}

.mall-body { margin-top: 8px !important; margin-bottom: 0; }

.app-page .category-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 12px;
    padding-bottom: 2px;
}

.app-page .category-bar::-webkit-scrollbar {
    display: none;
}

.app-page .category-bar a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
}

.app-page .category-bar a.active {
    background: #3b82f6;
    color: #fff;
}

.app-page .mall-block { margin-bottom: 8px; }
.app-page .mall-block .sec-title { margin-top: 8px; }
.app-page .mall-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.app-page .mall-grid .card h3 {
    margin: 8px 8px 4px;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.app-page .mall-grid .card .price {
    margin: 0 8px 4px;
    font-size: 15px;
    font-weight: 700;
    color: #ea580c;
}

.app-page .mall-grid .card .commission {
    margin: 0 8px 10px;
    font-size: 12px;
    color: #16a34a;
}

.app-page .card-cover,
.product-detail-cover-wrap {
    position: relative;
}

.app-page .card-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-remain {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: rgba(55, 55, 55, 0.72);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
}

.product-detail-cover-wrap .product-remain {
    font-size: 16px;
    padding: 10px 22px;
}

.mall-sec-title {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.mall-sec-title::before,
.mall-sec-title::after {
    content: "";
    flex: 1;
    max-width: 72px;
    height: 1px;
    background: #e5e7eb;
}

.product-detail-page {
    background: #f3f5f8;
    padding-bottom: 84px;
}

.product-detail-main {
    display: grid;
    gap: 10px;
}

.product-detail-gallery,
.product-detail-price-card,
.product-detail-merchant,
.product-detail-desc-card {
    background: #fff;
}

.product-detail-cover {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f3f4f6;
}

.product-detail-thumbs {
    display: none;
}

.product-detail-price-card {
    padding: 14px 16px 16px;
}

.product-detail-price {
    margin: 0;
    color: #ef4444;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.product-detail-commission {
    margin: 8px 0 12px;
    color: #6b7280;
    font-size: 14px;
}

.product-detail-commission span {
    color: #16a34a;
    font-weight: 600;
}

.product-detail-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    color: #111827;
}

.product-detail-merchant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.product-detail-merchant-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.product-detail-merchant-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-detail-merchant-body strong {
    font-size: 15px;
    color: #111827;
}

.product-detail-merchant-body span {
    font-size: 13px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail-desc-card {
    padding: 14px 16px 18px;
}

.product-detail-desc-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.product-detail-desc {
    margin: 0 0 12px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.product-detail-desc-images {
    display: grid;
    gap: 8px;
}

.product-detail-desc-images img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.product-detail-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef0f3;
    z-index: 20;
}

.product-detail-buy button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.product-detail-buy-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}

.mine-page .app-top { margin-bottom: 0; }

.mine-main {
    padding: 0 12px 20px;
}

.mine-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0;
    padding: 18px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    color: inherit;
}

.mine-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
}

.mine-avatar img,
.mine-avatar svg.mine-avatar-default {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mine-user-info {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mine-user-settings-hit {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mine-user-info h2,
.mine-user-info .mine-badges {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.mine-user-info h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.mine-badge-role {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.mine-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mine-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.mine-badge.realname {
    background: #16a34a;
    color: #fff;
}
.mine-badge.role-BRONZE_AGENT {
    background: #ffedd5;
    color: #c2410c;
}
.mine-badge.role-SILVER_AGENT {
    background: #e5e7eb;
    color: #374151;
}
.mine-badge.role-GOLD_AGENT {
    background: #fef3c7;
    color: #b45309;
}
.mine-badge.role-MERCHANT {
    background: #dcfce7;
    color: #15803d;
}
.mine-badge.expire {
    background: #f3f4f6;
    color: #6b7280;
}

.mine-panel {
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mine-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mine-panel-head h3,
.mine-menu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.mine-tag {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.mine-panel-head a {
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
}

.mine-earn-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.mine-earn-top p {
    margin: 0 0 6px;
    color: #6b7280;
    font-size: 13px;
}

.mine-earn-top b {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}

.mine-earn-top span {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.mine-wallet-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.mine-earn-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 14px;
    text-align: center;
}

.mine-earn-foot a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mine-earn-foot a:active {
    opacity: 0.72;
}

.mine-earn-foot > a + a {
    border-left: 1px solid #f3f4f6;
}

.mine-earn-foot b {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.mine-earn-foot span {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.mine-team-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    padding-bottom: 14px;
}

.mine-team-stats > div:not(:last-child) {
    border-right: 1px solid #f3f4f6;
}

.mine-team-stats b {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.mine-team-stats span {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.mine-level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.mine-lv {
    padding: 2px 8px;
    border-radius: 6px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.mine-level-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.mine-level-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.mine-level em {
    font-style: normal;
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.mine-menu-title {
    margin-bottom: 14px;
}

.mine-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 8px;
}

.mine-menu a {
    text-align: center;
    text-decoration: none;
    color: #374151;
    font-size: 12px;
    line-height: 1.3;
}

.mine-menu i {
    display: flex;
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-style: normal;
}

.mine-menu i.m1 { background: #a78bfa; }
.mine-menu i.m2 { background: #86efac; color: #166534; }
.mine-menu i.m3 { background: #7dd3fc; }
.mine-menu i.m4 { background: #fdba74; color: #9a3412; }
.mine-menu i.m5 { background: #f9a8d4; color: #9d174d; }
.mine-menu i.m6 { background: #fca5a5; color: #991b1b; }
.mine-menu i.m7 { background: #93c5fd; }
.mine-menu i.m8 { background: #60a5fa; }
.mine-menu i.m9 { background: #c4b5fd; color: #5b21b6; }
.mine-menu i.m10 { background: #5eead4; color: #115e59; }
.mine-menu i.m11 { background: #fdba74; color: #9a3412; }
.mine-menu i.m12 { background: #fcd34d; color: #92400e; }
.mine-menu i.m13 { background: #67e8f9; color: #155e75; }

.realname-page { background: #f3f5f8; }

.realname-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}
.realname-top h1 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}
.realname-back {
    width: 32px;
    color: #374151;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
}

.realname-main {
    padding: 12px;
}

.legal-page {
    background: #f3f5f8;
}

.legal-main {
    padding: 12px;
}

.legal-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px 24px;
    color: #374151;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}

.legal-back-btn {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 56px;
    margin-top: 20px;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-decoration: none;
    background: linear-gradient(90deg, #7dd3fc, #3b82f6 55%, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.realname-status {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
}
.realname-status.ok { background: #ecfdf5; color: #166534; }
.realname-status.reject { background: #fef2f2; color: #991b1b; }
.realname-status strong { display: block; margin-bottom: 4px; }

.realname-panel {
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.realname-panel h2 {
    margin: 0;
    font-size: 16px;
}
.realname-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.realname-panel-head span {
    color: #9ca3af;
    font-size: 12px;
    text-align: right;
}
.realname-label {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}
.realname-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.realname-tabs button {
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}
.realname-tabs button.on {
    background: #3b82f6;
    color: #fff;
}
.realname-form label {
    display: block;
    margin-bottom: 12px;
    color: #374151;
    font-size: 13px;
}
.realname-form input[type=text] {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}
.realname-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 12px;
}
.realname-upload-head strong { font-size: 14px; }
.realname-upload-head span { color: #9ca3af; font-size: 12px; }
.realname-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.merchant-apply .realname-uploads {
    grid-template-columns: 1fr 1fr 1fr;
}
.merchant-apply .upload-box em {
    text-align: center;
    line-height: 1.3;
    padding: 0 2px;
}
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
}
.upload-box.wide { margin-bottom: 16px; }
.upload-preview {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 28px;
    overflow: hidden;
}
.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-box em {
    margin-top: 8px;
    font-style: normal;
    color: #6b7280;
    font-size: 12px;
}
.realname-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
}
.realname-read {
    margin: 0;
}
.realname-read dt {
    margin-top: 12px;
    color: #9ca3af;
    font-size: 12px;
}
.realname-read dd {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 600;
}

.settings-page {
    background: #f3f5f8;
    padding-bottom: 24px;
}

.settings-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}

.settings-top h1 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.settings-back {
    width: 32px;
    color: #374151;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
}

.settings-main {
    padding: 16px 12px;
}

.settings-panel {
    margin-bottom: 16px;
    padding: 0 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.settings-panel h2 {
    margin: 0;
    padding: 16px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 0;
    border: 0;
    border-top: 1px solid #f3f4f6;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.settings-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-ico.user {
    background: #dbeafe;
    color: #2563eb;
}

.settings-ico.lock {
    background: #ffedd5;
    color: #ea580c;
}

.settings-item-text {
    flex: 1;
    min-width: 0;
}

.settings-item-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.settings-item-text em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-arrow {
    color: #d1d5db;
    font-size: 22px;
    line-height: 1;
}

.settings-logout {
    display: block;
    margin-top: 24px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    color: #ef4444;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.settings-modal[hidden] {
    display: none;
}

.settings-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.settings-modal-box {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding: 20px 16px 12px;
    background: #fff;
    border-radius: 16px;
}

.settings-modal-box h3 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.settings-modal-box input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 15px;
}

.settings-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.settings-modal-actions button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 15px;
    cursor: pointer;
}

.settings-modal-actions button.primary {
    background: #3b82f6;
    color: #fff;
}

.settings-password-form {
    display: block;
}

.settings-field {
    display: block;
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
}

.settings-field:first-child {
    border-top: 0;
}

.settings-field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.settings-input-wrap {
    position: relative;
}

.settings-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 12px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 15px;
}

.settings-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.settings-tips h2 {
    padding-bottom: 0;
}

.settings-tips ul {
    margin: 0;
    padding: 0 0 16px 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
}

.settings-submit {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-page .realname-top {
    position: relative;
}

.realname-top-space {
    width: 32px;
    flex-shrink: 0;
}

.my-products-page {
    background: #f3f5f8;
}

.my-products-top h1 {
    flex: 1;
    min-width: 0;
}

.my-products-top-publish {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.24);
}

.my-products-main {
    padding: 12px;
}

.my-products-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.my-products-tabs::-webkit-scrollbar {
    display: none;
}

.my-products-tabs a {
    flex: 0 0 auto;
    min-width: 64px;
    height: 36px;
    padding: 0 16px;
    line-height: 36px;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.my-products-tabs a.on {
    background: #3b82f6;
    color: #fff;
}

.my-products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    text-align: center;
}

.my-products-empty-ico {
    margin-bottom: 16px;
}

.my-products-empty-title {
    margin: 0;
    color: #d1d5db;
    font-size: 15px;
}

.my-products-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 48px;
    padding: 0 32px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.my-product-rows {
    display: grid;
    gap: 10px;
}

.my-product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.my-product-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.my-product-card > .my-product-row {
    background: transparent;
    box-shadow: none;
}

.my-product-row-static {
    cursor: default;
}

.my-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 12px;
}

.my-product-actions form {
    margin: 0;
}

.my-product-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.my-product-btn.deposit {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.my-product-btn.cancel {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.22);
}

.my-product-cover {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
}

.my-product-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.my-product-price {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}

.my-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-product-meta .merchant-status {
    margin-top: 0;
}

.my-product-days {
    color: #9ca3af;
    font-size: 13px;
}

.merchant-status.reject {
    background: #fee2e2;
    color: #dc2626;
}

.merchant-status.audit {
    background: #eff6ff;
    color: #2563eb;
}

.product-form-page {
    background: #f3f5f8;
}

.product-form-main {
    padding: 12px 12px 32px;
}

.product-form {
    display: grid;
    gap: 12px;
}

.product-form-card {
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.product-form-card h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.product-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-card-head h2 {
    margin: 0;
}

.product-image-count {
    color: #9ca3af;
    font-size: 13px;
}

.product-field {
    display: block;
    margin-bottom: 14px;
}

.product-field:last-child {
    margin-bottom: 0;
}

.product-field > span,
.product-field-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.product-field .required::after,
.required-inline::after,
.product-field-label.required-inline::after {
    content: " *";
    color: #ef4444;
}

.product-field input[type=text],
.product-field input[type=number],
.product-field textarea,
.product-select-wrap select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.product-field input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.product-field textarea {
    resize: vertical;
    min-height: 96px;
}

.product-select-wrap {
    position: relative;
    display: block;
}

.product-select-wrap::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}

.product-select-wrap select {
    appearance: none;
    padding-right: 36px;
}

.product-field-hint {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.product-field-hint a {
    color: #2563eb;
}

.product-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.product-range i {
    color: #9ca3af;
    font-style: normal;
    text-align: center;
}

.product-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.product-image-item,
.product-image-add {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.product-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}

.product-image-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
}

.product-image-add-ico {
    font-size: 28px;
    line-height: 1;
    color: #cbd5e1;
}

.product-payment-list {
    display: grid;
    gap: 10px;
}

.product-payment-item {
    display: block;
    cursor: pointer;
}

.product-payment-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-payment-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.product-payment-item input:checked + .product-payment-card {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.product-payment-card em {
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
}

.product-payment-card em.wechat {
    background: #dcfce7;
    color: #166534;
}

.product-payment-card em.alipay {
    background: #dbeafe;
    color: #1d4ed8;
}

.product-payment-card em.bank {
    background: #ffedd5;
    color: #9a3412;
}

.product-payment-card strong {
    font-size: 15px;
    color: #111827;
}

.product-payment-card small {
    color: #6b7280;
    font-size: 13px;
}

.product-submit-btn {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.merchant-top-add {
    position: absolute;
    right: 16px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.merchant-type-tabs {
    margin-bottom: 16px;
}

.merchant-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.merchant-product-list {
    display: grid;
    gap: 12px;
}

.merchant-product-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.merchant-product-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.merchant-product-card p {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 13px;
}

.merchant-status {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.merchant-status.on {
    background: #dcfce7;
    color: #16a34a;
}

.merchant-status.off {
    background: #fee2e2;
    color: #dc2626;
}

.merchant-status.pass {
    background: #eff6ff;
    color: #2563eb;
}

.merchant-status.pending {
    background: #fef3c7;
    color: #b45309;
}

.merchant-status.draft {
    background: #f3f4f6;
    color: #6b7280;
}

.merchant-product-ops {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.merchant-product-ops a,
.merchant-product-ops button {
    border: 0;
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.merchant-product-ops button {
    background: #fef2f2;
    color: #dc2626;
}

.merchant-product-form select,
.realname-form select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 15px;
}

.realname-form textarea {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 15px;
    resize: vertical;
}

.deposit-main {
    padding: 12px 16px 24px;
}
.deposit-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
}
.deposit-tabs a {
    flex: 1 0 auto;
    min-width: 56px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.deposit-tabs a.on {
    background: #3b82f6;
    color: #fff;
}
.deposit-panel {
    min-height: 280px;
    padding: 24px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.deposit-balance {
    margin: 0 0 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}
.deposit-empty {
    margin: 48px 0 0;
    color: #d1d5db;
    font-size: 14px;
    text-align: center;
}
.deposit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.deposit-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.deposit-list li:last-child {
    border-bottom: 0;
}
.deposit-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.deposit-item-head strong {
    font-size: 15px;
    color: #111827;
}
.deposit-item-head span {
    font-size: 16px;
    font-weight: 600;
}
.deposit-item-head span.plus { color: #16a34a; }
.deposit-item-head span.minus { color: #ef4444; }
.deposit-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #9ca3af;
    font-size: 12px;
}
.deposit-item-remark {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 12px;
}
.flow-panel {
    min-height: auto;
    padding: 8px 16px;
}

.flow-stats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flow-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.flow-stats li:last-child {
    border-bottom: 0;
}

.flow-stats span {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.flow-stats strong {
    flex-shrink: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.deposit-load-more {
    margin: 8px 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.account-records-main {
    padding: 12px 16px 24px;
}

.account-wallet-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.account-wallet-tabs a {
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.account-wallet-tabs a.on {
    background: #3b82f6;
    color: #fff;
}

.account-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 18px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.account-balance-card p {
    margin: 0 0 6px;
    font-size: 13px;
    opacity: 0.92;
}

.account-balance-card strong {
    font-size: 30px;
    font-weight: 800;
}

.account-withdraw-btn {
    min-width: 72px;
    height: 34px;
    line-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.account-flow-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.account-flow-tabs a {
    flex: 1;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 14px;
    text-decoration: none;
}

.account-flow-tabs a.on {
    background: #3b82f6;
    color: #fff;
}

.account-records-panel {
    min-height: 280px;
    padding: 8px 16px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.account-records-empty {
    margin: 48px 0 0;
    color: #d1d5db;
    font-size: 14px;
    text-align: center;
}

.account-records-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-records-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.account-records-list li:last-child {
    border-bottom: none;
}

.account-record-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.account-record-flow {
    min-width: 40px;
    height: 22px;
    line-height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.account-record-flow.in {
    background: #dcfce7;
    color: #16a34a;
}

.account-record-flow.out {
    background: #fee2e2;
    color: #ef4444;
}

.account-record-head strong {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.account-record-head em {
    font-style: normal;
    font-size: 16px;
    font-weight: 700;
}

.account-record-head em.plus {
    color: #16a34a;
}

.account-record-head em.minus {
    color: #ef4444;
}

.account-record-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.account-record-remark {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.account-records-load-more {
    margin: 16px 0 0;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.commission-records-page {
    background: #f3f5f8;
    min-height: 100vh;
}

.commission-records-main {
    padding: 12px 16px 24px;
}

.commission-total-card {
    margin-bottom: 12px;
    padding: 22px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
}

.commission-total-card strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.commission-total-card p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.92;
}

.commission-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.commission-tabs a {
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.commission-tabs a.on {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

.commission-records-panel {
    min-height: 280px;
    padding: 8px 16px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.commission-records-empty {
    margin: 48px 0 0;
    color: #d1d5db;
    font-size: 14px;
    text-align: center;
}

.commission-records-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.commission-records-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.commission-records-list li:last-child {
    border-bottom: none;
}

.commission-record-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.commission-record-tag {
    min-width: 40px;
    height: 22px;
    line-height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.commission-record-head strong {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.commission-record-head em {
    font-style: normal;
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
}

.commission-record-time {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 12px;
}

.commission-records-load-more {
    margin: 16px 0 0;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.address-page {
    background: #f3f5f8;
    min-height: 100vh;
    padding-bottom: 96px;
}

.address-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}

.address-top h1 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.address-back,
.address-top-space {
    width: 32px;
    color: #374151;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
}

.address-main,
.address-form-main {
    padding: 12px;
}

.address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
    color: #9ca3af;
    text-align: center;
}

.address-empty-ico {
    margin-bottom: 12px;
}

.address-empty-title {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
}

.address-empty-desc {
    margin: 8px 0 0;
    color: #c4c9d1;
    font-size: 13px;
}

.address-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.address-card {
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.address-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.address-card-head strong {
    font-size: 16px;
    color: #111827;
}

.address-card-head span {
    color: #6b7280;
    font-size: 14px;
}

.address-default-tag {
    padding: 1px 6px;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    color: #3b82f6;
    font-size: 11px;
    font-style: normal;
}

.address-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.address-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.address-card-actions a,
.address-card-actions button {
    margin: 0;
    border: 0;
    padding: 0;
    background: none;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.address-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(243, 245, 248, 0), #f3f5f8 28%);
}

.address-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.address-form-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.address-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    text-align: left;
    color: inherit;
}

.address-row:last-child {
    border-bottom: 0;
}

.address-row > span {
    width: 72px;
    flex-shrink: 0;
    color: #111827;
    font-size: 15px;
}

.address-row input[type=text],
.address-row input[type=tel],
.address-row textarea,
.address-row em {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-style: normal;
    resize: none;
}

.address-row textarea {
    min-height: 66px;
    line-height: 1.5;
}

.address-row input::placeholder,
.address-row textarea::placeholder,
.address-row em.placeholder {
    color: #c5cad3;
}

.address-row-top {
    align-items: flex-start;
}

.address-row-top > span {
    padding-top: 2px;
}

.address-region-row {
    cursor: pointer;
    text-align: left;
}

.address-region-row em {
    text-align: left;
}

.address-region-row i {
    color: #d1d5db;
    font-size: 20px;
    font-style: normal;
    line-height: 1;
}

.address-switch-row {
    justify-content: space-between;
    gap: 12px;
}

.address-switch-row > span {
    width: auto;
    flex: 1;
    white-space: nowrap;
}

.address-row .address-switch,
.payment-switch-row .address-switch {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    cursor: pointer;
    box-shadow: none;
}

.address-row .address-switch::after,
.payment-switch-row .address-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    transition: transform .18s ease;
}

.address-row .address-switch:checked,
.payment-switch-row .address-switch:checked {
    background: #3b82f6;
}

.address-row .address-switch:checked::after,
.payment-switch-row .address-switch:checked::after {
    transform: translateX(18px);
}

.address-picker {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.address-picker[hidden] {
    display: none;
}

.address-picker-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.address-picker-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
}

.address-picker-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.address-picker-sheet header button {
    margin: 0;
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
}

.address-picker-sheet header button.primary {
    color: #3b82f6;
    font-weight: 600;
}

.address-picker-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 280px;
}

.address-picker-cols ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    overflow-y: auto;
    border-right: 1px solid #f3f4f6;
}

.address-picker-cols ul:last-child {
    border-right: 0;
}

.address-picker-cols li {
    padding: 10px 12px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}

.address-picker-cols li.on {
    color: #2563eb;
    font-weight: 600;
    background: #eff6ff;
}

.payment-page .address-row > span {
    width: 88px;
}

.payment-form-card {
    padding: 16px 16px 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.payment-form-card h2 {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.payment-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}

.payment-type-card i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
}

.payment-type-card.wechat i { background: #07c160; }
.payment-type-card.alipay i { background: #1677ff; }
.payment-type-card.bank i { background: #6366f1; }

.payment-type-card.on {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

#qrFields[hidden],
#bankFields[hidden] {
    display: none !important;
}

.payment-field {
    display: block;
    margin-bottom: 16px;
}

.payment-field > span {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.payment-field input[type=text] {
    width: 100%;
    height: 44px;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    padding: 0;
    background: transparent;
    font-size: 15px;
}

.payment-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 148px;
    min-height: 148px;
    margin: 4px 0 8px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #fafafa;
    color: #9ca3af;
    cursor: pointer;
}

.payment-qr-box input[type=file] {
    display: none;
}

.payment-qr-preview {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.payment-qr-preview em {
    font-style: normal;
    font-size: 36px;
    line-height: 1;
    color: #9ca3af;
}

.payment-qr-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.payment-qr-box strong {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
}

.payment-qr-hint {
    margin: 0 0 16px;
    color: #d1d5db;
    font-size: 12px;
}

.payment-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.payment-type-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.payment-type-tag.bank {
    background: #eff6ff;
    color: #2563eb;
}

.payment-type-tag.alipay {
    background: #ecfeff;
    color: #0891b2;
}

.payment-type-tag.wechat {
    background: #ecfdf5;
    color: #059669;
}

.settle-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
    text-align: center;
}

.settle-empty-ico {
    margin-bottom: 16px;
}

.settle-empty-title {
    margin: 0;
    color: #9ca3af;
    font-size: 16px;
}

.settle-empty-desc {
    margin: 8px 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.settle-status {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.settle-status.pending {
    background: #fff7ed;
    color: #ea580c;
}

.settle-status.reject {
    background: #fef2f2;
    color: #dc2626;
}

.settle-audit-tip {
    margin-top: 6px !important;
    color: #ea580c !important;
    font-size: 12px !important;
}

.settle-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.settle-sheet[hidden] {
    display: none;
}

.settle-sheet-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.settle-sheet-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 92vh;
    overflow-y: auto;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 16px 16px 0 0;
}

.settle-sheet-box header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
}

.settle-sheet-box h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.settle-sheet-close {
    margin: 0;
    border: 0;
    padding: 0 4px;
    background: none;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.settle-field {
    display: block;
    margin-bottom: 14px;
}

.settle-field > span {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
}

.settle-field input[type=text],
.settle-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.settle-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239ca3af' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.settle-field input::placeholder {
    color: #c5cad3;
}

.settle-radios {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 36px;
}

.settle-radios label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 15px;
}

.settle-radios input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #3b82f6;
}

.settle-warn {
    margin: 4px 0 16px;
    color: #f59e0b;
    font-size: 13px;
}

.settle-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.withdraw-wallets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.withdraw-wallet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 12px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
}

.withdraw-wallet span {
    font-size: 12px;
}

.withdraw-wallet strong {
    color: #111827;
    font-size: 16px;
}

.withdraw-wallet.on {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.withdraw-page .payment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.withdraw-page .address-form-main {
    padding-bottom: 88px;
}

.withdraw-account-card {
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.withdraw-account-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.withdraw-kind-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #f3f4f6;
}

.withdraw-kind-tabs button {
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.withdraw-kind-tabs button.on {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.withdraw-edit-pill,
.withdraw-bind-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.withdraw-edit-pill[hidden],
.withdraw-bound[hidden],
.withdraw-unbound[hidden] {
    display: none !important;
}

.withdraw-bound {
    margin-top: 18px;
}

.withdraw-bound-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.withdraw-bound-row strong {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.withdraw-bound-row em {
    color: #9ca3af;
    font-size: 13px;
    font-style: normal;
}

.withdraw-bound p {
    margin: 4px 0 0;
    color: #9ca3af;
    font-size: 13px;
}

.withdraw-unbound {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.withdraw-unbound p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
}

.withdraw-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 12px;
}

.withdraw-account-head h2 {
    margin: 0;
}

.withdraw-account-head a {
    color: #3b82f6;
    font-size: 13px;
    text-decoration: none;
}

.withdraw-account-empty {
    margin: 0 0 12px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.6;
}

.withdraw-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
}

.withdraw-account-item input[type=radio] {
    flex: 0 0 auto;
    accent-color: #3b82f6;
}

.withdraw-account-item strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.withdraw-account-item p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.withdraw-edit {
    margin-left: auto;
    color: #3b82f6;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.withdraw-records {
    margin-top: 12px;
}

.withdraw-rules {
    margin-top: 12px;
}

.withdraw-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.withdraw-section-head h2 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.withdraw-section-head span {
    color: #9ca3af;
    font-size: 12px;
}

.withdraw-rules dl {
    margin: 0;
}

.withdraw-rules dl > div {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
}

.withdraw-rules dt {
    flex: 0 0 92px;
    margin: 0;
    color: #6b7280;
    font-weight: 400;
}

.withdraw-rules dd {
    margin: 0;
    color: #111827;
    line-height: 1.55;
}

.withdraw-amount-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    border-bottom: 1px solid #eef0f3;
}

.withdraw-amount-box em {
    color: #111827;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
}

.withdraw-amount-field input[type=text] {
    flex: 1;
    height: 48px;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 22px;
    font-weight: 600;
}

.withdraw-fill-all {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.withdraw-available {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 12px;
}

.withdraw-records ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.withdraw-records li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
}

.withdraw-records li strong {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.withdraw-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    vertical-align: middle;
}

.withdraw-tag.reward {
    background: #f3e8ff;
    color: #7c3aed;
}

.withdraw-tag.deposit {
    background: #fff7ed;
    color: #c2410c;
}

.withdraw-records li span {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.withdraw-records .badge {
    padding: 4px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.withdraw-records .badge.s-PENDING { color: #ea580c; }
.withdraw-records .badge.s-APPROVED { color: #059669; }
.withdraw-records .badge.s-REJECTED { color: #dc2626; }

.withdraw-records-empty {
    margin: 16px 0 8px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.withdraw-add-link {
    display: block;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
}

.team-stat-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom: 12px;
    padding: 16px 6px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.team-stat-card > div + div {
    border-left: 1px solid #f3f4f6;
}

.team-stat-card b {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.team-stat-card span {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 12px;
}

.team-invite-card h2,
.team-list-card h2 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.team-invite-row {
    display: flex;
    align-items: center;
    margin: 14px 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.team-invite-row strong {
    flex: 1;
    padding: 12px 14px;
    color: #111827;
    font-size: 16px;
    letter-spacing: 1px;
}

.team-copy-btn,
.team-invite-btn {
    margin: 0;
    border: 0;
    cursor: pointer;
}

.team-copy-btn {
    padding: 0 14px;
    height: 44px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.team-invite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.team-list-card {
    margin-top: 12px;
}

.team-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.team-list-head em {
    margin-left: 6px;
    color: #9ca3af;
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
}

.team-period {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: #f3f4f6;
}

.team-period a {
    padding: 4px 10px;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
}

.team-period a.on {
    background: #3b82f6;
    color: #fff;
}

.team-sort {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.team-sort a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.team-sort a.on {
    background: #3b82f6;
    color: #fff;
}

.team-members {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-members li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
}

.team-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

.team-member-main {
    flex: 1;
    min-width: 0;
}

.team-member-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-member-name strong {
    color: #111827;
    font-size: 15px;
}

.team-member-name span {
    padding: 1px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 11px;
}

.team-member-main p {
    margin: 6px 0 0;
    color: #9ca3af;
    font-size: 12px;
}

.team-member-main em {
    margin-right: 8px;
    color: #6b7280;
    font-style: normal;
}

.team-member-side {
    text-align: right;
    white-space: nowrap;
}

.team-member-side b {
    display: block;
    color: #3b82f6;
    font-size: 14px;
}

.team-member-side span {
    display: block;
    margin-top: 6px;
    color: #d1d5db;
    font-size: 11px;
}

.team-empty {
    margin: 16px 0 8px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.checkout-page {
    background: #f3f5f8;
    padding-bottom: 84px;
}

.checkout-main {
    display: grid;
    gap: 10px;
    padding: 10px 12px 0;
}

.checkout-address-card,
.checkout-section {
    background: #fff;
    border-radius: 12px;
}

.checkout-address-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.checkout-address-head {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    font-size: 16px;
}

.checkout-address-text {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.checkout-address-body {
    flex: 1;
    min-width: 0;
}

.checkout-address-arrow {
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
}

.checkout-section {
    padding: 14px 16px 16px;
}

.checkout-section h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #111827;
}

.checkout-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.checkout-item-cover {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.checkout-item-cover-empty {
    display: block;
}

.checkout-item-body {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #111827;
}

.checkout-item-meta {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-item-price {
    color: #ef4444;
    font-size: 16px;
    font-weight: 700;
}

.checkout-item-qty {
    color: #6b7280;
    font-size: 14px;
}

.checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
}

.checkout-free-shipping {
    color: #6b7280;
}

.checkout-summary-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.checkout-summary-total strong {
    color: #ef4444;
    font-size: 18px;
}

.checkout-remark {
    width: 100%;
    border: none;
    resize: none;
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    color: #111827;
    box-sizing: border-box;
}

.checkout-remark:focus {
    outline: none;
    background: #f3f4f6;
}

.checkout-form-stack {
    display: grid;
    gap: 10px;
}

.checkout-fulfill-list {
    display: grid;
    gap: 10px;
}

.checkout-fulfill-item {
    display: block;
    cursor: pointer;
}

.checkout-fulfill-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-fulfill-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.checkout-fulfill-item input:checked + .checkout-fulfill-card {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
    background: #eff6ff;
}

.checkout-fulfill-card strong {
    font-size: 15px;
    color: #111827;
}

.checkout-fulfill-card small {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.checkout-bottom {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100vw, 480px);
    max-width: 480px;
    box-sizing: border-box;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: #fff;
    border-top: 1px solid #eef0f3;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.checkout-bottom-total {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #374151;
}

.checkout-bottom-total strong {
    color: #ef4444;
    font-size: 18px;
}

.checkout-submit-btn {
    flex: 0 0 auto;
    min-width: 0;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.product-detail-flash {
    margin: 8px 12px 0;
}

.product-detail-reserved .product-detail-main,
.product-detail-reserved .product-detail-buy {
    pointer-events: none;
}

.product-reserved-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(15, 23, 42, 0.45);
}

.product-reserved-mask[hidden] {
    display: none !important;
}

.product-reserved-mask.show {
    display: flex !important;
}

.product-reserved-modal {
    width: min(100%, 320px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.product-reserved-modal h3 {
    margin: 0;
    padding: 22px 20px 0;
    font-size: 18px;
    color: #111827;
}

.product-reserved-modal p {
    margin: 0;
    padding: 18px 24px 22px;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
}

.product-reserved-ok {
    display: block;
    width: 100%;
    border: none;
    border-top: 1px solid #f3f4f6;
    background: #fff;
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 16px;
}

.address-select-link {
    margin-left: auto;
    color: #2563eb;
    font-size: 13px;
    font-style: normal;
    text-decoration: none;
}

.order-detail-page {
    background: #f3f5f8;
    padding-bottom: 84px;
}

.order-detail-page.order-detail-submitted {
    padding-bottom: 24px;
}

.order-detail-status-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 15px;
    background: #faf6ed;
    color: #3d3428;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(61, 52, 40, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(214, 146, 45, 0.12);
}

.order-detail-status-banner strong {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.order-detail-status-banner.s-unpaid {
    background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
    color: #1e3a8a;
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.order-detail-status-banner.s-pending {
    background: linear-gradient(180deg, #fdf9f2 0%, #faf6ed 100%);
    color: #3d3428;
    border-color: rgba(214, 146, 45, 0.16);
    box-shadow: 0 4px 14px rgba(214, 146, 45, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.order-detail-status-banner.s-done {
    background: linear-gradient(180deg, #f3fcf7 0%, #ecfdf5 100%);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.16);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.order-detail-status-banner.s-cancel {
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.14);
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.order-detail-merchant-card {
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.order-detail-merchant-card .order-detail-merchant-row {
    justify-content: flex-start;
}

.order-detail-merchant-card .order-detail-merchant-row span {
    color: #9ca3af;
    flex-shrink: 0;
}

.order-detail-merchant-row-block {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.order-detail-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    color: #d6922d;
}

.order-detail-status-banner.s-unpaid .order-detail-status-icon {
    color: #2563eb;
}

.order-detail-status-banner.s-pending .order-detail-status-icon {
    color: #d6922d;
}

.order-detail-status-banner.s-done .order-detail-status-icon {
    color: #059669;
}

.order-detail-status-banner.s-cancel .order-detail-status-icon {
    color: #9ca3af;
}

.order-detail-merchant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
}

.order-detail-merchant-row strong {
    color: #111827;
    font-weight: 600;
}

.order-detail-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-detail-product-cover {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.order-detail-product-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.order-detail-product-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.order-detail-product-body strong {
    font-size: 15px;
    color: #111827;
    line-height: 1.4;
}

.order-detail-product-body em {
    font-style: normal;
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
}

.order-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.order-detail-section-head h2 {
    margin: 0;
}

.order-detail-edit-link {
    color: #2563eb;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.order-detail-empty-tip {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
}

.order-detail-pay-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.order-detail-pay-methods li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.order-detail-pay-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    background: #f3f4f6;
    color: #374151;
}

.order-detail-pay-type.t-wechat {
    background: #ecfdf5;
    color: #059669;
}

.order-detail-pay-type.t-alipay {
    background: #eff6ff;
    color: #2563eb;
}

.order-detail-pay-methods strong {
    color: #111827;
    font-weight: 500;
}

.order-detail-vouchers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.order-detail-vouchers img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.order-detail-my-payments {
    display: grid;
    gap: 14px;
}

.order-detail-my-payment {
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.order-detail-my-payment:first-child {
    padding-top: 0;
    border-top: none;
}

.order-detail-my-payment-qr-wrap {
    margin-top: 12px;
    text-align: center;
}

.order-detail-my-payment-qr {
    display: block;
    width: min(100%, 220px);
    margin: 0 auto;
    border-radius: 10px;
    background: #f9fafb;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.order-detail-pay-qr-btn,
.order-detail-my-payment-qr-btn {
    display: block;
    width: min(100%, 280px);
    margin: 0 auto 12px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.order-detail-my-payment-qr-btn {
    width: min(100%, 220px);
    margin: 0 auto;
}

.order-detail-pay-qr-btn .order-detail-pay-qr,
.order-detail-my-payment-qr-btn .order-detail-my-payment-qr {
    width: 100%;
    margin: 0;
}

.order-detail-pay-qr-btn:active,
.order-detail-my-payment-qr-btn:active {
    opacity: 0.92;
}

.order-detail-my-payment-tip {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.5;
}

.order-detail-my-payment-bank {
    margin-top: 8px;
    color: #374151;
    font-size: 13px;
    line-height: 1.6;
}

.order-detail-my-payment-bank p {
    margin: 0;
}

.order-detail-bottom-single {
    grid-template-columns: 1fr;
}

.order-detail-bottom-single form {
    width: 100%;
}

.order-detail-main {
    display: grid;
    gap: 10px;
    padding: 10px 12px 0;
}

.order-detail-pay-card,
.order-detail-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.order-detail-pay-card h2,
.order-detail-info-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #111827;
}

.order-detail-pay-tip {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.order-detail-pay-qr {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.image-preview-open {
    overflow: hidden;
}

.image-preview-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.88);
}

.image-preview-mask:not([hidden]) {
    display: flex;
}

.image-preview-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.image-preview-body {
    width: min(100%, 420px);
    text-align: center;
}

.image-preview-img {
    display: block;
    width: 100%;
    max-height: min(72vh, 640px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.image-preview-caption {
    margin: 12px 0 0;
    color: #f9fafb;
    font-size: 15px;
    font-weight: 500;
}

.image-preview-caption[hidden] {
    display: none;
}

.image-preview-tip {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.order-detail-pay-name {
    margin: 0;
    text-align: center;
    color: #374151;
    font-size: 14px;
}

.order-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.order-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-detail-row-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.order-detail-row-value em {
    font-style: normal;
    color: #111827;
    word-break: break-all;
    text-align: right;
}

.order-detail-copy {
    flex-shrink: 0;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
}

.order-detail-amount {
    color: #ef4444;
    font-size: 16px;
}

.order-detail-commission {
    color: #16a34a;
    font-size: 16px;
}

.order-detail-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef0f3;
}

.order-detail-bottom form {
    display: block;
    width: 100%;
    min-width: 0;
}

.order-detail-cancel,
.order-detail-upload {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
}

.order-detail-cancel {
    background: #fee2e2;
    color: #dc2626;
}

.order-detail-upload {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.order-detail-upload:disabled {
    opacity: 0.72;
}

.order-list-page {
    background: #f3f5f8;
}

.order-list-main {
    padding: 0 12px 24px;
}

.order-list-sync {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 12px;
    font-size: 12px;
    color: #9ca3af;
}

.order-list-sync-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
}

.order-list-sync-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.order-list-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.order-list-stats div {
    background: #fff;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.order-list-stats strong {
    display: block;
    font-size: 18px;
    color: #111827;
    line-height: 1.2;
}

.order-list-stats span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

.order-list-stats em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 10px;
    color: #ef4444;
}

.order-list-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 10px;
}

.order-list-tabs a {
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.order-list-tabs a.on {
    background: #eff6ff;
    color: #2563eb;
}

.order-list-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.order-list-filters a {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
}

.order-list-filters a.on {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.order-list-cards {
    display: grid;
    gap: 10px;
}

.order-list-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 14px 14px 12px;
    color: inherit;
    text-decoration: none;
}

.order-list-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.order-list-no {
    font-size: 12px;
    color: #9ca3af;
    word-break: break-all;
}

.order-list-status {
    flex-shrink: 0;
    font-style: normal;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #d97706;
}

.order-list-status.s-done {
    background: #dcfce7;
    color: #16a34a;
}

.order-list-status.s-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.order-list-status.s-unpaid {
    background: #fee2e2;
    color: #dc2626;
}

.order-list-status.s-pending {
    background: #dbeafe;
    color: #2563eb;
}

.order-list-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-list-card-left strong {
    display: block;
    font-size: 16px;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 6px;
}

.order-list-card-left span {
    font-size: 12px;
    color: #9ca3af;
}

.order-list-card-right {
    text-align: right;
    flex-shrink: 0;
}

.order-list-card-right strong {
    display: block;
    font-size: 18px;
    color: #111827;
}

.order-list-card-right span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #16a34a;
}

.order-list-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    position: relative;
}

.order-list-progress::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 18px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.order-list-progress span {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding-top: 14px;
}

.order-list-progress span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
}

.order-list-progress.step-1 span:nth-child(1)::before,
.order-list-progress.step-2 span:nth-child(-n+2)::before,
.order-list-progress.step-3 span:nth-child(-n+3)::before,
.order-list-progress.step-4 span::before {
    background: #2563eb;
}

.order-list-progress.step-1 span:nth-child(1),
.order-list-progress.step-2 span:nth-child(-n+2),
.order-list-progress.step-3 span:nth-child(-n+3),
.order-list-progress.step-4 span {
    color: #2563eb;
}

.order-list-empty {
    margin: 24px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.payment-voucher-tip-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.45);
}

.payment-voucher-tip-mask[hidden] {
    display: none !important;
}

.payment-voucher-tip-mask.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.payment-voucher-tip-modal {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 320px);
    margin: 0;
    transform: none;
    background: linear-gradient(180deg, #fff5f7 0%, #fff 28%);
    border-radius: 18px;
    overflow: visible;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 34px 22px 22px;
}

.payment-voucher-tip-icon {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fb7185 0%, #f43f5e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(244, 63, 94, 0.35);
}

.payment-voucher-tip-body p {
    margin: 0;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.payment-voucher-tip-ok {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    border: none;
    border-radius: 999px;
    padding: 13px 16px;
    background: linear-gradient(90deg, #fb7185 0%, #f43f5e 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.payment-voucher-page {
    background: #f3f5f8;
    padding-bottom: 84px;
}

.payment-voucher-main {
    display: grid;
    gap: 10px;
    padding: 10px 12px 0;
}

.payment-voucher-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.payment-voucher-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #111827;
}

.payment-voucher-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.payment-voucher-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payment-voucher-row strong {
    color: #111827;
    text-align: right;
    word-break: break-all;
}

.payment-voucher-amount {
    color: #ef4444;
    font-size: 16px;
}

.payment-voucher-commission {
    color: #16a34a;
    font-size: 16px;
}

.payment-voucher-subtip {
    margin: -4px 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.payment-voucher-remark {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.payment-voucher-remark span {
    color: #374151;
    font-size: 14px;
}

.payment-voucher-remark textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 72px;
}

.order-detail-repayment-remark {
    margin: 0 0 12px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.order-detail-bottom-single .order-detail-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.payment-voucher-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.payment-voucher-upload-head h2 {
    margin: 0;
}

.payment-voucher-upload-head span {
    color: #9ca3af;
    font-size: 13px;
}

.payment-voucher-uploads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payment-voucher-add,
.payment-voucher-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.payment-voucher-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #d1d5db;
    background: #fafafa;
    color: #6b7280;
    cursor: pointer;
}

.payment-voucher-add-icon {
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
}

.payment-voucher-add em {
    font-style: normal;
    font-size: 12px;
}

.payment-voucher-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.payment-voucher-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.payment-voucher-tips {
    background: #eff6ff;
    border-radius: 12px;
    padding: 14px 16px;
}

.payment-voucher-tips h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1d4ed8;
}

.payment-voucher-tips ul {
    margin: 0;
    padding-left: 18px;
    color: #374151;
    font-size: 13px;
    line-height: 1.6;
}

.payment-voucher-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef0f3;
}

.payment-voucher-submit {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 13px 16px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.payment-voucher-submit:disabled {
    opacity: 0.55;
}

.payment-voucher-uploading {
    overflow: hidden;
}

.payment-voucher-upload-mask {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.45);
}

.payment-voucher-upload-mask[hidden] {
    display: none;
}

.payment-voucher-upload-panel {
    width: min(100%, 280px);
    padding: 24px 20px 20px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.payment-voucher-upload-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: payment-voucher-spin 0.8s linear infinite;
}

@keyframes payment-voucher-spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-voucher-upload-text {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.payment-voucher-upload-bar {
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.payment-voucher-upload-bar-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.15s ease;
}

.payment-voucher-upload-percent {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.upgrade-page {
    background: #f3f5f8;
    min-height: 100vh;
    padding-bottom: 24px;
}

.upgrade-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}

.upgrade-top h1 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.upgrade-back,
.upgrade-top-space {
    width: 32px;
    color: #374151;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
}

.upgrade-main {
    padding: 12px;
}

.upgrade-now {
    margin-bottom: 12px;
    padding: 22px 18px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.upgrade-now p {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

.upgrade-now h2 {
    margin: 8px 0 12px;
    font-size: 26px;
    font-weight: 700;
}

.upgrade-now span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.upgrade-pack {
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.upgrade-pack.is-current {
    box-shadow: 0 0 0 2px #2563eb, 0 6px 16px rgba(15, 23, 42, 0.04);
}

.upgrade-pack header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.upgrade-pack header h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.upgrade-pack header h2 em {
    padding: 1px 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.upgrade-pack header strong {
    color: #ea580c;
    font-size: 18px;
    font-weight: 700;
}

.upgrade-star {
    flex-shrink: 0;
    color: #f59e0b;
}

.upgrade-star.role-BRONZE_AGENT { color: #c2410c; }
.upgrade-star.role-SILVER_AGENT { color: #6b7280; }
.upgrade-star.role-GOLD_AGENT { color: #d97706; }

.upgrade-pack dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    margin: 0;
}

.upgrade-pack dl div {
    min-width: 0;
}

.upgrade-pack dt {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
}

.upgrade-pack dd {
    margin: 4px 0 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}
