/**
 * 工地管理模块样式
 * hezi 子主题
 */

/* ==================== 基础变量 ==================== */
:root {
    --hezi-primary: #7C5CFF;
    --hezi-primary-hover: #6B4CE6;
    --hezi-success: #10B981;
    --hezi-warning: #F59E0B;
    --hezi-danger: #EF4444;
    --hezi-info: #3B82F6;
    --hezi-border: #E5E7EB;
    --hezi-bg-light: #F9FAFB;
    --hezi-text: #1F2937;
    --hezi-text-secondary: #6B7280;
    --hezi-radius: 8px;
    --hezi-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hezi-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 暗色模式 */
.dark-theme {
    --hezi-border: #374151;
    --hezi-bg-light: #1F2937;
    --hezi-text: #F9FAFB;
    --hezi-text-secondary: #9CA3AF;
}

/* ==================== 按钮 ==================== */
.hezi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--hezi-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--hezi-bg-light);
    color: var(--hezi-text);
}

.hezi-btn:hover {
    background: var(--hezi-border);
}

.hezi-btn-primary {
    background: var(--hezi-primary);
    color: #fff;
}

.hezi-btn-primary:hover {
    background: var(--hezi-primary-hover);
}

.hezi-btn-outline {
    background: transparent;
    border: 1px solid var(--hezi-border);
}

.hezi-btn-outline:hover {
    border-color: var(--hezi-primary);
    color: var(--hezi-primary);
}

.hezi-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.hezi-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--hezi-radius);
    background: transparent;
    color: var(--hezi-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hezi-btn-icon:hover {
    background: var(--hezi-bg-light);
    color: var(--hezi-primary);
}

/* ==================== 工地看板 ==================== */
.hezi-project-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hezi-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hezi-project-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--hezi-text);
    margin: 0;
}

/* ==================== 加载状态 ==================== */
.hezi-project-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--hezi-text-secondary);
}

.hezi-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--hezi-border);
    border-top-color: var(--hezi-primary);
    border-radius: 50%;
    animation: hezi-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* ==================== 空状态 ==================== */
.hezi-project-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.hezi-empty-icon {
    color: var(--hezi-text-secondary);
    opacity: 0.5;
    margin-bottom: 16px;
}

.hezi-project-empty p {
    color: var(--hezi-text-secondary);
    margin-bottom: 20px;
}

/* ==================== 工地列表 ==================== */
.hezi-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ==================== 工地卡片 ==================== */
.hezi-project-card {
    background: var(--hezi-bg-light);
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.hezi-project-card:hover {
    box-shadow: var(--hezi-shadow-lg);
    transform: translateY(-2px);
}

.hezi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--hezi-border);
}

.hezi-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hezi-text);
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hezi-card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.hezi-status-planning {
    background: rgba(124, 92, 255, 0.1);
    color: var(--hezi-primary);
}

.hezi-status-designing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--hezi-info);
}

.hezi-status-constructing {
    background: rgba(16, 185, 129, 0.1);
    color: var(--hezi-success);
}

.hezi-status-completed {
    background: rgba(107, 114, 128, 0.1);
    color: var(--hezi-text-secondary);
}

.hezi-card-body {
    padding: 16px;
}

.hezi-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hezi-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hezi-text-secondary);
}

.hezi-info-item .hezi-icon {
    flex-shrink: 0;
}

.hezi-card-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.hezi-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--hezi-border);
    border-radius: 3px;
    overflow: hidden;
}

.hezi-progress-lg {
    height: 8px;
}

.hezi-progress-fill {
    height: 100%;
    background: var(--hezi-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.hezi-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--hezi-text);
    min-width: 36px;
}

.hezi-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--hezi-border);
    background: rgba(0, 0, 0, 0.02);
}

.dark-theme .hezi-card-footer {
    background: rgba(255, 255, 255, 0.02);
}

.hezi-card-actions {
    display: flex;
    gap: 4px;
}

/* ==================== 弹窗 ==================== */
.hezi-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hezi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hezi-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--hezi-radius);
    box-shadow: var(--hezi-shadow-lg);
}

.dark-theme .hezi-modal-content {
    background: var(--hezi-bg-light);
}

/* ============ 弹窗层级/交互硬加固（修复"编辑后禁止光标+无法点击"） ============
 * 1. 把弹窗抬到所有特效层之上（页面过渡 999999 / 烟雾特效 99990 之下都会被盖住）
 * 2. 显式区分 overlay(背景) 与 content(内容) 的层级，杜绝 overlay 盖住内容
 * 3. 强制 cursor:default / auto，清除任何继承来的 not-allowed 禁止光标
 */
.hezi-modal {
    z-index: 1000000 !important;
    cursor: default !important;
}

.hezi-modal-overlay {
    z-index: 1 !important;
    cursor: default !important;
    pointer-events: auto;
}

.hezi-modal-content {
    z-index: 2 !important;
    pointer-events: auto;
    cursor: auto;
}

/* 弹窗内所有表单控件恢复可点击光标，避免被外部样式误设为 not-allowed */
.hezi-modal-content input,
.hezi-modal-content select,
.hezi-modal-content textarea,
.hezi-modal-content label {
    cursor: auto;
}

.hezi-modal-content button:not(:disabled) {
    cursor: pointer;
}

.hezi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hezi-border);
}

.hezi-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.hezi-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    color: var(--hezi-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hezi-modal-close:hover {
    background: var(--hezi-border);
}

/* ==================== 表单 ==================== */
.hezi-form {
    padding: 20px;
}

.hezi-form-group {
    margin-bottom: 16px;
}

.hezi-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--hezi-text);
    margin-bottom: 6px;
}

.hezi-form-group .required {
    color: var(--hezi-danger);
}

.hezi-form-group input,
.hezi-form-group select,
.hezi-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    font-size: 14px;
    color: var(--hezi-text);
    background: #fff;
    transition: border-color 0.2s ease;
}

.dark-theme .hezi-form-group input,
.dark-theme .hezi-form-group select,
.dark-theme .hezi-form-group textarea {
    background: var(--hezi-bg-light);
}

.hezi-form-group input:focus,
.hezi-form-group select:focus,
.hezi-form-group textarea:focus {
    outline: none;
    border-color: var(--hezi-primary);
}

.hezi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hezi-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ==================== 工地详情 ==================== */
.hezi-project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hezi-detail-section {
    background: var(--hezi-bg-light);
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.hezi-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hezi-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--hezi-text);
    margin: 0;
}

.hezi-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hezi-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hezi-info-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--hezi-text-secondary);
    min-width: 100px;
}

.hezi-info-value {
    font-size: 14px;
    color: var(--hezi-text);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== 标签页 ==================== */
.hezi-detail-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--hezi-bg-light);
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    margin-bottom: 20px;
    overflow-x: auto;
}

.hezi-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hezi-text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hezi-tab:hover {
    color: var(--hezi-text);
    background: rgba(124, 92, 255, 0.05);
}

.hezi-tab.active {
    color: var(--hezi-primary);
    background: #fff;
    box-shadow: var(--hezi-shadow);
}

.dark-theme .hezi-tab.active {
    background: var(--hezi-bg-light);
}

.hezi-tab-content {
    background: var(--hezi-bg-light);
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    padding: 20px;
    min-height: 300px;
}

.hezi-tab-panel {
    display: none;
}

.hezi-tab-panel.active {
    display: block;
}

.hezi-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hezi-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hezi-text);
    margin: 0;
}

/* ==================== 列表项 ==================== */
.hezi-member-list,
.hezi-checkin-list,
.hezi-diary-list,
.hezi-material-list,
.hezi-bill-list,
.hezi-rectification-list,
.hezi-drawing-list,
.hezi-acceptance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hezi-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    transition: all 0.2s ease;
}

.dark-theme .hezi-list-item {
    background: var(--hezi-bg-light);
}

.hezi-list-item:hover {
    border-color: var(--hezi-primary);
}

.hezi-list-item-content {
    flex: 1;
}

.hezi-list-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--hezi-text);
    margin-bottom: 4px;
}

.hezi-list-item-desc {
    font-size: 13px;
    color: var(--hezi-text-secondary);
}

.hezi-list-item-delete {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--hezi-text-secondary);
    background: transparent;
    border: 1px solid var(--hezi-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hezi-list-item-delete:hover {
    color: #fff;
    background: #EF4444;
    border-color: #EF4444;
}

.dark-theme .hezi-list-item-delete {
    color: var(--hezi-text-secondary);
}

.dark-theme .hezi-list-item-delete:hover {
    color: #fff;
}

/* ==================== 账单汇总 ==================== */
.hezi-bill-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.hezi-summary-card {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
    text-align: center;
}

.dark-theme .hezi-summary-card {
    background: var(--hezi-bg-light);
}

.hezi-summary-label {
    font-size: 12px;
    color: var(--hezi-text-secondary);
    margin-bottom: 4px;
}

.hezi-summary-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--hezi-text);
}

.hezi-summary-value.income {
    color: var(--hezi-success);
}

.hezi-summary-value.expense {
    color: var(--hezi-danger);
}

/* ==================== 提示框 ==================== */
.hezi-project-notice {
    padding: 40px 20px;
    text-align: center;
    background: var(--hezi-bg-light);
    border: 1px solid var(--hezi-border);
    border-radius: var(--hezi-radius);
}

.hezi-project-notice p {
    color: var(--hezi-text-secondary);
    margin-bottom: 12px;
}

.hezi-project-notice a {
    color: var(--hezi-primary);
    text-decoration: none;
}

.hezi-project-notice a:hover {
    text-decoration: underline;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .hezi-project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hezi-project-list {
        grid-template-columns: 1fr;
    }

    .hezi-form-row {
        grid-template-columns: 1fr;
    }

    .hezi-detail-tabs {
        flex-wrap: nowrap;
    }

    .hezi-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hezi-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hezi-info-label {
        min-width: auto;
    }
}

/* ==================== 验收管理 - 预设库 ==================== */
.hezi-panel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hezi-accept-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.hezi-accept-set {
    border: 1px solid var(--hezi-border);
    background: var(--hezi-bg-light);
    color: var(--hezi-text-secondary);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.hezi-accept-set:hover {
    border-color: var(--hezi-primary);
    color: var(--hezi-primary);
}
.hezi-accept-set[data-status="pass"].active,
.hezi-accept-set[data-status="pass"]:active {
    background: #ECFDF5;
    border-color: #10B981;
    color: #047857;
}

.hezi-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.hezi-badge-pending { background: #FEF3C7; color: #B45309; }
.hezi-badge-pass    { background: #ECFDF5; color: #047857; }
.hezi-badge-fail    { background: #FEE2E2; color: #B91C1C; }
.dark-theme .hezi-badge-pending { background: #4d3b12; color: #FCD34D; }
.dark-theme .hezi-badge-pass    { background: #064e3b; color: #6EE7B7; }
.dark-theme .hezi-badge-fail    { background: #4c1d1d; color: #FCA5A5; }

/* 模态框（预设库选择 / 管理） */
.hezi-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.hezi-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.dark-theme .hezi-modal-box { background: var(--hezi-bg-light); color: var(--hezi-text); }
.hezi-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hezi-border);
}
.hezi-modal-head h3 { margin: 0; font-size: 16px; }
.hezi-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--hezi-text-secondary);
}
.hezi-modal-body { padding: 16px 18px; overflow-y: auto; }
.hezi-modal-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--hezi-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hezi-tpl-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--hezi-text-secondary);
    margin: 12px 0 6px;
    letter-spacing: .05em;
}
.hezi-tpl-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--hezi-border);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
}
.hezi-tpl-item:hover { border-color: var(--hezi-primary); }
.hezi-tpl-name { font-size: 14px; font-weight: 600; color: var(--hezi-text); }
.hezi-tpl-desc { font-size: 12px; color: var(--hezi-text-secondary); }
.hezi-tpl-item input { margin-right: 8px; vertical-align: middle; }
.hezi-tpl-item > input { float: left; margin-top: 3px; }

.hezi-tpl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--hezi-border);
    border-radius: 8px;
    margin-bottom: 6px;
}
.hezi-tpl-row-main { display: flex; flex-direction: column; gap: 2px; }
.hezi-tpl-row-actions { display: flex; gap: 6px; }
.hezi-tpl-cat-label { font-size: 12px; color: var(--hezi-text-secondary); }

.hezi-tpl-add {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--hezi-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hezi-tpl-add h4 { margin: 0 0 4px; font-size: 14px; }
.hezi-tpl-add input,
.hezi-tpl-add textarea {
    border: 1px solid var(--hezi-border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
    color: var(--hezi-text);
    width: 100%;
    box-sizing: border-box;
}
.dark-theme .hezi-tpl-add input,
.dark-theme .hezi-tpl-add textarea { background: #111827; color: var(--hezi-text); }
.hezi-tpl-add textarea { min-height: 56px; resize: vertical; }

.hezi-empty { text-align: center; color: var(--hezi-text-secondary); padding: 20px; }

.hezi-btn-danger {
    background: var(--hezi-danger);
    color: #fff;
    border: 1px solid var(--hezi-danger);
}
.hezi-btn-danger:hover { opacity: .9; }

/* ============ 增减项 ============ */
.hezi-list-item-meta { font-size: 13px; color: var(--hezi-text-secondary); margin-top: 4px; }
.hezi-add-type {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 5px;
    margin-right: 6px;
    vertical-align: middle;
}
.hezi-add-type-addition  { background: #DCFCE7; color: #15803D; }
.hezi-add-type-reduction { background: #FEE2E2; color: #B91C1C; }
.dark-theme .hezi-add-type-addition  { background: #14331f; color: #86EFAC; }
.dark-theme .hezi-add-type-reduction { background: #3a1717; color: #FCA5A5; }
.hezi-add-price-green { color: #15803D; font-weight: 600; }
.hezi-add-price-red   { color: #B91C1C; font-weight: 600; }
.dark-theme .hezi-add-price-green { color: #86EFAC; }
.dark-theme .hezi-add-price-red   { color: #FCA5A5; }

/* ============ 角色徽标 ============ */
.hezi-role-badge {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 999px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 600;
    background: var(--hezi-bg-light);
    color: var(--hezi-text-secondary);
    border: 1px solid var(--hezi-border, #e5e7eb);
}
.hezi-role-owner    { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.hezi-role-manager  { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.hezi-role-designer { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.hezi-role-worker   { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.hezi-role-supplier { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.hezi-role-admin    { background: #1F2937; color: #fff; border-color: #1F2937; }
.dark-theme .hezi-role-owner    { background: #1e2a44; color: #93C5FD; }
.dark-theme .hezi-role-manager  { background: #143325; color: #6EE7B7; }
.dark-theme .hezi-role-designer { background: #2a2342; color: #C4B5FD; }
.dark-theme .hezi-role-worker   { background: #3a2710; color: #FDBA74; }
.dark-theme .hezi-role-supplier { background: #3a1717; color: #FCA5A5; }
.dark-theme .hezi-role-admin    { background: #374151; color: #fff; }

/* ============ 弹窗表单行 ============ */
.hezi-form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.hezi-form-row label { font-size: 13px; color: var(--hezi-text-secondary); }
.hezi-form-row input,
.hezi-form-row textarea,
.hezi-form-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--hezi-border, #e2e8f0);
    border-radius: 7px;
    background: var(--hezi-input-bg, #fff);
    color: var(--hezi-text, #1f2937);
    font-size: 14px;
    box-sizing: border-box;
}
.hezi-form-row textarea { resize: vertical; }
.dark-theme .hezi-form-row input,
.dark-theme .hezi-form-row textarea,
.dark-theme .hezi-form-row select {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

/* ============ 站内消息 ============ */
.hezi-notif-item {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--hezi-card-alt, #f8fafc);
    margin-bottom: 10px;
    border-left: 3px solid transparent;
}
.hezi-notif-unread { border-left-color: var(--hezi-primary, #6366f1); background: #eef2ff; }
.dark-theme .hezi-notif-item { background: #1f2937; }
.dark-theme .hezi-notif-unread { background: #1e293b; }
.hezi-notif-title { font-size: 14px; font-weight: 600; color: var(--hezi-text, #1f2937); }
.hezi-notif-msg { font-size: 13px; color: var(--hezi-text-secondary); margin-top: 3px; }
.hezi-notif-time { font-size: 12px; color: var(--hezi-text-secondary); margin-top: 5px; opacity: .8; }

/* ============ 功能2：筛选栏 / 分页 / 加载态 / 空状态 ============ */
/* 输入框（筛选 + 表单模态框共用） */
.hezi-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--hezi-border, #e2e8f0);
    border-radius: 7px;
    background: var(--hezi-input-bg, #fff);
    color: var(--hezi-text, #1f2937);
    font-size: 14px;
    box-sizing: border-box;
}
.hezi-input:focus { outline: none; border-color: var(--hezi-primary, #6366f1); box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.dark-theme .hezi-input { background: #1f2937; border-color: #374151; color: #e5e7eb; }

/* 筛选栏 */
.hezi-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}
.hezi-filter-bar .hezi-input { width: auto; min-width: 150px; flex: 1 1 150px; }
.hezi-filter-sep { color: var(--hezi-text-secondary); font-size: 13px; }
.hezi-filter-apply, .hezi-filter-reset { white-space: nowrap; }
.hezi-filter-reset { background: var(--hezi-card-alt, #f1f5f9); color: var(--hezi-text-secondary); }
.dark-theme .hezi-filter-reset { background: #1f2937; }

/* 分页 */
.hezi-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--hezi-text-secondary);
}
.hezi-page-btns { display: flex; gap: 6px; }
.hezi-page-btn {
    padding: 6px 12px;
    border: 1px solid var(--hezi-border, #e2e8f0);
    border-radius: 7px;
    background: var(--hezi-input-bg, #fff);
    color: var(--hezi-text, #1f2937);
    cursor: pointer;
    font-size: 13px;
}
.hezi-page-btn:hover:not(:disabled) { border-color: var(--hezi-primary, #6366f1); color: var(--hezi-primary, #6366f1); }
.hezi-page-btn:disabled { opacity: .45; cursor: not-allowed; }
.hezi-page-size { padding: 6px 8px; border: 1px solid var(--hezi-border, #e2e8f0); border-radius: 7px; background: var(--hezi-input-bg, #fff); color: var(--hezi-text); font-size: 13px; }
.dark-theme .hezi-page-btn, .dark-theme .hezi-page-size { background: #1f2937; border-color: #374151; color: #e5e7eb; }

/* 加载态 Skeleton */
.hezi-skeleton-list { padding: 4px 0; }
.hezi-skeleton-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--hezi-border, #eef2f7);
}
.hezi-skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #eef1f5 25%, #e2e8f0 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: hezi-skeleton-loading 1.4s ease infinite;
}
.dark-theme .hezi-skeleton-line { background: linear-gradient(90deg, #1f2937 25%, #374151 37%, #1f2937 63%); background-size: 400% 100%; }
@keyframes hezi-skeleton-loading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 空状态（图标 + 文案 + 操作按钮） */
.hezi-empty-icon { font-size: 40px; line-height: 1; }
.hezi-empty-title { font-size: 15px; font-weight: 600; color: var(--hezi-text, #1f2937); margin-bottom: 6px; }
.hezi-empty-desc { color: var(--hezi-text-secondary); margin-bottom: 16px; }
.hezi-empty-action { margin-top: 4px; }

/* 账单汇总行 */
.hezi-bill-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 16px;
    background: var(--hezi-card-alt, #f8fafc);
    border: 1px solid var(--hezi-border, #e2e8f0);
    border-radius: var(--hezi-radius, 10px);
    font-size: 14px;
}
.hezi-bill-summary-row b { font-size: 16px; margin-left: 4px; }
.dark-theme .hezi-bill-summary-row { background: #1f2937; border-color: #374151; }

/* ============ 文件上传（对象存储） ============ */
.hezi-upload-zone {
    display: block;
}
.hezi-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.hezi-up-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hezi-border, #e2e8f0);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark-theme .hezi-up-item { background: #111827; }
.hezi-up-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hezi-up-file {
    font-size: 30px;
    line-height: 1;
}
.hezi-up-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.hezi-up-del:hover { background: var(--hezi-danger, #EF4444); }

/* ============ 列表项附件缩略图 ============ */
.hezi-list-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.hezi-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hezi-border, #e2e8f0);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.hezi-thumb:hover { border-color: var(--hezi-primary, #6366f1); transform: translateY(-1px); }
.dark-theme .hezi-thumb { background: #111827; }
.hezi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hezi-thumb-file {
    background: var(--hezi-card-alt, #f1f5f9);
}
.dark-theme .hezi-thumb-file { background: #1f2937; }
.hezi-thumb-ext {
    font-size: 12px;
    font-weight: 700;
    color: var(--hezi-text-secondary, #6b7280);
    letter-spacing: .03em;
}

