:root {
    --ink: #17201c;
    --ink-soft: #34423b;
    --paper: #f4f6f3;
    --surface: #ffffff;
    --line: #dfe5df;
    --muted: #728078;
    --green: #246447;
    --green-dark: #183f30;
    --red: #b83a2d;
    --amber: #c58a35;
    --success: #2f7d52;
    --warning: #b37522;
    --danger: #b83a2d;
    --sidebar: #151d1a;
    --sidebar-muted: #94a39b;
    --control-height: 38px;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow: 0 8px 24px rgba(23, 32, 28, 0.08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.6;
    font-synthesis: none;
    line-break: strict;
    letter-spacing: normal;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font-family: inherit; letter-spacing: normal; }
:focus-visible { outline: 3px solid rgba(36, 100, 71, 0.24); outline-offset: 2px; }

.dc-admin { min-height: 100vh; }
.dc-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 228px;
    overflow-y: auto;
    background: var(--sidebar);
    color: #fff;
}
.dc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dc-brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}
.dc-brand strong { display: block; font-size: 16px; font-weight: 700; }
.dc-brand small { display: block; color: var(--sidebar-muted); font-size: 11px; }
.dc-nav { padding: 14px 10px 24px; }
.dc-nav-label { padding: 16px 12px 7px; color: #75847c; font-size: 12px; }
.dc-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 2px 0;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: #c7d1cc;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
.dc-nav a:hover, .dc-nav a.is-active { background: #26332d; color: #fff; }
.dc-nav a.is-active { box-shadow: inset 3px 0 var(--amber); }
.dc-nav .layui-icon { width: 20px; text-align: center; font-size: 17px; }

.dc-main { min-width: 0; margin-left: 228px; }
.dc-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}
.dc-topbar-title { min-width: 0; }
.dc-topbar-title strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.dc-topbar-title span { color: var(--muted); font-size: 12px; }
.dc-topbar-actions { display: flex; align-items: center; gap: 10px; }
.dc-user { color: var(--ink-soft); font-size: 13px; }
.dc-notice-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
}
.dc-notice-trigger:hover { border-color: #b9c9c0; color: var(--green); }
.dc-notice-trigger .layui-icon { color: var(--green); font-size: 17px; }
.dc-notice-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
.dc-notice-panel { max-height: min(540px, calc(100vh - 120px)); overflow-y: auto; background: #fff; }
.dc-notice-summary { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #f8faf8; color: var(--muted); font-size: 12px; }
.dc-notice-list { display: grid; }
.dc-notice-item { display: grid; gap: 3px; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.dc-notice-item:hover { background: #f7faf7; }
.dc-notice-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-notice-item span, .dc-notice-item time { color: var(--muted); font-size: 12px; }
.dc-notice-empty { padding: 34px 16px; color: var(--muted); text-align: center; }
.dc-notice-empty .layui-icon { display: block; margin-bottom: 8px; color: var(--success); font-size: 30px; }
.dc-notice-all { display: block; padding: 12px 16px; color: var(--green); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.dc-content { padding: 24px 26px 40px; }
.dc-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.dc-page-head h1 { margin: 0; font-size: 23px; line-height: 1.3; }
.dc-page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.dc-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dc-panel {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.dc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}
.dc-panel-head h2 { margin: 0; font-size: 16px; }
.dc-panel-body { padding: 18px; }
.dc-panel-body.flush { padding: 0; }

.dc-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dc-stat {
    position: relative;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.dc-stat::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); content: ""; }
.dc-stat.red::before { background: var(--red); }
.dc-stat.amber::before { background: var(--amber); }
.dc-stat.dark::before { background: var(--ink); }
.dc-stat-label { color: var(--muted); font-size: 13px; }
.dc-stat-value { margin-top: 8px; overflow-wrap: anywhere; font-size: 28px; font-weight: 700; line-height: 1.2; }
.dc-stat-meta { margin-top: 10px; color: var(--muted); font-size: 12px; }
.dc-trend { margin-left: 6px; font-weight: 700; }
.dc-trend.up { color: var(--success); }
.dc-trend.down { color: var(--danger); }
.dc-trend.flat { color: var(--muted); }

.dc-grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 18px; }
.dc-table { width: 100%; border-collapse: collapse; }
.dc-table th, .dc-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dc-table th { color: var(--muted); background: #f8faf8; font-size: 12px; font-weight: 700; }
.dc-table td { font-size: 13px; }
.dc-table tr:last-child td { border-bottom: 0; }
.dc-table tbody tr:hover { background: #fafcf9; }
.dc-table .money { font-weight: 700; white-space: nowrap; }
.dc-table .actions { min-width: 150px; white-space: nowrap; }
.dc-muted { color: var(--muted); }
.dc-empty { padding: 48px 24px; color: var(--muted); text-align: center; }
.dc-empty .layui-icon { display: block; margin-bottom: 10px; font-size: 36px; color: #aab5af; }

.dc-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 12px; background: #eef2ef; color: #526159; font-size: 12px; white-space: nowrap; }
.dc-badge.success { background: #e7f3eb; color: #276942; }
.dc-badge.warning { background: #fbf0dd; color: #94631c; }
.dc-badge.danger { background: #f9e8e5; color: #9f3025; }
.dc-badge.info { background: #e7eef2; color: #3e6577; }

.layui-btn {
    border-radius: 2px;
    font-weight: 400;
    letter-spacing: normal;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}
.layui-btn .layui-icon { margin-right: 3px; }
.layui-btn.dc-btn-primary { border-color: var(--green); background: var(--green); color: #fff; }
.layui-btn.dc-btn-primary:hover { border-color: var(--green-dark); background: var(--green-dark); opacity: 1; }
.layui-btn.dc-btn-danger { border-color: var(--red); background: var(--red); color: #fff; }
.layui-btn.dc-btn-danger:hover { border-color: #962f25; background: #962f25; opacity: 1; }
.layui-btn.dc-btn-amber { border-color: var(--amber); background: var(--amber); color: #fff; }
.layui-btn.dc-btn-amber:hover { border-color: #a87329; background: #a87329; opacity: 1; }
.layui-btn-primary { border-color: #d7ded9; background: #fff; color: var(--ink-soft); }
.layui-btn-primary:hover { border-color: var(--green); color: var(--green); }
.layui-btn[disabled], .layui-btn.layui-btn-disabled { opacity: .56; cursor: not-allowed; }
.dc-page-actions > .layui-btn,
.dc-inline-form > .layui-btn,
.dc-table .actions > .layui-btn,
.dc-table .actions > form > .layui-btn { margin-left: 0; }

.layui-form { letter-spacing: normal; }
.layui-form-item { margin-bottom: 16px; }
.layui-form-label {
    width: 104px;
    padding: 9px 10px 9px 0;
    color: var(--ink-soft);
    line-height: 20px;
    white-space: nowrap;
}
.layui-input-block { margin-left: 126px; }
.layui-input, .layui-select, .layui-textarea {
    border-radius: 2px;
    color: var(--ink);
    letter-spacing: normal;
}
.layui-input::placeholder, .layui-textarea::placeholder { color: #a1aaa5; }
.layui-input:focus, .layui-textarea:focus { border-color: var(--green) !important; box-shadow: 0 0 0 2px rgba(36, 100, 71, .08); }
.layui-form-select dl dd.layui-this { background-color: var(--green); }
.layui-form-radio:hover > *, .layui-form-radioed > i { color: var(--green); }
.dc-form-compact .layui-form-item { margin-bottom: 14px; }
.dc-form-help { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dc-form-help.is-indented { margin-left: 126px; }
.dc-input-block-reset { margin-left: 0; }
.dc-form-required { margin-right: 3px; color: var(--red); }
.dc-form-section { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.dc-form-section + .dc-form-section { padding-top: 16px; }
.dc-form-section:last-of-type { border-bottom: 0; }
.dc-form-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.dc-form-section-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.dc-form-section-head span { color: var(--muted); font-size: 12px; }
.dc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dc-form-grid > .layui-form-item, .dc-form-grid > div > .layui-form-item { min-width: 0; }
.dc-form-grid .dc-form-full { grid-column: 1 / -1; }

.dc-layer-form { display: none; padding: 0; background: #fff; }
.dc-layer-form > form { padding: 18px 22px 0; }
.dc-layer-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dc-layer-form > form > .dc-layer-footer,
.dc-layer-form > form > .layui-form-item:last-child.dc-layer-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    min-height: 58px;
    margin: 18px -22px 0;
    padding: 10px 22px;
    border-top: 1px solid var(--line);
    background: #fafcf9;
    text-align: right;
}
.dc-layer-footer .layui-input-block { margin-left: 0; text-align: right; }
.dc-layer-footer .layui-btn { margin-left: 8px; }
.dc-layer-window { border-radius: 4px !important; box-shadow: 0 18px 52px rgba(23, 32, 28, .22) !important; }
.dc-layer-window .layui-layer-title {
    height: 50px;
    padding-left: 18px;
    border-bottom: 1px solid var(--line);
    border-radius: 4px 4px 0 0;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 50px;
    letter-spacing: normal;
}
.dc-layer-window .layui-layer-setwin { top: 18px; }
.dc-layer-window .layui-layer-content { color: var(--ink); font-size: 14px; }
.dc-layer-window .layui-layer-btn { min-height: 58px; padding: 10px 18px; border-top: 1px solid var(--line); background: #fafcf9; }
.dc-layer-window .layui-layer-btn .layui-layer-btn0 { border-color: var(--green); background: var(--green); color: #fff; }
.dc-layer-window.dc-layer-danger .layui-layer-btn .layui-layer-btn0 { border-color: var(--red); background: var(--red); }
.dc-layer-window .layui-layer-input { border-radius: 2px; font-family: var(--font-ui); letter-spacing: normal; }
.dc-layer-window .layui-layer-input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(36, 100, 71, .08); }
.dc-layer-window.layui-layer-prompt .layui-layer-content { padding: 18px 22px; }
.dc-layer-window.layui-layer-prompt .layui-layer-input { width: 100%; box-sizing: border-box; margin: 0; }
.dc-layer-window.layui-layer-prompt textarea.layui-layer-input { min-height: 120px; padding: 9px 10px; line-height: 1.7; resize: vertical; }
.dc-layer-confirm { border-radius: 4px !important; }
.dc-layer-confirm .layui-layer-title { background: #fff; font-weight: 700; letter-spacing: normal; }
.dc-layer-confirm .layui-layer-content { color: var(--ink-soft); line-height: 1.7; }
.dc-layer-confirm .layui-layer-btn { border-top: 1px solid var(--line); background: #fafcf9; }
.dc-layer-confirm .layui-layer-btn .layui-layer-btn0 { border-color: var(--green); background: var(--green); }
.dc-layer-confirm.dc-layer-danger .layui-layer-btn .layui-layer-btn0 { border-color: var(--red); background: var(--red); }
.layui-layer, .layui-layer button, .layui-layer input, .layui-layer textarea, .layui-layer select { font-family: var(--font-ui); letter-spacing: normal; }
.layui-layer-btn a { border-radius: 2px; letter-spacing: normal; }
.dc-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-inline-form .layui-input { width: auto; min-width: 160px; }
.dc-inline-form .layui-form-select { min-width: 160px; }
.dc-divider { height: 1px; margin: 18px 0; background: var(--line); }
.dc-table-session { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }

.dc-order-list { display: grid; gap: 12px; }
.dc-order {
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    background: #fff;
}
.dc-order.is-new { border-left-color: var(--red); }
.dc-order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dc-order-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dc-order-body { padding: 14px 16px; }
.dc-order-items { display: grid; gap: 8px; }
.dc-order-item { display: grid; grid-template-columns: minmax(0, 1fr) 54px 90px; gap: 10px; align-items: start; }
.dc-order-item small { display: block; margin-top: 2px; color: var(--muted); }
.dc-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dc-order-note { margin-top: 12px; margin-bottom: 0; }
.dc-alert.is-danger { border-color: #f2c9c4; background: #fff4f2; color: #8f2f26; }
.dc-cancel-dialog { padding: 18px 20px 4px; }
.dc-cancel-dialog > p { margin: 0 0 12px; }
.dc-reply-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dc-reply-list .layui-btn { height: auto; min-height: 30px; margin: 0; padding: 5px 10px; line-height: 18px; white-space: normal; text-align: left; }
.dc-reply-list .dc-reply-chip.is-selected { border-color: var(--green); background: #edf6f1; color: var(--green-dark); }
.dc-cancel-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }

.dc-auth {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(320px, 46%) minmax(420px, 54%);
    background: #fff;
}
.dc-auth-visual { position: relative; min-height: 540px; overflow: hidden; background: var(--ink); }
.dc-auth-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.dc-auth-copy { position: absolute; inset: auto 48px 48px; color: #fff; }
.dc-auth-copy h1 { margin: 0 0 10px; font-size: 34px; }
.dc-auth-copy p { max-width: 520px; margin: 0; color: #d7dfda; }
.dc-auth-form { display: grid; place-items: center; padding: 42px; }
.dc-auth-box { width: min(420px, 100%); }
.dc-auth-box h2 { margin: 0; font-size: 28px; }
.dc-auth-box > p { margin: 8px 0 28px; color: var(--muted); }
.dc-auth-box .layui-form-label { width: auto; float: none; padding: 0 0 7px; text-align: left; }
.dc-auth-box .layui-input-block { margin-left: 0; }

.dc-alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dc-alert.success { border-color: #b9dac5; background: #eef8f1; color: #286943; }
.dc-alert.error { border-color: #ebc0ba; background: #fff0ee; color: #9a3026; }
.dc-code { display: inline-block; padding: 8px 12px; border: 1px dashed var(--amber); border-radius: var(--radius); background: #fff9ec; color: #704815; font-family: Consolas, monospace; font-size: 20px; font-weight: 700; }

.dc-login-links { display: flex; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 13px; }
.dc-pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; }
.dc-pagination a, .dc-pagination span { min-width: 34px; height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-align: center; text-decoration: none; }
.dc-pagination .current { border-color: var(--green); background: var(--green); color: #fff; }

.dc-gallery { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 10px; }
.dc-gallery-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f3f5f3; }
.dc-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.dc-gallery-item .dc-gallery-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; margin: 0; padding: 0; border-radius: 2px; line-height: 28px; }
.dc-gallery-item .dc-gallery-remove .layui-icon { margin: 0; }
.dc-spec-editor { display: grid; gap: 10px; }
.dc-spec-row { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafcf9; }
.dc-spec-row-head { display: grid; grid-template-columns: minmax(140px, 1fr) 130px 90px 38px; gap: 8px; align-items: center; }
.dc-option-row { display: grid; grid-template-columns: minmax(120px, 1fr) 130px 38px; gap: 8px; margin-top: 8px; }
.dc-guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.dc-guide-steps > div { min-height: 180px; padding: 22px; border-right: 1px solid var(--line); }
.dc-guide-steps > div:last-child { border-right: 0; }
.dc-guide-steps span { display: block; margin-bottom: 20px; color: var(--red); font: 700 22px Georgia, serif; }
.dc-guide-steps strong { display: block; margin-bottom: 9px; font-size: 16px; }
.dc-guide-steps p { margin: 0; color: var(--muted); line-height: 1.75; }

@media (max-width: 1120px) {
    .dc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-grid-2 { grid-template-columns: 1fr; }
    .dc-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-guide-steps > div:nth-child(2) { border-right: 0; }
    .dc-guide-steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
    .dc-sidebar { position: static; width: 100%; overflow: visible; }
    .dc-brand { height: 58px; }
    .dc-nav { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; }
    .dc-nav-label { display: none; }
    .dc-nav a { flex: 0 0 auto; min-height: 38px; margin: 0; padding: 7px 10px; }
    .dc-main { margin-left: 0; }
    .dc-topbar { height: 58px; padding: 0 14px; }
    .dc-topbar-title span, .dc-user, .dc-notice-label { display: none; }
    .dc-content { padding: 16px 12px 30px; }
    .dc-page-head { align-items: stretch; flex-direction: column; }
    .dc-stat-grid { grid-template-columns: 1fr; }
    .dc-stat-value { font-size: 24px; }
    .dc-panel-body { padding: 14px; }
    .dc-table-wrap { overflow-x: auto; }
    .dc-table { min-width: 720px; }
    .layui-form-label { width: auto; float: none; padding: 0 0 7px; text-align: left; }
    .layui-input-block { margin-left: 0; }
    .dc-form-help.is-indented { margin-left: 0; }
    .dc-form-grid { grid-template-columns: 1fr; }
    .dc-form-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .dc-layer-form > form { padding: 16px 16px 0; }
    .dc-layer-form > form > .dc-layer-footer,
    .dc-layer-form > form > .layui-form-item:last-child.dc-layer-footer { margin: 16px -16px 0; padding: 10px 16px; }
    .dc-order-head, .dc-order-foot { align-items: flex-start; flex-direction: column; }
    .dc-table-session { width: 100%; flex-wrap: wrap; }
    .dc-order-item { grid-template-columns: minmax(0, 1fr) 44px 74px; }
    .dc-auth { grid-template-columns: 1fr; }
    .dc-auth-visual { display: none; }
    .dc-auth-form { min-height: 100vh; padding: 26px 18px; }
    .dc-gallery { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
    .dc-spec-row-head { grid-template-columns: 1fr; }
    .dc-option-row { grid-template-columns: 1fr 100px 38px; }
    .dc-guide-steps { grid-template-columns: 1fr; }
    .dc-guide-steps > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .dc-guide-steps > div:last-child { border-bottom: 0; }
}
