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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
}

#app {
    min-height: 100vh;
}

/* ========== 登录页面样式 ========== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 30px;
}

/* ========== 主布局样式 ========== */
.main-layout {
    min-height: 100vh;
}

.aside-menu {
    background-color: #304156;
    color: white;
}

.logo-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2b3a4c;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.header-bar {
    background-color: white;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-content {
    padding: 20px;
    background-color: #f5f7fa;
}

.content-card {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #303133;
}

/* ========== 表格样式 ========== */
.el-table {
    margin-top: 10px;
}

.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.form-container {
    max-width: 800px;
}

/* ========== 统计卡片样式 ========== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #409eff;
    margin: 10px 0;
}

.stat-label {
    color: #909399;
    font-size: 14px;
}

/* ========== 无权限提示样式 ========== */
.no-permission {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
}

.no-permission .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* ========== 角色徽章样式 ========== */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 8px;
}

.role-system-admin {
    background-color: #f56c6c;
    color: white;
}

.role-general-manager {
    background-color: #e6a23c;
    color: white;
}

.role-department-manager {
    background-color: #409eff;
    color: white;
}

.role-employee {
    background-color: #67c23a;
    color: white;
}

/* ========== 周报样式 ========== */
.report-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    font-size: 14px;
    color: #606266;
}

.report-item {
    padding: 15px;
    border-bottom: 1px solid #ebeef5;
    cursor: pointer;
    transition: background-color 0.3s;
}

.report-item:hover {
    background-color: #f5f7fa;
}

.report-item:last-child {
    border-bottom: none;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.report-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.report-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #909399;
}

.report-preview {
    color: #606266;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: pre-wrap;
}

/* ========== 时间段选择器样式优化 ========== */
.week-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-selector .el-date-editor--date {
    width: 160px !important;
}

.week-selector span {
    color: #606266;
    font-size: 14px;
    white-space: nowrap;
}

/* ========== 报销相关样式 ========== */
.reimbursement-tabs {
    margin-bottom: 20px;
}

.amount-display {
    padding: 10px;
    background-color: #f0f9ff;
    border-radius: 4px;
    color: #409eff;
    font-weight: 600;
    margin-top: 10px;
}

.upload-area {
    border: 2px dashed #dcdfe6;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #409eff;
}

.upload-area img {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
}

.status-tag {
    margin-right: 5px;
}

.approval-comment {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f7fa;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
}

/* ========== 底部 Tab 导航 ========== */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-tab-bar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    font-size: 10px;
    color: #909399;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-tab-bar .tab-item .el-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-tab-bar .tab-item.active {
    color: #409eff;
}

.mobile-tab-bar .tab-item span {
    margin-top: 2px;
}

/* ========== 报销卡片列表 ========== */
.reimbursement-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.reimbursement-card:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.reimbursement-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reimbursement-card .card-amount {
    font-size: 22px;
    font-weight: 700;
    color: #303133;
    margin: 6px 0;
}

.reimbursement-card .card-info {
    font-size: 13px;
    color: #606266;
    line-height: 1.8;
}

.reimbursement-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #909399;
}

.reimbursement-card .card-actions {
    display: flex;
    gap: 6px;
}

/* ========== 移动端适配 (<=767px) ========== */
@media screen and (max-width: 767px) {
    /* 登录框 */
    .login-box {
        width: 90%;
        max-width: 400px;
        padding: 25px 20px;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* 主布局 */
    .aside-menu {
        display: none !important;
    }

    .main-content {
        padding: 12px;
        padding-bottom: 70px;
    }

    .header-bar {
        padding: 0 12px;
        height: 50px;
    }

    /* 页面标题 */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-title {
        font-size: 18px;
    }

    /* 统计卡片 */
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* 周报列表 */
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .report-meta {
        flex-direction: column;
        gap: 4px;
    }

    /* 对话框 */
    .el-dialog {
        margin-top: 5vh !important;
    }

    .el-dialog__body {
        padding: 12px;
    }

    .form-container {
        max-width: 100%;
    }

    /* 表单标签垂直堆叠 */
    .el-form-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .el-form-item__label {
        width: auto !important;
        padding-right: 0;
        padding-bottom: 4px;
    }

    .el-form-item__content {
        margin-left: 0 !important;
        width: 100%;
    }

    /* 分页 */
    .pagination-container {
        justify-content: center;
    }

    /* 表格 */
    .el-table {
        font-size: 13px;
    }

    /* 内容卡片 */
    .content-card {
        padding: 12px;
    }

    /* 上传区域 */
    .upload-area img {
        max-width: 150px;
        max-height: 150px;
    }

    /* 周报选择器 */
    .week-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 看板双列变单列 */
    .stats-grid-2col {
        grid-template-columns: 1fr !important;
    }
}