/* 运营管理后台布局 */
.shell { display: flex; min-height: 100vh; }
.side { width: 224px; flex: none; background: linear-gradient(180deg, #FFFBF3, #F7EEDD); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.brand .seal { width: 40px; height: 40px; font-size: 15px; flex-direction: column; }
.brand .bt { font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--red); letter-spacing: .06em; }
.brand .bs { font-size: 11px; color: var(--ink3); letter-spacing: .1em; }
.nav { padding: 4px 10px 20px; flex: 1; }
.nav .grp { font-size: 11px; color: var(--ink3); letter-spacing: .12em; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; color: var(--ink2); font-size: 14px; margin-bottom: 2px; }
.nav a:hover { background: rgba(196, 146, 69, .1); color: var(--ink); }
.nav a.on { background: linear-gradient(90deg, var(--red-soft), rgba(251, 229, 220, .2)); color: var(--red); font-weight: 700; }
.nav a .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.side-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(248, 242, 231, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line2); }
.top h1 { font-family: var(--serif); font-size: 20px; margin: 0; }
.top .user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink2); }
.top .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #E4B988, #C08A55); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.page { padding: 22px 28px 40px; }
.page > * + * { margin-top: 18px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
.toolbar .input, .toolbar .select { width: auto; min-width: 130px; height: 34px; }
.toolbar .sp { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; position: relative; overflow: hidden; cursor: default; }
.stat.clickable { cursor: pointer; transition: transform .15s; }
.stat.clickable:hover { transform: translateY(-2px); }
.stat .k { font-size: 13px; color: var(--ink2); }
.stat .v { font-family: var(--sans); font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; line-height: 1.1; }
.stat .s { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.stat::after { content: ''; position: absolute; right: -18px; top: -18px; width: 80px; height: 80px; border-radius: 50%; background: var(--tone, var(--gold-soft)); opacity: .7; }
.stat.red { --tone: var(--red-soft); } .stat.red .v { color: var(--red); }
.stat.jade { --tone: var(--jade-soft); } .stat.jade .v { color: var(--jade); }
.stat.gold { --tone: var(--gold-soft); } .stat.gold .v { color: #9A6B22; }
.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }

.warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); color: #7a5418; font-size: 13px; border: 1px solid #EED9AE; }

.chart { padding: 10px 20px 16px; }
.chart svg { width: 100%; height: 220px; display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink2); padding: 0 20px 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.drawer .dh { padding: 20px 24px; background: linear-gradient(120deg, #FCE9D8, #F8F2E7); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 2; }
.drawer .dh .av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #E4B988, #C08A55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; border: 3px solid #fff; background-size: cover; flex: none; }
.drawer .dh .nm { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.drawer .db { padding: 18px 24px 40px; }
.drawer .db > * + * { margin-top: 16px; }
.drawer .x { margin-left: auto; border: 0; background: none; font-size: 26px; color: var(--ink3); cursor: pointer; }
.sec-t { font-family: var(--serif); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mini-list .it { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mini-list .it:last-child { border: 0; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 85% 10%, rgba(230, 197, 132, .45), transparent 40%), radial-gradient(circle at 10% 90%, rgba(189, 67, 45, .12), transparent 40%), var(--paper); }
.login .box { width: 380px; padding: 36px 34px; }
.login .seal { display: flex; width: 56px; height: 56px; font-size: 20px; flex-direction: column; margin: 0 auto; }
.login h2 { text-align: center; font-family: var(--serif); color: var(--red); margin: 16px 0 4px; font-size: 24px; letter-spacing: .1em; }
.login .sub { text-align: center; color: var(--ink3); font-size: 13px; margin-bottom: 24px; }

.qr-box { text-align: center; }
.qr-box img { width: 240px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line2); }
.tabs button { border: 0; background: none; padding: 8px 14px; border-bottom: 2px solid transparent; color: var(--ink2); cursor: pointer; font-weight: 600; }
.tabs button.on { color: var(--red); border-color: var(--red); }
.thumb-s { width: 44px; height: 44px; border-radius: 8px; background: var(--paper) center / contain no-repeat; border: 1px solid var(--line); }
.thumb-s.red { background-color: #F7D9CC; } .thumb-s.gold { background-color: #F6E6C4; } .thumb-s.jade { background-color: #D9EDE5; } .thumb-s.wood { background-color: #EAD9C2; } .thumb-s.mint { background-color: #E3F1EC; }

@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .side { display: none; } .page { padding: 16px; } .top { padding: 0 16px; } .form-grid { grid-template-columns: 1fr; } }
.warn > b { flex: none; white-space: nowrap; }
.new-notice { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 14px; background: #FFF6EA; border: 1px solid #EED9AE; box-shadow: 0 20px 50px -20px rgba(120, 60, 20, .55); font-size: 14px; animation: pop .2s; }
.new-notice b { color: #fff; background: var(--red); border-radius: 8px; padding: 2px 8px; font-size: 12px; }
