/**
 * 游戏大厅主样式表 - 实现现代深色主题的游戏平台界面
 */

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #1a1c25;
    color: #ffffff;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

a:hover {
    color: #6c5dd3;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 主应用容器 */
.app-container {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    height: 100vh;
    overflow: hidden;
}

/* 左侧导航栏样式 */
.sidebar {
    background-color: #1a1c25;
    border-right: 1px solid #2c2f3b;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-lucky {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.logo-adventure {
    font-size: 14px;
    color: #6c5dd3;
    text-transform: uppercase;
}

/* 侧边栏内容容器 */
.sidebar-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* 任务中心样式 */
.task-hub {
    display: flex;
    align-items: center;
    background-color: #242836;
    border-radius: 8px;
    margin: 0 15px 25px;
    padding: 12px 15px;
    position: relative;
    z-index: 1;
}

.task-icon {
    width: 32px;
    height: 32px;
    background-color: #6c5dd3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.task-badge {
    position: absolute;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 导航菜单 */
.main-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0a3b1;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    color: #ffffff;
    background-color: rgba(108, 93, 211, 0.1);
}

.nav-item.active {
    color: #ffffff;
    background-color: rgba(108, 93, 211, 0.15);
    border-left: 3px solid #6c5dd3;
    padding-left: 17px; /* 保持内内容对齐 */
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
}

/* 底部支持菜单 */
.bottom-nav {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #2c2f3b;
}

.support-item {
    display: flex;
    align-items: center;
    color: #a0a3b1;
    margin-bottom: 15px;
    cursor: pointer;
}

.support-item i {
    margin-right: 10px;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 15px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #242836;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a3b1;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #6c5dd3;
    color: white;
}

/* 主内容区域样式 */
.main-content {
    padding: 25px;
    overflow-y: auto;
    height: 100vh;
    background-color: #242836;
}

/* 顶部广告横幅 */
.banner-container {
    margin-bottom: 25px;
}

.promo-banner {
    background: linear-gradient(90deg, #6c5dd3 0%, #3273dc 100%);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.banner-content {
    max-width: 60%;
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.banner-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-bonus {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-bonus:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.banner-image {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-image img {
    height: 100%;
    max-height: 180px;
    object-fit: contain;
}

/* 游戏分类网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.game-card {
    background-color: #1a1c25;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.game-card.starred::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: #6c5dd3 #242836;
    z-index: 2;
}

.game-image {
    height: 140px;
    width: 100%;
    background-color: #242836;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.star-badge {
    color: #f7d74b;
    font-size: 18px;
}

.game-type {
    font-size: 14px;
    color: #a0a3b1;
}

/* 最近游戏列表 */
.latest-games-section {
    background-color: #1a1c25;
    border-radius: 16px;
    padding: 20px;
}

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

.section-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.section-icon {
    color: #6c5dd3;
    margin-right: 10px;
    font-size: 20px;
}

.pagination {
    display: flex;
    align-items: center;
}

.pagination span {
    margin-right: 15px;
    font-size: 14px;
    color: #a0a3b1;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #242836;
    color: #a0a3b1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #6c5dd3;
    color: white;
}

/* 表格样式 */
.latest-games-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.5fr 1.5fr 1fr;
    padding: 15px 0;
    border-bottom: 1px solid #2c2f3b;
}

.th {
    font-size: 14px;
    font-weight: 600;
    color: #a0a3b1;
    text-transform: uppercase;
}

.table-body {
    margin-top: 10px;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.5fr 1.5fr 1fr;
    padding: 15px 0;
    align-items: center;
    border-bottom: 1px solid rgba(44, 47, 59, 0.5);
}

.table-row:last-child {
    border-bottom: none;
}

.td {
    display: flex;
    align-items: center;
}

.td.game {
    display: flex;
    align-items: center;
}

.game-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
}

.game-icon.mines {
    background-color: #6c5dd3;
    background-image: url('/assets/img/icon-mines.png');
}

.game-icon.crash {
    background-color: #00a3ff;
    background-image: url('/assets/img/icon-crash.png');
}

.game-icon.live-casino {
    background-color: #ff6b6b;
    background-image: url('/assets/img/icon-live-casino.png');
}

.game-icon.explosive {
    background-color: #ffa726;
    background-image: url('/assets/img/icon-explosive.png');
}

.coin-icon {
    color: #f7d74b;
    margin-right: 5px;
    font-size: 18px;
}

.bonus-badge {
    background-color: #242836;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
}

.td.payout {
    font-weight: 600;
}

.payout.win {
    color: #4CAF50;
}

.payout.loss {
    color: #e74c3c;
}

/* 右侧用户与聊天区样式 */
.user-chat-sidebar {
    background-color: #1a1c25;
    border-left: 1px solid #2c2f3b;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* 用户信息样式 */
.user-profile {
    padding: 20px;
    border-bottom: 1px solid #2c2f3b;
}

.user-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    background-color: #6c5dd3;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.verified-badge {
    color: #f7d74b;
    margin-left: 5px;
    font-size: 14px;
}

.user-id {
    font-size: 12px;
    color: #a0a3b1;
}

.more-options {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a0a3b1;
}

.level-progress {
    margin-bottom: 15px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
    color: #a0a3b1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #242836;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a3ff, #6c5dd3);
    border-radius: 3px;
}

.balance-info {
    margin-top: 15px;
}

.balance-label {
    font-size: 12px;
    color: #a0a3b1;
    margin-bottom: 5px;
}

.balance-amount {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

.amount {
    margin-left: 5px;
}

/* 奖金卡片样式 */
.bonus-card {
    display: flex;
    align-items: center;
    background-color: #242836;
    border-radius: 12px;
    padding: 15px;
    margin: 20px;
}

.bonus-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.bonus-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bonus-info {
    flex: 1;
}

.bonus-title {
    font-size: 16px;
    font-weight: 600;
    color: #6c5dd3;
}

.bonus-text {
    font-size: 12px;
    color: #a0a3b1;
}

.claim-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #6c5dd3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.claim-btn:hover {
    transform: scale(1.1);
    background-color: #5a4cb8;
}

/* 聊天区域样式 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid #2c2f3b;
}

.chat-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    color: #a0a3b1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-tab.active {
    color: #ffffff;
    border-bottom: 2px solid #6c5dd3;
}

.chat-tab i {
    margin-right: 5px;
}

.message-count {
    font-size: 12px;
    margin-left: 5px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    margin-bottom: 20px;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    background-color: #242836;
    border-radius: 12px;
    padding: 12px;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.sender-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.message-time {
    font-size: 12px;
    color: #a0a3b1;
    margin-right: 5px;
}

.message-options {
    color: #a0a3b1;
    cursor: pointer;
    font-size: 12px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
}

.message-input {
    display: flex;
    align-items: center;
    background-color: #242836;
    padding: 15px;
    border-top: 1px solid #2c2f3b;
}

.message-input input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 0;
    outline: none;
}

.message-input input::placeholder {
    color: #a0a3b1;
}

.input-actions {
    display: flex;
    align-items: center;
}

.emoji-btn, .send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a3b1;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.emoji-btn:hover, .send-btn:hover {
    color: #ffffff;
    background-color: rgba(108, 93, 211, 0.1);
}

.send-btn {
    color: #6c5dd3;
}

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

::-webkit-scrollbar-track {
    background: #242836;
}

::-webkit-scrollbar-thumb {
    background: #2c2f3b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c5dd3;
}
