* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fa; color: #1f2937; font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: #2563eb; text-decoration: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.brand { font-weight: 700; font-size: 18px; color: #111827; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: #4b5563; font-size: 14px; }
.topbar nav a:hover { color: #2563eb; }
.wrap { max-width: 1080px; margin: 28px auto 60px; padding: 0 20px; }
.hero { margin-bottom: 20px; }
.hero h1, .card h1 { margin: 0 0 8px; font-size: 24px; }
.hero p { margin: 0; color: #6b7280; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.03); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.apk-title { font-size: 17px; font-weight: 600; word-break: break-all; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: #6b7280; font-size: 13px; }
.meta.small { font-size: 12px; color: #9ca3af; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 12px; }
.tag.on { background: #ecfdf5; color: #059669; }
.tag.off { background: #fef2f2; color: #dc2626; }
.remark { margin-top: 10px; color: #4b5563; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; font-size: 14px; }
.btn:hover { background: #f9fafb; }
.btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn.primary:hover { background: #1d4ed8; }
.btn.danger { color: #dc2626; border-color: #fecaca; }
.btn.mini { padding: 5px 10px; font-size: 12px; }
.auth { max-width: 520px; margin: 40px auto; }
.auth form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: 13px; color: #4b5563; }
input, select { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; color: #1f2937; background: #fff; }
input:focus, select:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; }
.alert { padding: 10px 14px; border-radius: 8px; background: #fef2f2; color: #b91c1c; margin: 12px 0; }
.small { font-size: 12px; color: #9ca3af; word-break: break-all; }
.empty { text-align: center; color: #6b7280; padding: 50px 20px; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef0f3; vertical-align: top; }
th { background: #f9fafb; color: #6b7280; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.edit { position: relative; }
.edit summary { cursor: pointer; padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; }
.edit form { position: absolute; right: 0; top: 32px; z-index: 10; width: 230px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: grid; gap: 8px; }
.footer { text-align: center; color: #9ca3af; font-size: 12px; margin-top: 40px; }
@media (max-width: 640px) { .topbar { flex-direction: column; align-items: flex-start; } }

.tip { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: 13px; padding: 12px 16px; }
.code { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; letter-spacing: 2px; color: #7c3aed; background: #f5f3ff; padding: 2px 8px; border-radius: 6px; }
.app-info { padding: 14px; background: #f9fafb; border-radius: 10px; margin-bottom: 8px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #1f2937; background: #f9fafb; resize: vertical; }
