* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 容器 */
.container {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    width: 100%;
    /* 根据屏幕大小动态调整最小宽度 */
    min-width: min(100%, 1200px);
}

/* 认证部分 */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    color: #666;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 表单 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* 按钮 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn:disabled,
.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-block {
    width: 100%;
}

/* 上传区域 */
.upload-section {
    margin-bottom: 2rem;
}

.upload-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.upload-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-color);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #e8f4ff;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: #e8f4ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-hint {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.upload-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group,
.action-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* 发票列表 */
.invoice-list {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.invoice-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.invoice-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.invoice-title {
    flex: 1;
}

.invoice-title h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.invoice-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.invoice-actions {
    display: flex;
    gap: 0.5rem;
}

.invoice-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.invoice-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 500;
    color: var(--dark-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active,
.modal[style*="display: flex"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    color: var(--dark-color);
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ==================== 支付凭证相关样式 ==================== */

/* 标签页 */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
}

.tab-button:hover {
    background: #f8f9fa;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 支付凭证列表 */
.payment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.payment-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.payment-card.associated {
    border-left-color: var(--success-color);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.platform-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}

.platform-badge.alipay {
    background: linear-gradient(135deg, #1677ff 0%, #0050b3 100%);
}

.platform-badge.wechat {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
}

.platform-badge.unknown {
    background: linear-gradient(135deg, #999 0%, #666 100%);
}

.payment-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--danger-color);
}

.payment-details {
    margin: 1rem 0;
}

.payment-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: flex-start;
}

.payment-details strong {
    min-width: 80px;
    color: #333;
}

.payment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.payment-actions .btn {
    flex: 1;
    min-width: 80px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge.associated {
    background: var(--success-color);
    color: white;
}

.badge.pending {
    background: var(--warning-color);
    color: white;
}

/* 未关联支付列表 */
.unassociated-payment-list {
    max-height: 400px;
    overflow-y: auto;
}

.unassociated-payment-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unassociated-payment-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.unassociated-payment-item .platform-badge {
    margin-right: 0.5rem;
}

.payment-info-summary {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* 关联支付凭证显示（在发票详情中） */
.associated-payments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.associated-payments-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.associated-payment-mini {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.associated-payment-mini .platform-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        min-width: auto;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .invoice-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ==================== 报销项目UI样式 ==================== */

/* 双按钮上传区域 */
/* 项目信息栏 */
.project-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-info-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.btn-back-to-projects {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-back-to-projects:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px);
}

.project-upload-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 响应式：项目信息栏 */
@media (max-width: 768px) {
    .project-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-title-section {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-info-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-back-to-projects {
        width: 100%;
        text-align: center;
    }
    
    .project-upload-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .project-upload-actions .btn {
        width: 100%;
    }
}

.upload-section-dual {
    margin-bottom: 2rem;
}

.upload-card-dual {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.upload-card-dual h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.upload-hint-dual {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.dual-upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.upload-area-dual {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafbfc;
}

.upload-area-dual:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    transform: translateY(-2px);
}

.upload-area-dual.dragover {
    border-color: var(--primary-color);
    background: #e6f2ff;
    border-style: solid;
}

.upload-icon-dual {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area-dual h4 {
    margin: 0.5rem 0;
    color: var(--dark-color);
}

.upload-area-dual p {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.upload-area-dual .btn {
    margin-top: 0.5rem;
}

/* 报销项目列表 - 行式布局 */
.reimbursement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
    padding-right: 8px;
}

/* 自定义滚动条样式 */
.reimbursement-list::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.reimbursement-list::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.reimbursement-list::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.reimbursement-list::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* 报销项目行 */
.reimbursement-row {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    position: relative;
}

/* 报销项目删除按钮 */
.reimbursement-row-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.reimbursement-row:hover .reimbursement-row-delete,
.reimbursement-row-delete:focus {
    opacity: 1;
}

.reimbursement-row-delete:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.reimbursement-row:hover {
    background: #e8f4ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
}

.reimbursement-row:active {
    transform: translateY(0);
}

.reimbursement-row.matched {
    border-left-color: var(--success-color);
}

.reimbursement-row.mismatch {
    border-left-color: var(--warning-color);
}

.reimbursement-row.incomplete {
    border-left-color: var(--secondary-color);
}

.reimb-checkbox {
    flex-shrink: 0;
}

.reimb-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.reimb-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reimb-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

.reimb-meta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 0.85rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.reimb-amount-col {
    text-align: right;
    flex-shrink: 0;
    min-width: 120px;
}

.amount-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: 0.25rem;
}

.match-badge {
    font-size: 0.8rem;
    font-weight: 500;
}

.match-badge.matched {
    color: var(--success-color);
}

.match-badge.mismatch {
    color: var(--warning-color);
}

.match-badge.incomplete {
    color: var(--secondary-color);
}

.reimb-actions-col {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.reimb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.reimb-title-section h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.reimb-amount-section {
    text-align: right;
}

.amount-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: 0.25rem;
}

.match-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.match-status.matched {
    color: var(--success-color);
}

.match-status.mismatch {
    color: var(--warning-color);
}

.match-status.incomplete {
    color: var(--secondary-color);
}

.reimb-content {
    margin-bottom: 1rem;
}

.reimb-meta {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.reimb-items {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.reimb-item-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.reimb-item-summary.text-muted {
    color: #999;
}

.item-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.reimb-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reimb-actions .btn {
    flex: 1;
    min-width: 70px;
}

/* 报销项目详情模态框 */
.modal-large {
    max-width: 800px;
}

.associated-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.associated-section h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.associated-items {
    margin-bottom: 1rem;
}

.associated-section {
    margin-bottom: 1.5rem;
}

.associated-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.associated-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.associated-item.selected {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.item-checkbox {
    flex-shrink: 0;
    cursor: pointer;
}

.item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.item-icon {
    font-size: 1.5rem;
}

.item-details {
    flex: 1;
}

.item-details strong {
    display: block;
    margin-bottom: 0.25rem;
}

.item-meta {
    font-size: 0.85rem;
    color: #666;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.amount-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d0e7ff;
}

.amount-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.summary-row strong {
    font-size: 1.1rem;
}

.summary-status {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #d0e7ff;
}

.summary-status strong.matched {
    color: var(--success-color);
}

.summary-status strong.mismatch {
    color: var(--warning-color);
}

.summary-status strong.incomplete {
    color: var(--secondary-color);
}

/* 未关联项目列表 */
.unassociated-list {
    max-height: 400px;
    overflow-y: auto;
}

.unassociated-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unassociated-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.unassociated-item strong {
    display: block;
    margin-bottom: 0.5rem;
}

.item-info {
    font-size: 0.85rem;
    color: #666;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* 加载和空状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .dual-upload-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reimbursement-row {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .reimb-checkbox {
        order: 1;
    }
    
    .reimb-info {
        order: 2;
        flex: 0 0 calc(100% - 50px);
        margin-bottom: 0.5rem;
    }
    
    .reimb-amount-col {
        order: 3;
        flex: 0 0 50%;
        text-align: left;
    }
    
    .reimb-actions-col {
        order: 4;
        flex: 0 0 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .reimb-actions-col .btn {
        flex: 1;
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
}

/* ==================== Toast Notification System ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast.toast-success {
    border-left-color: var(--success-color);
}

.toast.toast-error {
    border-left-color: var(--danger-color);
}

.toast.toast-warning {
    border-left-color: var(--warning-color);
}

.toast.toast-info {
    border-left-color: var(--primary-color);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--danger-color); }
.toast-warning .toast-icon { color: var(--warning-color); }
.toast-info .toast-icon { color: var(--primary-color); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 3s linear;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

/* ==================== Enhanced Loading Overlay ==================== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    animation: fadeIn 0.2s ease-out;
}

#loadingOverlay.show {
    display: flex;
}

.loading-content {
    background: white;
    border-radius: 12px;
    padding: 32px 48px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.loading-progress {
    width: 100%;
    max-width: 400px;
    margin: 16px auto 0;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
}

/* ==================== Document Classification Styles ==================== */

/* 文档分类标签 */
.badge {
    margin-left: 8px;
    font-size: 0.7rem;
    vertical-align: middle;
}

.badge-success {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
}

/* 需要支付凭证提示 */
.text-warning {
    color: #ff9800;
    font-size: 0.85rem;
    margin-left: 8px;
    font-weight: 500;
}

/* 发票项详情增强 */
.associated-item .item-details > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* Tooltip样式 */
[title] {
    position: relative;
    cursor: help;
}

/* 匹配状态提示 */
.match-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

.match-warning strong {
    color: #856404;
}

/* ==================== Payment Enhanced Styles ==================== */

/* 支付用途标签 */
.payment-purpose-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* 支付来源标签 */
.payment-source-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 6px;
    border: 1px solid #90caf9;
}

/* 文档分类标签（发票） */
.document-category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    margin-left: 8px;
}

.document-category-badge.success {
    background-color: #28a745;
    color: white;
}

.document-category-badge.warning {
    background-color: #ffc107;
    color: #333;
}

/* 需要支付凭证警告 */
.needs-payment-proof-warning {
    color: #ff9800;
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.85rem;
}

/* ==================== Reimbursement Summary Styles ==================== */

/* 报销项目摘要容器 */
.reimb-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px 0;
    flex-wrap: wrap;
}

/* 用途徽章（突出显示） */
.summary-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-badge.purpose {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-badge.category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 摘要标签 */
.summary-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    border: 1px solid #e0e0e0;
}

/* ==================== Collapsible Upload Section ==================== */

/* 可折叠标题 */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    margin: -8px;
    margin-bottom: 16px;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
}

.collapsible-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* 折叠图标 */
.collapse-icon {
    display: inline-block;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.collapse-icon.collapsed {
    transform: rotate(-90deg);
}

/* 可折叠容器 */
.dual-upload-container {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
    margin-top: 0;
}

.dual-upload-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: -20px;
}

/* ==================== Custom Confirm Dialog ==================== */

/* 确认对话框遮罩 */
.confirm-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确认对话框主体 */
.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 对话框头部 */
.confirm-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.confirm-dialog-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

/* 对话框内容 */
.confirm-dialog-body {
    padding: 24px;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.confirm-dialog-body p {
    margin: 0;
    white-space: pre-line;
}

/* 对话框底部 */
.confirm-dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-dialog-footer .btn {
    min-width: 80px;
    padding: 10px 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .confirm-dialog {
        min-width: 90%;
        max-width: 90%;
    }
}

/* ====================================
   可点击项样式
   ==================================== */
.clickable-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-item:hover {
    background: #f0f4ff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
}

.clickable-item:active {
    transform: translateX(2px);
}

/* ====================================
   详情Modal样式
   ==================================== */
.detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

.detail-modal-content {
    background-color: #fff;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.detail-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

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

.detail-modal-header .close {
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    opacity: 0.9;
}

.detail-modal-header .close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.detail-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 左侧图片区域 */
.detail-image-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-container {
    width: 100%;
    max-height: 600px;
    overflow: auto;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-image-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.detail-image-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.detail-image-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.detail-image-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.detail-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    min-height: 200px;
}

/* 右侧信息区域 */
.detail-info-section {
    overflow-y: auto;
    max-height: 600px;
}

.detail-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.detail-input,
.detail-textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.detail-input:focus,
.detail-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.detail-textarea {
    min-height: 80px;
    resize: vertical;
}

.detail-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.detail-modal-footer .btn {
    min-width: 100px;
    padding: 10px 20px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-image-container {
        max-height: 400px;
    }
    
    .detail-info-section {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .detail-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .detail-modal-body {
        padding: 16px;
    }
}

/* ====================================
   三栏布局样式
   ==================================== */
.three-column-layout {
    display: grid;
    /* 使用相对单位，根据屏幕宽度自动调整 */
    grid-template-columns: minmax(280px, 1fr) minmax(1000px, 3fr) minmax(280px, 1fr);
    gap: clamp(16px, 2vw, 24px);
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

/* 侧边栏列 */
.sidebar-column {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px);
    min-height: 600px;
    max-height: calc(100vh - 120px);
    /* 使用相对单位，最小宽度根据屏幕大小调整 */
    min-width: clamp(280px, 20vw, 400px);
    max-width: 100%;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

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

.filter-select {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.filter-select option {
    background: #667eea;
    color: white;
}

.btn-danger-icon {
    background: rgba(220, 53, 69, 0.3);
}

.btn-danger-icon:hover {
    background: rgba(220, 53, 69, 0.5);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* 侧边栏项目卡片 */
.sidebar-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

/* 侧边栏删除按钮 */
.sidebar-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sidebar-item:hover .sidebar-item-delete,
.sidebar-item-delete:focus {
    opacity: 1;
}

.sidebar-item-delete:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.sidebar-item:hover {
    background: #e8f4ff;
    border-color: #667eea;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.sidebar-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.sidebar-item-icon {
    font-size: 24px;
    margin-right: 8px;
}

.sidebar-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.sidebar-item-amount {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.sidebar-item-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.sidebar-item-meta div {
    margin-bottom: 4px;
}

.sidebar-item-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 4px;
}

.sidebar-item-badge.platform {
    background: #e3f2fd;
    color: #1976d2;
}

.sidebar-item-badge.category {
    background: #f3e5f5;
    color: #7b1fa2;
}

.sidebar-item-badge.warning {
    background: #fff3e0;
    color: #f57c00;
}

.sidebar-item-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 主列 */
.main-column {
    display: flex;
    flex-direction: column;
    /* 中间列最小宽度根据屏幕大小调整 */
    min-width: clamp(800px, 60vw, 1200px);
    max-width: 100%;
}

.main-column .sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.main-column .reimbursement-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-column .pagination {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

/* 侧边栏空状态 */
.sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.sidebar-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.sidebar-empty-text {
    font-size: 14px;
}

/* 响应式 */
/* 大屏幕优化 (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1920px;
        padding: 0 2rem;
    }
    
    .three-column-layout {
        grid-template-columns: minmax(400px, 1fr) minmax(800px, 3fr) minmax(400px, 1fr);
        gap: 32px;
    }
    
    .sidebar-column {
        min-width: 400px;
    }
    
    .main-column {
        min-width: 800px;
    }
}

/* 中等大屏幕 (1600px - 1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .three-column-layout {
        grid-template-columns: minmax(340px, 1fr) minmax(700px, 2.5fr) minmax(340px, 1fr);
        gap: 24px;
    }
    
    .sidebar-column {
        min-width: 340px;
    }
    
    .main-column {
        min-width: 700px;
    }
}

/* 中等屏幕 (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .three-column-layout {
        grid-template-columns: minmax(300px, 1fr) minmax(600px, 2fr) minmax(300px, 1fr);
        gap: 20px;
    }
    
    .sidebar-column {
        min-width: 300px;
    }
    
    .main-column {
        min-width: 600px;
    }
}

/* 小屏幕 (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .three-column-layout {
        grid-template-columns: minmax(280px, 0.9fr) minmax(500px, 2fr) minmax(280px, 0.9fr);
        gap: 16px;
    }
    
    .sidebar-column {
        min-width: 280px;
    }
    
    .main-column {
        min-width: 500px;
    }
}

@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        overflow-x: visible;
    }
    
    .sidebar-column {
        height: 400px;
        max-height: 500px;
        min-width: auto;
        width: 100%;
    }
    
    .main-column {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar-column {
        height: 300px;
    }
    
    .sidebar-item {
        padding: 10px;
    }
}

/* ==================== Projects Page Styles ==================== */
.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.projects-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #6366f1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-card-creating {
    cursor: default;
    border: 2px dashed #6366f1;
    background: #f8f9ff;
    animation: pulse-border 1.5s ease-in-out infinite;
}

.project-card-creating:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #6366f1;
    }
    50% {
        border-color: #818cf8;
    }
}

.project-card-input {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: inherit;
}

.project-card-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.project-card-creating-hint {
    text-align: center;
    padding: 0.5rem 0;
    color: #6b7280;
}

.project-card-creating-hint small {
    font-size: 0.85rem;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.project-card-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-card:hover .project-card-actions {
    opacity: 1;
}

.project-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.project-card-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.stat-item {
    font-size: 0.85rem;
    color: #6b7280;
}

.project-card-preview {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.project-card-preview small {
    color: #9ca3af;
    font-size: 0.8rem;
}

.project-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.empty-state p {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* New Project Card (similar to image) */
.project-card.new-project {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 2px dashed #6366f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    cursor: pointer;
}

.project-card.new-project:hover {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
}

.project-card.new-project .new-project-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6366f1;
}

.project-card.new-project .new-project-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6366f1;
}

/* Responsive adjustments for projects page */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}




