* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    background: #f2f2f2;
    font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
    color: #1e9fff;
    text-decoration: none;
}

.layui-layout-admin .layui-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
    background: #23262e;
    color: #fff;
}

.layui-logo {
    font-size: 18px;
    font-weight: 600;
}

.layui-nav {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.layui-nav a {
    color: #fff;
}

.page-body {
    padding: 24px 0;
}

.layui-container {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
}

.layui-card {
    margin-bottom: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.layui-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
}

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

.layui-tab-title {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.layui-tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 12px 18px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.layui-tab-item.is-active {
    color: #1e9fff;
    border-bottom-color: #1e9fff;
}

.tab-panel {
    padding-top: 4px;
}

.layui-row {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.layui-col-space15 > [class*="layui-col-"] {
    padding: 8px;
}

.layui-col-md2,
.layui-col-md3,
.layui-col-md4,
.layui-col-md6 {
    width: 100%;
}

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

.layui-form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 600;
}

.layui-input,
.layui-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d2d2d2;
    border-radius: 2px;
    outline: none;
    background: #fff;
}

textarea.layui-input {
    height: auto;
    min-height: 120px;
    padding: 12px;
}

.layui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #1e9fff;
    border-radius: 2px;
    background: #1e9fff;
    color: #fff;
    cursor: pointer;
}

.layui-btn:hover {
    opacity: 0.92;
}

.layui-btn-fluid {
    width: 100%;
}

.layui-btn-sm {
    height: 30px;
    min-width: auto;
    padding: 0 12px;
    font-size: 12px;
}

.layui-btn-primary {
    border-color: #d2d2d2;
    background: #fff;
    color: #666;
}

.layui-btn-normal {
    border-color: #16baaa;
    background: #16baaa;
}

.layui-table {
    width: 100%;
    border-collapse: collapse;
}

.layui-table th,
.layui-table td {
    padding: 12px 10px;
    border: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: top;
}

.layui-table th {
    background: #fafafa;
}

.layui-badge,
.layui-badge-rim {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.layui-badge {
    color: #fff;
    background: #5fb878;
}

.layui-badge-rim {
    border: 1px solid #d2d2d2;
    color: #666;
    background: #fff;
}

.layui-bg-green {
    background: #5fb878;
}

.layui-alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 4px;
}

.layui-alert-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.layui-alert-danger {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.layui-text-center {
    text-align: center;
}

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

.toolbar-title {
    font-size: 16px;
    font-weight: 600;
}

.list-toolbar {
    margin-top: 18px;
}

.table-scroll {
    overflow-x: auto;
}

.formatted-block {
    min-width: 220px;
    margin: 0;
    padding: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 3px;
}

.action-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.remark-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.remark-input {
    min-height: 72px;
    padding: 10px 12px;
    resize: vertical;
}

.remark-text {
    min-width: 120px;
    white-space: pre-wrap;
    word-break: break-word;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #23262e, #3c4b64);
}

.layui-auth-wrap {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    width: min(420px, 100%);
}

.layui-layer-msg {
    position: fixed;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 16px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.layui-layer-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
    .layui-col-md2 {
        width: 16.6667%;
    }

    .layui-col-md3 {
        width: 25%;
    }

    .layui-col-md4 {
        width: 33.3333%;
    }

    .layui-col-md6 {
        width: 50%;
    }
}
