/* ========== 全局样式 ========== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
  --primary-color: #4a6fa5;
  --secondary-color: #3a5a8f;
  --text-dark: #2c3e50;
  --text-light: #555;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #80deea);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}



/* ========== 详情页主容器 ========== */
.detail-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* ========== 游戏详情区域 ========== */
.game-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.game-media {
  position: relative;
  margin-bottom: 1.5rem;
}

.main-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s;
}

.main-image:hover {
  transform: scale(1.02);
}

/* ========== 游戏信息 ========== */
.game-info h2 {
  font-size: 2rem;
  margin-top: 0;
  color: var(--text-dark);
}

.meta-info {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.category {
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.description {
  grid-column: 1/3;
  color: var(--text-light);
  margin: 1.5rem 0;
}

/* ========== 操作按钮 ========== */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.primary-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========== 相似游戏模块 ========== */
.similar-games {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.similar-games h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* ========== 相似游戏模块（续） ========== */
.similar-games-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.similar-games-list::-webkit-scrollbar {
    height: 6px;
}

.similar-games-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.game-card {
    width: 180px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--glass-border);
}

.game-card h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.game-card .category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* ========== 评论区域 ========== */
.comments-section {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid var(--glass-border);
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.usernameInput {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.2);
    font-family: inherit;
}
.star-rating {
    display: inline-flex;
    gap: 0.2rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #FFC107;
}

.rating-value {
    display: none;
}
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.2);
    min-height: 100px;
    font-family: inherit;
    resize: vertical;
}

.comment-form button {
    margin-top: 1rem;
}

.comment {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
}

.comment-rating {
    color: #FFC107;
}

