/**
 * 自定义样式 - custom.css
 * 项目特定的样式和皇家主题
 */

/* 皇家级色彩系统 */
:root {
  --color-primary: #d4af37;
  --color-secondary: #8b5cf6;
  --color-pinklight: #fef3c7;
  --color-pinkdark: #92400e;
  --color-neutral: #f9fafb;
  --color-royal-gold: #fbbf24;
  --color-royal-purple: #a78bfa;
  --color-royal-rose: #fb7185;
  --color-royal-dark: #1e1b4b;
  --color-royal-light: #f8fafc;
  --color-rose: #fbbf24;
  --color-blush: #fde68a;
  --color-champagne: #fef3c7;
  --color-lavender: #a78bfa;
  --color-pearl: #fefce8;
  --color-gold: #d4af37;
}

/* 字体设置 */
.font-sans {
  font-family: 'Inter', system-ui, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', sans-serif;
}

/* 皇家级渐变背景 */
.bg-gradient-header {
  background: linear-gradient(135deg, #d4af37 0%, #8b5cf6 50%, #fbbf24 100%);
}

.bg-gradient-royal {
  background: linear-gradient(135deg, #92400e 0%, #d4af37 50%, #8b5cf6 100%);
}

.bg-gradient-champagne {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
}

.bg-gradient-purple-royal {
  background: linear-gradient(135deg, #1e1b4b 0%, #8b5cf6 50%, #a78bfa 100%);
}

/* 皇家级卡片阴影 */
.card-shadow-royal {
  box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.1), 0 10px 10px -5px rgba(212, 175, 55, 0.04);
}

.royal-shadow {
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.elegant-shadow {
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 皇家级表单样式 */
.form-input-royal {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #fef08a;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.form-input-royal:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.form-label-royal {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #92400e;
}

/* 皇家级按钮 */
.btn-royal-primary {
  background: linear-gradient(135deg, #d4af37 0%, #fbbf24 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-royal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-royal-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-royal-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 皇家级动画 */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-gentle {
  animation: pulse-gentle 2s ease-in-out infinite;
}

.animate-shimmer {
  animation: shimmer 2s linear infinite;
}

.animate-heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 皇家级卡片 */
.card-royal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-royal:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

/* 皇家级徽章 */
.badge-royal {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-royal-gold {
  background: linear-gradient(135deg, #d4af37, #fbbf24);
  color: white;
}

.badge-royal-purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
}

.badge-royal-rose {
  background: linear-gradient(135deg, #fb7185, #fbbf24);
  color: white;
}

/* 皇家级标题 */
.title-royal {
  background: linear-gradient(135deg, #d4af37, #8b5cf6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* 皇家级分隔线 */
.divider-royal {
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  border: none;
  margin: 2rem 0;
}

/* 皇家级背景图案 */
.bg-pattern-royal {
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(212, 175, 55, 0.1) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(139, 92, 246, 0.1) 2px, transparent 0);
  background-size: 100px 100px;
}

/* 响应式皇家网格 */
.grid-royal {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .grid-royal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid-royal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-royal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 皇家级模态框 */
.modal-royal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
}

/* 皇家级加载动画 */
.loading-royal {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  border-top-color: #d4af37;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 皇家级提示框 */
.toast-royal {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast-royal.show {
  transform: translateX(0);
}

.toast-royal-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.toast-royal-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.toast-royal-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.toast-royal-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

/* 皇家级头像 */
.avatar-royal {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #d4af37, #8b5cf6) border-box;
}

.avatar-royal::before {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.avatar-royal img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 皇家级进度条 */
.progress-royal {
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-royal-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #fbbf24);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 640px) {
  .card-royal {
    margin: 1rem;
    border-radius: 1rem;
  }
  
  .btn-royal-primary,
  .btn-royal-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .title-royal {
    font-size: 1.5rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .card-royal {
    background: rgba(30, 27, 75, 0.9);
    color: white;
  }
  
  .form-input-royal {
    background: rgba(30, 27, 75, 0.8);
    color: white;
    border-color: #8b5cf6;
  }
  
  .form-input-royal::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
}