/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif
}

body {
    background-color: #1a1a1a;
    color: #fff;
    background: linear-gradient(to right, #4b0082, #191970);
}

/* 顶部标题区域 */
.top-banner {
    padding-top: 20px;
    text-align: center;
}

.top-banner h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.top-banner p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 按钮区域 */
.cta-section {
    text-align: center;
    padding: 10px 0;
    /* 确保没有 overflow 限制 */
    overflow: visible;
    /* 添加最小高度 */
    /* min-height: 50vh;  */
    /* 确保有合适的 z-index */
    z-index: 100;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    /* 放大 5% */
}

.cta-btn {

    /* background-color: transparent;
    border: none;
    position: sticky; 
    top: 0; 
    z-index: 100; 
    padding: 10px; */
    /* 居中显示按钮 */
    /* display: block;
    margin: 0 auto;  */

    /* position: sticky;  */
    /* 核心属性，开启粘性定位 */
    /* top: 0; */
    /* 距离顶部的距离，滚动到此处时触发“粘性”，保持在顶部 */
    /* 以下是可选的样式美化，可根据实际需求调整 */
    /* background-color: #4CAF50;
    color: white;
    padding: 15px 32px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer; */
    /* z-index: 999; */
    /* 确保按钮在其他内容之上，避免被覆盖 */



    /* 2秒循环一次 */
    /* padding: 12px 30px;
    font-size: 1.3rem;
    font-weight: 800; */
    /* background: #28a745; */
    /* color: #fff; */
    /* border: #7FFF00; */
    /* border-radius: 5px;
    cursor: pointer;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); */

    /* transition: background 0.3s ease; */
}

.cta-animation {
    animation: pulse 1s infinite ease-in-out;
}

.cta-btn:hover {
    /* background: #218838; */
}

/* 游戏列表容器：用flex做多行排列 */
.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px 5px 30px 5px;
    max-width: 800px;
    margin: 0 auto;
}

/* 单个游戏卡片样式 */
.game-card {
    width: 90px;
    /* background-color: #2b2b2b; */
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    display: block;
    /* 去掉底部间隙 */
}

.game-card p {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    height: 100%;
}

.carousel-slides img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 94px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.5;
}

/* 顶部导航栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #000;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo span {
    font-weight: bold;
    font-size: 18px;
}

.logo p {
    font-size: 14px;
    opacity: 0.8;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

/* 定义从右到左移动的动画 */
@keyframes slideFromRight {
    0% {
        transform: translateX(100%);
        opacity: 1;
        /* 动画开始时显示 */
    }

    100% {
        transform: translateX(-100%);
        opacity: 1;
        /* 动画开始时显示 */
    }
}

.banner-container {
    width: 100%;
    height: 40px;
    position: fixed;
    background-color: #000;
    z-index: 50;
}

/* 欢迎奖励横幅 */
.banner {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
}

.banner h1 {
    white-space: nowrap;
    margin: 0;
    padding: 10px 0;
    font-size: 16px;
    font-weight: normal;
}

/* 第一条横幅动画 */
.banner:nth-child(1) h1 {
    animation: slideFromRight 10s linear infinite;
}

/* 第二条横幅动画，设置延迟，让两条横幅有重叠 */
.banner:nth-child(2) h1 {
    opacity: 0;
    /* 初始状态隐藏 */
    animation: slideFromRight 10s linear infinite 5s;
    /* 延迟 5 秒 */
    animation-fill-mode: forwards;
    /* 保持动画结束时的状态 */
    /* 延迟 5 秒 */
}

/* 游戏宣传图区域 */
.game-banner {
    width: 100%;
    overflow: hidden;
}

.game-img {
    width: 100%;
    display: block;
    max-width: 700px;
    margin: 0 auto;
}

/* 文案与引导区域 */
.content {
    padding: 20px;
    text-align: center;
}

.content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #7FFF00;
    /* 类似示例中的绿色标题 */
}

.content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}


/* 主标题区域 */
.hero {
    padding: 10px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    /* opacity: 0.9; */
    color: #CBC6CD;
}


/* 视频容器 */
.video-section {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    position: relative;
    border: 4px solid #FFD700;
    border-radius: 8px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.play-btn::after {
    content: "";
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #000;
    margin-left: 3px;
}

/* 视频播放控制样式 */
.video-player {
    display: none;
    position: relative;
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-section:hover .video-controls {
    opacity: 1;
}

.progress-bar {
    height: 4px;
    background: #555;
    margin-bottom: 8px;
    cursor: pointer;
}

.progress {
    height: 100%;
    width: 0%;
    background: #FFD700;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-pause {
    cursor: pointer;
}

.time {
    font-size: 14px;
}



/* 功能介绍列表 */
.features {
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
}

.features h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.features ul {
    list-style: none;
    padding-left: 20px;
}

.features li {
    margin: 2px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 10px;
    color: #888;
    font-size: 14px;
    text-align: left;
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #888;
}

hr {
    margin: 20px 50px;
    /* height: 5px; */
    /* width: 80%; */
    border: none;
    /* 移除默认边框 */
    border-top: 2px solid;
    /* 设置顶部边框 */
    border-color: #7020aa;
}

/* 登录引导 & 新机器提示 */
.cta {
    text-align: center;
}

.cta h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.new-machines {
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    display: inline-block;
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 20px;
    font-weight: bold;
}

.subdomain {
    font-size: 14px;
    opacity: 0.8;
}

/* 每周标题 */
.weekly-title {
    background: linear-gradient(to right, #4b00ff, #ff00e1);
    text-align: center;
    padding: 10px 0;
}

.weekly-title h2 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 游戏卡片 */
.games {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
}

.games .game-card {
    width: 200px;
    text-align: center;
}

.game .game-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.game .game-card h3 {
    font-size: 16px;
}

/* 评价区域 */
.reviews {
    max-width: 700px;
    margin: 0 auto;
    padding: 0px 20px;
    text-align: center;
}

.reviews .rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.reviews .rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reviews h2 {
    font-size: 24px;
}

.score {
    font-size: 70px;
    font-weight: bold;
}

.stars {
    font-size: 30px;
    color: #ffd700;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.review-count {
    font-size: 15px;
    color: rgb(222, 222, 222);
}

.review-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;


}

.rating-details {
    display: flex;
    flex-direction: column;
    margin: 0px 30px 10px 30px;
}

.onestar {
    color: #ffd700;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-row .progress-bar {
    flex: 1;
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-details .rightLabel {
    width: 40px;
    text-align: center;
}

.progress {
    height: 100%;
    background-color: #ffd700;
}

/* 用户评论卡片 */
.review-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 15px;
    margin: 0px 30px 10px 30px;
    text-align: left;
}

.review-card .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;

}

.review-card .user-info .user-details {
    display: flex;
    flex-direction: column;
}

.review-card .user-info .user-details .name {
    font-weight: bold;
    font-size: 16px;
}

.review-card .user-info .user-details .role {
    font-size: 12px;
    opacity: 0.8;
}

.review-card .stars {
    display: flex;
    gap: 4px;
    margin-bottom: 0px;
    font-size: 18px;
}

.review-card .stars img {
    width: 18px;
    height: 18px;
}

.review-card .review-title {
    font-weight: bold;
    font-size: 16px;
}

.review-card .review-content {
    font-size: 14px;
    opacity: 0.9;
}

/* 按钮样式 */
.cta-button {
    text-align: center;
    margin: 20px 0;
}

.cta-button button {
    background-color: transparent;
    /* 设置背景为透明 */
    border: none;
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 20px 40px;
    border-radius: 25px;
    font-size: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button span:hover {
    background-color: #218838;
}

/* 社区模块 */
.community-section {
    text-align: center;
    background: #000;
    padding: 10px 20px;
}

.community-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #F7AC25;
}

.community-section p {
    color: #FFFFFD;
    font-size: 18px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0px;
    /* 
    text-align: center; 
  width: 80%; 
  max-width: 1200px;  */
}

.social-links img {
    width: 40px;
    height: 40px;
}

.btn {
    background-color: transparent;
    /* 设置背景为透明 */
    border: none;
    width: 100%;
    display: inline-block;
    background-color: #00cc76;
    color: #fff;
    padding: 15px 60px;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;

    text-align: center;
}

.btn span {
    font-size: 15px;
}

.btn:hover {
    background-color: #00b365;
}

.age-tag {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid #00cc76;
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
    color: #00cc76;
}

/* 触发按钮样式 */
.trigger-btn {
    padding: 12px 24px;
    background-color: #5C2D7E;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.trigger-btn:hover {
    background-color: #4A2466;
}

/* 弹窗样式 */
.disclaimer-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    background-color: #5C2D7E;
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 38px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ddd;
}

/* 弹窗内容样式 */
.disclaimer-popup h2 {
    text-align: center;
    margin: 30px 0px;
    font-size: 25px;
}

.disclaimer-popup p {
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: left;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

.disclaimer-popup label {
    display: block;
    text-align: left;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
}

.dob-inputs {
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    gap: 10px;
    margin: auto;
    margin-bottom: 16px;
    /* margin-left: 20%; */
}

.dob-inputs select {
    width: 90px;
    height: 50px;
    padding: 6px;
    border: 1px solid #170f5f;
    border-radius: 4px;
    font-size: 18px;
    background-color: #3F368A;
    color: #fff;
}

/* 部分浏览器支持设置下拉列表展开后的选项背景色 */
.dob-inputs select option {
    background-color: #3F368A; /* 蓝色背景，可按需调整颜色值 */
    color: white; /* 白色文字，可按需调整颜色值 */
  }

.custom-select {
    position: relative;
    width: 80px;
}

/* 自定义下拉列表样式 */
.custom-select .select-items {
    /* 限制下拉列表最大高度，可按需调整 */
    max-height: 150px;
    overflow-y: auto;
}

.select-selected {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #333 transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #333 transparent;
    top: 7px;
}

.select-items {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.select-items div {
    padding: 6px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.select-items div:hover {
    background-color: #f0f0f0;
}

.select-hide {
    display: none;
}

.dob-inputs span {
    color: #fff;
}

.login-btn {
    /* width: 100%; */
    padding: 10px;
    background-color: #28C76F;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 25px;
    cursor: pointer;
    margin: auto;
    transition: background-color 0.3s;
    text-align: center;
    display: block;
    /* 按钮以块级元素显示 */
    margin: 0 auto;
    /* 左右外边距自动，实现居中 */
}

.login-btn span {
    font-weight: bold;
    padding: 0px 20px;
    /* font-size: 18px; */

}

.login-btn:hover {
    background-color: #22B05F;
}

/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 响应式适配（小屏幕下优化） */
@media (max-width: 500px) {
    .hero h1 {
        font-size: 30px;
    }

    .new-machines {
        font-size: 18px;
    }
}

/* 响应式适配（大屏幕下优化） */
@media (min-width: 900px) {
    .features ul {
        list-style: none;
        padding-left: 25%;
    }

    /* 单个游戏卡片样式 */
    .game-card {
        width: 150px;
        overflow: hidden;
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .carousel-dots {
        bottom: -135px
    }

    /* 社区模块 */
    .community-section {
        text-align: center;
        background: #000;
        padding: 10px 100px;
    }
}