/* 应用层样式：Layui 未覆盖的业务组件 */

body {
    background-color: #f2f2f2;
}

.layui-body {
    padding: 15px;
    bottom: 0;
    overflow-y: auto;
}

.layui-layout-admin .layui-logo {
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    width: 220px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px !important;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent !important;
}

.layui-layout-admin .layui-logo .site-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.layui-layout-admin .layui-logo .site-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-logo-preview {
    margin-bottom: 10px;
}

.site-logo-preview img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px;
    background: #fff;
}

.layui-side,
.layui-side-scroll,
.layui-nav-tree {
    width: 220px !important;
}

.layui-body,
.layui-footer,
.layui-layout-admin .layui-header .layui-layout-left {
    left: 220px !important;
}

.app-header-right {
    position: absolute;
    right: 20px;
    top: 0;
    height: 60px;
    line-height: 60px;
    color: #333;
}

.app-header-right .layui-btn {
    margin-left: 10px;
    vertical-align: middle;
}

.page-title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* 表单：沿用上下布局，避免未包 layui-input-block 时错位 */
.layui-form-item .layui-form-label {
    float: none;
    display: block;
    width: auto;
    padding: 0 0 6px;
    text-align: left;
    line-height: 1.5;
}

.layui-form-item .layui-input-block {
    margin-left: 0;
    min-height: 0;
}

.layui-form-item .layui-input,
.layui-form-item .layui-textarea,
.layui-form-item .layui-select,
.layui-form-item select {
    display: block;
    width: 100%;
}

.layui-col-md6 {
    padding: 0 10px;
    box-sizing: border-box;
}

.form-row-3 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    align-items: flex-start;
}

.form-row-2 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-row-3 .form-col {
    flex: 1 1 0;
    min-width: 0;
    width: 33.33%;
    box-sizing: border-box;
}

.form-row-2 .form-col {
    flex: 1;
    min-width: 180px;
}

.form-row-2 .form-col .layui-textarea {
    min-height: 86px;
}

/* 金额前缀/后缀同一行对齐 */
.input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 12px;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    color: #666;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 36px;
    height: 38px;
}

.input-group .layui-input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 38px;
    box-sizing: border-box;
}

.input-group .input-group-text:first-child {
    border-right: 0;
    border-radius: 2px 0 0 2px;
}

.input-group .input-group-text:first-child + .layui-input {
    border-radius: 0 2px 2px 0;
}

.input-group .layui-input:first-child {
    border-radius: 2px 0 0 2px;
}

.input-group .layui-input + .input-group-text {
    border-left: 0;
    border-radius: 0 2px 2px 0;
}

@media (max-width: 900px) {
    .form-row-3 {
        flex-wrap: wrap !important;
    }
    .form-row-3 .form-col {
        flex: 1 1 100%;
        width: 100%;
    }
}

.assigned-selector-wrap {
    position: relative;
}

.assigned-selector-wrap .autocomplete-list {
    left: 0;
    right: 0;
}

.layui-row {
    margin: 0 -10px;
}

.layui-card {
    margin-bottom: 15px;
}

.layui-card-header {
    font-weight: 600;
}

.layui-table {
    margin-top: 0;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .layui-table {
    min-width: 1100px;
}

.order-list-table th,
.order-list-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.order-list-table td {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-list-table .ops-cell {
    max-width: none;
    overflow: visible;
    white-space: nowrap;
}

.order-code-link {
    color: #009688;
    font-weight: 600;
    cursor: pointer;
}

.order-code-link:hover {
    text-decoration: underline;
}

.order-popup-wrap {
    padding: 16px 20px 20px;
}

.order-popup-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

.order-popup-row .k {
    flex: 0 0 88px;
    color: #888;
}

.order-popup-row .v {
    flex: 1;
    color: #333;
    word-break: break-word;
}

.order-popup-row .v.pre {
    white-space: pre-wrap;
}

.radio-inline {
    margin-right: 15px;
}

.order-type-radios {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 38px;
    flex-wrap: wrap;
}

.order-type-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.order-type-option input[type="radio"] {
    -webkit-appearance: radio;
    appearance: radio;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    vertical-align: middle;
    accent-color: #009688;
    cursor: pointer;
}

.order-type-option span {
    line-height: 16px;
    display: inline-block;
}

.btn,
.action-btn {
    /* legacy fallback */
}

/* 提示条（兼容旧用法） */
.app-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 5px solid #009688;
    background: #f8f8f8;
    color: #666;
}

.app-alert-success {
    border-left-color: #5FB878;
    background: #f0f9eb;
    color: #67c23a;
}

.app-alert-danger {
    border-left-color: #FF5722;
    background: #fef0f0;
    color: #f56c6c;
}

/* 透明信息弹窗 */
.layui-layer.app-toast {
    background: rgba(0, 0, 0, 0.72) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    min-width: 120px;
}

.layui-layer.app-toast .layui-layer-content {
    color: #fff !important;
    padding: 12px 22px !important;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.layui-layer.app-toast-success {
    background: rgba(45, 143, 78, 0.88) !important;
}

.layui-layer.app-toast-error {
    background: rgba(194, 58, 43, 0.88) !important;
}

/* 登录页弹窗：右上角滑入滑出 */
.mac-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 19891020;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(40, 20, 30, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    pointer-events: none;
    transform: translateX(120%);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.22, 0.8, 0.28, 1),
        opacity 0.35s ease;
}

.mac-toast.is-show {
    transform: translateX(0);
    opacity: 1;
}

.mac-toast.is-hide {
    transform: translateX(120%);
    opacity: 0;
}

.layui-layer.mac-login-toast {
    background: rgba(40, 20, 30, 0.55) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}

.layui-layer.mac-login-toast .layui-layer-content {
    padding: 14px 28px !important;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* 状态标签：深色底、无边框 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
    border: none;
    color: #fff;
}

.status-success {
    background-color: #2d8f4e;
    color: #fff;
}

.status-pending {
    background-color: #c47d1a;
    color: #fff;
}

.status-processing {
    background-color: #1a6fb5;
    color: #fff;
}

.status-failed {
    background-color: #c23a2b;
    color: #fff;
}

.status-reviewing {
    background-color: #6b3fa0;
    color: #fff;
}

.status-rejected {
    background-color: #c23a2b;
    color: #fff;
}

.grab-reject-reason {
    color: #c23a2b !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    display: block;
}

.reject-reason-box,
.form-control-plaintext.text-danger {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #c23a2b;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.submit-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.submit-section-last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.submit-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 同一卡片内分区 */
.detail-block {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-block-last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-block-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid #009688;
    line-height: 1.2;
}

/* 代练端：个人信息 / 我的订单等页面上下左右铺满 */
.practitioner-app.page-profile .layui-body,
.practitioner-app.page-orders .layui-body {
    padding: 0 !important;
    background: #fff !important;
    overflow-y: auto;
}

.practitioner-app.page-my-orders .layui-body {
    overflow: hidden !important;
}

.practitioner-app.page-profile .fill-card,
.practitioner-app.page-orders .fill-card {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 60px);
    background: #fff;
}

.practitioner-app.page-profile .fill-card > .layui-card-header,
.practitioner-app.page-orders .fill-card > .layui-card-header {
    border-radius: 0 !important;
    background: #fff;
}

.practitioner-app.page-profile .fill-card > .layui-card-body,
.practitioner-app.page-orders .fill-card > .layui-card-body {
    padding: 16px;
}

/* 我的订单：标签固定，仅列表滚动 */
.practitioner-app.page-my-orders .order-list-card.fill-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    min-height: 0;
    overflow: hidden;
}

.practitioner-app.page-my-orders .order-list-card.fill-card > .layui-card-header.order-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.practitioner-app.page-my-orders .order-list-card.fill-card > .layui-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 20px;
    background: #f5f5f5;
}

.status-type-hall {
    background-color: #1f6f8b;
    color: #fff;
}

.status-type-assigned {
    background-color: #a12d6a;
    color: #fff;
}

.amount {
    font-weight: 500;
    color: #FF5722;
}

.commission-anno {
    color: #FF5722;
    font-weight: 500;
    border-bottom: 1px dashed #FF5722;
    cursor: default;
}

.commission-anno.text-success {
    color: #5FB878;
    border-bottom-color: #5FB878;
}

.order-list-table td.commission-cell {
    overflow: visible;
    max-width: none;
}

.commission-float-tip {
    position: fixed;
    z-index: 19891015;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

.commission-float-tip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.text-success { color: #5FB878 !important; }
.text-danger { color: #FF5722 !important; }
.text-muted { color: #999 !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.ml-3 { margin-left: 15px; }
.mb-2 { margin-bottom: 8px; }

/* 统计卡片 */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7.5px 15px;
}

.stat-card {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border-radius: 2px;
    padding: 18px;
    margin: 0 7.5px 15px;
    text-align: center;
    border: 1px solid #e6e6e6;
    border-top: 3px solid #009688;
}

.stat-card.primary { border-top-color: #1E9FFF; }
.stat-card.success { border-top-color: #5FB878; }
.stat-card.danger { border-top-color: #FF5722; }
.stat-card.warning { border-top-color: #E6A23C; }
.stat-card.purple { border-top-color: #9b59b6; }

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 500;
    margin: 8px 0;
    color: #333;
}

.stat-card .stat-title {
    font-size: 14px;
    color: #999;
}

.card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.order-list-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.order-list-stats b {
    margin-left: 4px;
    color: #333;
    font-weight: 600;
}

.order-list-stats .amount {
    color: #FF5722;
}

.nav-with-dot {
    position: relative;
}

.nav-red-dot {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    background: #ff4d4f;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

/* 搜索区 */
.search-area {
    background: #fff;
    padding: 15px 15px 5px;
    margin-bottom: 15px;
    border-radius: 2px;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* 搜索区用原生 select，避免 layui form.render 改造导致闪烁 */
.search-row select.layui-input,
.search-row input.layui-input {
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    appearance: auto;
    -webkit-appearance: menulist;
}

.search-row select.layui-input {
    padding: 0 10px;
    background-color: #fff;
}

.search-row .input-short {
    width: 140px;
    min-width: 120px;
}

.search-row .input-date {
    width: 150px;
    min-width: 140px;
}

.search-row .date-sep {
    color: #999;
    flex: 0 0 auto;
}

.search-row .layui-input,
.search-row .layui-select,
.search-row select {
    width: auto;
    min-width: 140px;
}

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

/* 分页 */
.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin: 20px 0;
}

.pagination-info {
    color: #666;
    font-size: 13px;
}

.pagination-info b {
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    gap: 4px;
}

.pagination a {
    color: #666;
    padding: 0 12px;
    height: 30px;
    line-height: 30px;
    text-decoration: none;
    border: 1px solid #e2e2e2;
    background: #fff;
    font-size: 12px;
    border-radius: 2px;
}

.pagination a.active {
    background-color: #009688;
    color: #fff;
    border-color: #009688;
}

.pagination a:hover:not(.active):not(.disabled) {
    color: #009688;
    border-color: #009688;
}

.pagination a.disabled {
    color: #d2d2d2;
    cursor: not-allowed;
}

.pagination-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.pagination-size select,
.pagination-jump input {
    height: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    padding: 0 8px;
    margin: 0 4px;
    vertical-align: middle;
}

.pagination-jump input {
    width: 64px;
}

.pagination-tools .layui-btn {
    vertical-align: middle;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1E9FFF 0%, #009688 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 400px;
    max-width: 100%;
}

.login-box .layui-card-header {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    height: auto;
    line-height: 1.4;
    padding: 20px 15px 10px;
}

.login-box .login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.login-box .login-brand .site-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.login-box .layui-tab-title {
    text-align: center;
}

.login-box .layui-form-item {
    margin-bottom: 18px;
}

.login-box .layui-btn-fluid {
    width: 100%;
}

/* ===== Mac 风格登录页 ===== */
.mac-login-body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}

.mac-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 64px;
    box-sizing: border-box;
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 90, 95, 0.95) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(255, 170, 60, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 75%, rgba(70, 140, 255, 0.85) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 20% 80%, rgba(160, 80, 220, 0.75) 0%, transparent 50%),
        linear-gradient(160deg, #ff6b4a 0%, #f5a623 28%, #5b8def 62%, #7b5cff 100%);
    background-size: 120% 120%;
    background-position: center;
    opacity: 0;
    animation: macBgIn 1.1s cubic-bezier(0.22, 0.8, 0.28, 1) forwards;
}

.mac-login-ready .mac-login-page {
    animation: macBgIn 1.1s cubic-bezier(0.22, 0.8, 0.28, 1) forwards,
               macBgDrift 14s ease-in-out 1.1s infinite alternate;
}

@keyframes macBgIn {
    from {
        opacity: 0;
        filter: blur(12px) saturate(0.85);
        background-size: 140% 140%;
    }
    to {
        opacity: 1;
        filter: blur(0) saturate(1);
        background-size: 120% 120%;
    }
}

@keyframes macBgDrift {
    from { background-position: 40% 45%; }
    to { background-position: 60% 55%; }
}

.mac-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    opacity: 0;
    animation: macFadeIn 0.8s ease 0.15s forwards;
}

@keyframes macFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mac-login-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.mac-anim {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition:
        opacity 0.55s cubic-bezier(0.22, 0.8, 0.28, 1),
        transform 0.55s cubic-bezier(0.22, 0.8, 0.28, 1);
    transition-delay: var(--d, 0s);
}

.mac-login-ready .mac-anim {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mac-login-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.35s ease;
}

.mac-login-ready .mac-login-avatar.mac-anim {
    transform: translateY(0) scale(1);
}

.mac-login-avatar:hover {
    transform: translateY(0) scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.mac-login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mac-login-avatar-fallback {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mac-login-name {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.mac-login-error {
    margin: 0 auto 14px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(180, 30, 30, 0.55);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mac-login-type {
    display: inline-flex;
    gap: 0;
    margin-bottom: 16px;
    padding: 3px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.mac-type-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 16px;
    cursor: pointer;
    outline: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.mac-type-btn:hover {
    color: #fff;
}

.mac-type-btn.active {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
}

.mac-login-form {
    width: 100%;
}

.mac-login-field {
    margin-bottom: 12px;
}

.mac-login-field input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px;
    padding: 0 18px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-size: 15px;
    text-align: center;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mac-login-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mac-login-field input:focus {
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mac-field-err {
    margin-top: 6px;
    font-size: 12px;
    color: #ffe0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.mac-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mac-remember input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #fff;
}

.mac-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.25s ease, opacity 0.2s ease;
    position: relative;
}

.mac-login-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mac-login-btn:active {
    transform: translateY(0) scale(0.98);
}

.mac-login-role {
    display: inline-block;
    margin: -6px 0 18px;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mac-portal-hint {
    margin: -4px 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.mac-portal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

a.mac-portal-btn {
    text-decoration: none;
    box-sizing: border-box;
}

.mac-login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    padding: 0 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.mac-login-copy,
.mac-login-icp {
    word-break: break-word;
}

.mac-login-icp a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.mac-login-icp a:hover {
    color: #fff;
    text-decoration: underline;
}

.mac-login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    flex-shrink: 0;
    animation: macSpin 0.7s linear infinite;
}

.mac-login-btn.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.9;
}

.mac-login-btn.is-loading .mac-login-btn-text {
    opacity: 0.92;
}

.mac-login-btn.is-loading .mac-login-spinner {
    display: inline-block;
}

.mac-login-btn.is-loading:hover {
    transform: none;
    box-shadow: none;
}

@keyframes macSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mac-login-page,
    .mac-login-ready .mac-login-page,
    .mac-login-page::before,
    .mac-anim {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* 订单卡片列表：一卡一行，PC 端左右铺满 */
.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.card-list .mobile-order-card,
.card-list .grab-order-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-order-card {
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e6e6e6;
    padding: 14px 16px 12px;
}

.mobile-order-card.is-clickable {
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mobile-order-card.is-clickable:hover {
    border-color: #cfd8dc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 接单大厅/指定单参考卡片 */
.grab-order-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.grab-order-card.is-clickable {
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.grab-order-card.is-clickable:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.grab-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.grab-code {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    font-size: 13px;
}

.grab-label {
    color: #333;
    flex-shrink: 0;
}

.grab-code-value {
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.grab-copy-btn {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
    padding: 2px 4px;
}

.grab-copy-btn:hover {
    color: #009688;
}

.grab-dash {
    margin: 10px 0;
    border-top: 1px dashed #e5e5e5;
}

.grab-share {
    flex-shrink: 0;
    white-space: nowrap;
}

.grab-price {
    color: #e54d42;
    font-weight: 700;
    font-size: 16px;
}

.grab-box {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.grab-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: break-word;
}

.grab-note {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-word;
}

.grab-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

.grab-row-inline {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.grab-inline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.grab-inline-item .k {
    flex: 0 0 auto;
    color: #888;
}

.grab-inline-item .v {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grab-row .k {
    flex: 0 0 70px;
    color: #888;
}

.grab-row .v {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.grab-view-tag {
    display: inline-block;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    color: #fff !important;
    background: #1f6f8b;
    border-radius: 2px;
    text-decoration: none !important;
}

.grab-view-tag:hover {
    background: #185a70;
    color: #fff !important;
}

.grab-desc-popup {
    padding: 16px 18px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.grab-remark {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.grab-action-btn {
    display: block;
    margin-top: 12px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #e54d42;
    color: #fff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.grab-action-btn:hover {
    background: #d43f35;
    color: #fff !important;
}

.grab-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.grab-foot-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.grab-foot .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
    border: none;
    color: #fff;
}

.grab-order-card .badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
    border: none;
    color: #fff;
}

.mobile-order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.mobile-order-title .order-code {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.mobile-order-title .order-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.mobile-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.order-amount {
    font-size: 18px;
    font-weight: 600;
    color: #FF5722;
}

.dashboard-welcome {
    margin-bottom: 15px;
    background: #fff;
    padding: 18px 20px;
    border-radius: 2px;
    border-left: 4px solid #009688;
}

.welcome-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    color: #666;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.dashboard-actions .action-btn {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    color: #333;
    position: relative;
    transition: all 0.2s;
}

.dashboard-actions .action-btn:hover {
    border-color: #009688;
    color: #009688;
}

.dashboard-actions .action-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF5722;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.refresh-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #009688;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,150,136,0.4);
    font-size: 20px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview-container img {
    max-width: 160px;
    max-height: 160px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
}

.voucher-popup-wrap {
    padding: 16px;
    max-height: 520px;
    overflow: auto;
}

.voucher-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: flex-start;
    overflow-x: auto;
}

.voucher-item {
    flex: 0 0 auto;
    display: block;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

.voucher-item img {
    display: block;
    max-height: 360px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.voucher-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

.order-voucher-link {
    color: #009688;
}

.file-upload {
    display: inline-block;
}

.file-upload input[type="file"] {
    display: none;
}

/* 收款码上传：已上传点图更换；未上传虚线加号 */
.paycode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.paycode-upload {
    width: 120px;
}

.paycode-box {
    position: relative;
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
    background: #fafafa;
    box-sizing: border-box;
}

.paycode-box input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.paycode-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px dashed #d0d0d0;
    border-radius: 6px;
    box-sizing: border-box;
    color: #bbb;
    background: #fff;
}

.paycode-empty .layui-icon {
    font-size: 36px;
    color: #c8c8c8;
    font-weight: 300;
}

.paycode-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-sizing: border-box;
}

.paycode-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.15s;
}

.paycode-box:hover .paycode-tip {
    opacity: 1;
}

.paycode-box.has-image .paycode-empty {
    display: none;
}

.paycode-caption {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

/* 个人信息表单对齐 */
.profile-form {
    max-width: none;
    width: 100%;
}

.profile-form .layui-form-label {
    width: 90px;
    padding-left: 0;
}

.profile-form .layui-input-block {
    margin-left: 110px;
}

@media (max-width: 768px) {
    .profile-form .layui-form-label {
        width: auto;
        float: none;
        display: block;
        text-align: left;
        padding: 0 0 8px;
    }
    .profile-form .layui-input-block {
        margin-left: 0;
    }
}

/* 多图上传（完成截图等） */
.multi-img-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    text-align: left;
}

.multi-img-native {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.multi-img-list {
    display: contents;
}

.multi-img-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
    flex-shrink: 0;
}

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

.multi-img-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    line-height: 20px;
    padding: 0;
    font-size: 14px;
}

.multi-img-add {
    width: 100px;
    height: 100px;
    border: 1px dashed #d0d0d0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: #c8c8c8;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
}

.multi-img-add .layui-icon {
    font-size: 32px;
}

.multi-img-add:hover {
    border-color: #009688;
    color: #009688;
}

.multi-img-upload.is-full .multi-img-add {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.form-control-plaintext {
    padding: 9px 0;
    color: #333;
}

.wallet-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, #1E9FFF, #009688);
    color: #fff;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 15px;
}

.wallet-overview .balance {
    font-size: 32px;
    font-weight: 600;
    margin: 8px 0;
}

.hall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.hall-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hall-stats .pill {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 13px;
    color: #666;
}

.hall-stats .pill strong {
    color: #009688;
    margin-left: 4px;
}

/* 筛选 Tab（管理端 / 代练端共用默认：按内容宽度，不拉伸铺满） */
.order-list-card > .layui-card-header.order-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    height: auto;
    line-height: normal;
    padding: 0;
    background: #fff;
    overflow: visible;
}

.order-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

.order-tab {
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.order-tab:last-child {
    border-right: none;
}

.order-tab.active {
    color: #009688;
    font-weight: 600;
    border-bottom-color: #009688;
    background: transparent;
}

.order-tab:hover {
    color: #009688;
}

/* 仅代练「我的订单」：标签均分且列表滚动时固定 */
.practitioner-app.page-my-orders .order-list-card > .layui-card-header.order-tabs {
    overflow: hidden;
}

.practitioner-app.page-my-orders .order-tabs {
    width: 100%;
    overflow: hidden;
}

.practitioner-app.page-my-orders .order-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
}

.hall-stats .pill.highlight {
    background: #e8f8f5;
    color: #009688;
    border-color: #009688;
    font-weight: 600;
}

.hall-stats .pill i {
    margin-right: 4px;
}

.dashboard-actions .action-btn.has-badge {
    color: #009688;
    border-color: #009688;
}

.dashboard-actions .action-btn i {
    font-size: 1.2rem;
    margin-right: 5px;
}

.mobile-order-title .order-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.mobile-order-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

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

.order-badges .order-code-text {
    font-size: 12px;
    color: #888;
    line-height: 20px;
}

.order-badges .order-code-copy {
    font-size: 12px;
    color: #888;
    cursor: pointer;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 20px;
}

.order-badges .order-code-copy:hover {
    color: #009688;
}

.order-badges .badge,
.mobile-order-footer .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
    border: none;
    color: #fff;
}

.mobile-order-footer .footer-left,
.mobile-order-footer .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-order-footer .footer-right {
    margin-left: auto;
    justify-content: flex-end;
    max-width: 72%;
}

.mobile-order-footer .order-code-copy {
    font-size: 12px;
    color: #888;
    cursor: pointer;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-order-footer .order-code-copy:hover {
    color: #009688;
}

.order-time {
    color: #999;
    font-size: 12px;
}

.order-time i {
    margin-right: 4px;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.no-orders .empty-icon {
    font-size: 48px;
    color: #ddd;
}

.no-orders p {
    margin: 10px 0 15px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.refresh-btn:hover {
    background: #00897b;
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.5);
}

.wallet-balance {
    flex: 1;
    min-width: 200px;
    padding: 10px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.85;
}

.wallet-stats {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wallet-stats .stat-item {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.wallet-stats .stat-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.wallet-stats .stat-details {
    display: flex;
    flex-direction: column;
}

.wallet-stats .stat-item.income .stat-icon {
    color: #5FB878;
}

.wallet-stats .stat-item.expense .stat-icon {
    color: #FF5722;
}

.wallet-stats .stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.wallet-stats .stat-label {
    font-size: 12px;
    opacity: 0.85;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.qrcode-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.qrcode-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
}

.qrcode-image {
    display: block;
    width: 160px;
    height: 160px;
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    background: #fafafa;
}

.image-large {
    display: block;
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    border-radius: 2px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    margin-bottom: 8px;
}

.qrcode-preview {
    margin-bottom: 10px;
}

.qrcode-label {
    text-align: center;
    padding: 6px;
    font-size: 13px;
    background: #f7f7f7;
    border-top: 1px solid #eee;
}

.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 24px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.qrcode-item:hover .qrcode-overlay {
    opacity: 1;
}

.qrcode-actions {
    text-align: center;
}

.qrcode-actions p {
    margin-bottom: 12px;
    color: #666;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #d9d9d9;
}

.empty-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.empty-qrcode i {
    font-size: 4rem;
    color: #d9d9d9;
    margin-bottom: 12px;
}

.empty-qrcode p {
    margin-bottom: 16px;
    color: #666;
}

.mobile-nav-toggle {
    display: none;
    position: absolute;
    left: 10px;
    top: 0;
    width: 50px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    color: #fff;
    font-size: 22px;
    z-index: 1002;
    text-decoration: none;
}

.mobile-nav-toggle:hover {
    color: #009688;
}

.mobile-nav-mask {
    display: none;
}

@media (max-width: 768px) {
    .welcome-info {
        flex-direction: column;
        gap: 5px;
    }

    .hall-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hall-stats {
        width: 100%;
        overflow-x: auto;
    }

    .wallet-overview {
        flex-direction: column;
    }

    .wallet-balance {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-hide-sm {
        display: none !important;
    }

    .layui-layout-admin .layui-logo {
        width: auto !important;
        padding: 0 15px 0 55px !important;
        font-size: 14px !important;
        left: 0 !important;
    }

    .layui-side {
        display: block !important;
        left: -220px !important;
        z-index: 1001;
        transition: left 0.25s ease;
        top: 0;
        padding-top: 60px;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    }

    .mobile-nav-open .layui-side {
        left: 0 !important;
    }

    .mobile-nav-mask {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1000;
    }

    .mobile-nav-open .mobile-nav-mask {
        display: block;
    }

    .layui-body,
    .layui-footer,
    .layui-layout-admin .layui-header .layui-layout-left {
        left: 0 !important;
    }

    .layui-body {
        padding: 12px;
    }

    .layui-header .layui-nav .layui-nav-item {
        line-height: 60px;
    }

    .page-title {
        font-size: 16px;
    }

    /* 代练员手机端：与全局图标侧栏一致 */
    .practitioner-app .layui-body {
        left: 56px !important;
        padding: 12px;
    }

    .practitioner-app.page-home .layui-body,
    .practitioner-app.page-profile .layui-body,
    .practitioner-app.page-orders .layui-body {
        padding: 0 !important;
    }

    .practitioner-app .mobile-nav-toggle,
    .practitioner-app .mobile-nav-mask {
        display: none !important;
    }
}

/* ===== 代练员首页：对齐个人中心参考图，PC 左右铺满 ===== */
.page-home .layui-body {
    padding: 0 !important;
    background: #f5f5f5;
}

.practitioner-app.page-home .layui-body {
    padding: 0 !important;
}

/* 顶部栏：深色 */
.practitioner-app .layui-header {
    background-color: #23262E !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.practitioner-app .layui-header .layui-nav .layui-nav-item > a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.practitioner-app .layui-layout-admin .layui-logo {
    color: #fff !important;
    background: transparent !important;
}

.practitioner-app .layui-body {
    width: auto !important;
    right: 0 !important;
    left: 56px !important;
    box-sizing: border-box;
    padding: 12px;
}

.practitioner-app.page-profile .layui-body,
.practitioner-app.page-orders .layui-body {
    padding: 0 !important;
    background: #fff !important;
}

/* 代练端始终图标侧栏，内容区铺满 */
.practitioner-app .layui-side,
.practitioner-app .layui-side-scroll,
.practitioner-app .layui-nav-tree {
    width: 56px !important;
}

.practitioner-app .layui-side {
    left: 0 !important;
    top: 0 !important;
    padding-top: 0 !important;
    height: 100% !important;
    z-index: 1003;
    box-shadow: none;
}

.practitioner-app .layui-header {
    left: 56px !important;
    width: calc(100% - 56px) !important;
}

.practitioner-app .layui-layout-admin .layui-logo {
    left: 0 !important;
    padding-left: 15px !important;
    width: auto !important;
}

.practitioner-app .layui-side .nav-text {
    display: none;
}

.practitioner-app .layui-side .layui-nav-tree .layui-nav-item > a {
    padding: 0 !important;
    text-align: center;
    height: 52px;
    line-height: 52px;
}

.practitioner-app .layui-side .layui-nav-tree .layui-nav-item > a .layui-icon {
    margin: 0 !important;
    font-size: 20px;
    display: inline-block;
}

.practitioner-app .mobile-nav-toggle,
.practitioner-app .mobile-nav-mask {
    display: none !important;
}

.practitioner-app .layui-body > .layui-card,
.practitioner-app .layui-body > .order-list-card,
.practitioner-app .layui-body > .page-title,
.practitioner-app .layui-body > .card-list,
.practitioner-app .layui-body > .mobile-order-list,
.practitioner-app .layui-body > .prd-page {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.practitioner-app .order-list-card,
.practitioner-app .profile-form,
.practitioner-app .layui-card {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.practitioner-app .layui-side,
.practitioner-app .layui-side-scroll,
.practitioner-app .layui-nav-tree,
.practitioner-app .layui-side .layui-nav {
    background-color: #23262E !important;
}

.me-page {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: calc(100vh - 60px);
    background: #f5f5f5;
    box-sizing: border-box;
}

.me-header {
    background: #23262E;
    color: #fff;
    padding: 28px 16px 48px;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    box-sizing: border-box;
}

.me-user {
    text-align: center;
    padding-bottom: 8px;
}

.me-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.me-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.me-username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.me-user-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.me-sheet {
    margin: -28px 0 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 1;
    min-height: 420px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 个人数据板块 */
.me-data-card {
    padding: 14px 12px 8px;
}

.me-data-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    overflow: hidden;
    width: 100%;
}

.me-data-filter {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    background: #fff;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.me-data-filter.active {
    background: #e8f4ff;
    border-color: #91caff;
    color: #1677ff;
}

.me-modal-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 19891014;
}

.me-modal-mask.show {
    display: block;
}

.me-modal {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 19891015;
    box-shadow: 0 -8px 28px rgba(0,0,0,0.12);
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    max-height: 85vh;
    pointer-events: none;
    visibility: hidden;
}

.me-modal.show {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.me-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 8px;
}

.me-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.me-modal-close {
    color: #999;
    font-size: 18px;
    text-decoration: none;
    line-height: 1;
}

.me-modal-body {
    padding: 8px 18px 10px;
}

.me-modal-field {
    margin-bottom: 16px;
}

.me-modal-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.me-modal-field .required {
    color: #e74c3c;
}

.me-modal-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    background: #fff;
}

.me-modal-input:focus {
    border-color: #1db08e;
}

.me-modal-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.me-modal-footer {
    display: flex;
    gap: 12px;
    padding: 8px 18px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.me-modal-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

.me-modal-btn.cancel {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #333;
}

.me-modal-btn.confirm {
    background: #1db08e;
    color: #fff;
}

.me-data-refresh {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f4ff;
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.me-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: transparent;
    border: 0 none !important;
    border-radius: 0;
    overflow: visible;
    gap: 0;
}

.me-data-item {
    text-align: center;
    padding: 14px 8px;
    border: 0 none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.me-data-item:nth-child(n+4) {
    background: transparent !important;
}

.me-data-num {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    word-break: break-all;
}

.me-data-label {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.me-block {
    padding: 16px 16px 8px;
    border: none !important;
}

.me-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.me-block-head a {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: none;
}

.me-block-head a .layui-icon {
    font-size: 12px;
}

.me-order-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 8px;
    border: none !important;
    gap: 0;
}

.me-order-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 6px 0 12px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.me-order-icon {
    position: relative;
    height: 36px;
    line-height: 36px;
    font-size: 28px;
    color: #333;
    margin-bottom: 6px;
}

.me-order-icon em {
    position: absolute;
    top: -2px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 16px;
}

.me-order-item span {
    display: block;
    font-size: 13px;
    color: #333;
}

.me-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.me-menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 16px 8px;
    text-decoration: none;
    color: #333;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

.me-menu-item:nth-child(4n) {
    border-right: none;
}

.me-menu-item > .layui-icon {
    font-size: 30px;
    margin-bottom: 10px;
    line-height: 1;
}

.me-menu-item span {
    font-size: 13px;
    color: #333;
}

.me-menu-item em {
    position: absolute;
    top: 12px;
    right: 18%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 16px;
    text-align: center;
}

.me-menu-item .c-teal { color: #009688; }
.me-menu-item .c-blue { color: #1E9FFF; }
.me-menu-item .c-orange { color: #FF9800; }
.me-menu-item .c-purple { color: #9b59b6; }
.me-menu-item .c-pink { color: #ec407a; }
.me-menu-item .c-yellow { color: #f5a623; }
.me-menu-item .c-dark { color: #555; }

.me-menu-placeholder {
    cursor: default;
}

.me-placeholder-text {
    font-size: 12px !important;
    color: #bbb !important;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 769px) {
    .me-header {
        padding: 16px 24px 56px;
    }

    .me-sheet {
        border-radius: 20px 20px 0 0;
    }

    .me-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .me-menu-item {
        min-height: 120px;
    }

    .me-avatar {
        width: 84px;
        height: 84px;
    }
}

@media (max-width: 768px) {
    .me-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== 我的钱包（参考图） ========== */
.practitioner-app.page-wallet .layui-body {
    padding: 0 !important;
    background: #fff;
}

.wallet-page {
    width: 100%;
    min-height: calc(100vh - 60px);
    background: #fff;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.wallet-hero {
    background: #2f3542;
    color: #fff;
    padding: 20px 16px 28px;
    flex-shrink: 0;
}

.wallet-hero-title {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
}

.wallet-hero-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.wallet-hero-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-hero-label .layui-icon {
    cursor: pointer;
    font-size: 16px;
}

.wallet-hero-amount {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.wallet-apply-btn {
    border: none;
    background: #fff;
    color: #2f3542;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.wallet-apply-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wallet-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.wallet-hero-stat .num {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wallet-hero-stat .label {
    font-size: 11px;
    opacity: 0.85;
    line-height: 1.3;
}

.wallet-sheet {
    margin: -12px 0 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 8px 0 16px;
    min-height: 320px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.wallet-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
}

.wallet-tab {
    flex: 0 0 auto;
    padding: 12px 14px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    white-space: nowrap;
}

.wallet-tab.active {
    color: #2f3542;
    font-weight: 600;
}

.wallet-tab.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: #2f3542;
    border-radius: 1px;
}

.wallet-list {
    padding: 4px 0;
    flex: 1;
}

.wallet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.wallet-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    background: transparent;
}

.wallet-item-icon .layui-icon {
    font-size: 20px;
    opacity: 0.35;
}

.wallet-item-icon.income {
    background: transparent;
    color: #666;
}

.wallet-item-icon.expense {
    background: transparent;
    color: #666;
}

.wallet-item-icon.settling {
    background: transparent;
    color: #666;
}

.wallet-item-icon.reject {
    background: transparent;
    color: #999;
}

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

.wallet-item-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-all;
}

.wallet-item-time {
    font-size: 12px;
    color: #999;
}

.wallet-item-status {
    margin-left: 8px;
    color: #666;
}

.wallet-item-extra {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.wallet-item-amount {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wallet-item-amount.income {
    color: #ff7043;
}

.wallet-item-amount.expense {
    color: #333;
}

.wallet-item-amount.neutral {
    color: #333;
}

.wallet-empty {
    text-align: center;
    padding: 48px 16px;
    color: #999;
    font-size: 14px;
}

.wallet-empty .amount {
    color: #ff5722;
}

.wallet-apply-form {
    padding: 20px 24px 16px;
    box-sizing: border-box;
}

.wallet-apply-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.wallet-apply-label {
    width: 72px;
    flex-shrink: 0;
    text-align: right;
    color: #666;
    font-size: 14px;
    line-height: 38px;
}

.wallet-apply-field {
    flex: 1;
    min-width: 0;
    line-height: 38px;
    font-size: 14px;
}

.wallet-apply-field .layui-input {
    width: 100%;
    box-sizing: border-box;
}

.wallet-apply-field.amount {
    color: #ff5722;
    font-weight: 600;
    font-size: 16px;
}

.wallet-apply-actions {
    text-align: center;
    padding-top: 8px;
    margin-bottom: 4px;
}

/* 审核结算弹窗 */
.settlement-modal-form {
    padding: 20px 24px 16px;
    box-sizing: border-box;
}

.settlement-modal-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.settlement-modal-row > label {
    width: 72px;
    flex-shrink: 0;
    text-align: right;
    color: #666;
    font-size: 14px;
    line-height: 38px;
}

.settlement-modal-field {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 38px;
}

.settlement-modal-field .layui-input,
.settlement-modal-field .layui-textarea {
    width: 100%;
    box-sizing: border-box;
}

.settlement-modal-field.amount {
    color: #ff5722;
    font-weight: 600;
    font-size: 18px;
}

.settlement-modal-actions {
    text-align: center;
    padding-top: 4px;
}

.settle-qr-item {
    display: inline-block;
    text-align: center;
    margin-right: 12px;
    vertical-align: top;
}

.settle-qr-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    display: block;
}

.settle-qr-item div {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .wallet-hero {
        padding: 24px 24px 32px;
    }

    .wallet-sheet {
        border-radius: 16px 16px 0 0;
        margin: -12px 0 0;
    }

    .wallet-page {
        padding-bottom: 0;
    }
}

/* ========== 代练员详情 ========== */
.pd-page {
    max-width: 100%;
}

.pd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.pd-toolbar-actions {
    display: flex;
    gap: 8px;
}

.pd-top {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 16px;
}

.pd-profile {
    width: 320px;
    flex: 0 0 320px;
    box-sizing: border-box;
}

.pd-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
}

.pd-right > .pd-card {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    padding: 18px 20px;
    box-sizing: border-box;
}

.pd-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.pd-profile-head {
    text-align: center;
    margin-bottom: 18px;
}

.pd-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid #e8e8e8;
}

.pd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.pd-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pd-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-info-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.5;
}

.pd-info-row .k {
    width: 80px;
    flex-shrink: 0;
    color: #999;
}

.pd-info-row .v {
    flex: 1;
    color: #333;
    word-break: break-all;
}

.pd-bond-amount {
    color: #ff5722;
    font-weight: 600;
}

.pd-qrcode-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.pd-qrcode-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.pd-qrcode-label {
    color: #999;
    min-width: 42px;
}

.pd-qrcode-toggle {
    color: #1E9FFF;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.pd-qrcode-toggle:hover {
    text-decoration: underline;
}

.pd-qrcode-preview {
    padding: 16px;
    text-align: center;
}

.pd-qrcode-preview img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.pd-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
    align-content: center;
}

.pd-overview-item {
    text-align: center;
    padding: 12px 8px;
    background: #fafafa;
    border-radius: 4px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-overview-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 22px;
}

.pd-overview-icon.processing { color: #1E9FFF; background: transparent; }
.pd-overview-icon.reviewing { color: #FFB800; background: transparent; }
.pd-overview-icon.success { color: #5FB878; background: transparent; }
.pd-overview-icon.withdraw { color: #FF5722; background: transparent; }

.pd-overview-num {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 2px;
}

.pd-overview-amount {
    font-size: 13px;
    font-weight: 600;
    color: #ff5722;
    line-height: 1.3;
    margin-bottom: 4px;
}

.pd-overview-label {
    font-size: 12px;
    color: #999;
}

.pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
    align-content: center;
}

.pd-stat-item {
    text-align: center;
    padding: 14px 8px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    word-break: break-all;
}

.pd-stat-num.amount {
    color: #ff5722;
}

.pd-stat-label {
    font-size: 12px;
    color: #999;
}

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

.pd-filter .layui-input {
    width: 140px;
}

.pd-orders {
    padding: 0;
    overflow: hidden;
}

.pd-orders .table-scroll,
.pd-orders .layui-table {
    margin: 0;
}

.pd-orders .table-scroll {
    padding: 0 12px 8px;
}

.pd-orders .layui-laypage {
    padding: 0 12px 12px;
}

.pd-detail-tabs {
    align-items: center !important;
}

.pd-tab-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .pd-top {
        flex-direction: column;
    }

    .pd-profile {
        width: 100%;
        flex: none;
    }

    .pd-overview-grid,
    .pd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-tab-right {
        width: 100%;
        margin-left: 0;
        padding: 8px 12px 12px;
    }
}

/* 订单详情页 */
.od-page {
    width: 100%;
    max-width: none;
}

.od-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.od-toolbar-actions {
    display: flex;
    gap: 8px;
}

.od-card {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.od-card-title {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.od-flow-wrap {
    position: relative;
    padding: 28px 24px 20px;
    overflow-x: auto;
}

.od-flow {
    display: flex;
    min-width: 720px;
    padding-right: 110px;
}

.od-flow-step {
    flex: 1;
    min-width: 0;
}

.od-flow-node {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.od-flow-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    background: #fff;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
    flex-shrink: 0;
}

.od-flow-step.is-done .od-flow-dot {
    border-color: #1E9FFF;
    background: #1E9FFF;
    color: #fff;
}

.od-flow-line {
    flex: 1;
    height: 2px;
    background: #e8e8e8;
    margin: 0 6px;
}

.od-flow-step.is-done .od-flow-line {
    background: #1E9FFF;
}

.od-flow-meta {
    padding-right: 12px;
}

.od-flow-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.od-flow-time,
.od-flow-actor {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    word-break: break-all;
}

.od-stamp {
    position: absolute;
    right: 28px;
    top: 36px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-18deg);
    opacity: 0.85;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.75);
}

.od-stamp span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 4px;
}

.od-stamp-success { color: #5FB878; }
.od-stamp-failed { color: #FF5722; }
.od-stamp-processing { color: #1E9FFF; }
.od-stamp-reviewing { color: #FFB800; }
.od-stamp-pending { color: #999; }

.od-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 20px 16px;
}

.od-info-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 8px;
    min-width: 0;
}

.od-info-item.od-info-full {
    grid-column: 1 / -1;
}

.od-info-item .k {
    width: 88px;
    flex-shrink: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.6;
}

.od-info-item .v {
    flex: 1;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.od-info-item .v.pre {
    white-space: pre-wrap;
}

.od-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.od-image-list a {
    display: block;
    width: 96px;
    height: 96px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

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

@media (max-width: 768px) {
    .od-info-grid {
        grid-template-columns: 1fr;
    }

    .od-stamp {
        position: static;
        margin: 8px auto 0;
        transform: rotate(-12deg);
    }

    .od-flow {
        padding-right: 0;
    }
}

/* 审核结算弹窗 */
.review-settle-layer {
    padding: 16px 20px 8px;
}

.review-settle-modal .rs-field {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}

.review-settle-modal .rs-label {
    width: 72px;
    flex-shrink: 0;
    line-height: 38px;
    color: #666;
    font-size: 13px;
    text-align: right;
    padding-right: 12px;
    box-sizing: border-box;
}

.review-settle-modal .rs-control {
    flex: 1;
    min-width: 0;
}

.review-settle-modal .rs-control .layui-input,
.review-settle-modal .rs-control .layui-textarea {
    width: 100%;
    display: block;
    margin: 0;
    box-sizing: border-box;
}

.review-settle-modal .rs-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.review-settle-modal .rs-tabs {
    display: flex;
    gap: 0;
    margin: 4px 0 14px;
    border-bottom: 1px solid #eee;
}

.review-settle-modal .rs-tab {
    flex: 1;
    height: 38px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.review-settle-modal .rs-tab.active {
    color: #009688;
    font-weight: 600;
}

.review-settle-modal .rs-tab.active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -1px;
    height: 2px;
    background: #009688;
}

.review-settle-modal .rs-tab-panel {
    display: none;
}

.review-settle-modal .rs-tab-panel.active {
    display: block;
}

.review-settle-summary {
    margin: 4px 0 8px 72px;
    color: #666;
    font-size: 13px;
}

.review-settle-summary b {
    color: #FF5722;
    font-size: 16px;
}

.settle-formula {
    color: #333 !important;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.7;
}

/* 数据看板 */
.dd-page {
    width: 100%;
}

.dd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dd-title {
    margin: 0;
}

.dd-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.dd-range-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
}

.dd-range-tab {
    border: none;
    background: transparent;
    color: #666;
    padding: 0 14px;
    height: 34px;
    line-height: 34px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    border-right: 1px solid #eee;
    flex-shrink: 0;
    white-space: nowrap;
}

.dd-range-tab:last-child {
    border-right: none;
}

.dd-range-tab.active,
.dd-range-tab:hover {
    color: #009688;
    background: #f2fffc;
}

.dd-custom-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dd-custom-dates .layui-input {
    width: 140px;
    height: 34px;
}

.dd-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.dd-kpi {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 14px 16px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dd-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.dd-kpi-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.dd-kpi-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    word-break: break-all;
}

.dd-kpi-value small {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-left: 2px;
}

.dd-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 18px;
}

.dd-kpi-icon.blue { background: #1E9FFF; }
.dd-kpi-icon.cyan { background: #00bcd4; }
.dd-kpi-icon.green { background: #5FB878; }
.dd-kpi-icon.orange { background: #E6A23C; }
.dd-kpi-icon.teal { background: #009688; }
.dd-kpi-icon.yellow { background: #FFB800; }
.dd-kpi-icon.purple { background: #7e57c2; }
.dd-kpi-icon.red { background: #FF5722; }

.dd-compare {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.dd-compare em {
    font-style: normal;
    margin-left: 4px;
}

.dd-compare.up em { color: #5FB878; }
.dd-compare.down em { color: #FF5722; }
.dd-compare.flat em { color: #999; }

.dd-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

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

.dd-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    min-width: 0;
}

.dd-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 0;
}

.dd-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.dd-card-extra {
    font-size: 12px;
    color: #999;
}

.dd-card-body {
    padding: 12px 16px 16px;
}

.dd-legend {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #666;
}

.dd-legend .dot,
.dd-type-name .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.dd-legend .dot.blue,
.dd-type-name .dot.blue { background: #2f6bff; }
.dd-legend .dot.teal,
.dd-type-name .dot.teal { background: #009688; }
.dd-legend .dot.orange,
.dd-tip-row .dot.orange { background: #ff8a3d; }
.dd-tip-row .dot.blue { background: #2f6bff; }

.dd-chart-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dd-chart-total {
    font-size: 12px;
    color: #666;
}

.dd-trend-chart {
    position: relative;
    width: 100%;
    min-height: 280px;
}

.dd-svg {
    width: 100%;
    height: 260px;
    display: block;
}

.dd-svg-smooth {
    width: 100%;
    height: 280px;
    display: block;
}

.dd-chart-axis {
    fill: #999;
    font-size: 11px;
}

.dd-chart-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(32, 32, 32, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dd-tip-date {
    margin-bottom: 4px;
    opacity: 0.85;
}

.dd-tip-row {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dd-tip-row b {
    margin-left: auto;
    padding-left: 12px;
    font-weight: 600;
}

.dd-tip-row .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 2px;
}

.dd-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 13px;
}

.dd-funnel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.dd-funnel-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dd-funnel-bar {
    min-width: 90px;
    height: 34px;
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 12px;
    box-sizing: border-box;
}

.dd-funnel-rate {
    width: 72px;
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}

.dd-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
}

.dd-bar-row {
    display: grid;
    grid-template-columns: 72px 1fr 88px;
    gap: 8px;
    align-items: center;
}

.dd-bar-label {
    font-size: 12px;
    color: #666;
}

.dd-bar-track {
    height: 10px;
    background: #f2f3f5;
    border-radius: 999px;
    overflow: hidden;
}

.dd-bar-fill {
    height: 100%;
    background: #009688;
    border-radius: 999px;
}

.dd-bar-meta {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.dd-type-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dd-donut-num {
    font-size: 22px;
    font-weight: 700;
    fill: #333;
}

.dd-donut-sub {
    font-size: 12px;
    fill: #999;
}

.dd-type-list {
    flex: 1;
    min-width: 0;
}

.dd-type-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.dd-type-item:last-child {
    border-bottom: none;
}

.dd-type-name {
    color: #666;
}

.dd-type-val {
    color: #333;
    font-weight: 500;
}

.dd-rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dd-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dd-rank-no {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f2f3f5;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dd-rank-no.top {
    background: #009688;
    color: #fff;
}

.dd-rank-info {
    flex: 1;
    min-width: 0;
}

.dd-rank-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dd-rank-orders {
    margin-left: 8px;
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.dd-rank-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.dd-rank-amount {
    color: #FF5722;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.dd-tab-card {
    margin-top: 0;
}

.dd-tab-card > .layui-card-body {
    background: #f5f7f9;
    padding: 12px;
}

.dd-tab-card .dd-card {
    background: #fff;
}

.dd-more-link {
    margin-top: 12px;
    text-align: right;
}

.dd-more-link a {
    color: #009688;
    font-size: 13px;
    text-decoration: none;
}

.dd-rank-code {
    margin-left: 8px;
    color: #999;
    font-size: 12px;
}

.dd-tab-card .dd-main-grid,
.dd-tab-card .dd-sub-grid {
    margin-bottom: 12px;
}

.dd-tab-card .dd-sub-grid {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .dd-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dd-main-grid,
    .dd-sub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dd-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dd-type-body {
        flex-direction: column;
    }

    .dd-bar-row {
        grid-template-columns: 64px 1fr;
    }

    .dd-bar-meta {
        grid-column: 2;
        text-align: left;
    }
}

/* 代练端数据看板：PC 端左右铺满 */
.prd-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-bottom: 20px;
    box-sizing: border-box;
}

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

.prd-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    white-space: nowrap;
}

.prd-range {
    display: inline-flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.prd-range a {
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    border-right: 1px solid #eee;
    flex-shrink: 0;
    white-space: nowrap;
}

.prd-range a:last-child { border-right: none; }
.prd-range a.active,
.prd-range a:hover {
    color: #009688;
    background: #f2fffc;
}

.prd-todo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    background: #23262E;
    border-radius: 10px;
    padding: 16px 10px;
    color: #fff;
    margin-bottom: 12px;
}

.prd-todo-item {
    text-align: center;
}

.prd-todo-num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.prd-todo-label {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.prd-section {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
}

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

.prd-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.prd-section-extra {
    font-size: 12px;
    color: #999;
}

.prd-toggle {
    display: inline-flex;
    background: #f5f7f9;
    border-radius: 999px;
    padding: 2px;
}

.prd-toggle button {
    border: none;
    background: transparent;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.prd-toggle button.active {
    background: #fff;
    color: #009688;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.prd-source {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.prd-source-chart {
    flex: 0 0 auto;
    line-height: 0;
}

.prd-source-chart svg {
    width: 120px;
    height: 120px;
    display: block;
}

.prd-source-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prd-source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.prd-source-name {
    color: #666;
}

.prd-source-name .dot,
.prd-compare-row .dot,
.prd-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.prd-source-name .dot.green,
.prd-compare-row .dot.green,
.prd-legend .dot.green { background: #5FB878; }
.prd-source-name .dot.blue,
.prd-compare-row .dot.blue,
.prd-legend .dot.blue { background: #1E9FFF; }

.prd-source-val b {
    color: #333;
    margin-right: 8px;
}

.prd-source-val em {
    font-style: normal;
    color: #999;
}

.prd-donut-num {
    font-size: 20px;
    font-weight: 700;
    fill: #333;
}

.prd-donut-sub {
    font-size: 12px;
    fill: #999;
}

.prd-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f3f7ff;
    border-radius: 8px;
    padding: 10px;
}

.prd-metric {
    text-align: center;
    padding: 8px 4px;
}

.prd-metric.highlight {
    background: #fff;
    border-radius: 8px;
}

.prd-metric-num {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

.prd-metric-label {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.prd-compare-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

.prd-compare-row .up { color: #FF5722; }
.prd-compare-row .down { color: #5FB878; }

.prd-deduct {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.prd-deduct b {
    color: #333;
    font-weight: 600;
}

.prd-legend {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.prd-svg {
    width: 100%;
    height: 180px;
    display: block;
}

.prd-axis {
    fill: #999;
    font-size: 10px;
}

.prd-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 13px;
}

@media (max-width: 560px) {
    .prd-todo-card {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 14px 4px;
    }

    .prd-todo-num { font-size: 16px; }
    .prd-todo-label { font-size: 11px; }

    /* 来源：饼图与数据始终同一行 */
    .prd-source {
        flex-direction: row;
        gap: 8px;
    }

    .prd-source-chart svg {
        width: 96px;
        height: 96px;
    }

    .prd-source-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .prd-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}


