/**
 * 金生吉日新 · 播放器专用统一样式 v1.0
 * 仅在播放器模式（?player=1）下生效
 * 确保播放器里加载的所有页面显示统一、美观
 * 
 * 著作权人：赵志海
 * 日期：2026-09-12
 */

/* ========== 播放器模式全局样式 ========== */
body.player-mode,
body[class*="player"] {
  background: #0f0f1a !important;
  color: #e8e0d0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  overflow-x: hidden !important;
}

/* ========== 隐藏播放器模式下不需要的元素 ========== */
body.player-mode #nav-container,
body.player-mode .jsj-nav,
body.player-mode nav,
body.player-mode #jsj-footer,
body.player-mode footer,
body.player-mode .mobile-tabbar,
body.player-mode .tab-bar,
body.player-mode [class*="tabbar"],
body.player-mode .floating-btn,
body.player-mode .ai-customer-service,
body.player-mode [class*="customer-service"],
body.player-mode .back-to-top,
body.player-mode [class*="back-to-top"] {
  display: none !important;
}

/* ========== 标题统一样式 ========== */
body.player-mode h1,
body.player-mode h2,
body.player-mode h3,
body.player-mode h4,
body.player-mode h5,
body.player-mode h6 {
  color: #c9a96e !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

body.player-mode h1 {
  font-size: 28px !important;
  margin-bottom: 16px !important;
}

body.player-mode h2 {
  font-size: 22px !important;
  margin-bottom: 12px !important;
}

body.player-mode h3 {
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

/* ========== 卡片统一样式 ========== */
body.player-mode [class*="card"],
body.player-mode .stat-item,
body.player-mode .stat-card,
body.player-mode .module-card,
body.player-mode .color-item,
body.player-mode .color-swatch {
  background: rgba(26, 26, 46, 0.9) !important;
  border: 1px solid rgba(201, 169, 110, 0.25) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

body.player-mode [class*="card"]:hover,
body.player-mode .stat-item:hover,
body.player-mode .module-card:hover {
  border-color: rgba(201, 169, 110, 0.5) !important;
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* ========== 统计数字统一样式 ========== */
body.player-mode .stat-num,
body.player-mode .stat-number,
body.player-mode [class*="stat-num"] {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #c9a96e !important;
  text-shadow: 0 0 10px rgba(201, 169, 110, 0.5) !important;
  margin-bottom: 4px !important;
}

body.player-mode .stat-label,
body.player-mode [class*="stat-label"] {
  font-size: 14px !important;
  color: rgba(232, 224, 208, 0.7) !important;
}

/* ========== 按钮统一样式 ========== */
body.player-mode button,
body.player-mode .btn,
body.player-mode [class*="btn"] {
  background: linear-gradient(135deg, #c9a96e, #b8944f) !important;
  color: #1a1a2e !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3) !important;
}

body.player-mode button:hover,
body.player-mode .btn:hover,
body.player-mode [class*="btn"]:hover {
  background: linear-gradient(135deg, #d4b87a, #c9a96e) !important;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.5) !important;
  transform: translateY(-1px) !important;
}

/* 次要按钮 */
body.player-mode button.secondary,
body.player-mode .btn-secondary,
body.player-mode button.outline,
body.player-mode .btn-outline {
  background: transparent !important;
  color: #c9a96e !important;
  border: 1px solid #c9a96e !important;
}

body.player-mode button.secondary:hover,
body.player-mode .btn-secondary:hover {
  background: rgba(201, 169, 110, 0.1) !important;
}

/* ========== 输入框统一样式 ========== */
body.player-mode input[type="text"],
body.player-mode input[type="search"],
body.player-mode input[type="number"],
body.player-mode select,
body.player-mode textarea {
  background: rgba(26, 26, 46, 0.8) !important;
  border: 1px solid rgba(201, 169, 110, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: #e8e0d0 !important;
  font-size: 15px !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
}

body.player-mode input[type="text"]:focus,
body.player-mode input[type="search"]:focus,
body.player-mode select:focus,
body.player-mode textarea:focus {
  outline: none !important;
  border-color: #c9a96e !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15) !important;
}

body.player-mode input::placeholder,
body.player-mode textarea::placeholder {
  color: rgba(232, 224, 208, 0.4) !important;
}

/* ========== 表格统一样式 ========== */
body.player-mode table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 16px 0 !important;
}

body.player-mode th,
body.player-mode td {
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.player-mode th {
  background: rgba(201, 169, 110, 0.1) !important;
  color: #c9a96e !important;
  font-weight: 600 !important;
}

body.player-mode tr:hover {
  background: rgba(201, 169, 110, 0.05) !important;
}

/* ========== 链接统一样式 ========== */
body.player-mode a {
  color: #c9a96e !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

body.player-mode a:hover {
  color: #d4b87a !important;
  text-decoration: underline !important;
}

/* ========== 标签/徽章统一样式 ========== */
body.player-mode .badge,
body.player-mode .tag,
body.player-mode [class*="badge"],
body.player-mode [class*="tag"] {
  display: inline-block !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: rgba(201, 169, 110, 0.15) !important;
  color: #c9a96e !important;
}

/* ========== 分隔线统一样式 ========== */
body.player-mode hr,
body.player-mode .divider,
body.player-mode [class*="divider"] {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 24px 0 !important;
}

/* ========== 滚动条统一样式 ========== */
body.player-mode ::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

body.player-mode ::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.5) !important;
}

body.player-mode ::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.3) !important;
  border-radius: 9999px !important;
}

body.player-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 110, 0.5) !important;
}

/* ========== 内容区域优化 ========== */
body.player-mode .main-content,
body.player-mode main,
body.player-mode .container,
body.player-mode .content {
  padding: 20px !important;
  max-width: 100% !important;
}

/* ========== 网格布局优化 ========== */
body.player-mode .grid,
body.player-mode [class*="grid"] {
  gap: 16px !important;
}

/* ========== 响应式优化（手机端） ========== */
@media (max-width: 768px) {
  body.player-mode h1 {
    font-size: 22px !important;
  }
  
  body.player-mode h2 {
    font-size: 18px !important;
  }
  
  body.player-mode .stat-num,
  body.player-mode .stat-number {
    font-size: 24px !important;
  }
  
  body.player-mode [class*="card"],
  body.player-mode .stat-item,
  body.player-mode .module-card {
    padding: 12px !important;
  }
  
  body.player-mode .main-content,
  body.player-mode main,
  body.player-mode .container {
    padding: 12px !important;
  }
}

/* ========== 动画效果 ========== */
@keyframes player-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.player-mode [class*="card"],
body.player-mode .stat-item,
body.player-mode .module-card {
  animation: player-fadeIn 0.5s ease-out !important;
}
