 :root {
     --primary-color: #6c5ce7;
     --secondary-color: #a29bfe;
     --accent-color: #fd79a8;
     --dark-color: #2d3436;
     --light-color: #dfe6e9;
     --success-color: #00b894;
     --warning-color: #fdcb6e;
     --gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
     --gradient-dark: linear-gradient(135deg, #2d3436, #636e72);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Poppins', sans-serif;
 }

 body {
     background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
     color: white;
     line-height: 1.6;
     overflow-x: hidden;
 }

 /* 霓虹灯效果 */
 .neon-text {
     text-shadow: 0 0 5px var(--primary-color),
         0 0 10px var(--primary-color),
         0 0 15px var(--primary-color),
         0 0 20px var(--accent-color);
 }

 /* 粒子背景 */
 #particles-js {
     position: fixed;
     width: 100%;
     height: 100%;
     z-index: -1;
 }

 /* 导航栏样式 */
 header {
     background: rgba(45, 52, 54, 0.8);
     backdrop-filter: blur(10px);
     padding: 1rem 0;
     position: sticky;
     top: 0;
     z-index: 100;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }

 .container {
     width: 90%;
     max-width: 1200px;
     margin: 0 auto;
 }

 .navbar {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo {
     font-size: 1.8rem;
     font-weight: bold;
     color: white;
     text-decoration: none;
     display: flex;
     align-items: center;
 }

 .logo span {
     color: var(--primary-color);
     text-shadow: 0 0 10px var(--primary-color);
 }

 .logo i {
     margin-right: 0.5rem;
     color: var(--accent-color);
 }

 .nav-links {
     display: flex;
     list-style: none;
 }

 .nav-links li {
     margin-left: 1.5rem;
     position: relative;
 }

 .nav-links a {
     color: white;
     text-decoration: none;
     transition: color 0.3s;
     font-weight: 500;
 }

 .nav-links a:hover {
     color: var(--accent-color);
 }

 .nav-links a::after {
     content: '';
     position: absolute;
     bottom: -5px;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--accent-color);
     transition: width 0.3s;
 }

 .nav-links a:hover::after {
     width: 100%;
 }

 /* 主要内容区域 */
 .main-content {
     display: grid;
     grid-template-columns: 70% 30%;
     gap: 2rem;
     margin: 2rem auto;
 }

 /* 游戏展示区 */
 .game-display {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 15px;
     backdrop-filter: blur(10px);
     overflow: hidden;
     border: 1px solid rgba(255, 255, 255, 0.1);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     transition: transform 0.3s;
 }

 .game-display:hover {
     transform: translateY(-5px);
 }

 .game-frame-container {
     position: relative;
     width: 100%;
     height: 500px;
     background: linear-gradient(135deg, #2d3436, #636e72);
     overflow: hidden;
 }

 .game-frame-container::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 5px;
     background: var(--gradient);
     z-index: 10;
 }

 #game-frame {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
     height: 100%;
     border: none;
     background-size: cover;
     background-position: center;
     border-radius: 5px;
     background-color: rgba(0, 0, 0, 0.8);
     background-blend-mode: darken;
 }

 .play-button {
     width: 320px;
     height: 75px;
     /* 基础尺寸和布局 */
     padding: 12px 28px;
     font-size: 18px;
     font-weight: bold;
     cursor: pointer;
     text-transform: uppercase;
     /* 使内容和图标对齐 */
     align-items: center;
     /* 箭头和文本之间的间距 */

     /* 视觉设计 */
     color: #ffffff;
     /* 白色文本 */
     background-color: #ff4757;
     /* 醒目的红色作为主色调 */
     border: none;
     border-radius: 50px;
     /* 圆角胶囊形状 */
     box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
     /* 柔和的阴影 */
     transition: all 0.3s ease;
     /* 平滑的过渡效果 */
 }

 /* 悬停 (Hover) 状态：增加交互性和反馈 */
 .play-button:hover {
     background-color: #e53945;
     /* 悬停时颜色略深 */
     box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
     /* 阴影更明显 */
     transform: translateY(-2px);
     /* 向上轻微抬升效果 */
 }

 /* 激活/点击 (Active) 状态：按下效果 */
 .play-button:active {
     background-color: #c0313a;
     /* 点击时颜色更深 */
     box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
     transform: translateY(0);
     /* 恢复原位，模拟按下 */
 }

 .game-info {
     padding: 1.5rem;
 }

 .game-title {
     font-size: 1.8rem;
     margin-bottom: 0.5rem;
     color: white;
     font-weight: 600;
 }

 .game-stats {
     display: flex;
     margin-bottom: 1rem;
     color: #ccc;
 }

 .game-stats span {
     margin-right: 1.5rem;
     display: flex;
     align-items: center;
     background: rgba(255, 255, 255, 0.1);
     padding: 0.3rem 0.8rem;
     border-radius: 20px;
 }

 .game-stats i {
     margin-right: 0.5rem;
     color: var(--accent-color);
 }

 .game-description {
     margin-bottom: 1.5rem;
     line-height: 1.6;
     color: #ddd;
 }

 .game-tabs {
     display: flex;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     margin-bottom: 1rem;
 }

 .tab {
     padding: 0.7rem 1.5rem;
     cursor: pointer;
     border-bottom: 2px solid transparent;
     transition: all 0.3s;
     position: relative;
     overflow: hidden;
 }

 .tab::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: var(--gradient);
     transition: left 0.3s;
     z-index: -1;
 }

 .tab:hover::before {
     left: 0;
 }

 .tab.active {
     border-bottom: 2px solid var(--accent-color);
     color: var(--accent-color);
 }

 .tab-content {
     display: none;
     animation: fadeIn 0.5s;
 }

 .tab-content p {
     color: #ccc;
     padding-bottom: 30px;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 .tab-content.active {
     display: block;
 }

 .comment {
     padding: 1rem 0;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     display: flex;
     align-items: flex-start;
 }

 .comment-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: var(--gradient);
     margin-right: 1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
 }

 .comment:last-child {
     border-bottom: none;
 }

 .comment-header {
     display: flex;
     justify-content: space-between;
     margin-bottom: 0.5rem;
 }

 .comment-author {
     font-weight: bold;
     color: var(--accent-color);
 }

 .comment-date {
     color: #888;
     font-size: 0.9rem;
 }

 /* 游戏列表 */
 .game-list {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 15px;
     backdrop-filter: blur(10px);
     padding: 1.5rem;
     max-height: 600px;
     overflow-y: auto;
     border: 1px solid rgba(255, 255, 255, 0.1);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 }

 .game-list h2 {
     margin-bottom: 1rem;
     color: white;
     font-size: 1.5rem;
     display: flex;
     align-items: center;
 }

 .game-list h2 i {
     margin-right: 0.5rem;
     color: var(--accent-color);
 }

 .game-item {
     display: flex;
     padding: 0.8rem;
     border-radius: 10px;
     margin-bottom: 0.8rem;
     cursor: pointer;
     transition: all 0.3s;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid transparent;
 }

 .game-item:hover {
     background: rgba(255, 255, 255, 0.1);
     transform: translateX(5px);
     border-color: rgba(255, 255, 255, 0.2);
 }

 .game-item.active {
     background: rgba(108, 92, 231, 0.2);
     border-left: 4px solid var(--primary-color);
 }

 .game-icon {
     width: 50px;
     height: 50px;
     background: var(--gradient);
     border-radius: 10px;
     margin-right: 1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
     color: white;
     font-size: 1.2rem;
     box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
 }

 .game-icon img {
     width: 50px;
     height: 50px;
     border-radius: 10px;
     object-fit: cover;
 }

 .game-details {
     flex: 1;
 }

 .game-name {
     font-weight: 600;
     margin-bottom: 0.3rem;
 }

 .game-meta {
     display: flex;
     font-size: 0.8rem;
     color: #ccc;
 }

 .game-meta span {
     margin-right: 0.8rem;
     display: flex;
     align-items: center;
 }

 /* 推荐游戏区域 */
 .recommended-games {
     margin-top: 2rem;
 }

 .recommended-games h2 {
     margin-bottom: 1rem;
     color: white;
     font-size: 1.5rem;
     display: flex;
     align-items: center;
 }

 .recommended-games h2 i {
     margin-right: 0.5rem;
     color: var(--accent-color);
 }

 .recommended-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 1rem;
 }

 .recommended-item {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 10px;
     padding: 1rem;
     text-align: center;
     cursor: pointer;
     transition: all 0.3s;
     border: 1px solid transparent;
     position: relative;
     overflow: hidden;
 }

 .recommended-item::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: var(--gradient);
 }

 .recommended-item:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.1);
     border-color: rgba(255, 255, 255, 0.2);
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
 }

 .recommended-icon {
     width: 60px;
     height: 60px;
     background: var(--gradient);
     border-radius: 12px;
     margin: 0 auto 0.5rem;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
     color: white;
     font-size: 1.2rem;
     box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
 }

 .recommended-name {
     font-size: 0.9rem;
     font-weight: 600;
 }

 /* 页脚 */
 footer {
     background: rgba(45, 52, 54, 0.8);
     color: white;
     padding: 3rem 0 1rem;
     margin-top: 3rem;
     backdrop-filter: blur(10px);
     border-top: 1px solid rgba(255, 255, 255, 0.1);
 }

 .footer-content {
     display: flex;
     justify-content: space-between;
     flex-wrap: wrap;
 }

 .footer-section {
     flex: 1;
     margin-right: 2rem;
     min-width: 200px;
     margin-bottom: 2rem;
 }

 .footer-section h3 {
     margin-bottom: 1.5rem;
     color: var(--primary-color);
     position: relative;
     padding-bottom: 0.5rem;
 }

 .footer-section h3::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 50px;
     height: 2px;
     background: var(--gradient);
 }

 .footer-section p {
     color: #ccc;
     margin-bottom: 1rem;
 }

 .footer-section ul {
     list-style: none;
 }

 .footer-section ul li {
     margin-bottom: 0.8rem;
 }

 .footer-section a {
     color: #ddd;
     text-decoration: none;
     transition: color 0.3s;
     display: flex;
     align-items: center;
 }

 .footer-section a i {
     margin-right: 0.5rem;
     width: 20px;
 }

 .footer-section a:hover {
     color: var(--accent-color);
 }

 .social-links {
     display: flex;
     margin-top: 1rem;
 }

 .social-links a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.1);
     margin-right: 0.8rem;
     transition: all 0.3s;
 }

 .social-links a:hover {
     background: var(--gradient);
     transform: translateY(-3px);
 }

 .copyright {
     text-align: center;
     margin-top: 2rem;
     padding-top: 1.5rem;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     color: #aaa;
     font-size: 0.9rem;
 }

 #related-content {
     margin-top: 2rem;
     display: flex;
     /* flex-wrap: nowrap;
     gap: 1rem;
     justify-content: space-between;
     flex-direction: row; */
     flex-wrap: wrap;
     gap: 1rem;
     justify-content: space-between;
     flex-direction: row;
 }

 .related-icon {
     width: 140px;
     height: 140px;
     border-radius: 10px;
     object-fit: cover;
 }

 .related-icon img {
     width: 140px;
     height: 140px;
     border-radius: 10px;
     object-fit: cover;
     border: #ccc 1px solid;
 }

 .related-name {
     /* --- 布局与定位 --- */
     margin-top: 0.5rem;
     /* 保持与图标的间距 */
     text-align: center;
     display: block;
     /* 确保元素是块级，width/overflow 属性才能正常工作 */
     width: 140px;
     /* 确保占据父容器全部宽度，以实现精确的省略号截断 */

     /* --- 字体和颜色 --- */
     font-size: 1rem;
     font-weight: 700;
     /* 略微增加字体粗细，提升可读性 */
     color: #f0f0f0;
     /* 将纯 white 改为柔和的浅色，提升视觉舒适度 */

     /* --- 文本截断（核心功能）--- */
     overflow: hidden;
     /* 1. 隐藏超出部分 */
     text-overflow: ellipsis;
     /* 2. 在截断处显示省略号 */
     white-space: nowrap;
     /* 3. 强制文本不换行 (实现单行截断的关键) */

     /* --- 增强效果（可选）--- */
     text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
     /* 增加柔和的阴影，使文字在背景上更突出 */
     line-height: 1.3;
     /* 改善文本行高，防止文字过于拥挤 */
 }

 /* 响应式设计 */
 @media (max-width: 992px) {
     .main-content {
         grid-template-columns: 1fr;
     }

     .game-frame-container {
         height: 400px;
     }

     .recommended-grid {
         grid-template-columns: repeat(3, 1fr);
     }
 }

 @media (max-width: 768px) {
     .navbar {
         flex-direction: column;
     }

     .nav-links {
         margin-top: 1rem;
         flex-wrap: wrap;
         justify-content: center;
     }

     .nav-links li {
         margin: 0.5rem;
     }

     .footer-content {
         flex-direction: column;
     }

     .footer-section {
         margin-right: 0;
         margin-bottom: 2rem;
     }

     .recommended-grid {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (max-width: 576px) {
     .game-frame-container {
         height: 300px;
     }

     .game-stats {
         flex-direction: column;
     }

     .game-stats span {
         margin-bottom: 0.5rem;
     }

     .recommended-grid {
         grid-template-columns: 1fr;
     }
 }

 /* 自定义滚动条 */
 ::-webkit-scrollbar {
     width: 8px;
 }

 ::-webkit-scrollbar-track {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 10px;
 }

 ::-webkit-scrollbar-thumb {
     background: var(--gradient);
     border-radius: 10px;
 }

 ::-webkit-scrollbar-thumb:hover {
     background: var(--primary-color);
 }

 /* 动画元素 */
 .floating {
     animation: floating 3s ease-in-out infinite;
 }

 @keyframes floating {
     0% {
         transform: translateY(0px);
     }

     50% {
         transform: translateY(-10px);
     }

     100% {
         transform: translateY(0px);
     }
 }

 .pulse {
     animation: pulse 2s infinite;
 }

 @keyframes pulse {
     0% {
         box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
     }

     70% {
         box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
     }

     100% {
         box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
     }
 }

 /* 加载动画 */
 .loader {
     width: 48px;
     height: 48px;
     border: 5px solid rgba(255, 255, 255, 0.2);
     border-bottom-color: var(--primary-color);
     border-radius: 50%;
     display: inline-block;
     animation: rotation 1s linear infinite;
 }

 @keyframes rotation {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }