/* ============================================
   CRM H5移动端样式
   ============================================ */

/* 重置与基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f6fa;
    color: #333;
    min-height: 100vh;
    padding-bottom: 60px;
}
a { color: #2d8cf0; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* 头部导航 */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 50px; background: #2d8cf0; color: #fff;
    display: flex; align-items: center; padding: 0 15px;
}
.header .back { font-size: 20px; margin-right: 10px; cursor: pointer; }
.header .title { flex: 1; font-size: 17px; font-weight: 500; text-align: center; }
.header .action { font-size: 14px; cursor: pointer; }
.header-space { height: 50px; }

/* 底部Tab栏 */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    height: 55px; background: #fff; border-top: 1px solid #e8e8e8;
    display: flex; align-items: center;
}
.tabbar .tab-item {
    flex: 1; text-align: center; cursor: pointer; color: #999;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar .tab-item.active { color: #2d8cf0; }
.tabbar .tab-item .tab-icon { font-size: 22px; }
.tabbar .tab-item .tab-label { font-size: 11px; }

/* 未登录引导条（游客模式） */
.guest-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 15px; background: #fff7e6; border-bottom: 1px solid #ffe7ba;
    font-size: 13px; color: #d46b08;
}
.guest-bar a {
    flex: none; padding: 4px 14px; background: #2d8cf0; color: #fff;
    border-radius: 14px; font-size: 12px; white-space: nowrap;
}

/* 搜索栏 */
.search-bar {
    padding: 10px 15px; background: #fff;
}
.search-bar input {
    width: 100%; height: 36px; border: 1px solid #ddd; border-radius: 18px;
    padding: 0 15px; background: #f5f6fa; outline: none; font-size: 14px;
}
.search-bar input:focus { border-color: #2d8cf0; }

/* 轮播 */
.swiper {
    width: 100%; height: 160px; overflow: hidden; position: relative; background: #ddd;
}
.swiper .swiper-wrapper {
    display: flex; transition: transform 0.3s ease;
    height: 100%;
}
.swiper .swiper-slide {
    min-width: 100%; height: 100%;
}
.swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper .swiper-dots {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px;
}
.swiper .swiper-dots .dot {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5);
}
.swiper .swiper-dots .dot.active { background: #fff; }

/* 功能入口网格 */
.func-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 15px; gap: 12px; background: #fff; margin-top: 10px;
}
.func-grid .func-item {
    text-align: center; cursor: pointer;
}
.func-grid .func-item .func-icon {
    width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}
.func-grid .func-item .func-name { font-size: 12px; color: #666; }

/* 卡片列表 */
.card { background: #fff; margin: 10px 15px; border-radius: 8px; padding: 15px; }
.card-title {
    font-size: 16px; font-weight: 500; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.card-title .more { font-size: 13px; color: #999; }

/* 列表项 */
.list-item {
    padding: 12px 15px; background: #fff; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px;
}
.list-item:last-child { border-bottom: none; }
.list-item .avatar {
    width: 44px; height: 44px; border-radius: 50%; background: #e8e8e8;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #999;
}
.list-item .info { flex: 1; min-width: 0; }
.list-item .info .name { font-size: 15px; font-weight: 500; }
.list-item .info .desc { font-size: 12px; color: #999; margin-top: 3px; }
.list-item .extra { font-size: 13px; color: #999; flex-shrink: 0; }

/* 表单 */
.form-group { padding: 0 15px; background: #fff; }
.form-item {
    display: flex; align-items: center; padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.form-item:last-child { border-bottom: none; }
.form-item .label { width: 85px; color: #666; flex-shrink: 0; font-size: 14px; }
.form-item input, .form-item select, .form-item textarea {
    flex: 1; border: none; outline: none; font-size: 14px; background: transparent;
}
.form-item textarea { min-height: 60px; resize: vertical; }
.form-item input::placeholder { color: #ccc; }

/* 按钮 */
.btn {
    display: block; width: 100%; height: 44px; border: none; border-radius: 22px;
    font-size: 16px; cursor: pointer; text-align: center; line-height: 44px;
}
.btn-primary { background: #2d8cf0; color: #fff; }
.btn-primary:active { background: #2279d8; }
.btn-success { background: #19be6b; color: #fff; }
.btn-danger { background: #ed4014; color: #fff; }
.btn-default { background: #f5f6fa; color: #666; border: 1px solid #ddd; }
.btn-block { margin: 15px; width: calc(100% - 30px); }
.btn-sm { height: 32px; line-height: 32px; font-size: 13px; border-radius: 16px; width: auto; padding: 0 16px; display: inline-block; }

/* 标签 */
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-size: 11px; line-height: 18px;
}
.tag-blue { background: #e6f7ff; color: #2d8cf0; }
.tag-green { background: #e8fce8; color: #19be6b; }
.tag-orange { background: #fff7e6; color: #f90; }
.tag-red { background: #fde8e8; color: #ed4014; }
.tag-gray { background: #f0f0f0; color: #999; }

/* 状态标签 */
.status { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.status-pending { background: #fff7e6; color: #f90; }
.status-progress { background: #e6f7ff; color: #2d8cf0; }
.status-done { background: #e8fce8; color: #19be6b; }
.status-expired { background: #fde8e8; color: #ed4014; }

/* 数据统计 */
.stat-row {
    display: flex; padding: 15px; background: #fff; margin-top: 10px;
}
.stat-item { flex: 1; text-align: center; }
.stat-item .stat-value { font-size: 22px; font-weight: 600; color: #2d8cf0; }
.stat-item .stat-label { font-size: 12px; color: #999; margin-top: 4px; }

/* 空状态 */
.empty { text-align: center; padding: 40px 0; color: #ccc; }
.empty .empty-icon { font-size: 48px; margin-bottom: 10px; }
.empty .empty-text { font-size: 14px; }

/* 加载 */
.loading { text-align: center; padding: 20px; color: #999; font-size: 13px; }

/* 弹窗 */
.modal-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200; display: none;
    align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 12px; width: 85%; max-width: 360px;
    padding: 20px; text-align: center;
}
.modal .modal-title { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.modal .modal-content { font-size: 14px; color: #666; margin-bottom: 20px; }
.modal .modal-btns { display: flex; gap: 10px; }
.modal .modal-btns .btn { flex: 1; }

/* Toast */
.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75); color: #fff; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; z-index: 300;
    display: none; max-width: 80%; text-align: center;
}
.toast.show { display: block; }

/* 筛选栏 */
.filter-bar {
    display: flex; padding: 8px 15px; gap: 8px; background: #fff;
    border-bottom: 1px solid #f0f0f0; overflow-x: auto;
}
.filter-bar .filter-item {
    padding: 5px 14px; border-radius: 15px; font-size: 13px;
    background: #f5f6fa; color: #666; white-space: nowrap; cursor: pointer;
    border: 1px solid transparent;
}
.filter-bar .filter-item.active { background: #e6f7ff; color: #2d8cf0; border-color: #2d8cf0; }

/* 我的页面 */
.user-header {
    background: linear-gradient(135deg, #2d8cf0, #1890ff);
    padding: 30px 20px 20px; color: #fff;
}
.user-header .user-info { display: flex; align-items: center; gap: 15px; }
.user-header .user-avatar {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.user-header .user-name { font-size: 18px; font-weight: 500; }
.user-header .user-phone { font-size: 13px; opacity: 0.8; margin-top: 4px; }

/* 菜单列表 */
.menu-list { background: #fff; margin-top: 10px; }
.menu-item {
    display: flex; align-items: center; padding: 14px 15px;
    border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
/* 非合伙人：团队/业绩菜单隐藏后，“我的钱包”成为末项，去掉分隔线 */
body.not-partner .menu-list #partnerMenu { border-bottom: none; }
.menu-item .menu-icon { width: 24px; font-size: 18px; color: #2d8cf0; margin-right: 12px; text-align: center; }
.menu-item .menu-text { flex: 1; font-size: 15px; }
.menu-item .menu-arrow { color: #ccc; font-size: 14px; }

/* 计算器样式 */
.calc-form { padding: 15px; }
.calc-form .calc-input-group { margin-bottom: 15px; }
.calc-form .calc-input-group label { display: block; font-size: 14px; color: #666; margin-bottom: 6px; }
.calc-form .calc-input-group input,
.calc-form .calc-input-group select {
    width: 100%; height: 40px; border: 1px solid #ddd; border-radius: 6px;
    padding: 0 12px; font-size: 15px; outline: none;
}
.calc-form .calc-input-group input:focus,
.calc-form .calc-input-group select:focus { border-color: #2d8cf0; }

.calc-result { padding: 15px; }
.calc-result .result-summary {
    background: linear-gradient(135deg, #2d8cf0, #1890ff);
    border-radius: 12px; padding: 20px; color: #fff; margin-bottom: 15px;
}
.calc-result .result-summary .total { font-size: 28px; font-weight: 600; text-align: center; }
.calc-result .result-summary .total-label { font-size: 13px; text-align: center; opacity: 0.8; margin-top: 4px; }

.calc-result table {
    width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border-radius: 8px;
}
.calc-result table th {
    background: #f5f6fa; padding: 8px 6px; text-align: center; font-weight: 500;
}
.calc-result table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid #f0f0f0; }

/* 流水测算 */
.flow-input-area { padding: 15px; }
.flow-row {
    display: flex; gap: 8px; margin-bottom: 8px; align-items: center;
}
.flow-row input {
    flex: 1; height: 36px; border: 1px solid #ddd; border-radius: 6px;
    padding: 0 8px; font-size: 13px; outline: none;
}
.flow-row .remove-btn {
    width: 30px; height: 30px; border: none; background: #fde8e8;
    color: #ed4014; border-radius: 50%; cursor: pointer; font-size: 16px;
}

/* 登录页 */
.login-page { min-height: 100vh; background: #fff; padding-top: 80px; }
.login-page .login-logo {
    text-align: center; margin-bottom: 40px;
}
.login-page .login-logo .logo-text { font-size: 24px; font-weight: 600; color: #2d8cf0; }
.login-page .login-logo .logo-sub { font-size: 13px; color: #999; margin-top: 6px; }
.login-page .login-form { padding: 0 30px; }
.login-page .login-form .login-input {
    width: 100%; height: 48px; border: none; border-bottom: 1px solid #e8e8e8;
    font-size: 15px; outline: none; margin-bottom: 15px; padding: 0 5px;
}
.login-page .login-form .login-input:focus { border-color: #2d8cf0; }
.login-page .login-form .login-btn { margin-top: 20px; height: 48px; font-size: 17px; }
.login-page .login-form .login-links {
    display: flex; justify-content: space-between; margin-top: 15px; font-size: 13px;
}

/* 推荐人：推荐码 / 手机号 二选一 */
.ref-block { margin-bottom: 15px; }
.ref-switch {
    display: inline-flex; border: 1px solid #e8e8e8; border-radius: 14px;
    overflow: hidden; margin-bottom: 10px;
}
.ref-switch .ref-tab {
    padding: 5px 16px; font-size: 12px; color: #999; background: #fff;
    cursor: pointer; transition: all .2s; line-height: 18px;
}
.ref-switch .ref-tab.active { background: #2d8cf0; color: #fff; }
.ref-block .login-input { margin-bottom: 6px !important; }
.ref-tip { font-size: 11px; color: #bbb; line-height: 1.6; padding: 0 5px; }

/* 内容列表 */
.content-item {
    display: flex; gap: 12px; padding: 12px 15px;
    background: #fff; border-bottom: 1px solid #f0f0f0;
}
.content-item .content-img {
    width: 80px; height: 60px; border-radius: 6px; background: #f0f0f0;
    flex-shrink: 0; object-fit: cover;
}
.content-item .content-info { flex: 1; }
.content-item .content-info .content-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.content-item .content-info .content-meta { font-size: 12px; color: #999; margin-top: 6px; }

/* 浮动添加按钮 */
.fab {
    position: fixed; right: 20px; bottom: 75px; z-index: 50;
    width: 50px; height: 50px; border-radius: 50%;
    background: #2d8cf0; color: #fff; border: none;
    font-size: 24px; cursor: pointer; box-shadow: 0 4px 12px rgba(45,140,240,0.4);
    display: flex; align-items: center; justify-content: center;
}
.fab:active { background: #2279d8; }

/* 分页加载更多 */
.load-more {
    text-align: center; padding: 15px; color: #999; font-size: 13px; cursor: pointer;
}

/* ==================== 首页大卡片入口 ==================== */
.entry-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; padding: 12px 15px;
}
.entry-card {
    position: relative; display: block; border-radius: 12px;
    padding: 14px 12px 16px; color: #fff; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.entry-card:active { transform: scale(.98); }
.entry-card .entry-icon {
    font-size: 24px; line-height: 1; margin-bottom: 8px;
}
.entry-card .entry-title {
    font-size: 16px; font-weight: 600; line-height: 1.3;
}
.entry-card .entry-sub {
    font-size: 11px; line-height: 1.5; margin-top: 6px; opacity: .85;
}
.entry-card .entry-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255, 255, 255, .25); border-radius: 10px;
    font-size: 10px; padding: 2px 8px;
}
.entry-card.c1 { background: linear-gradient(135deg, #2d8cf0, #52a8ff); }
.entry-card.c2 { background: linear-gradient(135deg, #19be6b, #4fd18b); }
.entry-card.c3 { background: linear-gradient(135deg, #722ed1, #9254de); }
.entry-card.c4 { background: linear-gradient(135deg, #fa8c16, #ffb84d); }

/* 横幅广告位 */
.ad-banner {
    display: block; margin: 0 15px 12px; border-radius: 10px;
    overflow: hidden; background: #eef3fb; position: relative;
}
.ad-banner img { display: block; width: 100%; }
.ad-banner .ad-text {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 15px; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, #35415a, #5a6b8c);
}
.ad-banner .ad-tag {
    flex: none; font-size: 10px; padding: 2px 7px; border-radius: 8px;
    background: rgba(255, 255, 255, .22);
}

/* 热门产品 */
.product-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #f2f2f2;
}
.product-item:last-child { border-bottom: none; }
.product-item .p-cover {
    width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #2d8cf0, #19be6b);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; object-fit: cover;
}
.product-item .p-info { flex: 1; min-width: 0; }
.product-item .p-title {
    font-size: 15px; font-weight: 500; color: #333;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-item .p-desc {
    font-size: 12px; color: #999; margin-top: 4px; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-item .p-right { flex: none; text-align: right; }
.product-item .p-amount { font-size: 15px; font-weight: 600; color: #ed4014; }
.product-item .p-amount small { font-size: 11px; font-weight: 400; }
.product-item .p-go {
    font-size: 11px; color: #fff; background: #2d8cf0;
    border-radius: 12px; padding: 3px 12px; margin-top: 6px; display: inline-block;
}

/* ==================== AI 快速出额 ==================== */
.steps {
    display: flex; align-items: center; padding: 14px 15px;
    background: #fff; border-bottom: 1px solid #f0f0f0;
}
.steps .step { flex: 1; text-align: center; position: relative; }
.steps .step .dot {
    width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 5px;
    background: #e8e8e8; color: #999; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.steps .step .txt { font-size: 11px; color: #999; }
.steps .step.active .dot { background: #2d8cf0; color: #fff; }
.steps .step.active .txt { color: #2d8cf0; }
.steps .step.done .dot { background: #19be6b; color: #fff; }
.steps .step::after {
    content: ''; position: absolute; top: 12px; left: 50%; width: 100%;
    height: 1px; background: #e8e8e8; z-index: 0;
}
.steps .step:last-child::after { display: none; }
.steps .step .dot, .steps .step .txt { position: relative; z-index: 1; }

.fm-panel { display: none; }
.fm-panel.active { display: block; }
.fm-group { background: #fff; margin-bottom: 10px; }
.fm-group-title {
    font-size: 13px; color: #2d8cf0; font-weight: 500;
    padding: 12px 15px 4px;
}
.fm-item {
    display: flex; align-items: center; min-height: 48px;
    padding: 8px 15px; border-bottom: 1px solid #f5f5f5;
}
.fm-item:last-child { border-bottom: none; }
.fm-item .fm-label {
    width: 96px; flex-shrink: 0; font-size: 14px; color: #333;
}
.fm-item .fm-ctrl { flex: 1; display: flex; align-items: center; gap: 8px; }
.fm-item .fm-ctrl input {
    flex: 1; width: 100%; border: none; outline: none; font-size: 14px;
    text-align: right; background: transparent; color: #333;
}
.fm-item .fm-unit { font-size: 12px; color: #999; flex: none; }
.fm-tip { font-size: 11px; color: #bbb; padding: 8px 15px 12px; line-height: 1.6; }

.pick-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: 1; }
.pick {
    padding: 5px 14px; border: 1px solid #e0e0e0; border-radius: 15px;
    font-size: 13px; color: #666; background: #fff; cursor: pointer;
}
.pick.active { border-color: #2d8cf0; color: #2d8cf0; background: #eaf4ff; }

.fm-actions {
    display: flex; gap: 12px; padding: 18px 15px 30px;
}
.fm-actions .btn-flat {
    flex: 1; height: 44px; line-height: 44px; text-align: center;
    border-radius: 22px; font-size: 15px; border: none; cursor: pointer;
}
.fm-actions .btn-prev { background: #f0f2f5; color: #666; }
.fm-actions .btn-next { background: #2d8cf0; color: #fff; }
.fm-actions .btn-next:active { background: #2279d8; }

/* 测算结果 */
.result-hero {
    margin: 12px 15px; padding: 24px 15px; border-radius: 14px; text-align: center;
    background: linear-gradient(135deg, #2d8cf0, #19be6b); color: #fff;
}
.result-hero .rh-label { font-size: 13px; opacity: .9; }
.result-hero .rh-amount { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 6px 0; }
.result-hero .rh-amount small { font-size: 16px; font-weight: 400; margin-left: 4px; }
.result-hero .rh-sub { font-size: 12px; opacity: .9; }
.result-hero.zero { background: linear-gradient(135deg, #8c8c8c, #bfbfbf); }

.match-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0; border-bottom: 1px solid #f2f2f2;
}
.match-item:last-child { border-bottom: none; }
.match-item .m-info { flex: 1; min-width: 0; }
.match-item .m-title { font-size: 15px; color: #333; font-weight: 500; }
.match-item .m-reason { font-size: 12px; color: #f5222d; margin-top: 4px; line-height: 1.5; }
.match-item .m-sum { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.5; }
.match-item .m-amount { flex: none; font-size: 16px; font-weight: 600; color: #ed4014; }
.match-item .m-amount small { font-size: 11px; font-weight: 400; }
.fold-title {
    font-size: 13px; color: #999; padding: 12px 0 4px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
}

/* 安全区适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tabbar { padding-bottom: env(safe-area-inset-bottom); }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   视觉增强层 A：基础 / 导航 / 首页
   主色蓝 #2d8cf0，配合渐变、光晕与多层阴影
   ============================================================ */

:root {
    --h-primary: #2d8cf0;
    --h-primary-dark: #1f6fd0;
    --h-grad: linear-gradient(135deg, #4facfe 0%, #2d8cf0 55%, #1c6fd6 100%);
    --h-grad-soft: linear-gradient(135deg, #5cb3ff 0%, #2d8cf0 100%);
    --h-sd-1: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .05);
    --h-sd-2: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(16, 24, 40, .07);
    --h-sd-3: 0 4px 10px rgba(16, 24, 40, .07), 0 16px 36px rgba(16, 24, 40, .12);
    --h-hl: inset 0 1px 0 rgba(255, 255, 255, .85);
}

body {
    background:
        radial-gradient(760px 380px at 100% -6%, rgba(45, 140, 240, .10) 0%, transparent 60%),
        radial-gradient(620px 320px at -10% 102%, rgba(25, 190, 107, .08) 0%, transparent 58%),
        #f5f6fa;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航 ---------- */
.header {
    background: var(--h-grad-soft);
    box-shadow: 0 2px 12px rgba(45, 140, 240, .3);
}
.header .title { font-weight: 600; letter-spacing: .3px; text-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.header .back {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.header .back:active { background: rgba(255, 255, 255, .2); }

/* ---------- 底部 Tab ---------- */
.tabbar {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(16, 24, 40, .06);
    box-shadow: 0 -2px 16px rgba(16, 24, 40, .07);
}
.tabbar .tab-item { position: relative; transition: color .2s; }
.tabbar .tab-item .tab-icon { transition: transform .22s cubic-bezier(.34, 1.5, .64, 1); }
.tabbar .tab-item.active .tab-icon { transform: translateY(-2px) scale(1.1); }
.tabbar .tab-item.active .tab-label { font-weight: 600; }
.tabbar .tab-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--h-grad);
    box-shadow: 0 2px 8px rgba(45, 140, 240, .65);
}

/* ---------- 未登录引导条 ---------- */
.guest-bar {
    background: linear-gradient(135deg, #fff8e8 0%, #fff2d6 100%);
    border-bottom: 1px solid #ffe2ad;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.guest-bar a {
    background: var(--h-grad);
    box-shadow: 0 3px 10px rgba(45, 140, 240, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
    font-weight: 500;
}

/* ---------- 搜索栏 ---------- */
.search-bar { box-shadow: inset 0 -1px 0 #f0f2f5; }
.search-bar input {
    background: #f6f8fb; border-color: #e6eaef;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04);
    transition: all .2s;
}
.search-bar input:focus {
    background: #fff; border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(45, 140, 240, .12);
}

/* ---------- 轮播 ---------- */
.swiper {
    height: 168px; margin: 12px 15px 0; width: auto;
    border-radius: 14px; background: #e8edf5;
    box-shadow: var(--h-sd-2);
}
/* 底部渐隐遮罩，让小圆点更清晰 */
.swiper::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .28));
    pointer-events: none; z-index: 1;
}
.swiper .swiper-dots { z-index: 2; bottom: 10px; }
.swiper .swiper-dots .dot {
    width: 6px; height: 6px; background: rgba(255, 255, 255, .55);
    transition: width .25s ease, background .25s ease;
}
.swiper .swiper-dots .dot.active {
    width: 16px; border-radius: 3px; background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}

/* ---------- 功能宫格 ---------- */
.func-grid {
    margin: 12px 15px 0; border-radius: 14px; padding: 16px 12px;
    border: 1px solid rgba(16, 24, 40, .04);
    box-shadow: var(--h-sd-1), var(--h-hl);
}
.func-grid .func-item { transition: transform .2s cubic-bezier(.34, 1.5, .64, 1); }
.func-grid .func-item:active { transform: translateY(-3px); }
.func-grid .func-item .func-icon {
    position: relative; overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .16), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* 图标斜向高光 */
.func-grid .func-item .func-icon::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 52%);
}
.func-grid .func-item .func-name { color: #5b6572; font-weight: 500; }

/* ---------- 卡片 ---------- */
.card {
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, .04);
    box-shadow: var(--h-sd-1), var(--h-hl);
}
.card-title { position: relative; padding-left: 12px; font-weight: 600; color: #1f2937; }
.card-title::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
    border-radius: 2px; background: var(--h-grad);
}
.card-title .more {
    color: var(--h-primary); font-weight: 400;
    padding: 3px 10px; border-radius: 12px; background: rgba(45, 140, 240, .08);
}

/* ---------- 数据统计 ---------- */
.stat-row {
    margin: 12px 15px 0; border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, .04);
    box-shadow: var(--h-sd-1), var(--h-hl);
}
.stat-item { position: relative; }
.stat-item + .stat-item::before {
    content: ''; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px;
    background: linear-gradient(180deg, transparent, #e9edf2 50%, transparent);
}
.stat-item .stat-value {
    background: var(--h-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}

/* ---------- 列表项 ---------- */
.list-item { transition: background .18s; }
.list-item:active { background: #f7fbff; }
.list-item .avatar {
    background: linear-gradient(135deg, #eaf3ff, #dceaff); color: #6b93c9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 6px rgba(16, 24, 40, .07);
}
.list-item .info .name { color: #1f2937; }

/* ---------- 内容列表 ---------- */
.content-item { transition: background .18s; }
.content-item:active { background: #f7fbff; }
.content-item .content-img {
    box-shadow: 0 2px 8px rgba(16, 24, 40, .1);
    background: linear-gradient(135deg, #eef2f7, #e4eaf2);
}
.content-item .content-info .content-title { color: #1f2937; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    -ms-overflow-style: none; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .filter-item {
    background: #f4f6f9; border-color: #eceff3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: all .2s; flex-shrink: 0;
}
.filter-bar .filter-item.active {
    background: var(--h-grad); color: #fff; border-color: transparent;
    box-shadow: 0 3px 10px rgba(45, 140, 240, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* ---------- “我的”页头部 ---------- */
.user-header {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1c6fd6 0%, #2d8cf0 45%, #56b6ff 100%);
    padding: 32px 20px 26px;
    box-shadow: 0 6px 20px rgba(45, 140, 240, .28);
}
.user-header::before,
.user-header::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.user-header::before {
    width: 200px; height: 200px; top: -100px; right: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, .24) 0%, transparent 70%);
}
.user-header::after {
    width: 140px; height: 140px; bottom: -75px; left: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, .15) 0%, transparent 70%);
}
.user-header .user-info { position: relative; z-index: 1; }
.user-header .user-avatar {
    background: rgba(255, 255, 255, .26);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.user-header .user-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .16); }

/* ---------- 菜单列表 ---------- */
.menu-list {
    margin: 10px 15px 0; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(16, 24, 40, .04);
    box-shadow: var(--h-sd-1), var(--h-hl);
}
.menu-item { transition: background .18s; }
.menu-item:active { background: #f7fbff; }
.menu-item .menu-icon {
    width: 30px; height: 30px; margin-right: 12px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    background: linear-gradient(135deg, #eef6ff, #e0eefc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.menu-item .menu-arrow { color: #d3d8de; }

/* ---------- 浮动按钮 ---------- */
.fab {
    background: var(--h-grad);
    box-shadow: 0 6px 20px rgba(45, 140, 240, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .2s cubic-bezier(.34, 1.5, .64, 1), box-shadow .2s;
}
.fab:active { transform: scale(.92) rotate(90deg); box-shadow: 0 3px 12px rgba(45, 140, 240, .4); }

/* ---------- 分页 / 空态 ---------- */
.load-more span {
    display: inline-block; padding: 5px 14px; border-radius: 14px;
    background: #fff; border: 1px solid #e8ecf1; color: var(--h-primary);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.empty .empty-icon { opacity: .55; filter: grayscale(.2); }

/* ============================================
   流水测算页面样式
   ============================================ */

/* 上传区域 */
.bf-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fafbfc;
}
.bf-upload-area:hover {
    border-color: #2d8cf0;
    background: #f0f7ff;
}
.bf-upload-icon {
    margin-bottom: 12px;
}
.bf-upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}
.bf-upload-hint {
    font-size: 12px;
    color: #999;
}

/* 欢迎说明 */
.bf-welcome p {
    margin-bottom: 4px;
}

/* 报告信息卡片 */
.bf-report-card {
    padding: 16px;
}
.bf-report-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.bf-report-row:last-child {
    border-bottom: none;
}
.bf-report-label {
    color: #999;
    min-width: 80px;
    flex-shrink: 0;
}
.bf-report-value {
    color: #333;
    font-weight: 500;
    flex: 1;
}
.bf-copy-btn {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d8cf0' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E") no-repeat center;
    cursor: pointer;
    margin-left: 8px;
}

/* 数据透视镜 */
.bf-filter-section {
    padding: 16px;
}
.bf-filter-item {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.bf-filter-item:last-child {
    border-bottom: none;
}
.bf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}
.bf-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2d8cf0;
}

/* Tab栏 */
.bf-tab-bar {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 15px;
    margin-bottom: 12px;
}
.bf-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.bf-tab.active {
    color: #2d8cf0;
    font-weight: 600;
    border-bottom-color: #2d8cf0;
}

/* 统计卡片 */
.bf-stat-cards {
    display: flex;
    gap: 12px;
    padding: 0 15px;
}
.bf-stat-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.bf-stat-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}
.bf-stat-count {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 8px;
}
.bf-stat-value {
    font-size: 22px;
    font-weight: 700;
}
.bf-income {
    color: #19be6b;
}
.bf-expense {
    color: #ed4014;
}

/* 月度表格 */
.bf-monthly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bf-monthly-table th {
    background: #f5f6fa;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}
.bf-monthly-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

/* 剔除明细弹窗 */
.bf-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bf-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
}
.bf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 600;
}
.bf-modal-body {
    padding: 16px;
}

/* ============================================================
   客户管理 & 签约管理 页面美化
   ============================================================ */

/* ---------- 客户/签约 列表卡片化 ---------- */
.client-card-list {
    padding: 10px 15px 6px;
}
.client-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 14px; padding: 14px 16px;
    margin-bottom: 10px; cursor: pointer;
    border: 1px solid rgba(16,24,40,.04);
    box-shadow: 0 1px 3px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.04);
    transition: transform .18s, box-shadow .18s;
}
.client-card:active {
    transform: scale(.985);
    box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.06);
}
.client-card .c-avatar {
    width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #5cb3ff, #2d8cf0);
    box-shadow: 0 3px 10px rgba(45,140,240,.28);
}
.client-card .c-avatar.contract-avatar {
    background: linear-gradient(135deg, #4fd18b, #19be6b);
    box-shadow: 0 3px 10px rgba(25,190,107,.28);
}
.client-card .c-body { flex: 1; min-width: 0; }
.client-card .c-top {
    display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.client-card .c-name {
    font-size: 15px; font-weight: 600; color: #1f2937;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.client-card .c-meta {
    font-size: 12px; color: #8c95a3; line-height: 1.6;
    display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.client-card .c-meta .c-meta-item {
    display: inline-flex; align-items: center; gap: 3px;
}
.client-card .c-arrow {
    color: #d0d5dc; font-size: 13px; flex-shrink: 0;
}

/* 签约卡片特殊：时间范围样式 */
.contract-card .c-time {
    font-size: 11px; color: #a0a7b0; margin-bottom: 3px;
    display: flex; align-items: center; gap: 4px;
}
.contract-card .c-amount {
    font-size: 15px; font-weight: 700; color: #ed4014;
}
.contract-card .c-amount small {
    font-size: 11px; font-weight: 400; color: #999;
}

/* ---------- 详情弹窗 美化 ---------- */
.detail-modal {
    background: #fff; border-radius: 16px; width: 92%; max-width: 500px;
    text-align: left; max-height: 88vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.detail-modal .dm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid #f0f2f5;
    position: sticky; top: 0; background: #fff; z-index: 2;
    border-radius: 16px 16px 0 0;
}
.detail-modal .dm-title {
    font-size: 17px; font-weight: 600; color: #1f2937;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1; margin-right: 12px;
}
.detail-modal .dm-close {
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: #f0f2f5; color: #666; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; flex-shrink: 0;
}
.detail-modal .dm-close:active { background: #e0e3e8; }
.detail-modal .dm-body { padding: 0 20px 20px; }

/* 详情分区卡片 */
.detail-section {
    margin-bottom: 14px;
}
.detail-section .ds-title {
    font-size: 13px; font-weight: 600; color: #2d8cf0;
    padding: 0 0 8px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid #f0f2f5;
}
.detail-section .ds-title::before {
    content: ''; width: 3px; height: 14px; border-radius: 2px;
    background: linear-gradient(180deg, #5cb3ff, #2d8cf0);
}
.detail-section .ds-row {
    display: flex; padding: 7px 0; font-size: 14px;
    border-bottom: 1px solid #f8f9fb;
}
.detail-section .ds-row:last-child { border-bottom: none; }
.detail-section .ds-label {
    width: 80px; color: #8c95a3; flex-shrink: 0; font-size: 13px;
}
.detail-section .ds-value {
    flex: 1; color: #1f2937; font-size: 14px; word-break: break-all;
}

/* ---------- 跟进时间线 ---------- */
.timeline {
    position: relative; padding-left: 20px;
}
.timeline::before {
    content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
    width: 2px; background: #e8ecf2; border-radius: 1px;
}
.timeline-item {
    position: relative; padding-bottom: 16px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -17px; top: 6px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #fff; border: 2px solid #2d8cf0;
    box-shadow: 0 0 0 3px rgba(45,140,240,.12);
}
.timeline-item .ti-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #8c95a3; margin-bottom: 6px;
}
.timeline-item .ti-name { font-weight: 500; color: #5b6572; }
.timeline-item .ti-content {
    font-size: 14px; color: #333; line-height: 1.6; word-break: break-all;
}
.timeline-item .ti-images {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.timeline-item .ti-images img {
    width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 1px solid #eee;
    transition: transform .15s;
}
.timeline-item .ti-images img:active { transform: scale(.95); }

/* ---------- 图片画廊 ---------- */
.photo-gallery {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.photo-gallery .photo-item {
    position: relative; display: inline-block;
}
.photo-gallery .photo-item img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
    cursor: pointer; border: 1px solid #eee;
    transition: transform .15s;
}
.photo-gallery .photo-item img:active { transform: scale(.94); }
.photo-gallery .photo-del {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #ed4014; color: #fff; border: 2px solid #fff;
    font-size: 11px; text-align: center; line-height: 16px;
    cursor: pointer; box-shadow: 0 2px 6px rgba(237,64,20,.35);
}

/* ---------- 表单弹窗 美化 ---------- */
.form-modal {
    background: #fff; border-radius: 16px; width: 92%; max-width: 500px;
    text-align: left; max-height: 88vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.form-modal .fm-header {
    padding: 18px 20px 14px; border-bottom: 1px solid #f0f2f5;
    font-size: 17px; font-weight: 600; color: #1f2937;
    position: sticky; top: 0; background: #fff; z-index: 2;
    border-radius: 16px 16px 0 0;
}
.form-modal .fm-body { padding: 0 0 8px; }
.form-modal .fm-section-title {
    font-size: 13px; font-weight: 600; color: #2d8cf0;
    padding: 12px 20px 6px;
    display: flex; align-items: center; gap: 6px;
}
.form-modal .fm-section-title::before {
    content: ''; width: 3px; height: 13px; border-radius: 2px;
    background: linear-gradient(180deg, #5cb3ff, #2d8cf0);
}
.form-modal .fm-actions {
    display: flex; gap: 10px; padding: 14px 20px 18px;
    border-top: 1px solid #f0f2f5;
}
.form-modal .fm-actions .btn { flex: 1; }

/* 表单内部样式优化 */
.form-modal .form-group { padding: 0 20px; }
.form-modal .form-item {
    padding: 11px 0;
}
.form-modal .form-item .label {
    color: #5b6572; font-weight: 500;
}
.form-modal .form-item input,
.form-modal .form-item select {
    color: #1f2937;
}
.form-modal .form-item input:focus,
.form-modal .form-item select:focus {
    outline: none;
}

/* ---------- 跟进输入区域 ---------- */
.record-input-area {
    padding: 0 20px 20px;
    border-top: 1px solid #f0f2f5;
}
.record-input-area .ria-title {
    font-size: 13px; font-weight: 600; color: #2d8cf0;
    padding: 14px 0 8px;
    display: flex; align-items: center; gap: 6px;
}
.record-input-area .ria-title::before {
    content: ''; width: 3px; height: 13px; border-radius: 2px;
    background: linear-gradient(180deg, #5cb3ff, #2d8cf0);
}
.record-input-area textarea {
    width: 100%; min-height: 80px; padding: 10px 12px;
    border: 1px solid #e6eaef; border-radius: 10px;
    font-size: 14px; resize: vertical; outline: none;
    background: #f8fafc; transition: all .2s;
    box-sizing: border-box;
}
.record-input-area textarea:focus {
    border-color: #2d8cf0; background: #fff;
    box-shadow: 0 0 0 3px rgba(45,140,240,.08);
}
.record-input-area .ria-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.record-input-area .ria-upload-btn {
    cursor: pointer; color: #2d8cf0; font-size: 13px;
    border: 1px dashed #b3d4fc; border-radius: 8px;
    padding: 5px 14px; display: inline-flex; align-items: center; gap: 4px;
    transition: all .2s; background: transparent;
}
.record-input-area .ria-upload-btn:active {
    background: #eaf4ff; border-color: #2d8cf0;
}
.record-input-area .ria-submit {
    width: 100%; margin-top: 10px; height: 40px;
    border-radius: 20px; font-size: 14px; font-weight: 500;
}

/* ---------- 标签样式增强 ---------- */
.tag {
    border-radius: 4px; font-weight: 500;
    letter-spacing: .2px;
}
.tag-green { background: linear-gradient(135deg, #e8fce8, #d4f5d4); }
.tag-blue { background: linear-gradient(135deg, #e6f7ff, #d0ecff); }
.tag-orange { background: linear-gradient(135deg, #fff7e6, #ffedcc); }
.tag-red { background: linear-gradient(135deg, #fde8e8, #fbd0d0); }
.tag-gray { background: linear-gradient(135deg, #f0f0f0, #e8e8e8); }

/* ---------- 空状态增强 ---------- */
.empty-state {
    text-align: center; padding: 50px 20px;
}
.empty-state .es-icon { font-size: 52px; opacity: .4; margin-bottom: 12px; }
.empty-state .es-text { font-size: 14px; color: #b0b7c0; }

/* ---------- 图片预览弹窗 ---------- */
.img-preview-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.85); z-index: 500;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.img-preview-mask img {
    max-width: 92%; max-height: 85vh; border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
