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;
}

.logo-img {
  width: 72px;
  height: 72px;
  vertical-align: middle;
  margin-right: 8px;
}

.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: center;  <-- 删除这一行 */
}

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: 800px;
  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: 0;
  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;
}

.header-right a {
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}

.header-right a:hover {
  background: #f5f5f5;
  color: #E31837;
}

.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;
}

#disqus_thread {
  max-width: 900px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem;
}

/* 美化 Calcle 详情页内容区样式，仅作用于 .main-card */
.main-card h1 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #E31837;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-align: center;
}

.main-card h2 {
  font-size: 1.35rem;
  color: #0071CE;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.main-card h3 {
  font-size: 1.08rem;
  color: #E31837;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.main-card p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  color: #222;
}

.main-card ol,
.main-card ul {
  margin: 1rem auto 1.5rem auto;
  padding-left: 1.5rem;
  max-width: 700px;
  text-align: left;
}

.main-card li {
  margin-bottom: 0.6rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .main-card {
    padding: 1.2rem 0.5rem;
  }
  .main-card ol,
  .main-card ul {
    padding-left: 1.1rem;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .header-right {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}

/* 星级评分组件样式（新配色） */
#rating-section {
  background: linear-gradient(90deg, #4f8cff 0%, #6ad1ff 100%);
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 0;
}
#rating-section .rating-label {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-right: 0.5rem;
}
#rating-section .stars {
  margin: 0 0.5rem;
  vertical-align: middle;
}
#rating-section .star {
  font-size: 2.2rem;
  color: #ffd700;
  cursor: pointer;
  transition: transform 0.1s;
  margin: 0 2px;
}
#rating-section .star.inactive {
  color: #ddd;
}
#rating-section .star:hover {
  transform: scale(1.2);
}
#rating-section .rating-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  margin-left: 0.5rem;
}
#rating-section .rating-count {
  font-size: 1rem;
  color: #fff;
  margin-left: 0.5rem;
}