/* ====== 全局霓虹赛博风 ====== */

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* 深色主题 */
body.dark {
  background: radial-gradient(circle at top, #0a0f1f, #000);
  color: #dbeafe;
}

/* 浅色主题 */
body.light {
  background: #f1f5f9;
  color: #0f172a;
}

/* 主题切换按钮 */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1e293b;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 0 12px #3b82f6;
  transition: 0.3s;
}
body.light .theme-toggle {
  background: #e2e8f0;
  color: #1e293b;
  box-shadow: 0 0 12px #0ea5e9;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
}

/* 标题 */
.title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px #3b82f6;
}

.subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* 卡片 */
.card {
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transition: 0.3s;
}
body.light .card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
}

.length-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 强度条 */
.strength {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bars {
  display: flex;
  gap: 6px;
}

.bar {
  width: 40px;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  transition: 0.3s;
}

/* 按钮 */
.btn {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
  box-shadow: 0 0 12px #3b82f6;
}
.btn:hover {
  background: #60a5fa;
}

/* 结果列表 */
.results {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results li {
  background: rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-family: monospace;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(59,130,246,0.3);
}

.results li:hover {
  background: rgba(255,255,255,0.18);
}

.results li.copied {
  background: #22c55e !important;
  color: #0f172a;
  box-shadow: 0 0 12px #22c55e;
}

.error {
  color: #f87171;
  font-size: 14px;
  min-height: 18px;
}
