/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: #e0e0e0;
  min-height: 100vh;
  background: transparent url('bj.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.overlay {
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.1);
}

/* ===== 顶部导航 ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #c9a24a33;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #c9a24a, #f5d98a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: #f5d98a;
  background: rgba(201, 162, 74, 0.1);
}

.nav-links .btn-order {
  background: linear-gradient(90deg, #c9a24a, #f5d98a);
  color: #0d0d0d;
  font-weight: bold;
}

.nav-links .btn-order:hover {
  opacity: 0.85;
  color: #0d0d0d;
}

/* ===== 主内容区 ===== */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 60px 20px;
}

/* ===== 服务分类按钮 ===== */
.service-buttons {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-btn {
  padding: 24px 48px;
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.15), rgba(245, 217, 138, 0.08));
  border: 2px solid #c9a24a;
  color: #f5d98a;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 2px;
  min-width: 180px;
  text-align: center;
}

.service-btn:hover {
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.3), rgba(245, 217, 138, 0.15));
  box-shadow: 0 0 30px rgba(201, 162, 74, 0.4);
  transform: translateY(-4px);
}

.service-btn.active {
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.4), rgba(245, 217, 138, 0.2));
  box-shadow: 0 0 36px rgba(201, 162, 74, 0.5);
}

/* ===== 游戏选择区 ===== */
.game-selection {
  display: none;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 0.4s;
}

.game-selection.show {
  display: flex;
}

.game-btn {
  padding: 18px 36px;
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid #c9a24a88;
  color: #c9a24a;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.game-btn:hover {
  background: rgba(201, 162, 74, 0.15);
  border-color: #c9a24a;
  transform: scale(1.05);
}

.game-btn.active {
  background: rgba(201, 162, 74, 0.25);
  border-color: #f5d98a;
  color: #f5d98a;
}

/* ===== 服务说明 ===== */
.service-info {
  display: none;
  text-align: center;
  max-width: 600px;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #c9a24a44;
  border-radius: 16px;
  animation: fadeIn 0.4s;
}

.service-info.show {
  display: block;
}

.service-info h3 {
  color: #f5d98a;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-info p {
  color: #aaa;
  line-height: 1.8;
  font-size: 1rem;
}

/* ===== 确认点单按钮 ===== */
.confirm-order-btn {
  display: none;
  padding: 16px 56px;
  background: linear-gradient(90deg, #c9a24a, #f5d98a);
  color: #0d0d0d;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 3px;
  animation: fadeIn 0.4s;
}

.confirm-order-btn.show {
  display: inline-block;
}

.confirm-order-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 36px rgba(201, 162, 74, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 弹窗 ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  border: 2px solid #c9a24a;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #c9a24a;
  border-radius: 4px;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #c9a24a;
}

.modal-content h2 {
  color: #f5d98a;
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #c9a24a;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a24a;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #c9a24a, #f5d98a);
  color: #0d0d0d;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(201, 162, 74, 0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 700px) {
  .navbar { padding: 14px 16px; flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .service-buttons { gap: 20px; }
  .service-btn { min-width: 140px; padding: 20px 32px; font-size: 1.1rem; }
  
  /* 全局移动端适配 */
  .main-content { padding: 30px 12px; }
}
