* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6f8; color: #222; font-size: 14px; }
a { color: #2868d8; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; background: #1f2937; color: #fff; padding: 0 24px; height: 54px; gap: 32px; }
.topbar .brand { font-size: 16px; font-weight: 600; }
.topbar nav { flex: 1; display: flex; gap: 8px; }
.topbar nav a { color: #cbd5e1; padding: 8px 14px; border-radius: 6px; }
.topbar nav a.active, .topbar nav a:hover { background: #374151; color: #fff; text-decoration: none; }
.topbar .user { color: #cbd5e1; display: flex; gap: 14px; align-items: center; }
.topbar .user a { color: #f87171; }

.container { max-width: 1500px; margin: 20px auto; padding: 0 20px; }
h2 { font-size: 18px; margin-bottom: 14px; }
h3 { font-size: 15px; margin: 18px 0 10px; }
.hint { color: #666; margin-bottom: 12px; line-height: 1.7; }
.hint code { background: #eef; padding: 2px 6px; border-radius: 3px; font-size: 12px; }

.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.bar .rate { font-weight: 400; font-size: 13px; color: #555; margin-left: 16px; }
.bar .rate b { color: #d97706; }
.bar .mini { font-size: 12px; margin-left: 6px; }
.search { display: flex; gap: 6px; }
.search input { padding: 7px 10px; border: 1px solid #d0d7de; border-radius: 6px; width: 240px; }
.search button { padding: 7px 14px; background: #2868d8; color: #fff; border: 0; border-radius: 6px; cursor: pointer; }

table { width: 100%; background: #fff; border-collapse: collapse; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
th, td { padding: 12px 10px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
th { background: #f8fafc; text-align: left; font-weight: 600; color: #475569; font-size: 13px; }
tr:hover td { background: #fafbfc; }
.empty { text-align: center; color: #999; padding: 40px; }

.img-cell { text-align: center; }
.img-cell img { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; display: block; margin: 0 auto 6px; }
.no-img { color: #bbb; }
.show-all { font-size: 12px; }
.prod-name { font-weight: 500; line-height: 1.5; display: block; max-width: 320px; }
.price b { color: #dc2626; font-size: 15px; }
.price .cny { color: #16a34a; margin-top: 4px; font-size: 13px; }
.fees { font-size: 13px; color: #555; line-height: 1.7; }
.seller { font-weight: 500; }
.muted { color: #999; font-size: 12px; margin-top: 4px; }
.info { font-size: 13px; line-height: 1.7; }
.time { color: #888; font-size: 12px; white-space: nowrap; }
.del { color: #dc2626; }

.collect-form textarea { width: 100%; padding: 12px; border: 1px solid #d0d7de; border-radius: 8px; font-family: monospace; font-size: 13px; }
.collect-form button { margin-top: 12px; padding: 10px 28px; background: #2868d8; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; }
.collect-form button:hover { background: #1e58c0; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.t-new { background: #dcfce7; color: #16803d; }
.t-upd { background: #dbeafe; color: #1e40af; }
.t-err { background: #fee2e2; color: #b91c1c; }

.result-tbl td { font-size: 13px; }

.err { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }

/* 登录页 */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #4f86f7, #1e3a8a); }
.login-card { background: #fff; padding: 36px 32px; border-radius: 12px; width: 360px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.login-card h1 { font-size: 20px; text-align: center; margin-bottom: 22px; color: #1e3a8a; }
.login-card label { display: block; margin-bottom: 14px; font-size: 13px; color: #444; }
.login-card input { width: 100%; padding: 10px 12px; margin-top: 6px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 14px; }
.login-card button { width: 100%; padding: 11px; background: #2868d8; color: #fff; border: 0; border-radius: 6px; font-size: 15px; cursor: pointer; margin-top: 8px; }

/* 图片弹窗 */
.modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.modal-box { position: relative; background: #fff; border-radius: 10px; max-width: 90vw; max-height: 85vh; overflow: auto; padding: 50px 24px 24px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: transparent; border: 0; font-size: 28px; cursor: pointer; color: #666; }
.modal-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.modal-imgs img { width: 100%; border-radius: 6px; border: 1px solid #eee; cursor: zoom-in; }
