/* 仪表盘样式 */
.dashboard-section {
  flex: 1;
  overflow-y: auto;
  min-width: 300px;
}

#dashboard {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  min-height: 600px;
  box-sizing: border-box;
}

#dashboard h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 28px;
}

#current-player-name {
  color: #4CAF50;
  font-size: 28px;
}

/* 所有玩家概览 */
.all-players-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.all-players-section h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.all-players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-summary {
  background: white;
  padding: 12px;
  border-radius: 5px;
  border-left: 4px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.player-summary.active {
  border-left-color: #4CAF50;
  background: #e8f5e9;
}

.player-summary-name {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.player-summary-stats {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.player-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.player-summary-stat-label {
  font-size: 11px;
  color: #999;
}

.player-summary-stat-value {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

/* 统计卡片网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-label {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: bold;
  color: #333;
}

.stat-value.highlight {
  color: #4CAF50;
  font-size: 30px;
}

.stat-value.negative {
  color: #f44336;
}

/* 进度条 */
.progress-section {
  margin-bottom: 25px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.progress-section h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 19px;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.progress-text {
  text-align: center;
  color: #666;
  font-size: 15px;
}

/* 资产列表 */
.assets-section {
  margin-bottom: 25px;
}

.assets-section h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 19px;
}

.assets-list {
  max-height: 200px;
  overflow-y: auto;
}

.asset-item {
  background: #f5f5f5;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 5px;
  border-left: 4px solid #4CAF50;
}

.asset-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.asset-name {
  font-weight: bold;
  color: #333;
  font-size: 15px;
}

.asset-value {
  color: #4CAF50;
  font-weight: bold;
  font-size: 15px;
}

.asset-return {
  font-size: 13px;
  color: #666;
}

.assets-list:empty::after {
  content: '暂无资产';
  display: block;
  text-align: center;
  color: #999;
  padding: 20px;
}

/* 游戏日志 */
.log-section h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 19px;
}

.game-log {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
}

.log-entry {
  margin-bottom: 8px;
  padding: 5px;
  border-bottom: 1px solid #e0e0e0;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-timestamp {
  color: #999;
  font-size: 13px;
  margin-right: 8px;
}

.log-message {
  color: #333;
  font-size: 15px;
}

.game-log:empty::after {
  content: '暂无日志';
  display: block;
  text-align: center;
  color: #999;
}

/* 滚动条样式 */
.assets-list::-webkit-scrollbar,
.game-log::-webkit-scrollbar,
.dashboard-section::-webkit-scrollbar {
  width: 8px;
}

.assets-list::-webkit-scrollbar-track,
.game-log::-webkit-scrollbar-track,
.dashboard-section::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.assets-list::-webkit-scrollbar-thumb,
.game-log::-webkit-scrollbar-thumb,
.dashboard-section::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.assets-list::-webkit-scrollbar-thumb:hover,
.game-log::-webkit-scrollbar-thumb:hover,
.dashboard-section::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 响应式适配 - 大屏幕 (>1400px) */
@media (min-width: 1400px) {
  #dashboard {
    padding: 25px;
  }

  #dashboard h2 {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stat-value {
    font-size: 30px;
  }

  .stat-value.highlight {
    font-size: 34px;
  }
}

/* 响应式适配 - 中等屏幕 (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
  #dashboard {
    padding: 18px;
  }

  #dashboard h2 {
    font-size: 24px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-value.highlight {
    font-size: 26px;
  }

  .assets-list {
    max-height: 180px;
  }

  .game-log {
    max-height: 200px;
  }
}

/* 响应式适配 - 小屏幕 (768px - 1023px) */
@media (max-width: 1023px) {
  .dashboard-section {
    max-height: 500px;
  }

  #dashboard {
    padding: 15px;
  }

  #dashboard h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .all-players-section {
    padding: 12px;
  }

  .player-summary {
    padding: 10px;
    font-size: 14px;
  }

  .player-summary-name {
    font-size: 15px;
  }

  .player-summary-stats {
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-value.highlight {
    font-size: 24px;
  }

  .progress-section,
  .assets-section,
  .log-section {
    margin-bottom: 20px;
  }

  .progress-section h3,
  .assets-section h3,
  .log-section h3 {
    font-size: 17px;
  }

  .assets-list {
    max-height: 150px;
  }

  .game-log {
    max-height: 180px;
  }
}

/* 响应式适配 - 手机 (<768px) */
@media (max-width: 767px) {
  .dashboard-section {
    max-height: none;
  }

  #dashboard {
    padding: 12px;
  }

  #dashboard h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  #current-player-name {
    font-size: 22px;
  }

  .all-players-section {
    padding: 10px;
    margin-bottom: 15px;
  }

  .all-players-section h3 {
    font-size: 16px;
  }

  .player-summary {
    padding: 8px;
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .player-summary-name {
    font-size: 14px;
  }

  .player-summary-stats {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .player-summary-stat-value {
    font-size: 13px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-value.highlight {
    font-size: 22px;
  }

  .progress-section {
    padding: 12px;
    margin-bottom: 15px;
  }

  .progress-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .progress-bar {
    height: 25px;
  }

  .progress-text {
    font-size: 13px;
  }

  .assets-section,
  .log-section {
    margin-bottom: 15px;
  }

  .assets-section h3,
  .log-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .assets-list {
    max-height: 120px;
  }

  .asset-item {
    padding: 10px;
  }

  .asset-name,
  .asset-value {
    font-size: 14px;
  }

  .asset-return {
    font-size: 12px;
  }

  .game-log {
    padding: 12px;
    max-height: 150px;
    font-size: 13px;
  }

  .log-timestamp {
    font-size: 11px;
  }

  .log-message {
    font-size: 13px;
  }
}

/* 响应式适配 - 小屏手机 (<480px) */
@media (max-width: 479px) {
  #dashboard {
    padding: 10px;
  }

  #dashboard h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  #current-player-name {
    font-size: 20px;
  }

  .all-players-section {
    padding: 8px;
    margin-bottom: 12px;
  }

  .all-players-section h3 {
    font-size: 15px;
  }

  .player-summary {
    padding: 6px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  .stat-card {
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-value.highlight {
    font-size: 24px;
  }

  .progress-section {
    padding: 10px;
    margin-bottom: 12px;
  }

  .progress-section h3 {
    font-size: 15px;
  }

  .progress-bar {
    height: 22px;
  }

  .progress-text {
    font-size: 12px;
  }

  .assets-section h3,
  .log-section h3 {
    font-size: 15px;
  }

  .assets-list {
    max-height: 100px;
  }

  .game-log {
    max-height: 120px;
    padding: 10px;
  }
}
