/* ===== 个人设置（settings.html 专用 · 浅色科技风） ===== */

.settings-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.set-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.set-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.55), transparent);
}

.set-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 0;
}

.set-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.25);
  color: var(--primary);
}

.set-head h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; letter-spacing: 0.4px; }

.set-head p { margin: 0; font-size: 12px; }

.set-body { padding: 14px 18px 18px; }

.set-actions { display: flex; justify-content: flex-end; margin-top: 6px; }

.set-label {
  margin: 14px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.set-label:first-child { margin-top: 0; }

/* 头像 */

.avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  border: 2px solid rgba(8, 145, 178, 0.3);
  color: var(--primary);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.16);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview > svg { width: 34px; height: 34px; }

.avatar-ops { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.avatar-ops p { margin: 0; font-size: 12px; }

/* 开关 */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
  cursor: pointer;
}

.switch-row:last-child { border-bottom: 0; }

.switch-text { display: flex; flex-direction: column; gap: 2px; }

.switch-title { font-size: 14px; font-weight: 500; }

.switch-desc { font-size: 12px; color: var(--muted); }

.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: rgba(100, 116, 139, 0.28);
  border: 1px solid var(--line-strong);
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(100, 116, 139, 0.35);
  transition: left 0.2s ease;
}

.switch:checked {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-color: rgba(8, 145, 178, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.switch:checked::after { left: 22px; }

/* 主题 / 卡片风格选择 */

.opt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.opt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.opt-card:hover {
  border-color: rgba(8, 145, 178, 0.4);
  transform: translateY(-1px);
}

.opt-card.active {
  border-color: rgba(8, 145, 178, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), 0 0 16px rgba(56, 189, 248, 0.18);
}

.opt-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.opt-card.active .opt-check { opacity: 1; }

.opt-preview {
  display: block;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.opt-name { font-size: 13px; font-weight: 500; color: var(--text); }

/* 主题预览小块 */

.theme-light-preview {
  background:
    radial-gradient(40px 24px at 80% 0%, rgba(56, 189, 248, 0.35), transparent 70%),
    linear-gradient(180deg, #f5f9ff, #e8eef8);
}

.theme-dark-preview {
  background:
    radial-gradient(40px 24px at 80% 0%, rgba(34, 211, 238, 0.28), transparent 70%),
    linear-gradient(180deg, #0a0f1e, #04060e);
}

.card-aurora-preview {
  background:
    linear-gradient(180deg, rgba(8, 145, 178, 0.5) 0%, rgba(139, 92, 246, 0.35) 3%, transparent 8%),
    radial-gradient(50px 30px at 50% 110%, rgba(56, 189, 248, 0.28), transparent 70%),
    rgba(255, 255, 255, 0.85);
}

.card-minimal-preview { background: #fff; }

.card-classic-preview {
  background:
    linear-gradient(180deg, #1e3a5f 0%, #1e3a5f 4%, transparent 10%),
    #fffdf8;
}

@media (max-width: 900px) {
  .settings-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .opt-grid { grid-template-columns: 1fr 1fr; }
}
