/**
 * 三国阵游戏管理系统 - 自定义样式表
 */

/* 登录页面样式 */
.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: weui-slide-up 0.5s ease-out;
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo img {
  width: 80px;
  height: 80px;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--weui-DARK);
}

.login-subtitle {
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--weui-GRAY);
}

.login-form-group {
  position: relative;
  margin-bottom: 20px;
}

.login-form-group .weui-input {
  padding-left: 40px;
}

.login-form-group .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--weui-GRAY);
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 10px;
}

/* 仪表盘样式 */
.dashboard-header {
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--weui-DARK);
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--weui-GRAY);
  margin-top: 5px;
}

.stats-card {
  height: 100%;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.stats-icon i {
  font-size: 24px;
  color: #fff;
}

.stats-title {
  font-size: 14px;
  color: var(--weui-GRAY);
  margin-bottom: 5px;
}

.stats-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--weui-DARK);
  margin-bottom: 5px;
}

.stats-desc {
  font-size: 12px;
  color: var(--weui-GRAY);
}

.chart-card {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  background-color: #fff;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--weui-DARK);
  margin: 0;
}

.chart-container {
  height: 300px !important;
  position: relative;
  width: 100%;
}

/* 玩家管理样式 */
.player-search {
  margin-bottom: 20px;
}

.player-table {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.player-name {
  font-weight: 500;
  color: var(--weui-DARK);
}

.player-id {
  font-size: 12px;
  color: var(--weui-GRAY);
}

.player-actions {
  display: flex;
  gap: 8px;
}

/* 设置页面样式 */
.settings-card {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.settings-header {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.settings-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--weui-DARK);
}

.settings-body {
  padding: 20px;
}

.settings-footer {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  text-align: right;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 15px;
  }
  
  .chart-card {
    margin-bottom: 15px;
  }
  
  .login-card {
    margin: 0 15px;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 自定义图表样式 */
.chart-legend {
  display: flex;
  align-items: center;
  margin-top: 15px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 5px;
}

.legend-text {
  font-size: 12px;
  color: var(--weui-GRAY);
}

/* 三国阵特有样式 */
.sgz-header {
  background: linear-gradient(135deg, #07C160 0%, #10AEFF 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.sgz-logo {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sgz-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.sgz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.sgz-btn {
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sgz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 加载动画 */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(7, 193, 96, 0.1);
  border-radius: 50%;
  border-top-color: var(--weui-PRIMARY);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 玩家列表样式 */
.player-list-container {
  max-height: 300px;
  overflow-y: auto;
}

.player-list-container table {
  margin-bottom: 0;
}

.player-list-container th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 1;
}

.player-list-container tbody tr:hover {
  background-color: rgba(7, 193, 96, 0.05);
}

.player-list-container .badge {
  font-size: 0.75rem;
}

/* 玩家列表更新动画 */
@keyframes highlight-row {
  0% { background-color: rgba(7, 193, 96, 0.2); }
  100% { background-color: transparent; }
}

.highlight-new {
  animation: highlight-row 2s ease-out;
}