:root {
  --primary-color: #d33a31;
  --primary-hover: #c62f26;
  --text-color: #333;
  --text-secondary: #666;
  --bg-color: #f5f7fa;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --card-bg: #fff;
  --status-waiting-bg: #f8f9fa;
  --status-waiting-color: #6c757d;
  --status-pending-bg: #fff3cd;
  --status-pending-color: #856404;
  --status-success-bg: #d4edda;
  --status-success-color: #155724;
  --status-expired-bg: #f8d7da;
  --status-expired-color: #721c24;
  --cookie-bg: #f8f9fa;
  --cookie-content-bg: #e9ecef;
  --code-color: #495057;
  --btn-bg: #f1f3f5;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

.dark-theme {
  --primary-color: #ff4d4d;
  --primary-hover: #ff6666;
  --text-color: #e1e1e1;
  --text-secondary: #b0b0b0;
  --bg-color: #121212;
  --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  --card-bg: #1e1e1e;
  --status-waiting-bg: #2a2a2a;
  --status-waiting-color: #b0b0b0;
  --status-pending-bg: #3a3000;
  --status-pending-color: #ffd54f;
  --status-success-bg: #0d3320;
  --status-success-color: #4caf50;
  --status-expired-bg: #3c0d0d;
  --status-expired-color: #ef5350;
  --cookie-bg: #2a2a2a;
  --cookie-content-bg: #333333;
  --code-color: #e0e0e0;
  --btn-bg: #333333;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
  padding: 30px 0;
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 30px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

/* Card decorations */
.card-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.decoration-1 {
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  top: -100px;
  right: -60px;
}

.decoration-2 {
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  bottom: -50px;
  left: -50px;
}

.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.theme-toggle-btn {
  background: var(--card-bg);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn i {
  color: var(--primary-color);
  font-size: 24px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 15px;
}

.logo-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color);
  background: linear-gradient(to right, var(--primary-color), #f73b3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

#qrcode {
  width: 220px;
  height: 220px;
  background-color: var(--status-waiting-bg);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#qrcode img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
}

.placeholder i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.placeholder p {
  font-size: 16px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(211, 58, 49, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(211, 58, 49, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn i {
  font-size: 20px;
}

.status {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 24px;
  font-size: 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-icon {
  font-size: 20px;
}

.waiting {
  background-color: var(--status-waiting-bg);
  color: var(--status-waiting-color);
}

.pending {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-color);
}

.success {
  background-color: var(--status-success-bg);
  color: var(--status-success-color);
}

.expired {
  background-color: var(--status-expired-bg);
  color: var(--status-expired-color);
}

/* Cookie信息样式 */
.cookie-info {
  background-color: var(--cookie-bg);
  border-radius: 12px;
  padding: 25px;
  display: none;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-title i {
  color: var(--primary-color);
  font-size: 24px;
}

.cookie-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  background-color: var(--btn-bg);
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.action-btn:hover i {
  color: white;
}

.action-btn i {
  color: var(--text-color);
  font-size: 20px;
  transition: var(--transition);
}

.action-btn.copied {
  background-color: var(--status-success-color);
  animation: pulse 0.3s ease;
}

.action-btn.copied i {
  color: white;
}

.cookie-content {
  background-color: var(--cookie-content-bg);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  margin-bottom: 15px;
}

.cookie-value {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--code-color);
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
}

.cookie-path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.cookie-path i {
  font-size: 18px;
  color: var(--primary-color);
}

.cookie-path strong {
  color: var(--text-color);
}

/* 滚动条样式 */
.cookie-value::-webkit-scrollbar {
  width: 6px;
}

.cookie-value::-webkit-scrollbar-track {
  background: var(--cookie-content-bg);
  border-radius: 3px;
}

.cookie-value::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.cookie-value::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 复制成功提示 */
.copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--status-success-color);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

.copy-toast i {
  font-size: 20px;
}

.footer {
  text-align: center;
  color: var(--text-secondary);
  padding: 15px 0;
  font-size: 14px;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  .login-card {
    padding: 25px 20px;
  }
  
  #qrcode {
    width: 180px;
    height: 180px;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .theme-switch {
    top: 15px;
    right: 15px;
  }
  
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
} 