body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f1f1f1;
  color: #333;
}

/* 導覽列 */
nav {
  background: #1f2937;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ef233c;
}

nav ul li a.active {
  text-decoration: underline;
}

/* 封面區 */
.hero {
  background: url('https://via.placeholder.com/1200x500?text=遊戲封面') center/cover no-repeat;
  padding: 150px 20px;
  text-align: center;
  color: white;
  background-color: #222;
}

.btn {
  background: #ef233c;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #d90429;
}

/* 主要內容區 */
.content {
  padding: 40px 20px;
  text-align: center;
}

.news-item, .dlc-card {
  background: white;
  padding: 20px;
  margin: 10px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
}

/* 聯絡區塊 */
#contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
}

/* 聯絡表單 */
form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input, textarea, button {
  margin: 5px 0;
  padding: 10px;
  font-size: 16px;
}

button {
  background: #1f2937;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #374151;
}

/* 社群連結 */
.social-links {
  margin: 10px 0;
}

.social-links a {
  display: inline-block;
  margin-right: 8px;
  color: #1f2937;
  font-weight: bold;
  text-decoration: none;
  background: #e5e5e5;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #ef233c;
  color: white;
}

/* 頁尾 */
footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
}

/* 響應式 */
@media (max-width: 768px) {
  #contact {
    flex-direction: column;
    align-items: center;
  }
}

/* 角色簡介 */
.character-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.character-card {
  background: #fff;
  padding: 15px;
  width: 220px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card img {
  width: 100%;
  border-radius: 8px;
}

.character-card h3 {
  margin: 10px 0;
  color: #1f2937;
}

.character-card p {
  font-size: 14px;
  color: #555;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Modal 彈出視窗 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.close-btn {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #ef233c;
}




/* 維修中頁面 */
.maintenance-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0%, #f1f1f1 45%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-wrapper {
  width: min(960px, 92%);
  text-align: center;
  padding: 40px 0 60px;
}

.maintenance-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.maintenance-logo {
  width: min(220px, 60%);
  margin-bottom: 16px;
}

.maintenance-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: #ef233c;
  margin: 0 0 10px;
}

.maintenance-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  color: #1f2937;
}

.maintenance-message {
  margin: 0 auto 24px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.maintenance-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
  font-size: 14px;
  color: #1f2937;
}

.maintenance-label {
  display: block;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn.btn-outline {
  background: transparent;
  color: #ef233c;
  border: 2px solid #ef233c;
}

.btn.btn-outline:hover {
  background: #ef233c;
  color: #ffffff;
}

.maintenance-footer {
  margin-top: 24px;
  font-size: 12px;
  color: #6b7280;
}


.btn.btn-maintenance {
  background: #1f2937;
}

.btn.btn-maintenance:hover {
  background: #111827;
}
