/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: rgb(23 24 29);
    /* background: linear-gradient(135deg, #0c0e2b 0%, #1a1d4e 100%); */
    color: #fff;
    overflow-x: hidden;
}
a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 80px;
}

/* 头部样式 */
.header {
    background-image: url('./images/tup.png');
    width: 100%;
    height: 97px;
    backdrop-filter: blur(3px);
    position: fixed;
    top: 0;
    z-index: 1000;
    /* border-bottom: 2px solid rgba(255, 215, 0, 0.3); */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffd700;
}

.login-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 主横幅 */
.hero-banner {
    /* margin-top: 80px; */
    height: 1032px;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 688px;
    left: 0;
    right: 0;
    /* transform: translateY(-50%); */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffd700;
}

.slide-content p {
    font-size: 24px;
}

/* 登录区域 */
.login-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
}

.login-box {
    display: flex;
    justify-content: space-between;
    background-image: url('./images/矩形2.png');
    /* background: rgba(0, 0, 0, 0.4); */
    border-radius: 20px;
    padding: 20px;
    /* backdrop-filter: blur(10px); */
    /* border: 1px solid rgba(255, 215, 0, 0.3); */
    width: 920px;
    height: 223px;
    margin: 0 auto;
}

.login-tabs {
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;
    gap: 20px;
    /* margin-bottom: 30px; */
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.tab-btn img {
    width: 20px;
    height: 20px;
}

.tab-panel {
    display: none;
}

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

.member-center{
  background-image: url('./images/s54a.png');
      background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 0 10px;
    width: 352px;
    height: 193px;
    text-align: center;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 158px;
    height: 158px;
    margin: 20px auto;
    display: block;
}

.phone-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 16px;
}

.verify-row {
    display: flex;
    gap: 10px;
}

.verify-input {
    flex: 1;
}

.verify-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.submit-btn {
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 游戏区域 */
.game-section {
    margin-top: -150px;
    z-index: 1;
    position: relative;
}
.section-wrap {
  width: 496px;
  height: 343px;
  background-image: url('./images/图层6.png');
  margin: auto;
}
.section-title {
    text-align: center;
    font-size: 36px;
    padding-top: 197px;
    color: #d0d1d2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.section-search {
  background-image: url('./images/搜索背景.png');
  width: 250px;
  height: 64px;
  margin: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
      margin-top: -50px;
    margin-bottom: 50px;
}

.search-title{
    font-size: 18px;
    color: #b0b0af;
}

.game-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 120px; */
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.game-card {
    position: relative;
    padding: 15px;
    /* background: rgba(255, 255, 255, 0.1); */
    /* border-radius: 15px; */
    overflow: hidden;
    transition: all 0.3s;
    /* border: 1px solid rgba(255, 215, 0, 0.2); */
}

/* .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
} */

.game-banner {
    width: 335px;
    height: 174px;
    /* width: 350px; */
    /* height: 188px; */
    object-fit: fill;
}

.cover {
  background-image: url('./images/图层\ 13\ 拷贝\ 3.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 359px;
  /* height: 296px; */
  height: 312px;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* 确保 .game-info 有明确宽度（必须！） */
.game-info {
    width: 320px; /* ← 根据你的设计调整，不能是 auto */
    margin: 0 auto;
    padding: 0 16px; /* 可选：整体内边距 */
    box-sizing: border-box;
}

.game-header {
    display: flex;
    justify-content: center;
}

.game-title {
    font-size: 16px;
    color: #ccc;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ✅ 关键：单行截断 + 靠右留空 */
.game-desc {
    font-size: 16px;
    color: #ccc;
    margin: 8px 0;
    text-align: center;
    /* --- 核心三件套 --- */
    white-space: nowrap;     /* 不换行 */
    overflow: hidden;        /* 超出隐藏 */
    text-overflow: ellipsis; /* 显示 ... */
    /* --- 宽度控制（必须！）--- */
    width: 100%;             /* 占满父容器 */
    max-width: 100%;
    /* --- 右侧留空技巧（用 padding）--- */
    padding: 0 8px;          /* 左右各留 8px，防止文字贴边 */
    box-sizing: border-box;  /* 确保 padding 不撑大宽度 */
}

.game-status {
    display: inline-block;
    color: #ccc;
    font-size: 16px;
}

.game-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.3s;
}

.btn-primary {
    background: #174457;
    color: #fff;
}

.btn-secondary {
    background: #759ec0;
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 底部 */
.footer {
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 0 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 10px;
}

.warning {
    color: #ff9800;
    margin-top: 15px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1d4e 0%, #0c0e2b 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ffd700;
}

.close:hover {
    color: #fff;
}

.modal-login-box h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #ffd700;
}

.qrcode-large {
    text-align: center;
    margin: 30px 0;
    margin-left: 85px;

}

.qrcode-large img {
    width: 250px;
    height: 250px;
}

/* 响应式 */
@media (max-width: 1920px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header .container {
        height: 60px;
    }
    
    .nav {
        display: none;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .login-box {
        width: 100%;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}