:root { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: #666; background: #f2f2f2; --sidebar: #20222a; --accent: #009688; --border: #e6e6e6; --muted: #999; --top: 50px; --tabs: 40px; }
* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: #f2f2f2; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.login-page { min-height: 100vh; padding: 110px 20px 80px; background: #f2f2f2; }
.login-main { width: min(375px, 100%); margin: 0 auto; }
.login-header { padding: 20px; text-align: center; }
.login-header h1 { margin: 0 0 10px; color: #000; font-size: 30px; font-weight: 300; }
.login-header p { margin: 0; color: var(--muted); font-weight: 300; }
.login-body { padding: 20px; }
.field { position: relative; margin-bottom: 15px; }
.field-icon { position: absolute; inset: 1px auto 1px 1px; width: 38px; display: grid; place-items: center; color: #d2d2d2; font-size: 17px; }
.field input { width: 100%; height: 38px; padding: 0 12px 0 38px; border: 1px solid var(--border); background: #fff; outline: 0; }
.field input:focus, input:focus, select:focus, textarea:focus { border-color: #c9c9c9; outline: 0; }
.captcha-row { display: grid; grid-template-columns: 7fr 5fr; gap: 10px; }
.captcha-preview { height: 38px; display: grid; place-items: center; border: 1px dashed #c9c9c9; background: #eef7f4; color: #3a6f68; font-size: 12px; }
.login-button { width: 100%; height: 38px; border: 0; background: var(--accent); color: #fff; }
.login-button:hover { opacity: .9; }
.login-button:disabled { opacity: .65; }
.login-note { margin: 14px 0 0; color: #999; font-size: 12px; line-height: 1.7; }
.login-error { color: #ff5722; }
.login-footer { position: fixed; inset: auto 0 0; padding: 20px; text-align: center; color: rgba(0,0,0,.5); }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 160px; overflow-y: auto; background: var(--sidebar); color: rgba(255,255,255,.72); transition: transform .2s; }
.brand { height: var(--top); padding: 0 14px; display: flex; align-items: center; white-space: nowrap; color: rgba(255,255,255,.84); box-shadow: 0 1px 2px rgba(0,0,0,.18); font-size: 15px; font-weight: 300; }
.nav, .nav ul { margin: 0; padding: 0; list-style: none; }
.nav { padding: 10px 0 24px; }
.nav button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.nav-parent { height: 44px; padding: 0 13px; display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 4px; }
.nav-parent:hover, .nav-parent.active-parent { color: #fff; }
.nav-parent i { font-style: normal; font-size: 18px; transform: rotate(0deg); transition: transform .15s; }
.nav-group.open > .nav-parent i { transform: rotate(90deg); }
.nav-icon { text-align: center; font-size: 16px; }
.nav-group ul { display: none; background: rgba(0,0,0,.18); }
.nav-group.open ul { display: block; }
.nav-child { min-height: 40px; padding: 0 14px 0 42px; }
.nav-child:hover { color: #fff; }
.nav-child.active { background: var(--accent); color: #fff; }

.topbar { position: fixed; inset: 0 0 auto 160px; z-index: 20; height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #fff; border-bottom: 1px solid #f6f6f6; transition: left .2s; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 5px; }
.icon-button, .plain-button { height: 36px; min-width: 36px; border: 0; background: transparent; color: #555; }
.icon-button:hover, .plain-button:hover { color: #000; background: #f6f6f6; }
.user-menu { padding: 0 12px; }
.tabbar { position: fixed; inset: var(--top) 0 auto 160px; z-index: 18; height: var(--tabs); display: flex; align-items: stretch; overflow-x: auto; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); transition: left .2s; }
.tabbar button { flex: 0 0 auto; height: 40px; border: 0; border-right: 1px solid #f6f6f6; background: #fff; color: #666; }
.tab-home { width: 42px; }
.tab { min-width: 92px; padding: 0 9px 0 14px; }
.tab span { margin-left: 9px; color: #bbb; font-size: 16px; }
.tab span:hover { color: #ff5722; }
.tabbar button.active { border-top: 2px solid var(--accent); color: #333; }
.content { min-height: 100vh; margin-left: 160px; padding: 105px 15px 24px; transition: margin .2s; }
.page-title { margin: -4px 0 12px; display: flex; align-items: baseline; gap: 12px; color: #333; font-size: 16px; }
.page-title small { color: #aaa; font-size: 11px; }
.card { margin-bottom: 15px; background: #fff; border: 1px solid #eee; }
.card-header { height: 48px; padding: 0 16px; display: flex; align-items: center; border-bottom: 1px solid #f0f0f0; color: #333; }

.filter-card { padding: 14px 15px 2px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; }
.filter-field { display: flex; align-items: center; margin-bottom: 12px; }
.filter-field > span { flex: 0 0 auto; margin-right: 9px; color: #333; }
.filter-field input, .filter-field select { width: 135px; height: 36px; padding: 0 10px; border: 1px solid var(--border); background: #fff; color: #666; }
.filter-field input[type="date"] { width: 160px; }
.filter-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.btn { height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #00877a; }
.btn-light { border-color: #dedede; background: #fff; color: #666; }
.icon-search { width: 40px; padding: 0; font-size: 22px; line-height: 1; }
.summary-row { display: flex; gap: 15px; margin: 0 0 15px; }
.summary-item { min-width: 190px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-left: 3px solid var(--accent); }
.summary-item span { color: #888; }
.summary-item strong { color: #333; font-size: 18px; font-weight: 400; }
.table-toolbar { padding: 12px 15px 0; }
.table-wrap { width: 100%; overflow: auto; padding: 12px 15px 0; }
table { width: 100%; min-width: 880px; border-collapse: collapse; color: #666; }
th, td { height: 39px; padding: 8px 12px; border: 1px solid #e6e6e6; text-align: left; white-space: nowrap; }
th { background: #f2f2f2; color: #555; font-weight: 400; }
tbody tr:hover { background: #f8f8f8; }
.home-table { padding: 0 15px 15px; }
.home-table table { min-width: 560px; }
.status { display: inline-block; padding: 2px 7px; border: 1px solid; border-radius: 2px; font-size: 12px; }
.status-success { color: #009688; background: #f2fbfa; border-color: #b7e0db; }
.status-danger { color: #ff5722; background: #fff5f2; border-color: #ffc9b8; }
.status-warning { color: #ff8a00; background: #fff9ed; border-color: #f4d8a4; }
.status-info { color: #1e9fff; background: #f2f8fd; border-color: #b7d9f1; }
.positive { color: #009688; }
.negative { color: #ff5722; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { padding: 3px 7px; border: 0; border-radius: 2px; background: #1e9fff; color: #fff; font-size: 12px; }
.nft-thumb { width: 38px; height: 38px; display: grid; place-items: center; background: #20222a; color: #fff; font-size: 10px; }
.empty { padding: 42px; text-align: center; color: #aaa; }
.loading-state { min-height: 160px; display: grid; place-items: center; }
.error-state { color: #ff5722; }
.error-state div { margin-top: 16px; }
.pagination { min-height: 58px; padding: 12px 15px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #777; }
.pagination button, .pagination select, .pagination input { height: 30px; border: 1px solid #e2e2e2; background: #fff; color: #666; }
.pagination button { min-width: 30px; padding: 0 8px; }
.pagination button.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination select { padding: 0 7px; }
.pagination input { width: 42px; padding: 0 5px; text-align: center; }

.password-card { max-width: 760px; }
.password-form { padding: 24px; }
.password-form label { max-width: 430px; margin-bottom: 15px; display: grid; grid-template-columns: 95px 1fr; align-items: center; }
.password-form input { height: 36px; padding: 0 10px; border: 1px solid var(--border); }
.password-form > div { margin-left: 95px; }
.shade { display: none; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 30px; padding: 10px 18px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: rgba(0,0,0,.78); color: #fff; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #ff5722; }
.modal-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.35); }
.modal { width: min(480px, 100%); background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.modal header { height: 48px; padding-left: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; color: #333; }
.modal header button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; color: #999; }
.modal-body { min-height: 120px; padding: 20px; }
.modal-body { max-height: min(68vh, 620px); overflow-y: auto; }
.modal footer { padding: 12px 16px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #eee; }
.modal-field { margin-bottom: 14px; display: grid; grid-template-columns: 88px 1fr; align-items: center; }
.modal-field input, .modal-field select, .modal-field textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); }
.modal-field textarea { min-height: 86px; resize: vertical; }
.modal-hint { margin: 4px 0 0; padding: 10px 12px; background: #fff9ed; color: #9a6a12; font-size: 12px; line-height: 1.6; }
.detail-list p { margin: 0; padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #eee; }
.detail-list span { color: #999; }
.detail-list b { color: #555; font-weight: 400; }

@media (max-width: 760px) {
  .login-page { padding-top: 60px; }
  .login-main { width: min(320px, 100%); }
  .login-header, .login-body { padding: 10px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .shade { position: fixed; z-index: 25; inset: 0; display: block; border: 0; background: rgba(0,0,0,.3); }
  .topbar, .tabbar { left: 0; }
  .content { margin-left: 0; padding: 103px 10px 20px; }
  .topbar-actions .user-menu { max-width: 94px; overflow: hidden; }
  .filter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .filter-field { display: block; }
  .filter-field > span { display: block; margin: 0 0 6px; }
  .filter-field input, .filter-field select, .filter-field input[type="date"] { width: 100%; }
  .summary-row { overflow-x: auto; }
  .summary-item { min-width: 175px; }
  .pagination { justify-content: flex-start; overflow-x: auto; }
  .pagination > span:nth-of-type(n+2), .pagination input, .pagination .btn { display: none; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; }
  .modal-field { grid-template-columns: 1fr; gap: 6px; }
}
