:root {
  --ink: #172033;
  --muted: #738096;
  --line: #e6eaf0;
  --canvas: #f5f7fb;
  --panel: #ffffff;
  --nav: #111827;
  --nav-soft: #1d2939;
  --blue: #2476f3;
  --blue-soft: #eaf2ff;
  --green: #17a56b;
  --green-soft: #e8f8ef;
  --orange: #e98a1b;
  --orange-soft: #fff3df;
  --red: #dc4f57;
  --red-soft: #feeaeb;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); }
.login-intro { position: relative; overflow: hidden; padding: 52px clamp(44px, 7vw, 112px); color: #f8fbff; background: #121d32; display: flex; flex-direction: column; }
.login-intro::before { content: ""; position: absolute; width: 660px; height: 660px; border-radius: 50%; border: 1px solid rgba(118, 166, 255, .22); bottom: -360px; right: -160px; box-shadow: 0 0 0 76px rgba(118,166,255,.045), 0 0 0 152px rgba(118,166,255,.035); }
.login-intro::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(136,166,216,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(136,166,216,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 77%); }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: .5px; }
.brand-light { color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--blue); border-radius: 8px; box-shadow: 0 8px 18px rgba(36,118,243,.3); font-size: 17px; font-weight: 800; }
.intro-copy { position: relative; z-index: 1; margin-top: auto; margin-bottom: 80px; max-width: 580px; }
.eyebrow { display: inline-block; color: #8fb7ff; font-size: 12px; font-weight: 700; letter-spacing: 1.7px; }
.intro-copy h1 { margin: 20px 0; font-size: clamp(38px, 4vw, 66px); line-height: 1.16; letter-spacing: 0; }
.intro-copy p { max-width: 450px; margin: 0; color: #afbdd5; font-size: 16px; line-height: 1.8; }
.login-decoration { position: absolute; z-index: 1; right: 11%; top: 17%; display: grid; grid-template-columns: repeat(2, 70px); gap: 14px; transform: rotate(-10deg); }
.login-decoration span { height: 70px; border: 1px solid rgba(185,211,255,.28); border-radius: 12px; background: rgba(104,157,252,.11); backdrop-filter: blur(4px); }
.login-decoration span:nth-child(2) { margin-top: 30px; background: rgba(32,205,160,.15); }.login-decoration span:nth-child(3) { margin-left: 20px; background: rgba(255,189,82,.14); }
.login-panel { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 44px; background: #fff; }
.login-form { width: min(100%, 400px); }
.mobile-brand { display: none; margin-bottom: 60px; }
.form-heading h2 { margin: 0; font-size: 29px; letter-spacing: 0; }.form-heading p { margin: 12px 0 34px; color: var(--muted); font-size: 14px; }
label { display: grid; gap: 8px; margin: 18px 0; color: #46536a; font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid #dbe1ea; border-radius: 7px; outline: none; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
input { height: 45px; padding: 0 13px; } textarea { min-height: 100px; padding: 12px 13px; resize: vertical; } select { height: 40px; padding: 0 11px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,118,243,.11); }
.primary-button, .secondary-button, .danger-button, .table-action { border: 0; border-radius: 7px; transition: transform .15s, filter .15s, background .15s; }
.primary-button { padding: 11px 16px; color: #fff; background: var(--blue); font-weight: 700; box-shadow: 0 8px 16px rgba(36,118,243,.18); }.primary-button:hover { filter: brightness(.96); }.primary-button:active { transform: translateY(1px); }.primary-button.wide { width: 100%; height: 48px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.secondary-button { padding: 10px 14px; color: #344156; background: #fff; border: 1px solid #dce2eb; font-weight: 650; }.secondary-button:hover { background: #f7f9fc; }.danger-button { padding: 10px 14px; color: var(--red); background: var(--red-soft); font-weight: 650; }
.form-message { min-height: 20px; margin: 15px 0 0; color: var(--red); text-align: center; font-size: 13px; }.login-footnote { position: absolute; bottom: 26px; color: #98a2b3; font-size: 12px; }

.app-shell { min-height: 100vh; }.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; color: #c4ccda; background: var(--nav); }.sidebar-top { height: 72px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }.sidebar-close { display: none; }.navigation { padding: 24px 12px; display: grid; gap: 4px; }.nav-item { height: 44px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 6px; color: #bdc6d6; background: transparent; text-align: left; font-size: 14px; }.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }.nav-item.active { color: #fff; background: #1c4f9d; box-shadow: inset 3px 0 0 #73abff; }.nav-icon { width: 18px; color: inherit; text-align: center; font-size: 18px; }.nav-group { margin: 19px 12px 7px; color: #65728a; font-size: 11px; font-weight: 700; letter-spacing: .8px; }.sidebar-footer { margin-top: auto; padding: 22px; display: flex; gap: 9px; align-items: center; border-top: 1px solid rgba(255,255,255,.07); color: #8996ad; font-size: 12px; }.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #31c58b; box-shadow: 0 0 0 3px rgba(49,197,139,.12); }
.workspace { min-height: 100vh; margin-left: 248px; }.topbar { height: 72px; position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 18px; padding: 0 clamp(22px, 3.2vw, 48px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }.menu-button { display: none; }.topbar-search { width: min(410px, 48vw); height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e0e5ed; border-radius: 6px; color: #91a0b5; background: #f9fafc; }.topbar-search input { height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; }.topbar-actions { margin-left: auto; position: relative; display: flex; align-items: center; gap: 13px; }.icon-button { position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; color: #475467; background: transparent; font-size: 21px; }.icon-button:hover { background: #f1f4f9; }.notification-dot { position: absolute; width: 7px; height: 7px; top: 8px; right: 8px; border: 1px solid #fff; border-radius: 50%; background: #f04438; }.admin-button { display: flex; align-items: center; gap: 9px; padding: 3px 3px 3px 5px; border: 0; background: transparent; color: var(--ink); text-align: left; }.avatar { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #326bd0; background: #dbeaff; font-weight: 750; }.admin-button b, .admin-button small { display: block; }.admin-button b { font-size: 13px; }.admin-button small { margin-top: 2px; color: #8491a7; font-size: 11px; }.chevron { color: #9ba7b8; }.admin-dropdown { position: absolute; z-index: 20; top: 48px; right: 0; width: 136px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.12); }.admin-dropdown button { width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; color: #3c4a60; background: transparent; text-align: left; font-size: 13px; }.admin-dropdown button:hover { background: #f3f6fb; }
.content { max-width: 1500px; min-height: calc(100vh - 72px); margin: 0 auto; padding: 32px clamp(22px, 3.2vw, 48px) 52px; }.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }.page-heading h1 { margin: 0; color: #162037; font-size: 25px; letter-spacing: 0; }.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; }.section-title h2 { margin: 0; font-size: 16px; }.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }.stat-card { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 2px 5px rgba(16,24,40,.015); }.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; }.stat-label { color: #6b778b; font-size: 13px; }.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; }.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }.stat-icon.green { color: var(--green); background: var(--green-soft); }.stat-icon.orange { color: var(--orange); background: var(--orange-soft); }.stat-icon.red { color: var(--red); background: var(--red-soft); }.stat-value { margin-top: 17px; color: #172033; font-size: 27px; font-weight: 750; letter-spacing: .1px; }.stat-note { margin-top: 7px; color: #8995a7; font-size: 12px; }.stat-note strong { color: var(--green); }.stat-note.warning strong { color: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; }.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }.panel-body { padding: 20px; }.chart-panel { min-height: 318px; }.chart-header { display: flex; justify-content: space-between; align-items: center; }.chart-legend { color: #718096; font-size: 12px; }.chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--blue); }.chart-wrap { height: 230px; padding-top: 24px; }.chart { height: 100%; display: flex; align-items: end; gap: clamp(5px, 1vw, 13px); padding: 0 4px 0 20px; border-bottom: 1px solid #e5eaf1; background: repeating-linear-gradient(to bottom, transparent, transparent 56px, #eef1f5 57px); }.bar { flex: 1; min-width: 10px; position: relative; border-radius: 4px 4px 0 0; background: linear-gradient(to top, #3983f4, #8ebcff); }.bar::after { content: attr(data-label); position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); color: #9aa6b7; font-size: 10px; }.activity-list { display: grid; gap: 20px; }.activity { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }.activity-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 13px; }.activity:nth-child(2) .activity-icon { color: var(--green); background: var(--green-soft); }.activity:nth-child(3) .activity-icon { color: var(--orange); background: var(--orange-soft); }.activity-copy { min-width: 0; }.activity-copy p { margin: 1px 0 5px; color: #435067; font-size: 13px; line-height: 1.45; }.activity-copy time { color: #9ba6b8; font-size: 11px; }.table-panel { margin-top: 18px; }.panel-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); }.panel-head h2 { margin: 0; font-size: 16px; }.text-link { border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 650; }
.table-wrap { overflow: auto; }.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }.data-table th, .data-table td { padding: 14px 20px; border-bottom: 1px solid #edf0f4; text-align: left; font-size: 13px; }.data-table th { color: #8a96a8; background: #fcfdff; font-size: 12px; font-weight: 650; }.data-table td { color: #344156; }.data-table tr:last-child td { border-bottom: 0; }.subtle { display: block; margin-top: 4px; color: #9aa5b5; font-size: 11px; }.amount { color: #172033; font-weight: 700; }.status { display: inline-flex; align-items: center; min-width: 49px; justify-content: center; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }.status.paid, .status.active, .status.published, .status.unused { color: #118456; background: #e9f9f0; }.status.pending, .status.draft { color: #b86b08; background: #fff3df; }.status.cancelled, .status.disabled, .status.used { color: #687588; background: #edf1f5; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.page-toolbar .left-tools, .page-toolbar .right-tools { display: flex; gap: 10px; align-items: center; }.filter-input { width: min(300px, 48vw); height: 40px; }.filter-select { width: 130px; }.empty-state { padding: 44px 20px; color: #8a96a8; text-align: center; font-size: 13px; }.table-action { margin-right: 6px; padding: 6px 9px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 700; }.table-action:last-child { margin-right: 0; }.table-action.danger { color: var(--red); background: var(--red-soft); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 18px; }.setting-card { padding: 22px; }.setting-card h2 { margin: 0 0 5px; font-size: 16px; }.setting-card > p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }.form-grid .full { grid-column: 1 / -1; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }.settings-tip { padding: 22px; background: #172438; color: #e8effc; }.settings-tip h2 { margin: 0 0 12px; font-size: 16px; }.settings-tip p { color: #afc0db; font-size: 13px; line-height: 1.75; }.settings-tip code { display: block; padding: 9px; overflow-wrap: anywhere; border-radius: 5px; color: #bcd7ff; background: rgba(0,0,0,.22); font-size: 12px; }.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }.quick-action { min-width: 118px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; color: #435067; background: #fff; text-align: left; font-size: 13px; font-weight: 650; }.quick-action span { display: block; margin-bottom: 8px; color: var(--blue); font-size: 19px; }.quick-action:hover { border-color: #b7d1fb; background: #f7faff; }
.modal-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(13,22,38,.46); }.modal { width: min(100%, 500px); overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 18px 60px rgba(15,23,42,.26); }.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }.modal-header h2 { margin: 0; font-size: 17px; }.modal-close { width: 28px; height: 28px; border: 0; border-radius: 5px; color: #7b8798; background: transparent; font-size: 21px; }.modal-close:hover { background: #f1f4f8; }.modal-form { padding: 5px 20px 20px; }.modal-form label { margin: 15px 0; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }.toast-root { position: fixed; z-index: 70; top: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }.toast { min-width: 240px; padding: 12px 16px; border: 1px solid #cdebdc; border-radius: 7px; color: #116c47; background: #f1fcf6; box-shadow: 0 10px 25px rgba(15,23,42,.12); font-size: 13px; }.toast.error { border-color: #f4c9cc; color: #a2323b; background: #fff4f4; }

@media (max-width: 1060px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.dashboard-grid { grid-template-columns: 1fr; }.settings-grid { grid-template-columns: 1fr; }.login-shell { grid-template-columns: minmax(360px, .9fr) minmax(400px, 1fr); }.login-intro { padding: 44px; } }
@media (max-width: 760px) { .login-shell { display: block; }.login-intro { display: none; }.login-panel { min-height: 100vh; padding: 28px 24px; }.mobile-brand { display: inline-flex; }.login-footnote { bottom: 19px; }.sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 35px rgba(15,23,42,.22); }.app-shell.menu-open .sidebar { transform: translateX(0); }.sidebar-close { display: inline-grid; color: #c4ccda; }.sidebar-backdrop { position: fixed; z-index: 9; inset: 0; display: none; background: rgba(14,22,37,.38); }.app-shell.menu-open .sidebar-backdrop { display: block; }.workspace { margin-left: 0; }.topbar { height: 64px; padding: 0 16px; }.menu-button { display: inline-grid; }.topbar-search { width: auto; flex: 1; }.topbar-actions { gap: 3px; }.admin-button > span:not(.avatar), .admin-button .chevron { display: none; }.content { min-height: calc(100vh - 64px); padding: 24px 16px 40px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 21px; }.page-heading h1 { font-size: 22px; }.stat-grid { gap: 11px; }.stat-card { min-height: 118px; padding: 14px; }.stat-value { margin-top: 12px; font-size: 23px; }.page-toolbar { align-items: stretch; flex-direction: column; }.page-toolbar .left-tools, .page-toolbar .right-tools { width: 100%; }.filter-input { flex: 1; max-width: none; }.filter-select { flex: 1; }.primary-button { min-height: 40px; }.panel-head { padding: 0 14px; }.data-table th, .data-table td { padding: 12px 14px; }.form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.topbar-search input { font-size: 12px; } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr 1fr; }.stat-label { font-size: 12px; }.stat-icon { width: 31px; height: 31px; }.stat-note { font-size: 10px; }.page-toolbar .left-tools { flex-wrap: wrap; }.page-toolbar .left-tools > * { min-width: 0; }.filter-select { width: 120px; flex: 0 0 120px; }.quick-action { min-width: calc(50% - 5px); }.modal-layer { padding: 12px; } }
