/* === 通用样式 === */
body {
  background-color: #111;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
}

/* === 顶部导航栏 === */
.nav {
  background-color: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  align-items: center;
  font-family: sans-serif;
}

.nav-left a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  font-weight: bold;
}

.nav-left a:hover {
  color: #ccc;
}

.nav-right span {
  margin-left: 20px;
  color: white;
}

/* === 表单样式 === */
.content {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

form {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

/* === 通用按钮样式（改为 .btn）=== */
.btn {
  background: #007bff;
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #0056b3;
}

/* === 汉堡按钮修复 === */
.burger {
  all: unset;
  font-size: 24px;
  padding: 8px;
  color: #fff;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.burger:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.burger:focus {
  outline: none;
  box-shadow: none;
}

/* === 卡片网格 === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 10px;
}

.card {
  background: #1e1e2f;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  padding: 10px;
  cursor: pointer;
}

.card:hover,
.card.selected {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  background: #007bff;
}

.card div {
  background: #29293d;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
}

@media (max-width: 500px) {
  .card div {
    font-size: 0.95rem;
  }
}

/* === Modal 弹窗 === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #222;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 320px;
}

.modal-content button {
  margin: 8px;
  padding: 10px 20px;
  background: #007bff;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.95rem;
}

/* === 订单状态表格 === */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e2f;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}

th, td {
  padding: 12px;
  text-align: center;
}

th {
  background: #2d2d44;
}

tr:nth-child(even) {
  background: #292944;
}

tr:nth-child(odd) {
  background: #1e1e2f;
}

.status {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

.status.Pending { background: #777; color: #fff; }
.status.Processing { background: orange; color: #fff; }
.status.Completed { background: #28a745; color: #fff; }
.status.Cancelled,
.status.Failed { background: #dc3545; color: #fff; }

/* === Load More 按钮 === */
.load-more {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 20px auto;
  display: block;
}

/* === 游戏卡片样式 === */
.game-card {
  background: #2c2c2c;
  border-radius: 12px;
  margin: 16px auto;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.game-card img {
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.game-card .title {
  padding: 10px 0;
  font-weight: bold;
  font-size: 1.05rem;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* === 游戏dashboard卡片样式 === */
.game-box {
  background: #1e1e2f;
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  width: 100px;
}

.game-box:hover {
  transform: scale(1.05);
}

.game-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 6px;
}

.game-box div {
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 6px;
}
