/* custom.css - ProxyQR 官方专业版质感与全响应式主题系统 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  
  /* 暗夜深色模式 (默认) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-inner: rgba(2, 6, 23, 0.6);
  --bg-input: rgba(2, 6, 23, 0.75);
  --border-color: rgba(51, 65, 85, 0.7);
  --border-subtle: rgba(51, 65, 85, 0.5);
  --border-glow: rgba(249, 115, 22, 0.35);
  
  --text-main: #f8fafc;
  --text-heading: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-gradient: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  --accent-glow: rgba(249, 115, 22, 0.25);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --header-bg: rgba(9, 13, 22, 0.85);
  --grid-line-color: rgba(148, 163, 184, 0.05);
  --toast-bg: rgba(15, 23, 42, 0.95);
}

/* 极简清爽明亮模式 (Light Mode) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-inner: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-glow: rgba(249, 115, 22, 0.25);
  
  --text-main: #1e293b;
  --text-heading: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --accent-glow: rgba(249, 115, 22, 0.15);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --header-bg: rgba(255, 255, 255, 0.88);
  --grid-line-color: rgba(203, 213, 225, 0.4);
  --toast-bg: rgba(255, 255, 255, 0.98);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* 背景点阵与网格 */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
}

/* 顶部光晕氛围球 */
.ambient-glow-orange {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 460px;
  background: radial-gradient(circle at 50% 12%, rgba(249, 115, 22, 0.16) 0%, rgba(245, 158, 11, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .ambient-glow-orange {
  background: radial-gradient(circle at 50% 10%, rgba(249, 115, 22, 0.08) 0%, rgba(245, 158, 11, 0.03) 40%, transparent 70%);
}

/* 顶部固定导航栏 */
.theme-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* 标题字体 */
.theme-heading {
  color: var(--text-heading);
}

.theme-subtext {
  color: var(--text-muted);
}

/* 主面板与子面板容器 */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.theme-inner-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
}

.glass-panel-glow {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-glow:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 16px 36px -10px var(--accent-glow), 0 0 0 1px rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}

/* 渐变字体 */
.text-orange-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 按钮样式系统 */
.btn-orange-gradient {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn-orange-gradient:hover {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
}

.btn-orange-gradient:active {
  transform: translateY(0);
}

.btn-success-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-success-gradient:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-word-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-word-gradient:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* 输入框与控件 */
.custom-input-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.custom-input-box:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

/* 单选标签胶囊 */
.radio-pill-inactive {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.radio-pill-inactive:hover {
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--text-main);
}

.radio-pill-active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* 动效与提示 */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
}

.toast-in {
  animation: toastSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-out {
  animation: toastSlideOut 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  background: inherit;
  opacity: 0.6;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}
