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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    padding-bottom: 80px;
}

/* 页面容器 */
.page-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f7fa;
    position: relative;
}

/* 顶部导航栏 */
.top-nav {
    background: #3b5998;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav-close {
    font-size: 20px;
    cursor: pointer;
}

.top-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b5998;
    font-weight: bold;
    font-size: 14px;
}

.logo-text {
    font-size: 16px;
    font-weight: bold;
}

.logo-subtext {
    font-size: 10px;
    opacity: 0.8;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-btn {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

/* 页面标题栏 */
.page-header {
    background: #4a6fa5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header-back {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.page-header-title {
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4cd964;
    border-radius: 50%;
    display: inline-block;
}

/* Banner区域 */
.banner-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 15px;
    margin: 10px;
    border-radius: 12px;
    position: relative;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.banner-nav h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 5px;
}

.banner-nav-url {
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
}

.banner-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.banner-link-item {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.banner-link-item.blue {
    background: rgba(59, 130, 246, 0.3);
}

.banner-link-title {
    color: #60a5fa;
    font-size: 12px;
    margin-bottom: 3px;
}

.banner-link-url {
    color: #fff;
    font-size: 14px;
}

.banner-qq {
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    margin-top: 5px;
}

/* 公告栏 */
.notice-bar {
    background: #fff;
    margin: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-icon {
    width: 24px;
    height: 24px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.notice-text {
    flex: 1;
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户信息卡片 */
.user-card {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info-left {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.user-balance {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.user-actions {
    display: flex;
    gap: 20px;
}

.user-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.user-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-action-icon.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.user-action-icon.red {
    background: #fee2e2;
    color: #ef4444;
}

.user-action-icon.green {
    background: #d1fae5;
    color: #10b981;
}

.user-action-icon.purple {
    background: #ede9fe;
    color: #8b5cf6;
}

.user-action-text {
    font-size: 12px;
    color: #666;
}

/* 游戏网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.game-card.large {
    grid-row: span 2;
    min-height: 200px;
}

.game-card-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.game-card-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

.game-card-image {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-image img {
    max-width: 100%;
    max-height: 100%;
}

.game-card-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 推广页面样式 */
.promote-banner {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.promote-brand {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #3b5998 0%, #4a6fa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.promote-slogan {
    font-size: 24px;
    color: #3b5998;
    font-weight: bold;
}

.promote-image {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

.promote-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.promote-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.promote-step-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.promote-step-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.promote-arrow {
    color: #3b5998;
    font-size: 20px;
}

.promote-btn {
    background: linear-gradient(135deg, #3b5998 0%, #4a6fa5 100%);
    color: #fff;
    border: none;
    padding: 15px 60px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 20px auto;
}

/* 充值页面样式 */
.recharge-container {
    padding: 15px;
}

.recharge-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

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

.balance-label {
    color: #ef4444;
    font-size: 14px;
}

.balance-value {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.balance-extra {
    font-size: 13px;
    color: #3b82f6;
}

.recharge-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 20px;
}

.recharge-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    color: #666;
}

.recharge-tab.active {
    background: #fff;
    color: #3b5998;
    font-weight: bold;
}

.payment-methods {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.payment-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.payment-method-icon.alipay {
    background: #1677ff;
    color: #fff;
}

.payment-method-icon.wechat {
    background: #07c160;
    color: #fff;
}

.payment-method-icon.bank {
    background: #c41e3a;
    color: #fff;
}

.payment-method-icon.usdt {
    background: #26a17b;
    color: #fff;
}

.payment-method-icon.other {
    background: #3b82f6;
    color: #fff;
}

.payment-method-text {
    font-size: 12px;
    color: #666;
}

.recharge-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.recharge-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.recharge-btn-small {
    background: #3b5998;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.recharge-warning {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
}

.recharge-info {
    color: #666;
    font-size: 13px;
    text-align: center;
    line-height: 1.8;
}

.recharge-submit-btn {
    background: #3b5998;
    color: #fff;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.recharge-service-link {
    text-align: center;
    color: #3b82f6;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
}

/* 客服页面样式 */
.chat-container {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
    padding: 15px;
}

.chat-date {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}

.chat-welcome {
    background: #e5e5e5;
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.chat-faq-section {
    margin-top: 30px;
}

.chat-faq-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.chat-faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-faq-tag {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 13px;
    color: #3b82f6;
    cursor: pointer;
}

.chat-input-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
    max-width: 480px;
    margin: 0 auto;
}

.chat-input-icon {
    font-size: 20px;
    color: #999;
}

.chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.chat-send-btn {
    background: #ccc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 我的页面样式 */
.profile-header {
    background: #fff;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.profile-id {
    font-size: 13px;
    color: #999;
}

.profile-copy {
    color: #3b82f6;
    cursor: pointer;
}

.profile-settings {
    font-size: 24px;
    color: #666;
}

.wallet-section {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

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

.wallet-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

.wallet-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.wallet-refresh {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
}

.wallet-card {
    background: linear-gradient(135deg, #3b5998 0%, #4a6fa5 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 15px;
}

.wallet-label {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wallet-balance {
    font-size: 32px;
    font-weight: bold;
}

.wallet-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.wallet-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.stats-section {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

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

.stats-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

.stats-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.services-section {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

.services-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.services-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3b5998;
}

.service-text {
    font-size: 12px;
    color: #666;
}

/* 底部菜单 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #999;
    flex: 1;
}

.bottom-nav-item.active {
    color: #3b5998;
}

.bottom-nav-icon {
    font-size: 22px;
}

.bottom-nav-text {
    font-size: 11px;
}

.bottom-nav-center {
    position: relative;
    top: -20px;
}

.bottom-nav-center-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bottom-nav-center-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.bottom-nav-center-text {
    font-size: 11px;
}
