:root { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #24201d; background: #f2f3f5; --red:#b93228; --line:#d9dce1; --muted:#6d7178; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; letter-spacing: 0; background: #f2f3f5; }
button,input,select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.hidden { display: none !important; }
.admin-header { position: sticky; top: 0; z-index: 10; height: 68px; padding: 0 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #3b2720; text-decoration: none; font-weight: 900; }
.admin-brand img { width: 40px; height: 40px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions > span { max-width: 220px; margin-right: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: #333; background: white; }
.icon-button svg { width: 18px; }
.admin-main { width: min(1480px, calc(100% - 40px)); margin: 24px auto 48px; }
.summary-band { min-height: 92px; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(7, 1fr); background: white; }
.summary-item { padding: 17px 20px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item span { display: block; color: var(--muted); font-size: 12px; }
.summary-item strong { display: block; margin-top: 7px; font-size: 28px; }
.toolbar { margin-top: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.toolbar h1 { margin: 0; font-size: 24px; }
.toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.primary-button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--red); font-weight: 800; }
.primary-button svg { width: 18px; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.table-shell { margin-top: 14px; border: 1px solid var(--line); overflow-x: auto; background: white; }
.reward-heading { margin-top: 34px; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th,td { padding: 13px 14px; border-bottom: 1px solid #eceef1; text-align: left; vertical-align: top; font-size: 13px; }
th { position: sticky; top: 0; color: #555b63; background: #f8f9fa; font-size: 12px; white-space: nowrap; }
td strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.subline { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; min-height: 25px; padding: 0 8px; border-radius: 4px; align-items: center; color: #535860; background: #eceef1; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge.ok { color: #126c3d; background: #e5f4eb; }
.badge.warn { color: #8b5911; background: #fff1d7; }
.badge.danger { color: #9f2d25; background: #fbe6e4; }
.row-actions { display: flex; gap: 6px; }
.small-button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: #333; background: white; font-size: 12px; white-space: nowrap; }
.small-button.danger { color: #a1261e; border-color: #e4b9b5; }
.order-history { margin-top: 7px; }
.order-history summary { color: #555b63; cursor: pointer; font-size: 11px; }
.order-history p { margin: 7px 0 0; padding-top: 6px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }
.empty { padding: 52px; color: var(--muted); text-align: center; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-panel,.create-form { width: min(440px, calc(100vw - 28px)); padding: 26px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 15px; background: white; box-shadow: 0 18px 50px rgba(25,28,33,.12); }
.login-panel > img { width: 62px; height: 62px; margin: 0 auto; object-fit: contain; }
.login-panel h1 { margin: 0 0 5px; text-align: center; font-size: 24px; }
label { display: grid; gap: 6px; color: #474b51; font-size: 13px; font-weight: 700; }
input,select { width: 100%; height: 43px; padding: 0 11px; border: 1px solid #cfd3d8; border-radius: 5px; color: #24201d; background: white; outline: none; }
input:focus,select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,50,40,.1); }
.form-error { min-height: 18px; margin: -3px 0 0; color: #a1261e; font-size: 12px; }
dialog { padding: 0; border: 0; border-radius: 8px; }
dialog::backdrop { background: rgba(22,24,27,.48); backdrop-filter: blur(4px); }
.create-form { box-shadow: none; }
.create-form header { display: flex; align-items: center; justify-content: space-between; }
.create-form header p { margin: 0 0 4px; color: var(--red); font-size: 11px; font-weight: 900; }
.create-form h2 { margin: 0; font-size: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; max-width: 360px; padding: 12px 15px; border-radius: 6px; color: white; background: #24201d; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 760px) { .admin-header { padding: 0 14px; } .admin-main { width: calc(100% - 20px); margin-top: 12px; } .summary-band { grid-template-columns: repeat(2,1fr); } .summary-item { border-bottom: 1px solid var(--line); } .toolbar { align-items: stretch; flex-direction: column; } .primary-button { width: 100%; } .field-grid { grid-template-columns: 1fr; } }
