:root { color-scheme: light; font-family: Inter, "Microsoft YaHei", sans-serif; color: #182230; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; }
.topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: #172033; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.brand-button { color: inherit; border: 0; padding: 0; background: transparent; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: #2563eb; font-size: 14px; font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 9px; }.top-title { color: #cbd5e1; font-size: 14px; font-weight: 600; margin-right: 4px; }
.subtle { color: #94a3b8; font-size: 13px; }
.page { max-width: 1320px; margin: 0 auto; padding: 28px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
h2 { margin: 0; font-size: 16px; }
.page-head p, .hint { margin: 7px 0 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
.panel-title { padding: 18px 20px; border-bottom: 1px solid #edf1f5; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel-body { padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 15px; }
.stat-label { font-size: 12px; color: #64748b; }
.stat-value { margin-top: 7px; font-size: 25px; font-weight: 700; color: #172033; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-size: 13px; color: #475569; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 4px; padding: 0 10px; color: #1e293b; background: #fff; outline: none; }
input, select { height: 38px; }
textarea { min-height: 118px; padding: 9px 10px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); }
.button { height: 36px; border: 0; border-radius: 4px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.primary { color: #fff; background: #2563eb; }.primary:hover { background: #1d4ed8; }.secondary { color: #334155; background: #e8edf4; }.secondary:hover { background: #dce3ec; }.danger { color: #b42318; background: #fff1f0; }.danger:hover { background: #ffe2e0; }.text { color: #2563eb; background: transparent; padding: 0; }
.actions { display: flex; gap: 9px; align-items: center; }.form-actions { margin-top: 17px; display: flex; justify-content: flex-end; }
.form-separator { height: 1px; margin: 24px -20px 20px; background: #edf1f5; }.panel-body h3 { margin: 0; font-size: 15px; }
.table-wrap { overflow-x: auto; }.table { width: 100%; border-collapse: collapse; font-size: 13px; }.table th { color: #64748b; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; background: #f8fafc; }.table th, .table td { padding: 13px 14px; border-bottom: 1px solid #edf1f5; }.table tr:last-child td { border-bottom: 0; }.table td { color: #334155; white-space: nowrap; }.table .table-actions, .full-code, .masked-code, .note-editor { display: flex; gap: 10px; align-items: center; }.full-code code, .masked-code code, .legacy-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.full-code code { color: #0f5132; }.note-editor input { width: 150px; min-width: 120px; height: 32px; }.table .table-actions { gap: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; }.tag-active { background: #ecfdf3; color: #067647; }.tag-disabled { background: #fff1f0; color: #b42318; }.tag-expired { background: #fff7e6; color: #b54708; }
.issued { margin-top: 16px; border: 1px solid #bbf7d0; background: #f0fdf4; padding: 13px; border-radius: 4px; }.issued-title { color: #166534; font-size: 13px; font-weight: 700; }.code-list { display: grid; gap: 7px; margin-top: 9px; }.code-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: #fff; padding: 8px 10px; border: 1px solid #dcfce7; color: #166534; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.empty { padding: 45px 20px; color: #94a3b8; text-align: center; }.error { color: #b42318; font-size: 13px; }.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 15px; border-radius: 5px; color: #fff; background: #172033; box-shadow: 0 6px 20px rgb(15 23 42 / 24%); font-size: 13px; }.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; background: rgb(15 23 42 / 42%); padding: 20px; }.modal { width: min(440px, 100%); background: #fff; border-radius: 6px; box-shadow: 0 16px 42px rgb(15 23 42 / 30%); }.modal-head { padding: 18px 20px; border-bottom: 1px solid #edf1f5; }.modal-body { padding: 20px; }.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid #edf1f5; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: #f5f7fa; }.auth-card { width: min(410px, 100%); background: #fff; border: 1px solid #e2e8f0; border-radius: 7px; box-shadow: 0 10px 30px rgb(15 23 42 / 8%); padding: 30px; }.auth-card h1 { margin-bottom: 8px; }.auth-form { display: grid; gap: 15px; margin-top: 24px; }.auth-form .button { width: 100%; height: 40px; }
.product-home { max-width: 860px; margin: 0 auto; padding: 72px 28px; }.product-home h1 { margin-bottom: 24px; }.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.product-card { min-height: 142px; display: flex; align-items: center; gap: 16px; padding: 24px; text-align: left; border: 1px solid #d9e1ea; border-radius: 6px; background: #fff; color: #182230; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }.product-card:hover { border-color: #2563eb; box-shadow: 0 8px 22px rgb(37 99 235 / 12%); transform: translateY(-1px); }.product-card.fanba:hover { border-color: #0f766e; box-shadow: 0 8px 22px rgb(15 118 110 / 12%); }.product-symbol { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; background: #eaf1ff; color: #1d4ed8; font-size: 20px; font-weight: 800; border-radius: 6px; }.fanba .product-symbol { background: #e6f7f5; color: #0f766e; }.product-body { display: grid; gap: 7px; }.product-body strong { font-size: 18px; }.product-body small { color: #64748b; font-size: 13px; }.product-arrow { margin-left: auto; color: #94a3b8; font-size: 30px; font-weight: 300; }
@media (max-width: 960px) { .page { padding: 18px; }.grid { grid-template-columns: 1fr; }.stats { grid-template-columns: repeat(3, 1fr); }.topbar { padding: 0 18px; } }
@media (max-width: 600px) { .page-head { display: grid; }.stats { grid-template-columns: repeat(2, 1fr); }.form-grid { grid-template-columns: 1fr; }.topbar .subtle { display: none; }.page { padding: 14px; }.table th, .table td { padding: 11px; }.topbar { padding: 0 14px; }.top-title { display: none; }.product-home { padding: 46px 18px; }.product-grid { grid-template-columns: 1fr; } }
