* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f4f8; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 20px; }

/* Header */
.header { width: 100%; max-width: 680px; background: linear-gradient(135deg, #2563eb, #1d4ed8); padding: 28px 32px; border-radius: 10px 10px 0 0; text-align: center; }
.header-title { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.header-date { color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 6px; }

/* Card */
.card { width: 100%; max-width: 680px; background: #fff; padding: 28px 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.card:first-of-type { border-radius: 0 0 10px 10px; }
.admin-card { border-radius: 10px !important; margin-top: 16px; }

/* Query */
.query-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.query-row label { font-size: 14px; color: #333; white-space: nowrap; font-weight: 500; }
.query-row input { flex: 1; min-width: 180px; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.query-row input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.btn { padding: 10px 24px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn-outline:hover { background: #eff6ff; }

.loading { display: none; text-align: center; padding: 12px; color: #888; font-size: 13px; }

.result { display: none; background: #eff6ff; border-left: 4px solid #2563eb; padding: 16px 20px; border-radius: 6px; margin-top: 16px; }
.result p { font-size: 15px; color: #1e3a5f; line-height: 1.8; }

.error-msg { display: none; background: #fef2f2; border-left: 4px solid #ef4444; padding: 12px 20px; border-radius: 6px; margin-top: 16px; color: #991b1b; font-size: 14px; }

/* Admin Section */
.admin-summary { cursor: pointer; font-size: 15px; font-weight: 500; color: #374151; padding: 4px 0; user-select: none; }
.admin-summary:hover { color: #2563eb; }
.admin-content { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

.stats { background: #f9fafb; padding: 12px 16px; border-radius: 6px; font-size: 13px; color: #6b7280; margin-bottom: 20px; line-height: 1.8; }

.import-section { margin-bottom: 20px; }
.import-section h4 { font-size: 14px; color: #374151; margin-bottom: 10px; font-weight: 600; }
.import-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-input { font-size: 13px; max-width: 200px; }
.key-input { width: 120px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; outline: none; }
.key-input:focus { border-color: #2563eb; }

.hint { font-size: 12px; color: #9ca3af; margin-top: 6px; }

.toast { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: 8px; font-size: 14px; color: #fff; z-index: 9999; animation: fadeIn 0.3s; }
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
