
:root {
    --primary: #2A9D8F;
    --primary-dark: #21867a;
    --secondary: #E9C46A;
    --danger: #E76F51;
    --success: #52B788;
    --warning: #F4A261;
    --bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --text: #264653;
    --text-light: #6B7B8C;
    --border: #E2E8F0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

/* 恢复可选择的元素：聊天输入框、聊天消息气泡、所有表单控件 */
input, textarea, select, [contenteditable="true"] { user-select: text; -webkit-user-select: text; cursor: text; }
.chat-msg .bubble, .chat-msg .bubble * { user-select: text; -webkit-user-select: text; }
.chat-input-bar input, .chat-input-bar textarea { user-select: text; -webkit-user-select: text; }
.md-body, .md-body * { user-select: text; -webkit-user-select: text; }

html, body {
    font-family: var(--app-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    font-size: var(--app-font-size, 14px);
    font-weight: var(--app-font-weight, 400);
    line-height: 1.5;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 页面基础样式 - 由JS控制显示 */
.page {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    padding-bottom: 80px;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}
.header .back-btn {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.2); border-radius: 50%; cursor: pointer; font-size: 18px;
    border: none; color: white;
}
.header h1 { font-size: 17px; font-weight: 600; flex: 1; text-align: center; margin: 0 8px; }
.header .right-btn { min-width: 32px; text-align: center; font-size: 13px; cursor: pointer; }

/* 底部导航 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 12px;
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 0;
}
.tab-item .icon { font-size: 22px; line-height: 1; }
.tab-item.active { color: var(--primary); }

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    margin: 12px 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.card-title {
    font-size: 16px; font-weight: 600; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.card-title .icon { color: var(--primary); font-size: 18px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: var(--radius-sm);
    border: none; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; gap: 6px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; box-shadow: 0 4px 12px rgba(42,157,143,0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-block { width: 100%; padding: 14px; font-size: 15px; border-radius: var(--radius); }
.btn-outline {
    background: transparent; border: 1px solid var(--primary); color: var(--primary);
}
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* 列表项 */
.list-item {
    display: flex; align-items: center; padding: 14px 16px;
    background: white; border-bottom: 1px solid var(--border);
    gap: 12px; cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item .avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    background: var(--bg); flex-shrink: 0;
}
.list-item .content { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.list-item .desc { color: var(--text-light); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .extra { color: var(--text-light); font-size: 12px; text-align: right; flex-shrink: 0; }
.list-item .arrow { color: var(--text-light); font-size: 16px; }

/* 标签 */
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 500;
}
.tag-primary { background: rgba(42,157,143,0.1); color: var(--primary); }
.tag-warning { background: rgba(244,162,97,0.1); color: var(--warning); }
.tag-danger { background: rgba(231,111,81,0.1); color: var(--danger); }
.tag-success { background: rgba(82,183,136,0.1); color: var(--success); }
.tag-outline { background: transparent; color: var(--text-light); border: 1px solid var(--border); }

/* 搜索三件套 · 过滤标签行：「全部」居首，其余依次横排，摆不下自动另起一行；
   词条始终保持横排（white-space:nowrap 防止文字被压成竖排，flex-shrink:0 防止词条被切断变形） */
.toolbar-tags, #admin-nurse-filter-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.toolbar-tags .tag, #admin-nurse-filter-tags .tag {
    flex-shrink: 0; white-space: nowrap; word-break: keep-all;
    padding: 4px 12px; font-size: 12px;
}

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; background: white;
    transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { min-height: 80px; resize: vertical; }

/* 网格 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* 服务卡片 */
.service-card {
    background: white; border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s;
}
.service-card:active { transform: scale(0.98); }
.service-card .icon-wrap {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; margin-bottom: 10px;
}
.service-card .name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.service-card .price { color: var(--danger); font-weight: 600; font-size: 14px; }
.service-card .price span { font-size: 12px; color: var(--text-light); font-weight: normal; }

/* 护工卡片 */
.nurse-card {
    background: white; border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); margin-bottom: 12px;
}
.nurse-card .top {
    display: flex; gap: 12px; margin-bottom: 12px;
}
.nurse-card .avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.nurse-card .info { flex: 1; }
.nurse-card .name-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.nurse-card .name { font-size: 16px; font-weight: 600; }
.nurse-card .rating { color: var(--warning); font-size: 13px; }
.nurse-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nurse-card .meta { color: var(--text-light); font-size: 12px; }
.nurse-card .bottom {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); padding-top: 10px;
}
.nurse-card .price { color: var(--danger); font-size: 18px; font-weight: 700; }
.nurse-card .price span { font-size: 12px; color: var(--text-light); font-weight: normal; }

/* 订单卡片 */
.order-card {
    background: white; border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); margin: 12px 16px;
}
.order-card .header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.order-card .order-no { font-size: 13px; color: var(--text-light); }
.order-card .status { font-size: 13px; font-weight: 600; }
.order-card .body { display: flex; gap: 12px; margin-bottom: 12px; }
.order-card .icon-wrap {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.order-card .info { flex: 1; }
.order-card .service-name { font-weight: 600; margin-bottom: 4px; }
.order-card .detail { color: var(--text-light); font-size: 13px; line-height: 1.6; }
.order-card .footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); padding-top: 10px;
}
.order-card .amount { font-size: 16px; font-weight: 700; color: var(--danger); }
.order-card .actions { display: flex; gap: 8px; }

/* 状态颜色 */
.status-0 { color: var(--warning); }
.status-1 { color: var(--primary); }
.status-2 { color: #3B82F6; }
.status-3 { color: #8B5CF6; }
.status-4 { color: var(--success); }
.status-5 { color: var(--success); }
.status-6 { color: var(--danger); }
.status-7 { color: var(--text-light); }
.status-8 { color: var(--text-light); }

/* 搜索栏 */
.search-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: white;
    position: sticky; top: 48px; z-index: 99;
    border-bottom: 1px solid var(--border);
}
.search-bar input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 20px; font-size: 14px; outline: none;
    background: var(--bg);
}
.search-bar input:focus { border-color: var(--primary); }

/* 轮播图 */
.banner {
    margin: 12px 16px; border-radius: var(--radius); overflow: hidden;
    height: 160px; position: relative; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; color: white;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .text { position: absolute; padding: 20px; text-align: center; }
.banner .text h2 { font-size: 20px; margin-bottom: 8px; }
.banner .text p { font-size: 13px; opacity: 0.9; }

/* 快速入口 */
.quick-entry {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 16px; background: white; margin: 0 16px 12px;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.quick-item .icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
}
.quick-item .label { font-size: 12px; color: var(--text); }

/* 统计卡片 */
.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: var(--radius); padding: 20px;
    margin: 12px 16px; position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 200px; height: 200px; background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.stat-card .label { font-size: 13px; opacity: 0.9; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; }

/* 聊天（#page-chat 为 flex 列布局：头部固定 / 消息区滚动 / 表情面板+输入框固定底部） */
.chat-messages {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; padding: 16px;
    padding-bottom: 3vh; /* 距底部输入框最近距离 ≈ 对话框内容高度的 3% */
    -webkit-overflow-scrolling: touch;
}
.chat-msg {
    --avatar-size: 36px;
    display: flex; align-items: flex-start;
    gap: 5%; /* 气泡距头像的横向距离 5% */
    margin-bottom: 16px;
}
.chat-msg.self { flex-direction: row-reverse; }
.chat-msg .avatar { width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%; flex-shrink: 0; object-fit: cover; }
/* 气泡列最大宽度 = 除去左右两个头像后剩余宽度的 80%：80%*(100%-2*36px) = 80% - 57.6px */
.chat-msg .msg-body { max-width: calc(80% - 57.6px); min-width: 0; }
/* 自己发送的消息：气泡和时间整体靠右并按内容收缩 */
.chat-msg.self .msg-body { display: flex; flex-direction: column; align-items: flex-end; }
/* 气泡按内容自适应宽度（短消息只包裹字符，左右内边距=圆角半径14px），最长不超过气泡列 */
.chat-msg .bubble {
    width: fit-content; max-width: 100%;
    padding: 10px 14px; border-radius: 14px;
    font-size: 14px; line-height: 1.5; word-break: break-word;
    background: white; border: 1px solid var(--border);
    box-sizing: border-box;
}
.chat-msg.self .bubble { background: var(--primary); color: white; border: none; }
/* 图片消息：宽/高均不超过聊天窗宽度的 40%（桌面容器480px→192px，移动端 40vw） */
.chat-msg .bubble.bubble-img { padding: 4px; cursor: pointer; }
.chat-msg .bubble.bubble-img img {
    display: block; border-radius: 10px;
    max-width: min(40vw, 192px); max-height: min(40vw, 192px);
}
/* 语音消息 */
.chat-msg .voice-bubble { display: flex; align-items: center; gap: 8px; min-width: 96px; cursor: pointer; user-select: none; }
.chat-msg .voice-bubble .vicon { font-size: 18px; line-height: 1; }
.chat-msg .voice-bubble .vdur { font-size: 13px; }
/* 时间：对方消息左对齐，自己发送（气泡在右）右对齐 */
.chat-msg .time { font-size: 11px; color: var(--text-light); margin-top: 4px; text-align: left; }
.chat-msg.self .time { text-align: right; }

.chat-input-bar {
    background: white; padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px; align-items: center;
    width: 100%; max-width: 480px; margin: 0 auto;
    box-sizing: border-box; flex-shrink: 0;
}
.chat-tool-btn {
    background: transparent; border: none; font-size: 22px;
    cursor: pointer; padding: 4px; line-height: 1; flex-shrink: 0;
    -webkit-touch-callout: none; touch-action: manipulation;
}
.chat-tool-btn:active { transform: scale(0.9); }
.chat-tool-btn.active { background: var(--bg); border-radius: 8px; }
#chat-voice-btn.recording { color: var(--danger); animation: voicePulse 1s infinite; }
@keyframes voicePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.chat-input-bar input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 20px; outline: none; min-width: 0;
}
#emoji-panel { flex-shrink: 0; }
#emoji-grid span { cursor: pointer; padding: 4px; border-radius: 4px; display: inline-block; }
#emoji-grid span:hover { background: var(--bg); }

/* 录音中提示 */
#voice-rec-tip {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.45);
}
#voice-rec-tip .box {
    background: rgba(0,0,0,0.8); color: #fff; border-radius: 14px;
    padding: 24px 32px; text-align: center; font-size: 15px;
}
#voice-rec-tip .box .mic { font-size: 42px; display: block; margin-bottom: 10px; animation: voicePulse 1s infinite; }

/* 聊天图片全屏预览（二级弹窗，层级最高，确保在评论等弹窗之上） */
#chat-img-preview {
    position: fixed; inset: 0; z-index: 30000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.85); cursor: zoom-out;
}
#chat-img-preview img { max-width: 92%; max-height: 82%; border-radius: 8px; }

/* 空状态 */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 60px 20px; color: var(--text-light);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.empty-state .text { font-size: 14px; }

/* 加载动画 */
.loading {
    display: flex; align-items: center; justify-content: center; padding: 40px;
    color: var(--text-light);
}

/* 管理员面板 */
.admin-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    padding: 16px;
}
.admin-card {
    background: white; border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); text-align: center; cursor: pointer;
}
.admin-card .icon { font-size: 32px; margin-bottom: 8px; }
.admin-card .title { font-weight: 600; margin-bottom: 4px; }
.admin-card .desc { font-size: 12px; color: var(--text-light); }

/* 表格（管理后台） */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg); font-weight: 600; position: sticky; top: 0; }
.data-table tr:active { background: var(--bg); }

/* 审核状态 */
.audit-0 { color: var(--warning); }
.audit-1 { color: var(--success); }
.audit-2 { color: var(--danger); }
.audit-3 { color: var(--text-light); }

/* 浮动按钮 */
.fab {
    position: fixed; bottom: 80px; right: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 0 4px 16px rgba(42,157,143,0.4);
    cursor: pointer; z-index: 90; border: none;
}

/* 步骤条 */
.steps { display: flex; align-items: center; padding: 16px; background: white; margin: 0 16px 12px; border-radius: var(--radius); }
.step { flex: 1; text-align: center; position: relative; }
.step::after {
    content: ''; position: absolute; top: 12px; right: -50%; width: 100%; height: 2px;
    background: var(--border); z-index: 0;
}
.step:last-child::after { display: none; }
.step .dot {
    width: 24px; height: 24px; border-radius: 50%; background: var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; color: white; position: relative; z-index: 1;
}
.step.active .dot { background: var(--primary); }
.step.done .dot { background: var(--success); }
.step .label { font-size: 11px; color: var(--text-light); margin-top: 6px; }
.step.active .label { color: var(--primary); font-weight: 600; }

/* 选择器 */
.selector { display: flex; gap: 10px; flex-wrap: wrap; }
.selector-item {
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px;
    font-size: 13px; cursor: pointer; background: white;
}
.selector-item.active { border-color: var(--primary); background: rgba(42,157,143,0.1); color: var(--primary); font-weight: 500; }

/* 图片上传 */
.upload-box {
    width: 80px; height: 80px; border: 2px dashed var(--border);
    border-radius: var(--radius-sm); display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: var(--text-light);
    font-size: 12px; cursor: pointer;
}
.upload-box .icon { font-size: 24px; margin-bottom: 4px; }

/* 紧急标识 */
.urgent-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--danger); color: white;
    padding: 2px 8px; border-radius: 4px; font-size: 11px;
}

/* 价格明细 */
.price-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.price-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 600; font-size: 16px; }

/* 订单详情弹窗（用户/护工端）：与管理端一致的虚线分隔信息行 */
.order-view-row {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
    gap: 16px;
    font-size: 14px;
}
.order-view-row > span:first-child {
    color: var(--text-light);
    flex-shrink: 0;
}
.order-view-row > span:last-child {
    text-align: right;
    word-break: break-all;
    max-width: 64%;
    color: var(--text);
}
.order-view-total {
    font-weight: 700;
    font-size: 16px;
    border-bottom: none;
    margin-top: 4px;
}
.order-view-total > span:last-child { font-weight: 700; }

/* 服务类目图标选择：预览盒 + 上传加号角标 */
.st-icon-preview {
    position: relative;
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: visible;
}
.st-icon-preview #st-icon-preview-inner {
    font-size: 30px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    border-radius: 14px; overflow: hidden;
}
.st-icon-preview #st-icon-preview-inner img {
    width: 100%; height: 100%; object-fit: cover;
}
.st-icon-upload {
    position: absolute; right: -8px; bottom: -8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary); color: #fff; border: 2px solid var(--card-bg);
    font-size: 16px; line-height: 1; padding: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.st-icon-upload:active { transform: scale(.9); }

/* 响应式 */
@media (max-width: 360px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .quick-entry { grid-template-columns: repeat(3, 1fr); }
    .service-card .icon-wrap { width: 40px; height: 40px; font-size: 20px; }
}

/* ==================== Markdown 正文（今日要闻） ==================== */
.md-body { font-size: 15px; line-height: 1.8; color: var(--text); word-break: break-word; }
.md-body h1 { font-size: 21px; font-weight: 700; margin: 18px 0 10px; line-height: 1.4; }
.md-body h2 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.md-body h3 { font-size: 16px; font-weight: 600; margin: 14px 0 6px; }
.md-body h4 { font-size: 15px; font-weight: 600; margin: 12px 0 6px; }
.md-body p { margin: 8px 0; }
.md-body ul, .md-body ol { margin: 8px 0; padding-left: 22px; }
.md-body li { margin: 4px 0; }
.md-body strong { font-weight: 700; }
.md-body em { font-style: italic; }
.md-body code {
    background: rgba(0,0,0,.06); border-radius: 4px;
    padding: 1px 5px; font-size: 13px;
    font-family: Consolas, Monaco, monospace;
}
.md-body hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md-body a { color: var(--primary); text-decoration: underline; }

/* 围栏代码块 */
.md-body pre.md-code {
    position: relative; margin: 12px 0; padding: 14px 16px;
    background: #1e293b; border-radius: 10px; overflow-x: auto;
}
.md-body pre.md-code code {
    display: block; background: transparent; padding: 0;
    color: #e2e8f0; font-size: 13px; line-height: 1.7;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    white-space: pre;
}
.md-body pre.md-code[data-lang]::before {
    content: attr(data-lang);
    position: absolute; top: 6px; right: 10px;
    font-size: 11px; color: rgba(226,232,240,.55);
    font-family: inherit;
}

/* 任务清单（- [ ] / - [x]） */
.md-body ul.md-checklist { list-style: none; padding-left: 4px; }
.md-body ul.md-checklist li {
    display: flex; align-items: flex-start; gap: 8px; margin: 6px 0;
}
.md-body ul.md-checklist li .md-checkbox {
    flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px;
    border: 2px solid var(--text-light); border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; line-height: 1; color: #fff;
}
.md-body ul.md-checklist li.checked .md-checkbox {
    background: var(--primary); border-color: var(--primary);
}
.md-body ul.md-checklist li.checked > span:last-child {
    text-decoration: line-through; color: var(--text-light);
}
.md-body blockquote {
    margin: 10px 0; padding: 8px 12px;
    border-left: 4px solid var(--primary);
    background: rgba(42,157,143,.08); border-radius: 0 8px 8px 0;
    color: var(--text-light);
}
.md-body .md-table, .md-body table {
    width: 100%; border-collapse: collapse; margin: 12px 0;
    font-size: 13px; display: block; overflow-x: auto;
}

/* ==================== 全局通知铃铛 ==================== */
.bell-btn {
    position: relative; width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); cursor: pointer; font-size: 17px;
    margin-left: 8px;
}
.bell-btn:active { opacity: .6; }
/* 未读角标：微微切入铃铛右上角，泡泡紧贴数字 */
.bell-badge {
    position: absolute; top: -3px; right: -5px;
    min-width: 15px; height: 15px;
    padding: 0 3.5px; border-radius: 8px;
    background: var(--danger); color: #fff;
    font-size: 9px; font-weight: 600; line-height: 15px;
    text-align: center; font-style: normal;
    border: 1.5px solid var(--primary-dark);
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* ==================== 通用列表工具栏（搜索 + 筛选 + 排序） ==================== */
.list-toolbar {
    display: flex; gap: 8px; align-items: center;
    padding: 10px 16px; background: #fff;
    border-bottom: 1px solid var(--border);
}
.lt-search {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
    padding: 0 12px; height: 34px;
}
.lt-search i { color: var(--text-light); font-size: 13px; flex-shrink: 0; }
.lt-search input {
    flex: 1; min-width: 0; border: none; background: transparent; outline: none;
    font-size: 13px; color: var(--text); height: 100%;
}
.lt-select {
    flex-shrink: 0; height: 34px; border: 1px solid var(--border); border-radius: 18px;
    background: var(--bg); font-size: 12px; color: var(--text);
    padding: 0 8px; outline: none; max-width: 104px;
}

/* ==================== 通用业务卡片（管理列表卡片化） ==================== */
.biz-card {
    background: #fff; border-radius: 12px; padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05); border: 1px solid var(--border);
}
.biz-card .biz-head { display: flex; align-items: center; gap: 10px; }
.biz-card .biz-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--bg);
    object-fit: cover; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; font-size: 20px;
}
.biz-card .biz-name { font-size: 15px; font-weight: 600; }
.biz-card .biz-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.biz-card .biz-tags { margin-left: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.biz-card .biz-meta {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
    font-size: 12.5px; color: var(--text-light); line-height: 1.8;
}
.biz-card .biz-actions { display: flex; gap: 8px; margin-top: 12px; }
.biz-card .biz-actions .btn { flex: 1; padding: 7px 0; font-size: 13px; }

/* ==================== 通知卡片 ==================== */
.ntf-card {
    background: #fff; border-radius: 12px; padding: 14px;
    display: flex; gap: 12px; border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ntf-card.unread { border-left: 3px solid var(--primary); background: #f6fbfa; }
.ntf-icon {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; background: rgba(42,157,143,.12); color: var(--primary);
}
.ntf-icon.ntf-order { background: rgba(42,157,143,.12); color: var(--primary); }
.ntf-icon.ntf-withdraw { background: rgba(82,183,136,.14); color: var(--success); }
.ntf-icon.ntf-audit { background: rgba(244,162,97,.16); color: var(--warning); }
.ntf-icon.ntf-complaint { background: rgba(231,111,81,.14); color: var(--danger); }
.ntf-icon.ntf-system { background: rgba(107,123,140,.14); color: var(--text-light); }
.ntf-body { flex: 1; min-width: 0; }
.ntf-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ntf-card.unread .ntf-title::after {
    content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--danger); margin-left: 6px; vertical-align: middle;
}
.ntf-content { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-top: 4px; word-break: break-all; }
.ntf-time { font-size: 11.5px; color: #9aa8b6; margin-top: 6px; }
.ntf-jump {
    margin-top: 8px; border: 1px solid var(--primary); color: var(--primary);
    background: transparent; border-radius: 16px; font-size: 12.5px;
    padding: 5px 14px; cursor: pointer;
}
.ntf-jump:active { background: rgba(42,157,143,.08); }

/* ==================== 服务图标选择器 ==================== */
.st-ic {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg);
    font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; flex-shrink: 0;
    transition: all .15s ease;
}
.st-ic.active {
    border-color: var(--primary);
    background: rgba(42,157,143,.12);
    box-shadow: inset 0 0 0 1px var(--primary);
}
.st-ic:active { transform: scale(.92); }

/* ==================== 投诉图片九宫格 ==================== */
.cp-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cp-img-tile {
    position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
    background: var(--bg); border: 1px solid var(--border);
}
.cp-img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img-del {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
    border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none;
    font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.cp-img-add {
    aspect-ratio: 1/1; border-radius: 10px; border: 1.5px dashed var(--border);
    background: #fafbfc; display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: var(--text-light); font-size: 12px; cursor: pointer; gap: 4px;
}
.cp-img-add i { font-size: 22px; color: #b8c4d0; }

/* 投诉详情图片缩略图（列表卡片内） */
.cp-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cp-thumbs img {
    width: 72px; height: 72px; border-radius: 8px; object-fit: cover;
    border: 1px solid var(--border); cursor: pointer;
}
.cp-reply-box {
    margin-top: 10px; background: #f4faf8; border: 1px solid #d8eeea;
    border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6;
}
.cp-reply-box .cp-reply-title { color: var(--primary); font-weight: 600; margin-bottom: 4px; font-size: 12.5px; }

/* ==================== 开关（护工接单设置） ==================== */
.switch-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.switch-row:last-child { border-bottom: none; }
.switch-info { flex: 1; min-width: 0; }
.switch-title { font-size: 14.5px; font-weight: 500; }
.switch-desc { font-size: 12px; color: var(--text-light); margin-top: 3px; line-height: 1.5; }
.switch {
    flex-shrink: 0; width: 46px; height: 26px; border-radius: 13px;
    background: #c6d0da; position: relative; transition: background .2s;
    display: inline-block;
}
.switch.on { background: var(--primary); }
.switch-dot {
    position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch.on .switch-dot { transform: translateX(20px); }
.md-body .md-table th, .md-body .md-table td,
.md-body table th, .md-body table td {
    border: 1px solid var(--border); padding: 6px 10px; text-align: left;
    white-space: nowrap;
}
.md-body .md-table th, .md-body table th {
    background: rgba(42,157,143,.1); font-weight: 600;
}

/* 主题：清爽绿（默认） */
.md-theme-default { --md-accent: var(--primary); }
.md-theme-default h1, .md-theme-default h2 { color: var(--primary-dark); }

/* 主题：暖阳橙 */
.md-theme-warm {
    background: #fff8f0; border-radius: 12px; padding: 14px 16px;
    --md-accent: var(--warning);
}
.md-theme-warm h1, .md-theme-warm h2, .md-theme-warm h3 { color: #c26a2a; }
.md-theme-warm blockquote {
    border-left-color: var(--warning);
    background: rgba(244,162,97,.12);
}
.md-theme-warm .md-table th, .md-theme-warm table th { background: rgba(244,162,97,.15); }
.md-theme-warm a { color: #c26a2a; }

/* 主题：夜间深色 */
.md-theme-dark {
    background: #1f2937; border-radius: 12px; padding: 14px 16px;
    color: #e5e7eb; --md-accent: #60a5fa;
}
.md-theme-dark h1, .md-theme-dark h2, .md-theme-dark h3, .md-theme-dark h4 { color: #f3f4f6; }
.md-theme-dark p, .md-theme-dark li { color: #d1d5db; }
.md-theme-dark code { background: rgba(255,255,255,.12); color: #fcd34d; }
.md-theme-dark hr { border-top-color: rgba(255,255,255,.15); }
.md-theme-dark a { color: #60a5fa; }
.md-theme-dark blockquote {
    border-left-color: #60a5fa; background: rgba(96,165,250,.12); color: #cbd5e1;
}
.md-theme-dark .md-table th, .md-theme-dark .md-table td,
.md-theme-dark table th, .md-theme-dark table td { border-color: rgba(255,255,255,.18); }
.md-theme-dark .md-table th, .md-theme-dark table th { background: rgba(96,165,250,.18); color: #f3f4f6; }

/* ==================== 全局主题系统（青绿 teal / 暗色 dark / 浅色 light） ==================== */
:root, [data-theme="teal"] {
    --header-icon: #ffffff;      /* 深色页头 → 白色三方图标（铃铛等） */
    --unread-bg: #f6fbfa;
    --input-bg: #ffffff;
}
[data-theme="light"] {
    --primary: #4A90D9;
    --primary-dark: #3a7bc2;
    --bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --text: #264653;
    --text-light: #6B7B8C;
    --border: #E2E8F0;
    --header-icon: #264653;      /* 浅色页头 → 黑色三方图标 */
    --unread-bg: #f2f7fd;
    --input-bg: #ffffff;
}
[data-theme="dark"] {
    --primary: #2A9D8F;
    --primary-dark: #1f7a70;
    --bg: #10161c;
    --card-bg: #1a232c;
    --text: #e6edf3;
    --text-light: #8aa0b4;
    --border: #263241;
    --shadow: 0 2px 12px rgba(0,0,0,0.45);
    --header-icon: #ffffff;      /* 暗色页头 → 白色三方图标 */
    --unread-bg: rgba(42,157,143,.10);
    --input-bg: #131b22;
    color-scheme: dark;
}
/* 暗色主题组件级适配 */
[data-theme="dark"] .tab-bar,
[data-theme="dark"] .list-toolbar,
[data-theme="dark"] .biz-card,
[data-theme="dark"] .ntf-card,
[data-theme="dark"] .editor-box,
[data-theme="dark"] .uic-box { background: var(--card-bg); }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] select { background: var(--input-bg); color: var(--text); }
[data-theme="dark"] .ntf-card.unread { background: var(--unread-bg); }
[data-theme="dark"] .cp-reply-box { background: rgba(255,255,255,.04); }
[data-theme="dark"] .md-theme-default { background: transparent; }

/* 标题栏铃铛：主题均为安全色深色页头，铃铛一律使用白色，保证清晰可见 */
.bell-btn { color: #fff; }
/* 角标描边与页头同色（页头为 primary→primary-dark 渐变），视觉上嵌入铃铛右上角 */
.bell-badge { border-color: var(--primary-dark); }

/* ==================== 自定义下拉选择器（替代原生 select，各端样式一致） ==================== */
.select-native-hidden {
    position: absolute; width: 1px; height: 1px; opacity: 0;
    pointer-events: none; overflow: hidden;
}
.ui-select { position: relative; width: 100%; }
.ui-select-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 8px; min-height: 44px; padding: 10px 14px;
    background: var(--input-bg, var(--card-bg));
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px; line-height: 1.3;
    font-family: inherit; font-weight: inherit;
    cursor: pointer; text-align: left;
    transition: border-color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.ui-select-trigger:active { border-color: var(--primary); }
.ui-select-trigger.is-placeholder .ui-select-label { color: var(--text-light); }
.ui-select-trigger.is-disabled { opacity: .5; cursor: not-allowed; }
.ui-select-chev { color: var(--text-light); font-size: 11px; flex-shrink: 0; transition: transform .2s; }
.ui-select-compact { width: auto; flex-shrink: 0; }
.ui-select-compact .ui-select-trigger {
    min-height: 34px; height: 34px; padding: 0 30px 0 14px;
    border-radius: 18px; font-size: 12.5px; font-weight: 500;
    background: var(--bg); white-space: nowrap;
}
.ui-select-compact .ui-select-chev {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
}

/* 底部弹出选择面板 */
#ui-select-mask {
    position: fixed; inset: 0; z-index: 10002;
    background: rgba(0,0,0,.45);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn .18s ease;
}
.ui-sheet {
    width: 100%; max-width: 480px;
    background: var(--card-bg);
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 12px);
    max-height: 72vh; display: flex; flex-direction: column;
    animation: sheetUp .24s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 -8px 30px rgba(0,0,0,.18);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ui-sheet-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 10px; border-bottom: 1px solid var(--border);
}
.ui-sheet-title { font-size: 15px; font-weight: 600; color: var(--text); }
.ui-sheet-cancel { font-size: 14px; color: var(--text-light); cursor: pointer; min-width: 40px; }
.ui-sheet-sp { min-width: 40px; }
.ui-sheet-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 10px; }
.ui-sheet-group {
    padding: 12px 18px 6px; font-size: 12px; color: var(--text-light);
}
.ui-sheet-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px; font-size: 15px; color: var(--text);
    cursor: pointer; gap: 12px;
}
.ui-sheet-item span { min-width: 0; word-break: break-all; }
.ui-sheet-item:active { background: var(--bg); }
.ui-sheet-item i { color: var(--primary); font-size: 17px; opacity: 0; flex-shrink: 0; }
.ui-sheet-item.selected { color: var(--primary); font-weight: 600; }
.ui-sheet-item.selected i { opacity: 1; }

/* ==================== 主题化确认弹窗（替代原生 confirm） ==================== */
#uic-mask, #income-log-mask, #bill-report-mask, #carelog-mask, #booking-choice-mask {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .18s ease;
    padding: 0 20px;
}

/* ==================== 通用表单弹窗（增加/编辑/查看 统一弹层，≤5字段默认弹窗约定） ==================== */
.form-modal-mask {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .18s ease;
    padding: 0 16px;
}
.form-modal-box {
    width: 100%; max-width: 420px; max-height: 86vh; overflow-y: auto;
    margin: 0 !important;
    padding: 16px;
    text-align: left;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    animation: uicPop .18s ease;
}
#income-log-mask .uic-box, #bill-report-mask .uic-box, #carelog-mask .uic-box { text-align: left; max-width: 420px; }
.uic-box {
    width: 100%; max-width: 300px;
    background: var(--card-bg);
    border-radius: 14px; padding: 20px 18px 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    animation: uicPop .18s ease;
    text-align: center;
}
@keyframes uicPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.uic-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.uic-msg { font-size: 13.5px; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; word-break: break-all; }
.uic-btns { display: flex; gap: 10px; }
.uic-btn {
    flex: 1; padding: 9px 0; border-radius: 10px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.uic-btn:active { opacity: .7; }
.uic-cancel { background: var(--bg); color: var(--text-light); }
.uic-ok { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }

/* ==================== 主题编辑页 ==================== */
/* 主题卡片是主题色板本身，固定浅色底板 + 深色文字，任何主题预览下都清晰可读 */
.theme-card {
    display: flex; align-items: center; gap: 12px;
    border: 2px solid #E2E8F0; border-radius: 12px;
    padding: 12px 14px; cursor: pointer; transition: all .2s;
    background: #FFFFFF;
}
.theme-card.active {
    border-color: #2A9D8F;
    background: rgba(42,157,143,.08);
}
.theme-card .tc-preview { display: flex; gap: 5px; flex-shrink: 0; }
.theme-card .tc-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,.06); box-sizing: border-box;
}
.theme-card .tc-info { flex: 1; min-width: 0; }
.theme-card .tc-name { font-size: 14px; font-weight: 600; color: #264653; }
.theme-card .tc-desc { font-size: 12px; color: #6B7B8C; margin-top: 2px; }
.theme-card .tc-check {
    font-size: 18px; color: #CBD5E0; flex-shrink: 0;
    transition: color .2s;
}
.theme-card.active .tc-check { color: #2A9D8F; }

/* 字体/背景色块选择器 */
.te-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.te-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer; padding: 8px 8px 6px; border-radius: 10px;
    border: 2px solid transparent; min-width: 60px; flex-shrink: 0;
    transition: all .15s;
}
.te-swatch:active { transform: scale(.95); }
.te-swatch.active { border-color: var(--primary); background: rgba(42,157,143,.08); }
.te-sw-chip {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,.1); box-shadow: 0 1px 3px rgba(0,0,0,.12);
    box-sizing: border-box;
}
.te-sw-label { font-size: 11px; color: var(--text); text-align: center; white-space: nowrap; }

/* ==================== 评价标签多选 ==================== */
#order-actions { display: flex; flex-direction: column; gap: 10px; }
.eval-tag {
    padding: 6px 13px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--card-bg);
    font-size: 13px; color: var(--text-light);
    cursor: pointer; user-select: none; transition: all .15s;
}
.eval-tag:active { transform: scale(.95); }
.eval-tag.active {
    border-color: var(--primary); color: var(--primary);
    background: rgba(42,157,143,.1); font-weight: 600;
}

/* ==================== 支付方式底部弹层 ==================== */
#pay-sheet-mask {
    position: fixed; inset: 0; z-index: 10002;
    background: rgba(0,0,0,.45);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn .18s ease;
}
.pay-sheet {
    width: 100%; background: var(--card-bg);
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    animation: sheetUp .22s ease;
}
.pay-sheet-title { text-align: center; font-size: 16px; font-weight: 700; color: var(--text); }
.pay-sheet-amount { text-align: center; font-size: 13px; color: var(--text-light); margin: 6px 0 14px; }
.pay-sheet-amount b { color: var(--danger); font-size: 20px; margin-left: 4px; }
.pay-method {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 10px; cursor: pointer; transition: background .15s;
}
.pay-method:active { background: var(--bg); }
.pay-method-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700;
}
.pay-method-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.pay-method-name small { display: block; font-size: 12px; color: var(--text-light); font-weight: 400; margin-top: 2px; }
.pay-method-badge {
    font-size: 11px; color: #fff; background: var(--primary);
    padding: 2px 9px; border-radius: 10px; flex-shrink: 0;
}
.pay-method-tag {
    font-size: 12px; color: var(--primary); border: 1px solid var(--primary);
    padding: 2px 9px; border-radius: 10px; flex-shrink: 0;
}

/* ==================== 第三方支付渠道行（账单报告内） ==================== */
.pay-channel {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 8px; cursor: pointer; transition: background .15s;
}
.pay-channel:active { background: var(--bg); }
.pay-channel-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700;
}
.pay-channel-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.pay-channel-go { color: var(--text-light); font-size: 18px; flex-shrink: 0; }
