/* 搜狐扫码系统 - 全局高级样式 */
:root {
  --sohu-primary: #FF6B35;
  --sohu-secondary: #F7931E;
  --sohu-gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  --sohu-dark: #2c3e50;
  --sohu-light: #f8f9fa;
  --sohu-text: #333;
  --sohu-text-muted: #6c757d;
  --sohu-border: #e1e8ed;
  --sohu-shadow: 0 10px 40px rgba(0,0,0,0.12);
  --sohu-radius: 16px;
  --sohu-radius-lg: 24px;
  --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f7fa;
  color: var(--sohu-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 搜狐真实Logo SVG */
.sohu-logo {
  display: inline-block;
  width: auto;
  height: 50px;
}

.sohu-logo svg {
  width: auto;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(255,107,53,0.3));
}

/* 高级卡片效果 */
.premium-card {
  background: white;
  border-radius: var(--sohu-radius-lg);
  padding: 32px;
  box-shadow: var(--sohu-shadow);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sohu-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* 玻璃态效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 渐变按钮 */
.btn-primary {
  background: var(--sohu-gradient);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}

/* 输入框高级样式 */
.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e8ecf1;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  background: #fafbfc;
}

.form-input:focus {
  border-color: var(--sohu-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1), 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* 侧边栏高级设计 */
.sidebar-modern {
  width: 280px;
  background: var(--sidebar-bg);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 8px 0 30px rgba(0,0,0,0.15);
  z-index: 1000;
}

.sidebar-header-premium {
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(247,147,30,0.05) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.sidebar-header-premium::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--sohu-gradient);
}

.nav-item-premium {
  display: flex;
  align-items: center;
  padding: 18px 30px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  position: relative;
  font-weight: 500;
  font-size: 15px;
}

.nav-item-premium:hover,
.nav-item-premium.active {
  background: linear-gradient(90deg, rgba(255,107,53,0.2) 0%, transparent 100%);
  color: white;
  border-left-color: var(--sohu-primary);
  padding-left: 35px;
}

.nav-item-premium i {
  margin-right: 14px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* 统计卡片 */
.stat-card-premium {
  background: white;
  border-radius: var(--sohu-radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.stat-card-premium:nth-child(1) { border-top: 4px solid #667eea; }
.stat-card-premium:nth-child(2) { border-top: 4px solid var(--sohu-primary); }
.stat-card-premium:nth-child(3) { border-top: 4px solid #11998e; }

.stat-card-premium:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.stat-icon-premium {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
}

.stat-icon-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.1;
  background: currentColor;
}

.stat-value-premium {
  font-size: 42px;
  font-weight: 800;
  background: var(--sohu-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label-premium {
  color: var(--sohu-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 表格高级样式 */
.table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background: white;
  border-radius: var(--sohu-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.table-premium thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-premium th {
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--sohu-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #dee2e6;
}

.table-premium td {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s ease;
}

.table-premium tbody tr:hover {
  background: linear-gradient(90deg, rgba(255,107,53,0.03) 0%, rgba(102,126,234,0.03) 100%);
  transform: scale(1.01);
}

.table-premium tbody tr:last-child td {
  border-bottom: none;
}

/* 徽章样式 */
.badge-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  box-shadow: 0 2px 8px rgba(40,167,69,0.2);
}

.badge-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  box-shadow: 0 2px 8px rgba(255,193,7,0.2);
}

.badge-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  box-shadow: 0 2px 8px rgba(220,53,69,0.2);
}

.badge-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  box-shadow: 0 2px 8px rgba(23,162,184,0.2);
}

/* 分页样式 */
.pagination-premium {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
  align-items: center;
}

.pagination-premium a,
.pagination-premium span {
  padding: 12px 20px;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  text-decoration: none;
  color: var(--sohu-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 48px;
  text-align: center;
}

.pagination-premium a:hover {
  background: var(--sohu-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.pagination-premium .current {
  background: var(--sohu-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* 提示消息 */
.alert-premium {
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 25px;
  animation: slideInRight 0.5s ease-out;
  border-left: 5px solid;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-success-premium {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left-color: #28a745;
  box-shadow: 0 4px 15px rgba(40,167,69,0.15);
}

.alert-error-premium {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left-color: #dc3545;
  box-shadow: 0 4px 15px rgba(220,53,69,0.15);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* 响应式优化 */
@media (max-width: 1200px) {
  .sidebar-modern {
    width: 250px;
  }
  
  .main-content-area {
    margin-left: 250px !important;
  }
}

@media (max-width: 768px) {
  .premium-card {
    padding: 20px;
  }
  
  .stat-value-premium {
    font-size: 32px;
  }
}
