:root {
  color-scheme: light;
  --blue: #1677ff;
  --blue-soft: #eaf3ff;
  --canvas: #f3f6fb;
  --panel: #ffffff;
  --line: #e7ebf1;
  --text: #1f2937;
  --muted: #718097;
  --green: #35b76b;
  --orange: #f0a10e;
  --red: #f04f56;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 1080px; color: var(--text); background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 226px; flex: 0 0 226px; color: #b6c2d4; background: #132033; display: flex; flex-direction: column; padding: 21px 13px 17px; }
.brand { color: white; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; padding: 0 10px 25px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 8px; font-size: 17px; box-shadow: 0 7px 14px #0c346950; }
.nav-caption { padding: 9px 11px 8px; color: #7e91aa; font-size: 12px; font-weight: 700; }
.nav-caption.second { margin-top: 14px; }
.nav-item { width: 100%; border: 0; background: transparent; color: inherit; height: 42px; display: flex; align-items: center; gap: 12px; border-radius: 6px; padding: 0 12px; text-align: left; font-size: 14px; }
.nav-item > span { width: 18px; color: #93a6bf; text-align: center; font-size: 18px; }
.nav-item:hover { color: white; background: #1c2c43; }
.nav-item.active { color: white; background: var(--blue); box-shadow: 0 4px 10px #0b3c7d55; }
.nav-item.active > span { color: white; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: auto 9px 0; padding-top: 18px; border-top: 1px solid #26364d; color: #8ea2bb; font-size: 12px; }
.state-dot { width: 7px; height: 7px; background: #36d399; border-radius: 50%; box-shadow: 0 0 0 4px #36d39920; }
.main-shell { min-width: 0; flex: 1; }
.topbar { height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.crumb { color: #6c7b91; font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #e8f2ff; font-size: 13px; font-weight: 800; }
.content { padding: 20px 24px 30px; max-width: 1900px; }
.page-hero { min-height: 101px; display: flex; align-items: center; justify-content: space-between; padding: 22px 27px; border: 1px solid #e8edf6; border-radius: 10px; background: linear-gradient(110deg, #edf5ff 0%, #fff 52%); box-shadow: 0 4px 10px #1b355610; }
.page-hero h1 { margin: 0 0 6px; color: #1e2d43; font-size: 22px; letter-spacing: 0; }
.page-hero p { margin: 0; color: #62738d; font-size: 14px; }
.primary-button, .secondary-button, .ghost-button { height: 36px; padding: 0 15px; border-radius: 7px; font-weight: 600; border: 1px solid transparent; }
.primary-button { color: white; background: var(--blue); box-shadow: 0 3px 6px #1677ff28; }
.primary-button:hover { background: #0d68e8; }
.secondary-button, .ghost-button { color: #38506d; background: white; border-color: #dce3ec; }
.secondary-button:hover, .ghost-button:hover { color: var(--blue); border-color: #a8c8fa; }
.danger-button { color: var(--red); }
.section-title { display: flex; align-items: center; gap: 9px; margin: 19px 0 12px; color: #35435a; font-size: 15px; font-weight: 800; }
.section-title .title-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: white; box-shadow: 0 2px 6px #1c355812; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { min-height: 136px; display: flex; align-items: flex-start; gap: 16px; padding: 21px 23px; border-radius: 10px; background: white; box-shadow: 0 8px 18px #203a5a11; }
.metric-icon { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border: 1px solid #e8edf3; border-radius: 15px; color: var(--blue); font-size: 25px; }
.metric-icon.green { color: #43be2d; }.metric-icon.orange { color: #f7a600; }.metric-icon.red { color: #f14354; }
.metric-value { color: #30343b; font-size: 34px; line-height: 1; font-weight: 800; }
.metric-label { margin-top: 8px; color: #606a79; font-size: 15px; font-weight: 700; }
.metric-help { margin-top: 11px; color: #8a95a6; font-size: 13px; }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 16px 34px; margin-top: 18px; padding: 22px 27px; background: white; border-radius: 8px; }
.field { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; }
.field label { color: #27384f; text-align: right; font-size: 14px; font-weight: 700; }
input, select { width: 100%; height: 36px; padding: 0 12px; border: 1px solid #dce3ec; border-radius: 6px; outline: none; color: #31445f; background: #fff; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1677ff14; }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.data-panel { margin-top: 14px; overflow: hidden; background: white; border-radius: 8px; box-shadow: 0 2px 7px #203a5a0c; }
.data-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; border-bottom: 1px solid var(--line); }
.data-toolbar h2 { margin: 0; color: #34445a; font-size: 15px; }.toolbar-actions { display: flex; gap: 10px; }
.table-wrap { min-height: 370px; overflow: auto; }
table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13px; }
th { height: 49px; white-space: nowrap; color: #40526a; background: #fafbfd; border-bottom: 1px solid #e6eaf0; font-weight: 800; text-align: left; padding: 0 16px; }
td { height: 54px; color: #53647b; border-bottom: 1px solid #eef1f5; padding: 0 16px; white-space: nowrap; }
tbody tr:hover { background: #f7faff; }.empty-cell { height: 310px; text-align: center; color: #a7b2c2; }
.empty-box { display: grid; justify-items: center; gap: 10px; }.empty-icon { width: 47px; height: 35px; border: 2px solid #dbe2eb; border-radius: 6px; position: relative; }.empty-icon::after { content: ""; position: absolute; inset: 9px 10px; border-top: 2px solid #dbe2eb; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; color: #21875e; background: #effaf4; font-size: 12px; font-weight: 700; }.tag.gray { color: #7e8da1; background: #f1f4f7; }.tag.red { color: #dc3b47; background: #fff0f1; }
.info-strip { display: flex; align-items: center; gap: 22px; margin-top: 16px; padding: 17px 22px; border-radius: 9px; color: #45617e; background: white; box-shadow: 0 2px 7px #203a5a0c; }.info-strip strong { color: #243750; }.inline-actions { display: flex; gap: 12px; }
.download-card { margin-top: 16px; padding: 25px; border-radius: 10px; background: white; box-shadow: 0 3px 9px #203a5a0c; }.download-head { display: flex; justify-content: space-between; align-items: flex-start; }.download-title { display: flex; align-items: center; gap: 16px; }.download-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #49b8ff, #1677ff); font-size: 27px; box-shadow: 0 8px 15px #1677ff35; }.download-title h2 { margin: 0 0 6px; font-size: 20px; }.download-title p { margin: 0; color: #718097; }.release-meta { display: flex; gap: 10px; margin-top: 22px; }.release-meta span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; color: #61728a; font-size: 13px; }.release-notes { margin-top: 19px; padding: 18px 20px; border: 1px solid #ebeff4; border-radius: 8px; color: #53647c; line-height: 1.75; }.release-notes h3 { margin: 0 0 8px; color: #35465e; font-size: 14px; }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: #10182776; z-index: 10; }.modal { width: min(470px, 100%); padding: 22px; border-radius: 10px; background: white; box-shadow: 0 17px 48px #0f172a3d; }.modal h2 { margin: 0 0 8px; font-size: 19px; }.modal p { margin: 0 0 19px; color: #718097; font-size: 13px; line-height: 1.6; }.modal .field { grid-template-columns: 1fr; gap: 7px; }.modal .field label { text-align: left; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.activity-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; }.activity-row { min-height: 52px; display: grid; grid-template-columns: minmax(125px, 1fr) minmax(90px, 1.1fr) minmax(130px, 1fr); align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #eef1f5; color: #6c7b91; font-size: 12px; }.activity-row:last-child { border-bottom: 0; }.activity-row strong { color: #34445a; }.activity-row time { color: #8a98aa; text-align: right; }
.card-output { width: 100%; min-height: 200px; resize: vertical; padding: 12px; border: 1px solid #dce3ec; border-radius: 7px; color: #35465e; background: #f8fafc; font: 13px/1.65 ui-monospace, Consolas, monospace; }
#toast { position: fixed; right: 25px; bottom: 25px; max-width: 360px; padding: 11px 15px; border-radius: 7px; color: #275c46; background: #eefaf3; border: 1px solid #ccebd9; box-shadow: 0 6px 18px #203a5a22; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }#toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1250px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.filter-panel { grid-template-columns: repeat(2, minmax(250px, 1fr)); } }
.redeem-body { min-width: 0; min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(145deg, #edf5ff, #f6f8fc 48%, #e8f1ff); }.redeem-shell { width: min(460px, 100%); }.redeem-card { padding: 35px; border: 1px solid #e3eaf4; border-radius: 13px; background: #fff; box-shadow: 0 22px 55px #18385c1c; }.redeem-logo { display: flex; align-items: center; gap: 10px; color: #1d3049; font-size: 19px; }.eyebrow { margin: 31px 0 8px; color: var(--blue); font-size: 13px; font-weight: 800; }.redeem-card h1 { margin: 0; color: #1d2b40; font-size: 27px; }.redeem-copy { margin: 13px 0 26px; color: #718097; line-height: 1.7; font-size: 14px; }.redeem-card form { display: grid; gap: 17px; }.redeem-card form label { display: grid; gap: 8px; color: #34455d; font-size: 14px; font-weight: 700; }.redeem-submit { margin-top: 6px; height: 43px; }.redeem-submit:disabled { cursor: wait; opacity: .65; }.redeem-foot { margin: 17px 0 0; color: #7b8ba0; text-align: center; font-size: 12px; }.redeem-card #redeem-result { display: grid; gap: 5px; min-height: 20px; margin-top: 19px; color: #6d7c8e; font-size: 13px; }.redeem-card #redeem-result.success { padding: 13px; border: 1px solid #c9edd8; border-radius: 7px; color: #287f56; background: #f0fbf4; }.redeem-card #redeem-result.error { padding: 11px; border: 1px solid #ffd5d8; border-radius: 7px; color: #c63842; background: #fff2f3; }
