/* ============================================
   墨方物流财务中台 - 全局样式
   适配：手机端 (320px+) + 平板端 (768px+)
   ============================================ */

/* --- CSS 变量 --- */
:root {
    /* 主色系 - 更高级的蓝紫色调 */
    --primary: #4F6EF7;
    --primary-dark: #3B54D4;
    --primary-light: #EEF1FE;
    --primary-gradient: linear-gradient(135deg, #4F6EF7 0%, #6C8CFF 100%);

    /* 语义色 - 更柔和的配色 */
    --success: #34B87C;
    --success-light: #EDF9F3;
    --warning: #F0A030;
    --warning-light: #FFFAF0;
    --danger: #E85555;
    --danger-light: #FDF0F0;
    --info: #5B8DEF;

    /* 中性色 - 更有层次 */
    --text-primary: #1D2129;
    --text-secondary: #4E5969;
    --text-tertiary: #86909C;
    --text-placeholder: #C9CDD4;
    --border: #E5E6EB;
    --border-light: #F2F3F5;
    --bg-page: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-hover: #F9FAFB;

    /* 阴影 - 更精致 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);

    /* 圆角 */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;

    /* 字号 */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 20px;
    --font-3xl: 24px;
    --font-4xl: 28px;

    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;

    /* 导航栏高度 */
    --nav-height: 56px;
    --bottom-nav-height: 60px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--font-md);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-page);
    position: relative;
}

/* 平板适配 */
@media (min-width: 768px) {
    .app-container {
        max-width: 768px;
    }
}

/* iPad Pro / 大屏平板适配 */
@media (min-width: 1024px) {
    .app-container {
        max-width: 768px;
        box-shadow: var(--shadow-xl);
    }
    body {
        background: #E8ECF1;
    }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    min-height: 42px;
    letter-spacing: 0.01em;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(79, 110, 247, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.96);
}

.btn-outline {
    background: #fff;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 85, 85, 0.3);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 184, 124, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-lg);
    border-radius: var(--radius-md);
    min-height: 48px;
}

.btn-sm {
    padding: 7px 16px;
    font-size: var(--font-sm);
    min-height: 34px;
    border-radius: var(--radius-xs);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* --- Forms --- */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 var(--spacing-lg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-md);
    color: var(--text-primary);
    background: #fff;
    transition: all var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-input::placeholder {
    color: var(--text-placeholder);
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(229, 69, 69, 0.1);
}

.form-error {
    font-size: var(--font-xs);
    color: var(--danger);
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error.show {
    display: block;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-md);
    color: var(--text-primary);
    background: #fff;
    resize: vertical;
    transition: all var(--transition-fast);
    outline: none;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

/* --- Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-lg);
    box-shadow: 0 1px 0 var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar-back {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: var(--font-md);
    cursor: pointer;
    border: none;
    background: none;
    padding: var(--spacing-sm);
}

.navbar-back .arrow {
    font-size: 20px;
    line-height: 1;
}

.navbar-title {
    flex: 1;
    text-align: center;
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 50px;
}

.navbar-action {
    color: var(--primary);
    font-size: var(--font-md);
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    padding: var(--spacing-sm);
}

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: #fff;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-light);
    z-index: 100;
    padding-bottom: var(--safe-area-bottom);
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        max-width: 768px;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-tertiary);
    font-size: var(--font-xs);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: var(--spacing-xs) 0;
    border: none;
    background: none;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item .nav-icon {
    font-size: 22px;
    line-height: 1;
}

/* --- List Items --- */
.list-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.list-item:active {
    background: var(--bg-hover);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.list-item-extra {
    text-align: right;
    margin-left: var(--spacing-md);
}

.list-item-value {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.list-item-arrow {
    color: var(--text-tertiary);
    margin-left: var(--spacing-sm);
    font-size: 18px;
}

/* --- Tags / Badges --- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.8;
}

.tag-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.tag-success {
    background: var(--success-light);
    color: var(--success);
}

.tag-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.tag-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.tag-default {
    background: var(--border-light);
    color: var(--text-secondary);
}

/* --- Status Indicators --- */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.pending { background: var(--warning); }
.status-dot.approved { background: var(--success); }
.status-dot.rejected { background: var(--danger); }
.status-dot.draft { background: var(--text-tertiary); }

/* --- Info Rows --- */
.info-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 90px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.info-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
    font-weight: 500;
}

/* --- Modal / Overlay --- */
.modal-overlay,
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn var(--transition-normal);
}

    .modal-overlay.center,
    .modal-mask.center {
        align-items: center;
    }

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-2xl) var(--spacing-xl);
    animation: slideUp var(--transition-slow);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-overlay.center .modal-content {
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl);
    width: calc(100% - 40px);
}

.modal-confirm,
.modal-message-box {
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-lg);
    line-height: 1;
}

.modal-icon.success { color: var(--success); }
.modal-icon.warning { color: var(--warning); }
.modal-icon.error { color: var(--danger); }
.modal-icon.info { color: var(--info); }

.modal-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.modal-message {
    font-size: var(--font-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
}

.modal-actions-center {
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
}

.modal-actions-center .btn {
    flex: 0 1 auto;
    min-width: 140px;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    pointer-events: none;
    width: 100%;
    max-width: 480px;
    padding: 0 var(--spacing-xl);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-md);
    color: var(--text-primary);
    pointer-events: auto;
    animation: toastIn var(--transition-normal);
    max-width: 100%;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-close {
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    border: none;
    background: none;
    flex-shrink: 0;
}

/* --- Empty State --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state-text {
    font-size: var(--font-md);
    color: var(--text-tertiary);
}

/* --- Search Bar --- */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md);
    gap: var(--spacing-sm);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--font-md);
    color: var(--text-primary);
    outline: none;
    height: 32px;
}

.search-bar input::placeholder {
    color: var(--text-placeholder);
}

.search-icon {
    color: var(--text-tertiary);
    font-size: 18px;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md) var(--spacing-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: var(--font-sm);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-chip.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.filter-chip .chip-arrow {
    font-size: 10px;
}

/* --- Section Header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
}

.section-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-count {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
    font-weight: 400;
}

/* --- Detail Page Specific --- */
.detail-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: var(--spacing-2xl) var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.detail-header::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.detail-header .amount {
    font-size: var(--font-4xl);
    font-weight: 700;
    margin: var(--spacing-sm) 0;
}

.detail-header .statement-no {
    font-size: var(--font-sm);
    opacity: 0.85;
    margin-bottom: var(--spacing-xs);
}

.detail-section {
    background: #fff;
    margin: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.detail-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.detail-section-title .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- Attachment List --- */
.attachment-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.attachment-item:last-child {
    border-bottom: none;
}

.attachment-item:active {
    background: var(--bg-hover);
}

.attachment-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: var(--font-md);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
}

/* --- Timeline --- */
.timeline {
    padding: var(--spacing-md) var(--spacing-lg);
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.timeline-item:not(:last-child) .timeline-dot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 4px;
    width: 2px;
    height: calc(100% + var(--spacing-lg));
    background: var(--border);
}

.timeline-dot.completed { background: var(--success); }
.timeline-dot.rejected { background: var(--danger); }
.timeline-dot.current { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-light); }

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-time {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.timeline-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* --- Comment List --- */
.comment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: var(--font-md);
    font-weight: 600;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.comment-time {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
    margin-left: var(--spacing-sm);
}

.comment-text {
    font-size: var(--font-md);
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

/* --- Bottom Action Bar --- */
.action-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-md) var(--spacing-lg);
    padding-bottom: calc(var(--spacing-md) + var(--safe-area-bottom));
    display: flex;
    gap: var(--spacing-sm);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 50;
}

.action-bar .btn {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.02em;
    gap: 6px;
}

/* --- Home Page Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.stat-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: var(--spacing-md);
}

.stat-card .stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-card .stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-card .stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-card .stat-icon.red { background: var(--danger-light); color: var(--danger); }

.stat-card .stat-value {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.login-header {
    background: var(--primary-gradient);
    padding: 56px var(--spacing-2xl) 36px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-radius: 50% 50% 0 0;
}

.login-header .login-logo {
    font-size: 52px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-header .login-app-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-header .login-subtitle {
    font-size: 13px;
    opacity: 0.75;
    margin-top: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.login-body {
    flex: 1;
    padding: var(--spacing-3xl) var(--spacing-2xl);
}

.login-body .form-group {
    margin-bottom: var(--spacing-xl);
}

.login-body .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
}

.login-body .form-input {
    height: 52px;
    border-radius: var(--radius-sm);
    padding-left: 44px;
    font-size: 15px;
    border: 1.5px solid var(--border);
    background: #F9FAFB;
    transition: all 0.2s;
}

.login-body .form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.login-body .input-icon-wrapper {
    position: relative;
}

.login-body .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-tertiary);
    z-index: 1;
    pointer-events: none;
}

.login-body .btn-primary {
    height: 52px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.login-footer {
    text-align: center;
    padding: var(--spacing-xl);
    font-size: var(--font-xs);
    color: var(--text-tertiary);
}

/* --- Approval List Page --- */
.approval-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
}

.approval-tab {
    flex: 1;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    color: rgb(255, 255, 255);
}

.approval-tab.active {
    color: var(--primary);
}

.approval-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.approval-tab .tab-count {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: top;
}

/* --- Reject Modal Form --- */
.reject-form {
    text-align: left;
}

.reject-form .form-textarea {
    margin-top: var(--spacing-md);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Loading --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading 蒙层（居中转圈） */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.loading-box {
    background: #fff;
    border-radius: 14px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 140px;
}

.loading-spinner-dark {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-tertiary); }
.text-bold { font-weight: 600; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Pull to refresh indicator --- */
.pull-indicator {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-tertiary);
    font-size: var(--font-sm);
    display: none;
}

/* ============================================
   页面级组件样式（替代内联 style）
   ============================================ */

/* --- 顶部蓝色渐变导航栏 (Header Bar) --- */
.header-bar {
    background: var(--primary-gradient);
    padding: 40px 16px 0;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    height: 36px;
}

.header-bar-title {
    font-size: 18px;
    font-weight: 600;
}

/* 圆形图标按钮（返回、筛选等） */
.circle-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.circle-btn-left {
    left: 0;
}

.circle-btn-right {
    right: 0;
}

/* --- Detail 页面顶部导航（不带 tab 的简化版） --- */
.detail-header-bar {
    background: var(--primary-gradient);
    padding: 40px 16px 20px;
    color: #fff;
    position: relative;
}

.detail-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    height: 32px;
}

/* --- Tab 切换栏 --- */
.tab-bar {
    display: flex;
    border-bottom: none;
}

.tab-indicator-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.tab-indicator {
    position: absolute;
    left: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    transition: left 0.3s;
}

/* 列表容器 */
.list-container {
    padding: 12px;
    min-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- 筛选面板 --- */
.filter-panel {
    display: none;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 174px;
    z-index: 99;
}

.filter-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

/* --- 审批列表项 --- */
.approval-item {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.approval-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.approval-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.approval-item-body {
    display: flex;
    gap: 12px;
}

.approval-item-thumb {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F0A030, #F5C060);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(240, 160, 48, 0.3);
}

.approval-item-info {
    flex: 1;
    min-width: 0;
}

.approval-item-field {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.approval-item-amount {
    color: var(--danger);
    font-weight: 600;
}

.approval-item-amount-cn {
    color: var(--warning);
    font-size: 12px;
}

.approval-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.approval-item-wait {
    font-size: 12px;
    color: var(--danger);
}

.approval-item-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.approval-item-actions {
    display: flex;
    gap: 8px;
}

/* 拒绝原因条 */
.reject-reason-bar {
    margin-top: 12px;
    padding: 12px;
    background: var(--danger-light);
    border-radius: 10px;
    border-left: 3px solid var(--danger);
    font-size: 13px;
    color: var(--danger);
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 16px;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
}

/* --- Detail 详情页 --- */

/* 信息卡片（浮动在 header 上的白色卡片） */
.info-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 进行中印章 */
.status-stamp {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 2px solid var(--warning);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
    font-size: 13px;
    font-weight: 700;
    transform: rotate(15deg);
    opacity: 0.85;
}

.info-card-row {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.info-card-row:last-child {
    margin-bottom: 0;
}

.info-card-row + .info-card-row.warn {
    margin-top: 4px;
}

/* 详情区块 */
.detail-section {
    background: #fff;
    margin: 12px 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.detail-section-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.02em;
}

.detail-section-body {
    padding: 0 16px;
}

.detail-section-body-padded {
    padding: 16px;
}

/* --- 流程步骤 --- */
.flow-step {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.flow-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

.flow-step-dot.done {
    background: var(--success);
}

.flow-step-dot.active {
    background: var(--warning);
    box-shadow: 0 0 0 4px var(--warning-light);
}

.flow-step-dot.pending {
    background: var(--border);
    color: var(--text-tertiary);
}

.flow-step-dot.rejected {
    background: var(--danger);
}

.flow-step-info {
    margin-left: 12px;
    flex: 1;
}

.flow-step-name {
    font-size: 14px;
    font-weight: 500;
}

.flow-step-name.muted {
    color: var(--text-tertiary);
}

.flow-step-status {
    font-size: 12px;
    color: var(--text-tertiary);
}

.flow-step-status.warn {
    color: var(--warning);
}

.flow-step-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.flow-connector {
    margin-left: 11px;
    border-left: 2px dashed var(--border);
    height: 20px;
    margin-bottom: 16px;
}

/* 留言列表底部的计数提示 */
.comment-footer-tip {
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* --- Home 首页 --- */

/* 顶部区域 */
.home-header {
    background: var(--primary-gradient);
    padding: 44px 16px 56px;
    color: #fff;
}

.home-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.home-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 28px;
}

.home-user-info-name {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.home-user-role-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

/* 统计卡片 */
.stats-card {
    background: #fff;
    margin: -48px 16px 0;
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-block-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-block-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-weight: 400;
}

/* 首页分组标题 */
.home-section {
    margin-top: 28px;
    padding: 0 16px;
}

.home-section:last-of-type {
    padding-bottom: 28px;
}

.home-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* 功能图标网格 */
.func-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.func-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.func-item:active {
    transform: scale(0.95);
}

.func-item-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.func-item-icon.blue {
    background: linear-gradient(135deg, #4F6EF7, #6C8CFF);
    box-shadow: 0 4px 12px rgba(79, 110, 247, 0.3);
}

.func-item-icon.orange {
    background: linear-gradient(135deg, #F0A030, #F5C060);
    box-shadow: 0 4px 12px rgba(240, 160, 48, 0.3);
}

.func-item-icon.red {
    background: linear-gradient(135deg, #E85555, #F08080);
    box-shadow: 0 4px 12px rgba(232, 85, 85, 0.3);
}

.func-item-icon.coral {
    background: linear-gradient(135deg, #FF8C69, #FFB088);
    box-shadow: 0 4px 12px rgba(255, 140, 105, 0.3);
}

.func-item-icon.purple {
    background: linear-gradient(135deg, #7B68EE, #9B8EFF);
}

.func-item-icon.danger-text {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.func-item-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(232, 85, 85, 0.3);
}

.func-item-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.func-item-label.muted {
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.4;
}

.func-item.disabled {
    opacity: 0.6;
    transition: opacity 0.2s;
}

/* --- Error 页面 --- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    text-align: center;
}

.error-page-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-page-title {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.error-page-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- 弹窗（Layout 中） --- */
.modal-header-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.modal-header-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.modal-content-sheet {
    border-radius: 16px 16px 0 0;
}

/* 状态标签（内联 tag 的通用写法） */
.status-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.status-tag.warn {
    color: var(--warning);
    background: var(--warning-light);
}

.status-tag.success {
    color: var(--success);
    background: var(--success-light);
}

.status-tag.danger {
    color: var(--danger);
    background: var(--danger-light);
}

/* 操作按钮变体 */
.btn-approve {
    background: linear-gradient(135deg, #4F6EF7, #6C8CFF);
    color: #fff;
    border: none;
    min-width: 72px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}

.btn-reject {
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    min-width: 72px;
    gap: 4px;
}

.btn-reject-danger {
    background: linear-gradient(135deg, #E85555, #F08080);
    color: #fff;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(232, 85, 85, 0.3);
}

.btn-comment {
    gap: 6px;
}

.btn-filter-reset {
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-filter-confirm {
    flex: 1;
    background: linear-gradient(135deg, #4F6EF7, #6C8CFF);
    color: #fff;
    border: none;
}

.btn-confirm-warn {
    background: #F5A623;
    border-color: #F5A623;
}

/* 金额高亮 */
.amount-highlight {
    font-weight: 600;
    color: var(--danger);
}

/* 留言头像变体 */
.comment-avatar-alt {
    background: #F5A623;
    color: #fff;
}

.comment-avatar-new {
    background: #5B8DEF;
    color: #fff;
}

/* 间距辅助 */
.spacer-20 {
    height: 20px;
}

/* 列表项被隐藏的容器 */
.tab-list-panel {
    display: none;
}

/* 下拉刷新指示器 */
.pull-refresh-indicator {
    text-align: center;
    padding: 0;
    color: var(--text-tertiary);
    font-size: 13px;
    height: 0;
    overflow: hidden;
    transition: height 0.2s;
}

#confirm-modal{
    z-index:9999;
}

/* --- 油费借支四列统计栏 --- */
.oil-stats-row {
    display: flex;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-page);
    border-radius: 8px;
}

.oil-stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}

    .oil-stat-item + .oil-stat-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 4px;
        bottom: 4px;
        width: 1px;
        background: var(--border);
    }

.oil-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.oil-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

    .oil-stat-value.amount {
        color: var(--danger);
    }

    .oil-stat-value.success {
        color: var(--success);
    }

    .oil-stat-value.muted {
        color: var(--text-tertiary);
        font-weight: 400;
    }

/* 打款二维码 */
.payment-qrcode-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-page);
}

    .payment-qrcode-wrapper:active {
        border-color: var(--primary);
    }

.payment-qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.payment-qrcode-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
}

.payment-qrcode-placeholder-icon {
    font-size: 36px;
    margin-bottom: 6px;
}

.payment-qrcode-placeholder-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 图片预览灯箱 */
.image-preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .image-preview-overlay.active {
        display: flex;
    }

    .image-preview-overlay img {
        max-width: 90vw;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 8px;
    }
