/* 推薪客PC端主题增强 v1.0 */
:root {
  --primary: #4F46E5;
  --primary-50: rgba(79,70,229,0.05);
  --primary-100: rgba(79,70,229,0.1);
  --primary-200: rgba(79,70,229,0.2);
  --primary-light: #818CF8;
  --primary-dark: #3730A3;
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}

/* ==== PC端切换按钮 ==== */
.pc-switch-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.pc-switch-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(79,70,229,0.15);
  transform: translateY(-2px);
}
.pc-switch-btn .icon { font-size: 18px; }

/* ==== 浮动端切换面板 ==== */
.switch-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9998;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 200px;
  display: none;
  animation: fadeUp 0.3s ease;
}
.switch-panel.show { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.switch-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.switch-panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
.switch-panel-item:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.switch-panel-item .icon { font-size: 20px; width: 28px; text-align: center; }
.switch-panel-item .desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ==== PC端Stats增强 ==== */
.pc-section {
  padding: 48px 0;
}
.pc-section-header {
  text-align: center;
  margin-bottom: 32px;
}
.pc-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.pc-section-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.pc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.pc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
}
.pc-stat-card:hover {
  box-shadow: 0 4px 16px rgba(79,70,229,0.08);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}
.pc-stat-card .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.pc-stat-card .label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==== PC端首页闪亮效果 ==== */
.pc-hero {
  background: var(--primary-gradient);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pc-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.pc-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.pc-hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.pc-hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; line-height: 1.6; }
.pc-hero .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pc-hero .cta-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}
.pc-hero .cta-light {
  background: #fff;
  color: var(--primary-dark);
}
.pc-hero .cta-light:hover {
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.pc-hero .cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.pc-hero .cta-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ==== PC端功能卡片 ==== */
.pc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pc-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
}
.pc-feature-card:hover {
  box-shadow: 0 6px 24px rgba(79,70,229,0.08);
  border-color: var(--primary-200);
  transform: translateY(-3px);
}
.pc-feature-card .icon { font-size: 36px; margin-bottom: 12px; }
.pc-feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.pc-feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ==== PC端角色卡片 ==== */
.pc-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.pc-role-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pc-role-card:hover {
  border-color: var(--primary-200);
  box-shadow: 0 8px 32px rgba(79,70,229,0.1);
  transform: translateY(-4px);
}
.pc-role-card .icon { font-size: 48px; margin-bottom: 14px; }
.pc-role-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pc-role-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.pc-role-card .action {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.pc-role-card .action:hover { background: var(--primary-dark); }

/* ==== 门户扩展 ==== */
.portal-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ==== 响应式 ==== */
@media (max-width: 1024px) {
  .pc-hero h1 { font-size: 32px; }
  .pc-hero p { font-size: 16px; }
  .pc-hero { padding: 70px 0 50px; }
}
@media (max-width: 768px) {
  .pc-hero h1 { font-size: 26px; }
  .pc-hero { padding: 50px 0 36px; }
  .pc-stat-card .num { font-size: 28px; }
  .pc-features { grid-template-columns: 1fr; }
  .pc-roles { grid-template-columns: 1fr; }
  .pc-switch-btn { bottom: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .pc-hero h1 { font-size: 22px; }
  .pc-hero .cta-buttons a { width: 100%; justify-content: center; }
}

/* ==== 空状态 & 加载动画 ==== */
.pc-skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: pcShimmer 1.5s infinite;
  border-radius: 8px;
  height: 16px;
  margin-bottom: 8px;
}
@keyframes pcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==== 管理员门户增强 ==== */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
}
.admin-stat-card:hover { box-shadow: 0 2px 12px rgba(79,70,229,0.06); }
.admin-stat-card .num { font-size: 30px; font-weight: 800; color: var(--primary); }
.admin-stat-card .label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.admin-stat-card .sub { font-size: 12px; margin-top: 6px; }
