body {
  background: #F5F5F5;
  color: #002244;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background: #E31837;
  color: #fff;
  padding: 1.5rem 2rem;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: normal;
  margin-left: 2rem;
}

/* 主内容区美化 */
.main-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  max-width: 900px;
  text-align: left;
}
.main-card h1 {
  font-size: 2rem;
  color: #E31837;
  margin-bottom: 1rem;
  text-align: center;
}
.main-card h2 {
  font-size: 1.35rem;
  color: #E31837;
  font-weight: bold;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.main-card ul, .main-card li {
  color: #444;
  font-size: 1.08rem;
  line-height: 1.8;
}
.main-card ul {
  margin: 0 0 1.5rem 0;
  padding-left: 1.2rem;
  list-style: disc inside;
}
.main-card li {
  margin-bottom: 0.5rem;
}
.main-card p {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

button {
  background: #0071CE;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
}

button:hover {
  background: #005fa3;
}

.iframe-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 700px;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-left: auto;
  margin-right: auto;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  background: #f5f5f5;
}

@media (max-width: 800px) {
  .iframe-container {
    max-width: 100%;
    height: 400px;
  }
}

footer {
  margin-top: 3rem;
  padding: 1rem 0;
  text-align: center;
  color: #888;
  font-size: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.game-category {
  margin-top: 2rem;
  text-align: left;
}
.game-category h2 {
  font-size: 1.3rem;
  color: #E31837;
  margin-bottom: 0.5rem;
}
.game-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.game-category li {
  margin-bottom: 0.5rem;
}
.game-category a {
  color: #0071CE;
  text-decoration: none;
  font-size: 1.08rem;
  transition: color 0.2s;
}
.game-category a:hover {
  color: #005fa3;
  text-decoration: underline;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.game-category-nav {
  display: flex;
  gap: 1rem;
}

.category-link,
#langBtn {
  color: #fff;
  background: #E31837;
  padding: 0.4rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.5;
  margin: 0;
}

.category-link:hover,
.category-link:focus,
#langBtn:hover,
#langBtn:focus {
  background: #b9152c;
  color: #fff;
}

.iframe-actions {
  margin: 1.2rem auto 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.iframe-actions button {
  background: #E31837;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.iframe-actions button:hover,
.iframe-actions button:focus {
  background: #b9152c;
}

/* FAQ美化 */
.costcodle-faq {
  background: #f8f8fc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,30,30,0.06);
  padding: 1.2rem 1rem;
  margin: 1.5rem 0;
  font-size: 1.08rem;
  color: #333;
  line-height: 1.7;
}
.costcodle-faq strong {
  color: #E31837;
  font-weight: bold;
  font-size: 1.08rem;
  display: block;
  margin-top: 1rem;
}

/* 移动端优化 */
@media (max-width: 700px) {
  .main-card {
    padding: 0.5rem 0.2rem;
  }
  .costcodle-faq {
    font-size: 1rem;
    padding: 1rem 0.5rem;
  }
  .main-card h1 {
    font-size: 1.3rem;
  }
  .main-card h2 {
    font-size: 1.08rem;
  }
}