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

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #303133;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #409eff;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: #001529;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    border-bottom: 1px solid #0c2740;
    color: #fff;
    background: #002140;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .logo img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}

.sidebar .menu {
    list-style: none;
    flex: 1;
}

.sidebar .menu li {
    line-height: 50px;
    padding: 0 24px;
    color: #cad3da;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar .menu li:hover {
    background: #00284d;
    color: #fff;
}

.sidebar .menu li.active {
    background: #1890ff;
    color: #fff;
    border-left-color: #fff;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header {
    height: 60px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header .title {
    font-size: 18px;
    font-weight: 600;
}

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

.header .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1890ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.content {
    padding: 20px;
    flex: 1;
}

.card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-center {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #1890ff;
}

.stat-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
}

.stat-card .icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.bg-blue { background: #1890ff; }
.bg-green { background: #52c41a; }
.bg-orange { background: #fa8c16; }
.bg-red { background: #f5222d; }
.bg-purple { background: #722ed1; }

.stat-card .info .num {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.stat-card .info .label {
    color: #909399;
    font-size: 13px;
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 7px 16px;
    border-radius: 4px;
    background: #1890ff;
    color: #fff;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-search { background: #1890ff; }
.btn-add { background: #52c41a; }
.btn-edit { background: #faad14; }
.btn-del { background: #f5222d; }
.btn-success { background: #52c41a; }
.btn-default { background: #909399; }

input.inp, select.inp, textarea.inp {
    padding: 7px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
}

input.inp:focus, select.inp:focus, textarea.inp:focus {
    border-color: #1890ff;
}

textarea.inp { width: 100%; resize: vertical; }

table.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table.table th, table.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    font-size: 13px;
}

table.table th {
    background: #fafafa;
    color: #606266;
    font-weight: 600;
}

table.table tr:hover td {
    background: #f5f7fa;
}

table.table td .action-btns {
    display: flex;
    gap: 6px;
}

.action-btns .mini {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
}

.tag-pending { background: #faad14; }
.tag-done { background: #52c41a; }
.tag-closed { background: #909399; }
.tag-rejected { background: #f5222d; }

.pagination {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
    color: #606266;
}

.pagination .pgbtn {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination .pgbtn:hover { color: #1890ff; border-color: #1890ff; }
.pagination .pgbtn.disabled { color: #c0c4cc; cursor: not-allowed; }
.pagination .pgbtn.active { background: #1890ff; color: #fff; border-color: #1890ff; }

.login-bg {
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    filter: blur(10px);
    z-index: -1;
}

.login-wrap {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 380px;
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #1890ff;
}

.login-box .sub {
    text-align: center;
    color: #909399;
    margin-bottom: 28px;
    font-size: 13px;
}

.login-box .form-item {
    margin-bottom: 18px;
}

.login-box .form-item label {
    display: block;
    margin-bottom: 6px;
    color: #606266;
    font-size: 13px;
}

.login-box .form-item input {
    width: 100%;
}

.login-box .btn-login {
    width: 100%;
    padding: 10px 0;
    background: #1890ff;
    color: #fff;
    font-size: 15px;
    border-radius: 4px;
    margin-top: 6px;
}

.login-box .btn-login:hover { opacity: 0.9; }

.login-box .switch {
    text-align: center;
    margin-top: 16px;
    color: #909399;
    font-size: 13px;
    cursor: pointer;
}

.login-box .tip {
    text-align: center;
    margin-top: 14px;
    color: #c0c4cc;
    font-size: 12px;
}

.modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    width: 520px;
    background: #fff;
    border-radius: 6px;
    max-height: 90vh;
    overflow: auto;
}

.modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.modal .modal-header .close {
    cursor: pointer;
    color: #909399;
    font-size: 18px;
}

.modal .modal-body {
    padding: 20px;
}

.modal .modal-body .form-item {
    margin-bottom: 16px;
}

.modal .modal-body .form-item label {
    display: block;
    margin-bottom: 6px;
    color: #606266;
}

.modal .modal-body .form-item input,
.modal .modal-body .form-item select,
.modal .modal-body .form-item textarea {
    width: 100%;
}

.modal .modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #ebeef5;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.empty {
    text-align: center;
    padding: 30px 0;
    color: #c0c4cc;
}

.detail-row {
    margin-bottom: 12px;
}

.detail-row .k {
    color: #909399;
    width: 90px;
    display: inline-block;
}

.detail-row .v {
    color: #303133;
}

.muted { color: #909399; }
.bold { font-weight: 600; }
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mr-10 { margin-right: 10px; }