/* =====================================================
   Ant Design 风格主题 CSS
   用于替换 Bootstrap 组件样式，保持 Bootstrap 栅格类名兼容
   ===================================================== */

/* ---------- 设计令牌 ---------- */
:root {
    --ant-primary-color: #1890ff;
    --ant-primary-hover: #40a9ff;
    --ant-primary-active: #096dd9;
    --ant-success-color: #52c41a;
    --ant-success-bg: #f6ffed;
    --ant-success-border: #b7eb8f;
    --ant-warning-color: #faad14;
    --ant-warning-bg: #fffbe6;
    --ant-warning-border: #ffe58f;
    --ant-error-color: #f5222d;
    --ant-error-bg: #fff1f0;
    --ant-error-border: #ffa39e;
    --ant-info-color: #1890ff;
    --ant-info-bg: #e6f7ff;
    --ant-info-border: #91d5ff;

    --ant-text: rgba(0, 0, 0, 0.85);
    --ant-text-secondary: rgba(0, 0, 0, 0.65);
    --ant-text-muted: rgba(0, 0, 0, 0.45);
    --ant-disabled-color: rgba(0, 0, 0, 0.25);
    --ant-border-color: #d9d9d9;
    --ant-border-split: #f0f0f0;
    --ant-bg: #f0f2f5;
    --ant-component-bg: #ffffff;
    --ant-sidebar-bg: #001529;
    --ant-sidebar-hover: rgba(255, 255, 255, 0.05);
    --ant-item-active-bg: #e6f7ff;
    --ant-item-hover-bg: #f5f5f5;

    --ant-border-radius: 2px;
    --ant-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --ant-box-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);

    --ant-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --ant-font-size: 14px;
    --ant-font-size-lg: 16px;
    --ant-font-size-sm: 12px;
    --ant-line-height: 1.5715;

    /* 兼容旧模板中使用的变量名 */
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --info-color: #1890ff;
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-muted: rgba(0, 0, 0, 0.45);
    --border-color: #d9d9d9;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --sidebar-bg: #001529;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--ant-font-family);
    line-height: var(--ant-line-height);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    margin: 0;
    font-size: var(--ant-font-size);
    font-weight: 400;
    color: var(--ant-text);
    background-color: var(--ant-bg);
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 0.5em;
}

a {
    color: var(--ant-primary-color);
    text-decoration: none;
    background-color: transparent;
    transition: color 0.3s;
}

a:hover {
    color: var(--ant-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

table {
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button:disabled, [type="button"]:disabled, [type="reset"]:disabled, [type="submit"]:disabled {
    cursor: not-allowed;
}

textarea {
    overflow: auto;
    resize: vertical;
}

hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--ant-border-split);
}

/* ---------- 栅格系统（兼容 Bootstrap 类名） ---------- */
.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

.container { max-width: 1200px; }
.container-sm { max-width: 576px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 992px; }
.container-xl { max-width: 1200px; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters > .col, .no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col, .col-auto,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
    .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
    .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-xl-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

.g-0, .gx-0 { --bs-gutter-x: 0; }
.g-1, .gx-1 { --bs-gutter-x: 4px; }
.g-2, .gx-2 { --bs-gutter-x: 8px; }
.g-3, .gx-3 { --bs-gutter-x: 16px; }
.g-4, .gx-4 { --bs-gutter-x: 24px; }
.g-5, .gx-5 { --bs-gutter-x: 48px; }

.g-0, .gy-0 { --bs-gutter-y: 0; }
.g-1, .gy-1 { --bs-gutter-y: 4px; }
.g-2, .gy-2 { --bs-gutter-y: 8px; }
.g-3, .gy-3 { --bs-gutter-y: 16px; }
.g-4, .gy-4 { --bs-gutter-y: 24px; }
.g-5, .gy-5 { --bs-gutter-y: 48px; }

.g-1, .g-2, .g-3, .g-4, .g-5,
.gx-1, .gx-2, .gx-3, .gx-4, .gx-5,
.gy-1, .gy-2, .gy-3, .gy-4, .gy-5 {
    margin-right: calc(var(--bs-gutter-x) / -2);
    margin-left: calc(var(--bs-gutter-x) / -2);
}

.g-1 > *, .g-2 > *, .g-3 > *, .g-4 > *, .g-5 > *,
.gx-1 > *, .gx-2 > *, .gx-3 > *, .gx-4 > *, .gx-5 > *,
.gy-1 > *, .gy-2 > *, .gy-3 > *, .gy-4 > *, .gy-5 > * {
    padding-right: calc(var(--bs-gutter-x) / 2);
    padding-left: calc(var(--bs-gutter-x) / 2);
    margin-top: var(--bs-gutter-y);
}

/* ---------- 通用工具类 ---------- */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.align-middle { vertical-align: middle !important; }

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
.gap-5 { gap: 48px !important; }

.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 16px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-3 { margin-left: 16px !important; }
.ms-auto { margin-left: auto !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 48px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 48px !important; }
.m-auto { margin: auto !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-decoration-none { text-decoration: none !important; }
.text-break { word-break: break-word !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fw-bold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-normal { font-weight: 400 !important; }
.fs-1 { font-size: 32px !important; }
.fs-2 { font-size: 24px !important; }
.fs-3 { font-size: 20px !important; }
.fs-4 { font-size: 18px !important; }
.fs-5 { font-size: 16px !important; }
.fs-6 { font-size: 14px !important; }
.small { font-size: var(--ant-font-size-sm) !important; }

.text-primary { color: var(--ant-primary-color) !important; }
.text-success { color: var(--ant-success-color) !important; }
.text-warning { color: var(--ant-warning-color) !important; }
.text-danger { color: var(--ant-error-color) !important; }
.text-muted { color: var(--ant-text-muted) !important; }
.text-secondary { color: var(--ant-text-secondary) !important; }
.text-dark { color: var(--ant-text) !important; }
.text-white { color: #fff !important; }

.bg-light { background-color: #fafafa !important; }
.bg-white { background-color: #fff !important; }
.bg-primary { background-color: var(--ant-primary-color) !important; }
.bg-success { background-color: var(--ant-success-color) !important; }
.bg-warning { background-color: var(--ant-warning-color) !important; }
.bg-danger { background-color: var(--ant-error-color) !important; }
.bg-secondary { background-color: rgba(0, 0, 0, 0.45) !important; }
.bg-info { background-color: var(--ant-info-color) !important; }

.border { border: 1px solid var(--ant-border-color) !important; }
.border-0 { border: 0 !important; }
.rounded { border-radius: var(--ant-border-radius) !important; }

.position-fixed { position: fixed !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.end-0 { right: 0 !important; }
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

.font-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.img-fluid {
    max-width: 100%;
    height: auto;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.fade {
    transition: opacity 0.3s ease-in-out;
}

.fade:not(.show) {
    opacity: 0;
}

/* ---------- 顶部导航栏 ---------- */
.navbar,
.navbar-dark {
    background-color: var(--ant-sidebar-bg);
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i, .navbar-brand .anticon {
    font-size: 24px;
    color: var(--ant-primary-color);
}

.nav-user {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-user a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-user a:hover {
    color: #fff;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    background-color: var(--ant-sidebar-bg);
    min-height: calc(100vh - 64px);
    width: 208px;
    position: fixed;
    left: 0;
    top: 64px;
    box-shadow: 2px 0 8px rgba(29, 35, 41, 0.05);
    overflow-y: auto;
}

.sidebar .nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.65);
    padding: 0 24px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: var(--ant-sidebar-hover);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: var(--ant-primary-color);
    border-left-color: #fff;
}

.sidebar .nav-link i, .sidebar .nav-link .anticon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.sidebar .ps-5 {
    padding-left: 48px !important;
}

/* ---------- 主内容区 ---------- */
.main-content {
    margin-left: 208px;
    padding: 24px;
    min-height: calc(100vh - 64px);
}

/* ---------- 页面标题 ---------- */
.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--ant-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.page-title i, .page-title .anticon {
    color: var(--ant-primary-color);
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--ant-component-bg);
    border: none;
    border-radius: var(--ant-border-radius);
    box-shadow: var(--ant-box-shadow-card);
    margin-bottom: 24px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--ant-border-split);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ant-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.card-header i, .card-header .anticon {
    color: var(--ant-primary-color);
    margin-right: 4px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ant-border-split);
    background: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 4px 15px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5715;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--ant-border-radius);
    background-color: #fff;
    border-color: var(--ant-border-color);
    color: var(--ant-text);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    color: var(--ant-primary-hover);
    border-color: var(--ant-primary-hover);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.btn:disabled, .btn.disabled {
    color: var(--ant-disabled-color);
    background-color: #f5f5f5;
    border-color: var(--ant-border-color);
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--ant-primary-hover);
    border-color: var(--ant-primary-hover);
    color: #fff;
}

.btn-primary:disabled, .btn-primary.disabled {
    background-color: rgba(24, 144, 255, 0.5);
    border-color: rgba(24, 144, 255, 0.5);
    color: #fff;
}

.btn-success {
    background-color: var(--ant-success-color);
    border-color: var(--ant-success-color);
    color: #fff;
}

.btn-success:hover, .btn-success:focus {
    background-color: #73d13d;
    border-color: #73d13d;
    color: #fff;
}

.btn-warning {
    background-color: var(--ant-warning-color);
    border-color: var(--ant-warning-color);
    color: #fff;
}

.btn-warning:hover, .btn-warning:focus {
    background-color: #ffc53d;
    border-color: #ffc53d;
    color: #fff;
}

.btn-danger {
    background-color: var(--ant-error-color);
    border-color: var(--ant-error-color);
    color: #fff;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
}

.btn-info {
    background-color: var(--ant-info-color);
    border-color: var(--ant-info-color);
    color: #fff;
}

.btn-info:hover, .btn-info:focus {
    background-color: var(--ant-primary-hover);
    border-color: var(--ant-primary-hover);
    color: #fff;
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.45);
    border-color: rgba(0, 0, 0, 0.45);
    color: #fff;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: rgba(0, 0, 0, 0.65);
    border-color: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.btn-outline-primary {
    color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
    background-color: #fff;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    color: #fff;
    background-color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
}

.btn-outline-secondary {
    color: var(--ant-text-secondary);
    border-color: var(--ant-border-color);
    background-color: #fff;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
}

.btn-outline-success {
    color: var(--ant-success-color);
    border-color: var(--ant-success-color);
    background-color: #fff;
}

.btn-outline-success:hover, .btn-outline-success:focus {
    color: #fff;
    background-color: var(--ant-success-color);
    border-color: var(--ant-success-color);
}

.btn-outline-info {
    color: var(--ant-info-color);
    border-color: var(--ant-info-color);
    background-color: #fff;
}

.btn-outline-info:hover, .btn-outline-info:focus {
    color: #fff;
    background-color: var(--ant-info-color);
    border-color: var(--ant-info-color);
}

.btn-outline-warning {
    color: var(--ant-warning-color);
    border-color: var(--ant-warning-color);
    background-color: #fff;
}

.btn-outline-warning:hover, .btn-outline-warning:focus {
    color: #fff;
    background-color: var(--ant-warning-color);
    border-color: var(--ant-warning-color);
}

.btn-outline-danger {
    color: var(--ant-error-color);
    border-color: var(--ant-error-color);
    background-color: #fff;
}

.btn-outline-danger:hover, .btn-outline-danger:focus {
    color: #fff;
    background-color: var(--ant-error-color);
    border-color: var(--ant-error-color);
}

.btn-lg {
    height: 40px;
    padding: 6px 20px;
    font-size: 16px;
}

.btn-sm {
    height: 24px;
    padding: 0 7px;
    font-size: 12px;
}

.btn-group, .btn-group-vertical {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn, .btn-group-vertical > .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group > .btn:not(:first-child), .btn-group-vertical > .btn:not(:first-child) {
    margin-left: -1px;
}

.btn-group > .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.btn-group-sm > .btn {
    height: 24px;
    padding: 0 7px;
    font-size: 12px;
}

.d-grid {
    display: grid !important;
}

/* ---------- 表格 ---------- */
.table {
    width: 100%;
    font-size: 14px;
    color: var(--ant-text);
    margin-bottom: 0;
}

.table thead th {
    background-color: #fafafa;
    color: var(--ant-text);
    font-weight: 500;
    border-bottom: 1px solid var(--ant-border-split);
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ant-border-split);
    vertical-align: middle;
    word-break: break-word;
}

.table tbody tr:hover,
.table.table-hover tbody tr:hover {
    background-color: var(--ant-item-hover-bg);
}

.table.table-sm thead th,
.table.table-sm tbody td {
    padding: 8px 12px;
    font-size: 12px;
}

.table.table-bordered,
.table.table-bordered thead th,
.table.table-bordered tbody td {
    border: 1px solid var(--ant-border-split);
}

.table.table-light {
    background-color: #fafafa;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    min-width: max-content;
}

.table-responsive > .table th,
.table-responsive > .table td {
    white-space: nowrap;
}

/* ---------- 表单 ---------- */
.form-label {
    font-size: 14px;
    color: var(--ant-text);
    margin-bottom: 8px;
    font-weight: 400;
    display: inline-block;
}

.form-label.required::after {
    content: '*';
    color: var(--ant-error-color);
    margin-left: 4px;
}

.form-control, .form-select {
    display: block;
    width: 100%;
    height: 32px;
    padding: 4px 11px;
    font-size: 14px;
    line-height: 1.5715;
    color: var(--ant-text);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--ant-border-color);
    border-radius: var(--ant-border-radius);
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ant-primary-color);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-control:disabled, .form-select:disabled,
.form-control[readonly], .form-select[readonly] {
    background-color: #f5f5f5;
    color: var(--ant-text-muted);
    cursor: not-allowed;
}

.form-control::placeholder {
    color: var(--ant-text-muted);
    opacity: 1;
}

textarea.form-control {
    height: auto;
    min-height: 80px;
}

.form-control-sm, .form-select-sm {
    height: 24px;
    padding: 0 7px;
    font-size: 12px;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ant-text-muted);
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-inline {
    display: inline-block;
    margin-right: 1rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--ant-border-color);
    appearance: none;
    border-radius: 2px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--ant-primary-color);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-check-label {
    display: inline-block;
    margin-left: 4px;
    color: var(--ant-text);
    cursor: pointer;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control, .input-group > .form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .input-group-text {
    display: flex;
    align-items: center;
    padding: 4px 11px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5715;
    color: var(--ant-text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: #fafafa;
    border: 1px solid var(--ant-border-color);
}

.input-group > .form-control:not(:last-child),
.input-group > .input-group-text:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child),
.input-group > .input-group-text:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-sm > .form-control, .input-group-sm > .input-group-text {
    height: 24px;
    padding: 0 7px;
    font-size: 12px;
}

/* ---------- 标签/徽标 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: var(--ant-border-radius);
    border: 1px solid transparent;
    line-height: 1.5;
}

.badge-processing, .badge-primary {
    color: var(--ant-primary-color);
    background-color: var(--ant-info-bg);
    border-color: var(--ant-info-border);
}

.badge-success {
    color: var(--ant-success-color);
    background-color: var(--ant-success-bg);
    border-color: var(--ant-success-border);
}

.badge-warning {
    color: var(--ant-warning-color);
    background-color: var(--ant-warning-bg);
    border-color: var(--ant-warning-border);
}

.badge-error, .badge-danger {
    color: var(--ant-error-color);
    background-color: var(--ant-error-bg);
    border-color: var(--ant-error-border);
}

.badge-default, .badge-secondary {
    color: var(--ant-text-secondary);
    background-color: #f5f5f5;
    border-color: var(--ant-border-color);
}

.badge-info {
    color: var(--ant-info-color);
    background-color: var(--ant-info-bg);
    border-color: var(--ant-info-border);
}

.badge-light {
    color: var(--ant-text);
    background-color: #fafafa;
    border-color: var(--ant-border-color);
}

/* ---------- Alert 提示 ---------- */
.alert {
    position: relative;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: var(--ant-border-radius);
    font-size: 14px;
}

.alert-success {
    color: var(--ant-success-color);
    background-color: var(--ant-success-bg);
    border-color: var(--ant-success-border);
}

.alert-danger, .alert-error {
    color: var(--ant-error-color);
    background-color: var(--ant-error-bg);
    border-color: var(--ant-error-border);
}

.alert-warning {
    color: var(--ant-warning-color);
    background-color: var(--ant-warning-bg);
    border-color: var(--ant-warning-border);
}

.alert-info {
    color: var(--ant-info-color);
    background-color: var(--ant-info-bg);
    border-color: var(--ant-info-border);
}

.alert-dismissible {
    padding-right: 40px;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 8px;
    margin: 0;
}

.page-item.disabled .page-link {
    color: var(--ant-disabled-color);
    background-color: #f5f5f5;
    border-color: var(--ant-border-color);
    cursor: not-allowed;
}

.page-item.active .page-link {
    background-color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
    color: #fff;
}

.page-link {
    position: relative;
    display: block;
    padding: 5px 12px;
    font-size: 14px;
    color: var(--ant-text);
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--ant-border-color);
    border-radius: var(--ant-border-radius);
    transition: all 0.3s;
}

.page-link:hover {
    color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
}

/* ---------- 模态框 ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 50px auto;
    pointer-events: none;
    max-width: 520px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 100px);
}

.modal-dialog-scrollable {
    max-height: calc(100% - 100px);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-xl { max-width: 1140px; }
.modal-lg { max-width: 800px; }
.modal-sm { max-width: 360px; }

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: var(--ant-border-radius);
    box-shadow: var(--ant-box-shadow);
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ant-border-split);
}

.modal-title {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ant-text);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 24px;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid var(--ant-border-split);
}

/* ---------- 折叠面板 ---------- */
.accordion {
    border-radius: var(--ant-border-radius);
    overflow: hidden;
}

.accordion-item {
    border: 1px solid var(--ant-border-split);
    border-radius: var(--ant-border-radius);
    margin-bottom: 16px;
    background: #fff;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ant-text);
    text-align: left;
    background-color: #fafafa;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: var(--ant-info-bg);
    color: var(--ant-primary-color);
}

.accordion-button:focus {
    outline: 0;
    box-shadow: none;
}

.accordion-button::after {
    content: '▼';
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
    color: var(--ant-text-muted);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-collapse {
    overflow: hidden;
    transition: height 0.3s ease;
}

.accordion-collapse:not(.show) {
    display: none;
}

.accordion-body {
    padding: 24px;
}

/* ---------- Toast 消息 ---------- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
}

.toast {
    display: none;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--ant-border-radius);
    box-shadow: var(--ant-box-shadow);
    font-size: 14px;
    color: var(--ant-text);
    border-left: 4px solid transparent;
}

.toast.show,
.toast.showing {
    display: flex;
}

.toast.show {
    animation: antToastSlideIn 0.3s ease;
}

.toast.toast-success, .toast.text-bg-success {
    border-left-color: var(--ant-success-color);
}

.toast.toast-danger, .toast.text-bg-danger, .toast.text-bg-error {
    border-left-color: var(--ant-error-color);
}

.toast.toast-warning, .toast.text-bg-warning {
    border-left-color: var(--ant-warning-color);
}

.toast.toast-info, .toast.text-bg-info {
    border-left-color: var(--ant-info-color);
}

.toast .btn-close {
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes antToastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.toast.hiding {
    animation: antToastFadeOut 0.3s ease forwards;
}

/* ---------- 关闭按钮 ---------- */
.btn-close {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 4px;
    color: var(--ant-text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--ant-border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-close::before {
    content: '✕';
    font-size: 14px;
    line-height: 1;
}

.btn-close:hover {
    color: var(--ant-text);
    background-color: var(--ant-item-hover-bg);
}

.btn-close-white {
    color: #fff;
}

/* ---------- 步骤条 ---------- */
.steps {
    display: flex;
    margin-bottom: 24px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--ant-border-color);
}

.step:last-child::after {
    display: none;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--ant-border-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.step.active .step-icon {
    background-color: var(--ant-primary-color);
}

.step.completed .step-icon {
    background-color: var(--ant-success-color);
}

.step-title {
    font-size: 14px;
    color: var(--ant-text-secondary);
    margin-top: 8px;
}

.step.active .step-title {
    color: var(--ant-primary-color);
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ant-text-muted);
}

.empty-state i, .empty-state .anticon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d9d9d9;
}

/* ---------- 上传区域 ---------- */
.upload-zone {
    border: 2px dashed var(--ant-border-color);
    border-radius: 4px;
    padding: 48px 24px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--ant-primary-color);
    background: var(--ant-info-bg);
}

.upload-zone i, .upload-zone .anticon {
    font-size: 48px;
    color: var(--ant-primary-color);
    margin-bottom: 16px;
}

.upload-area {
    border: 1px dashed var(--ant-border-color);
    border-radius: var(--ant-border-radius);
    padding: 24px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover, .upload-area.border-primary {
    border-color: var(--ant-primary-color) !important;
    background: var(--ant-info-bg);
}

/* ---------- 列表组 ---------- */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: var(--ant-border-radius);
}

.list-group-item {
    position: relative;
    display: block;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid var(--ant-border-split);
    border-bottom: 0;
    color: var(--ant-text);
    text-decoration: none;
    transition: all 0.3s;
}

.list-group-item:first-child {
    border-top-left-radius: var(--ant-border-radius);
    border-top-right-radius: var(--ant-border-radius);
}

.list-group-item:last-child {
    border-bottom: 1px solid var(--ant-border-split);
    border-bottom-right-radius: var(--ant-border-radius);
    border-bottom-left-radius: var(--ant-border-radius);
}

.list-group-item-action:hover, .list-group-item-action:focus {
    z-index: 1;
    color: var(--ant-text);
    text-decoration: none;
    background-color: var(--ant-item-hover-bg);
}

/* ---------- 加载动画 ---------- */
.spinner-border {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* ---------- 下拉菜单（兼容） ---------- */
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 4px 0;
    margin: 0;
    font-size: 14px;
    color: var(--ant-text);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--ant-border-color);
    border-radius: var(--ant-border-radius);
    box-shadow: var(--ant-box-shadow);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: var(--ant-text);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: var(--ant-text);
    background-color: var(--ant-item-hover-bg);
}

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

.login-box {
    background: var(--ant-component-bg);
    padding: 40px;
    border-radius: var(--ant-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--ant-text);
    font-size: 24px;
    font-weight: 500;
}

/* ---------- 统计卡片 ---------- */
.stat-card {
    background: var(--ant-component-bg);
    border-radius: var(--ant-border-radius);
    padding: 20px 24px;
    box-shadow: var(--ant-box-shadow-card);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--ant-box-shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background-color: var(--ant-info-bg);
    color: var(--ant-primary-color);
}

.stat-icon.green {
    background-color: var(--ant-success-bg);
    color: var(--ant-success-color);
}

.stat-icon.orange {
    background-color: #fff7e6;
    color: var(--ant-warning-color);
}

.stat-icon.red {
    background-color: var(--ant-error-bg);
    color: var(--ant-error-color);
}

.stat-icon.purple {
    background-color: #f0e6ff;
    color: #722ed1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 30px;
    font-weight: 600;
    color: var(--ant-text);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--ant-text-secondary);
    margin-top: 4px;
}

/* ---------- 信息行 ---------- */
.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--ant-border-split);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 140px;
    color: var(--ant-text-secondary);
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--ant-text);
}

/* ---------- 附件网格 ---------- */
.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.attachment-item {
    background: #fafafa;
    border: 1px solid var(--ant-border-split);
    border-radius: var(--ant-border-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.attachment-item:hover {
    border-color: var(--ant-primary-color);
    box-shadow: var(--ant-box-shadow-card);
}

.attachment-item img, .attachment-item video {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.attachment-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.attachment-item .name {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--ant-text-secondary);
    word-break: break-all;
}

/* ---------- 灯箱 ---------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox img, .lightbox video {
    max-width: 92%;
    max-height: 92%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
