/* 悟空28网站样式文件 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部欢迎栏样式 */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    color: #FFF;
}

.top-center {
    display: flex;
    gap: 12px;
    flex: 1;
    padding-left: 20px;
}

.top-center a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

/* 顶部欢迎栏中部链接竖线分隔 */
.top-center a + a::before {
    content: '|';
    color: rgba(255,255,255,0.6);
    margin: 0 12px 0 0px;
}

.top-center a:hover {
    color: #ffa500;
}

.mobile-version {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-icon {
    width: 16px;
}

/* 主导航栏样式 */
.main-nav {
    background: transparent;
    box-shadow: none;
    padding: 10px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 214px;
    height: 68px;
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    color: #FFA500;
    text-shadow: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 9px;
    width: 100%;
    justify-content: space-around;
}

a {
    text-decoration: none !important;
}

.nav-menu a {
    text-decoration: none;
    color: #9B9B9B;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: 0;
    transition: color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.nav-menu a:hover {
    color: #FF8D24;
}

.nav-menu a.active {
    background: transparent;
    color: #FF8D24;
}

/* 导航图标样式 */
.nav-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.3s;
}

/* 激活状态下的图标效果 */
.nav-menu a.active .nav-icon {
    filter: none;
    transform: none;
}

/* 导航图标容器样式 */
.nav-icon-container {
    position: relative;
    display: inline-block;
    height: 28px;
}

/* 通知徽章样式 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 公告栏样式 */
.announcement-bar {
    background: linear-gradient(180deg, #FFE6D2 0%, #FFDCC3 100%);
    border-top: none;
    border-bottom: none;
    padding: 0;
    box-shadow: inset 0 -1px 0 rgba(255,141,36,0.15), inset 0 1px 0 rgba(255,141,36,0.15);
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
}

.announcement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, #FFA63A 0%, #FF8D24 100%);
    padding: 6px 14px;
    font-size: 14px;
}

.speaker-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    padding-left: 6px;
}

.scrolling-text {
    display: flex;
    animation: scroll 45s linear infinite;
    gap: 120px;
}

.scrolling-text span {
    white-space: nowrap;
    color: #23252C;
    font-size: 14px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Banner轮播区域样式 */
.banner-section {
    position: relative;
    height: 320px;
    background: linear-gradient(180deg, #FF8D24 0%, #8B4513 100%);
}

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

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner登录表单 */
.banner-login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(276px, -50%);
    padding: 16px 24px;
    width: 302px;
    z-index: 10;
    border-radius: 12px;
    border: 0.5px solid #FFF;
    background: linear-gradient(132deg, rgba(255, 199, 95, 0.00) 68.34%, rgba(255, 199, 95, 0.30) 97.87%), linear-gradient(117deg, rgba(255, 208, 77, 0.00) 44.69%, rgba(238, 123, 65, 0.60) 111.33%), #622C1A;
    background-blend-mode: color-dodge, color-dodge, normal;
    box-shadow: 0 -8px 24px 0 rgba(255, 96, 4, 0.30) inset, 0 -14px 21.1px -2px rgba(255, 167, 73, 0.20) inset;
}

.banner-login-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.banner-login-form .form-header h3 {
    color: white;
    font-size: 18px;
    margin: 0;
}

.banner-login-form .form-icon {
    width: 20px;
    height: 20px;
}

.banner-login-form .wukong-character {
    position: absolute;
    right: 3px;
    top: -50px;
    width: 90px;
    height: 90px;
    z-index: 15;
}

.banner-login-form .form-group {
    margin-bottom: 10px;
    position: relative;
}

.banner-login-form .form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-bottom: 5px;
}

.banner-login-form .form-group input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: none;
    font-size: 13px;
    color: #FFF;
    transition: background-color 0.3s;
    border-radius: 12px;
    border: 1px solid #FF4F4F;
    background: rgba(35, 13, 5, 0.80);
    backdrop-filter: blur(6px);
}

.banner-login-form .form-group .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 1;
}

.banner-login-form .form-group .country-code {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFF;
    font-size: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.banner-login-form .form-group .country-code::after {
    content: '';
    width: 1px;
    height: 16px;
    background: #ddd;
    margin-left: 8px;
}

/* 带国家区号的输入，增加左侧内边距并右移区号 */
.banner-login-form .form-group.has-country input {
    padding-left: 120px;
}
.banner-login-form .form-group.has-country .country-code {
    left: 40px;
}

.banner-login-form .form-group input::placeholder {
    color: #FFF;
}

.banner-login-form .form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 141, 36, 0.3);
}

.banner-login-form .forgot-link {
    padding: 2px 6px;
    position: absolute;
    right: 12px;
    top: 7px;
    color: #FFF;
    text-decoration: none;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.40);
}

.banner-login-form .verification-code {
    position: absolute;
    right: 10px;
    top: 6px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    height: 24px;
    object-fit: cover;
}

.banner-login-form .form-buttons {
    display: flex;
    gap: 10px;
}

.banner-login-form .login-btn,
.banner-login-form .register-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-login-form .login-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8D24);
    color: white;
}

.banner-login-form .register-btn {
    background: linear-gradient(135deg, #FF8D24, #FFA500);
    color: white;
    border: none;
}

.banner-login-form .login-btn:hover,
.banner-login-form .register-btn:hover {
    transform: translateY(-2px);
}

/* Banner指示器 */
.banner-indicators {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #ffd5ad;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #FF8D24;
    width: 80px;
}


/* 游戏和排行榜区域样式 */
.games-leaderboard {
    background: white;
    padding: 40px 0 60px;
}

.games-leaderboard .container {
    display: flex;
    gap: 16px;
}
.games-leaderboard-container {
    flex: 1;
}



.section-title {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 排行榜标题图片样式 */
.rank-title-img {
    width: 100%;
    object-fit: contain;
}

/* section 标题前置火焰图标（热门玩法、推荐游戏） */
.games-section .section-title::before,
.recommended-games .section-title::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 6px;
}
.recommended-games .section-title::before{
    background: url('/web/images/home/t.png') center/contain no-repeat;
}
.games-section .section-title::before{
    background: url('/web/images/home/fire.png') center/contain no-repeat;
}
.title-icon {
    width: 24px;
    height: 24px;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s;
    background: #000;
}

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

.game-image {
    height: 243px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0px 24px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
}

.game-info h3 {
    font-size: 20px;
    color: #fff;
}

.game-info p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.bet-btn {
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 120px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6735 7.11%, #FF7B00 51.59%, #FFE100 100%);
}

/* 将热门玩法按钮固定在信息区右下角 */
.game-info .bet-btn {
    position: absolute;
    right: 24px;
    bottom: 20px;
}

.bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,141,36,0.35);
}

/* 排行榜表格样式 */
.leaderboard-table {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
    top: -16px;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table tbody {
    max-height: 488px;
    overflow-y: auto;
    display: block;
}

.leaderboard-table thead,
.leaderboard-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}
.leaderboard-section{
    width: 352px;
}
.leaderboard-table th,
.leaderboard-table td {
    padding: 8px 16px;
    text-align: left;
    border-bottom: 1px solid #F4EAE2;
}

.leaderboard-table th {
    background: #FFF6EE;
    color: #8A8A8A;
    font-weight: 700;
    font-size: 14px;
}

.leaderboard-table td {
    color: #4F4F4F;
    font-size: 13px;
}

.leaderboard-table tbody tr:nth-child(even) {
    background: #FFFAF6;
}

.leaderboard-table tbody tr:hover {
    background: #FFF2E6;
}

.leaderboard-table td:nth-child(1), .leaderboard-table th:nth-child(2) {
    width:60px;
    font-weight: 700;
    text-align: right;
}
/* 利润列橙色高亮 */
.leaderboard-table td:nth-child(2),
.leaderboard-table th:nth-child(2) {
    color: #FF8D24;
    font-weight: 700;
    text-align: right;
}

/* 推荐游戏区域样式 */
.recommended-games {
    background: transparent;
    padding: 22px 0 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.more-games {
    color: #23252C;
    text-decoration: none;
    height: 28px;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(235, 238, 247, 0.60) 0%, rgba(217, 220, 232, 0.60) 100%);
    color: #23252C;
    font-size: 13px;
}

.more-games:hover {
    text-decoration: underline;
}

.recommended-cards {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.recommended-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s;
    text-align: center;
    position: relative;
}

.recommended-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 243px;
    width: 184px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 推荐游戏卡片叠加按钮样式 */
.recommended-card .rec-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.80) 100%);
}

.recommended-card .rec-btn {
    min-width: 144px;
    height: 36px;
    line-height: 36px;
    color: #fff;
    font-weight: 600;
    border-radius: 18px;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 40px;
    border: 0.5px solid rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.recommended-card .rec-btn:hover {
    background: rgba(255, 141, 36, 1);
    transform: translateY(-2px);
}

.recommended-card h3 {
    padding: 20px;
    color: #333;
    font-size: 16px;
}

/* 功能卡片区域样式 */
.feature-cards {
    background: url('/web/images/home/bg1.png') center/cover no-repeat;
    padding: 40px 0;
}

.feature-cards .container {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.feature-cards img {
    width: calc(25% - 15px);
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.feature-cards img:hover {
    transform: translateY(-3px);
}

/* 返利卡片区域样式 */
.rebate-cards {
    background: white;
    padding: 60px 0;
}

.rebate-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.rebate-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    height: 268px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rebate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.rebate-image {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.rebate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.rebate-card:hover .rebate-image img {
    transform: scale(1.05);
}

.rebate-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 15px 15px;
    margin: 0;
    z-index: 2;
    font-size: 16px;
    transition: all 0.3s ease;
}

.rebate-card:hover h3 {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 25px 15px 20px;
}

/* 联系方式区域样式 */
.contact-section {
    background: white;
    padding: 0 0 40px 0;
}

.contact-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.contact-item {
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: calc(25% - 15px);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    background: #f0f1f2;
}

.contact-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(180, 184, 208, 0.30);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(217, 220, 232, 0.10) 100%);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.contact-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 页脚样式 */
.footer {
    background: #23252C;
    color: white;
    padding: 30px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.footer-left {
    flex: 2;
    max-width: 600px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-logo-img {
    width: 214px;
    height: 68px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.footer-logo-text .highlight {
    color: #FF8D24;
}

.footer-description {
    line-height: 1.8;
    color: #DFE5F3;
    font-size: 14px;
}

.footer-right {
    flex: 1;
    text-align: right;
    position: relative;
}

.footer-character-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: absolute;
    right: 0;
    bottom: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color:  #B3B7D3;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 0 15px;
    position: relative;
    transition: color 0.3s;
}

.footer-links a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -2px;
    color: rgba(255,255,255,0.5);
}

.footer-links a:hover {
    color: #FF8D24;
}

.footer-wukong-img{
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 208px;
    height: 208px;
    object-fit: contain;
}

.yellow {
    color: #6ff54a;
}
