/* ========================================
   无限授权系统
   ======================================== */

:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.35);
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4338ca;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

[data-theme="light"] {
  --bg-primary: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(99, 102, 241, 0.2);
  --border-hover: rgba(99, 102, 241, 0.4);
  --text-1: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ========== 背景装饰 ========== */
.app-wrapper { position: relative; min-height: 100vh; }

.bg-decoration {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #6366f1; top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: #8b5cf6; top: 40%; right: -80px; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: #4338ca; bottom: -80px; left: 20%; animation-delay: -10s; }
.orb-4 { width: 250px; height: 250px; background: #06b6d4; top: 60%; left: -60px; animation-delay: -15s; opacity: 0.08; }
.orb-5 { width: 200px; height: 200px; background: #ec4899; bottom: 20%; right: 10%; animation-delay: -7s; opacity: 0.06; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========== 主容器 ========== */
.main-container {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto; padding: 16px;
}

/* ========== 顶部栏 ========== */
.top-bar {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 4px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s; position: relative;
  backdrop-filter: blur(12px);
}
.icon-btn:hover {
  border-color: var(--border-hover); color: var(--primary-light);
  background: var(--bg-card-hover); transform: translateY(-1px);
}
.badge {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
}

/* ========== 登录状态条 ========== */
.login-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; margin-bottom: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); backdrop-filter: blur(12px);
}
.login-bar .login-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.login-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.login-bar .dot.off { background: var(--text-3); box-shadow: none; }
.login-bar button {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--primary-light); cursor: pointer;
  font-size: 13px; transition: all 0.2s;
}
.login-bar button:hover { background: rgba(99,102,241,0.1); }

/* ========== 头部 ========== */
.header-section { text-align: center; padding: 20px 0 28px; }
.logo-wrapper { position: relative; display: inline-block; margin-bottom: 16px; }
.logo-glow {
  position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.5;} 50%{opacity:1;} }
.logo-icon { width: 72px; height: 72px; position: relative; z-index: 1; }
.app-title {
  font-size: 28px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
}
.app-subtitle { font-size: 14px; color: var(--text-2); letter-spacing: 4px; }
.app-version {
  display: inline-block; margin-top: 8px; padding: 2px 12px;
  font-size: 11px; color: var(--primary-light); border: 1px solid var(--border);
  border-radius: 20px; letter-spacing: 1px;
}

/* ========== 玻璃卡片 ========== */
.glass-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(16px); margin-bottom: 16px;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.glass-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

/* ========== 输入区域 ========== */
.input-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2); margin-bottom: 10px; font-weight: 500;
}
.input-wrapper {
  position: relative; display: flex; align-items: center;
}
.textarea-wrapper { display: block; }
.key-textarea {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(15, 23, 42, 0.6);
  color: var(--text-1); font-size: 14px; font-family: var(--mono);
  outline: none; transition: all 0.2s; line-height: 1.6;
}
[data-theme="light"] .key-textarea { background: rgba(255,255,255,0.8); }
.key-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.key-textarea::placeholder { color: var(--text-3); }

.input-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(99,102,241,0.15); color: var(--text-2); cursor: pointer;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.input-clear:hover { background: rgba(239,68,68,0.2); color: var(--danger); }

/* ========== 快捷操作栏 ========== */
.quick-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.quick-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px; font-size: 12px;
  border: 1px solid var(--border); background: rgba(99,102,241,0.06);
  color: var(--text-2); cursor: pointer; transition: all 0.2s;
}
.quick-btn:hover { background: rgba(99,102,241,0.15); color: var(--primary-light); border-color: var(--border-hover); }

/* ========== 批量进度条 ========== */
.batch-progress { margin-top: 14px; }
.batch-progress-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(99,102,241,0.1); overflow: hidden;
}
.batch-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(99,102,241,0.4);
}
.batch-progress-text {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-2); margin-top: 6px;
}

/* ========== 风控提示 ========== */
.risk-warning {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 10px 14px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px; font-size: 12px; color: var(--amber);
}

/* ========== 提交按钮 ========== */
.submit-btn {
  width: 100%; margin-top: 18px; padding: 14px;
  border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s;
}
.submit-btn:hover::before { transform: translateX(100%); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 使用说明 ========== */
.guide-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-1); }
.step {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-text { font-size: 13px; color: var(--text-2); line-height: 1.6; padding-top: 3px; }
.step-text code {
  background: rgba(99,102,241,0.12); padding: 1px 6px; border-radius: 4px;
  font-size: 12px; font-family: var(--mono); color: var(--primary-light);
}

/* ========== 底部 ========== */
.footer { text-align: center; padding: 24px 0 16px; font-size: 12px; color: var(--text-3); }
.footer a { color: var(--primary-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ========== 弹窗通用 ========== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

.modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow); animation: slideUp 0.3s ease;
  position: relative;
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); }

.modal-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text-1);
}

.modal-section-title {
  font-size: 13px; font-weight: 600; color: var(--primary-light);
  margin: 16px 0 8px; letter-spacing: 1px;
}
.modal-section-title:first-of-type { margin-top: 0; }

.modal-desc { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.modal-desc ul { padding-left: 18px; }
.modal-desc li { margin-bottom: 4px; }
.modal-desc code {
  background: rgba(99,102,241,0.12); padding: 1px 6px; border-radius: 4px;
  font-size: 12px; font-family: var(--mono); color: var(--primary-light);
}

.notice-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; margin-right: 6px; vertical-align: middle;
}
.tag-update { background: rgba(99,102,241,0.15); color: var(--primary-light); }
.tag-info { background: rgba(34,211,238,0.15); color: var(--cyan); }
.tag-warn { background: rgba(245,158,11,0.15); color: var(--amber); }

.warn-box {
  margin-top: 16px; padding: 14px;
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px; font-size: 12px; color: var(--text-2); line-height: 1.8;
}
.warn-box strong { color: var(--danger); }

/* ========== 登录弹窗 ========== */
.auth-form { margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(15,23,42,0.5);
  color: var(--text-1); font-size: 14px; outline: none; transition: all 0.2s;
}
[data-theme="light"] .form-group input { background: rgba(255,255,255,0.8); }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.auth-error { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.auth-success { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }

.auth-switch { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 14px; }
.auth-switch a { color: var(--primary-light); cursor: pointer; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ========== 历史记录 ========== */
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.history-clear {
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer;
}
.history-clear:hover { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); }

.history-search {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(15,23,42,0.5);
  color: var(--text-1); font-size: 13px; outline: none; margin-bottom: 14px;
}
[data-theme="light"] .history-search { background: rgba(255,255,255,0.8); }
.history-search:focus { border-color: var(--primary); }

.history-item {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(99,102,241,0.04); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.history-item:hover { background: rgba(99,102,241,0.1); border-color: var(--border-hover); }
.history-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.history-key { font-family: var(--mono); font-size: 13px; color: var(--primary-light); }
.history-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.status-success { background: rgba(16,185,129,0.15); color: var(--success); }
.status-failed { background: rgba(239,68,68,0.15); color: var(--danger); }
.history-meta { font-size: 12px; color: var(--text-3); }

.history-empty { text-align: center; padding: 40px 0; color: var(--text-3); }
.history-empty .lock-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(99,102,241,0.08); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.history-empty p { font-size: 14px; }

/* ========== 设置弹窗 ========== */
.setting-section { margin-bottom: 20px; }
.setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-label h4 { font-size: 14px; color: var(--text-1); margin-bottom: 2px; }
.setting-label p { font-size: 12px; color: var(--text-3); }

.switch-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: rgba(99,102,241,0.15); border: 1px solid var(--border);
  position: relative; cursor: pointer; transition: all 0.3s; flex-shrink: 0;
}
.switch-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-3);
  transition: all 0.3s;
}
.switch-toggle.on { background: var(--primary); border-color: var(--primary); }
.switch-toggle.on::after { left: 22px; background: #fff; }

.theme-group { display: flex; gap: 10px; }
.theme-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s; font-size: 12px; color: var(--text-2);
}
.theme-item:hover { background: rgba(99,102,241,0.06); }
.theme-item.active { border-color: var(--primary); background: rgba(99,102,241,0.1); color: var(--primary-light); }

.setting-btn-group { display: flex; gap: 10px; margin-top: 8px; }
.btn-primary, .btn-secondary {
  flex: 1; padding: 12px; border-radius: 10px; font-size: 14px;
  cursor: pointer; transition: all 0.2s; font-weight: 600;
}
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(99,102,241,0.06); color: var(--primary-light); }

/* ========== Toast ========== */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; z-index: 200;
  animation: toastIn 0.3s ease; backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@keyframes toastIn { from{opacity:0;transform:translate(-50%,20px);} to{opacity:1;transform:translate(-50%,0);} }
.toast.success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.toast.error { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.toast.warn { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.toast.info { background: rgba(99,102,241,0.15); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.3); }

/* ========== 结果弹窗 ========== */
.result-modal { max-width: 520px; }
.result-header { text-align: center; margin-bottom: 24px; }
.result-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(16,185,129,0.1); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.result-title { font-size: 20px; font-weight: 700; color: var(--success); margin-bottom: 4px; }
.result-subtitle { font-size: 13px; color: var(--text-2); }

.data-section { margin-bottom: 20px; }
.data-section-title { font-size: 13px; font-weight: 600; color: var(--primary-light); margin-bottom: 8px; }

.op-box {
  padding: 14px; border-radius: 10px;
  background: rgba(15,23,42,0.6); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  white-space: pre-wrap; word-break: break-all; line-height: 1.6;
  max-height: 200px; overflow-y: auto;
}
[data-theme="light"] .op-box { background: rgba(255,255,255,0.8); }

.info-table { font-size: 13px; }
.table-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); }
.table-row .label { color: var(--text-3); width: 100px; flex-shrink: 0; }
.table-row .val { color: var(--text-1); }
.table-row .val.cyan { color: var(--cyan); }
.table-row .val.amber { color: var(--amber); }

.modal-btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-close-modal, .btn-copy-op {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-close-modal { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-close-modal:hover { background: rgba(99,102,241,0.06); }
.btn-copy-op {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none;
}
.btn-copy-op:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(99,102,241,0.3); }
.btn-copy-op.copied { background: linear-gradient(135deg, var(--success), #059669); }

/* ========== 错误弹窗 ========== */
.error-modal { text-align: center; max-width: 380px; }
.error-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(239,68,68,0.1); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.error-title { font-size: 20px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.error-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.error-detail { font-size: 12px; color: var(--text-3); background: rgba(15,23,42,0.5); padding: 10px; border-radius: 8px; margin-bottom: 20px; text-align: left; }
[data-theme="light"] .error-detail { background: rgba(0,0,0,0.04); }
.error-btn {
  padding: 12px 32px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--danger); color: #fff; border: none; cursor: pointer;
}
.error-btn:hover { background: #dc2626; }

/* ========== 批量结果列表 ========== */
.batch-result-list { max-height: 200px; overflow-y: auto; margin-bottom: 8px; }
.batch-result-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; font-size: 12px;
}
.batch-result-item.success { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.15); }
.batch-result-item.failed { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); }
.batch-result-item { gap: 10px; }
.batch-result-key { font-family: var(--mono); }
.batch-result-info { color: var(--text-2); flex: 1; }

.copy-item-btn {
  flex-shrink: 0; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  background: var(--primary); color: #fff; border: none;
}
.copy-item-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.copy-item-btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.copy-item-btn.ghost:hover { background: rgba(99,102,241,0.08); color: var(--primary-light); }

.history-item-actions { display: flex; gap: 8px; margin-top: 8px; }
.history-item { cursor: default; }

/* ========== 冷却条（保留样式兼容） ========== */
.cooldown-bar {
  width: 100%; height: 4px; border-radius: 2px;
  background: rgba(99,102,241,0.1); overflow: hidden;
}
.cooldown-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  transition: width 1s linear;
}
.cooldown-text {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-2); margin-top: 6px;
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
  .main-container { padding: 12px; }
  .glass-card { padding: 18px; }
  .app-title { font-size: 24px; }
  .modal-box { padding: 20px; }
  .theme-group { flex-direction: column; }
}
