/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px; /* 为footer预留空间 */
  box-sizing: border-box;
  color: #333;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
}

/* 首页样式 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 10px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 20px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

/* 项目网格 */
.projects-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.project-card {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef;
}

.project-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.project-icon {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 8px;
  flex-shrink: 0;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.card-arrow {
  font-size: 16px;
  color: #999;
  margin-left: 5px;
}

/* 操作栏 */
.action-bar {
  text-align: center;
}

.refresh-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-icon {
  font-size: 14px;
}

/* 详情页样式 - 主要样式已移至详情页内联样式 */
.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-header h1 {
  margin: 0;
}

.game-title {
  opacity: 0.9;
}

/* 表单区域 - 主要样式已移至详情页内联样式 */
.form-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 0;
}

.form-select {
  width: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 信息区域 - 主要样式已移至详情页内联样式 */
.info-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #eee;
}

.info-content {
  color: #555;
  line-height: 1.6;
  text-align: left;
}

.info-content p {
  margin: 0;
  display: flex;
  align-items: center;
}

.info-content input {
  margin-left: 8px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: #f9f9f9;
  flex: 1;
}

.info-content input:disabled {
  background: #f0f0f0;
  color: #888;
}

.section-title {
  margin: 0;
  color: #2c3e50;
  text-align: center;
  font-weight: 600;
  position: relative;
}

/* 操作按钮区域 - 主要样式已移至详情页内联样式 */
.action-section {
  text-align: center;
}

.submit-btn {
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 支付按钮区域 - 主要样式已移至详情页内联样式 */
.payment-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: #f8f9fa;
  color: #333;
}

.payment-btn.qq {
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  color: white;
}

.payment-btn.wx {
  background: linear-gradient(135deg, #2ab548 0%, #1aad38 100%);
  color: white;
}

.payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-icon {
  margin-bottom: 8px;
  font-weight: bold;
}

.btn-text {
  font-weight: 500;
}

/* Loading指示器 */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: #333;
  min-width: 200px;
  text-align: center;
}

.loading-indicator::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(76, 175, 80, 0.3);
  border-radius: 50%;
  border-top-color: #4CAF50;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式设计 - 已优化为更紧凑的样式 */
@media (max-width: 600px) {
  .projects-grid {
    gap: 6px;
    grid-template-columns: 1fr;
  }
  
  .project-card {
    padding: 8px 10px;
  }
  
  .header h1 {
    font-size: 18px;
  }
  
  .subtitle {
    font-size: 12px;
  }
}

/* 针对更小屏幕的优化 */
@media (max-width: 400px) {
  .project-card {
    padding: 6px 8px;
  }
  
  .project-icon {
    width: 30px;
    height: 30px;
    margin-right: 6px;
  }
  
  .project-name {
    font-size: 13px;
  }
  
  .header h1 {
    font-size: 16px;
  }
  
  .card-arrow {
    font-size: 14px;
    margin-left: 4px;
  }
}

/* 页脚样式 */
footer {
  text-align: center;
  margin-top: 15px;
  padding: 10px 0;
  color: #666;
  font-size: 12px;
}
