/* 移动端专用样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    font-size: 14px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 容器 */
.container {
    width: 100%;
    padding: 0 15px;
}

/* 导航栏 - 移动端优化 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    font-size: 20px;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* 移动端菜单 */
.nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: #667eea;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav-menu.active {
    left: 0;
}

.nav-menu .nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
}

.nav-menu .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* 用户操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-actions {
    display: flex;
    gap: 8px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: white;
    font-size: 12px;
}

.username {
    font-weight: bold;
}

.balance {
    opacity: 0.8;
}

.user-menu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    padding: 10px 0;
    display: none;
    z-index: 1001;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* 主要内容区域 */
.main-content {
    margin-top: 0px;
    margin-bottom: 60px;
    min-height: calc(100vh - 60px);
}

/* 轮播图区域 - 移动端优化 */
.hero-section {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* 游戏分类 - 移动端网格 */
.game-categories {
    padding: 20px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    padding: 0 15px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.category-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 11px;
    line-height: 1.4;
}

/* 热门游戏 */
.popular-games {
    padding: 20px 0;
    background: #f5f5f5;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.game-image {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 12px;
}

.game-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.game-description {
    color: #666;
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.game-actions {
    display: flex;
    gap: 8px;
}

/* 优惠活动 */
.promotions {
    padding: 20px 0;
    background: white;
}

.promotions-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
}

.promotion-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promotion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
}

.promotion-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.promotion-card p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 13px;
    line-height: 1.4;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    margin-bottom: 10px;
    color: #ecf0f1;
    font-size: 16px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.5;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 12px;
}

/* 模态框 - 移动端优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* 加载提示 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 14px;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    left: 15px;
    right: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px 15px;
    z-index: 4000;
    transform: translateY(-100px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: #28a745;
}

.toast.error .toast-icon {
    background: #dc3545;
}

.toast.warning .toast-icon {
    background: #ffc107;
}

.toast.info .toast-icon {
    background: #17a2b8;
}

.toast-message {
    font-size: 13px;
    color: #333;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    height: 65px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    transition: color 0.3s ease;
    padding: 5px;
    height: 55px;
    justify-content: center;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #667eea;
}

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

/* 卡片组件 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.card-title {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.card-body {
    padding: 15px;
}

.card-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* 金额显示 */
.amount {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.amount.positive {
    color: #28a745;
}

.amount.negative {
    color: #dc3545;
}

.amount.zero {
    color: #6c757d;
}

/* 按钮变体 */
.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 6px 10px;
    font-size: 11px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: #495057;
    font-size: 16px;
}

.empty-state p {
    margin-bottom: 15px;
    font-size: 13px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

.loading-state .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

/* 筛选器 */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 100px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 13px;
    background: #f8f9fa;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    color: #6c757d;
    font-size: 11px;
}

/* 游戏平台标签 */
.platform-tag {
    display: inline-block;
    padding: 3px 6px;
    background: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-right: 4px;
    margin-bottom: 4px;
}

.platform-ag { background: #d4edda; color: #155724; }
.platform-bbin { background: #d1ecf1; color: #0c5460; }
.platform-cq9 { background: #fff3cd; color: #856404; }
.platform-mg { background: #f8d7da; color: #721c24; }
.platform-pg { background: #e2e3e5; color: #383d41; }

/* 游戏类型图标 */
.game-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    margin-right: 8px;
    font-size: 12px;
}

.game-type-live { background: #d4edda; color: #155724; }
.game-type-slot { background: #d1ecf1; color: #0c5460; }
.game-type-sports { background: #fff3cd; color: #856404; }
.game-type-lottery { background: #f8d7da; color: #721c24; }
.game-type-poker { background: #e2e3e5; color: #383d41; }
.game-type-fishing { background: #cce5ff; color: #004085; }

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 0;
}

/* 标签页 */
.tabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    flex-shrink: 0;
}

.tab-link {
    display: block;
    padding: 12px 16px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
}

.tab-link:hover,
.tab-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    background: white;
    color: #667eea;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.pagination button:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    color: #6c757d;
    font-size: 12px;
}

/* 表格组件 */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.table th,
.table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .hero-section {
        height: 180px;
    }
    
    .slide-content h1 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-card {
        padding: 15px 8px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    .category-card p {
        font-size: 10px;
    }
}

/* 横屏适配 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: 150px;
    }
    
    .slide-content h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .slide-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .game-categories,
    .popular-games,
    .promotions {
        padding: 15px 0;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* 余额刷新按钮样式 */
.user-balance {
    display: flex;
    align-items: center;
    gap: 5px;
}

.refresh-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: background-color 0.2s;
    font-size: 14px;
}

.refresh-btn:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.refresh-btn i {
    font-size: 14px;
}

/* 余额卡片样式 */
.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.balance-time {
    font-size: 12px;
    opacity: 0.7;
}

.balance-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.balance-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 游戏页面特定样式 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.platform-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.platform-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 10px;
    color: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.game-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.game-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
}

.game-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
}

.game-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* 测试链接样式 */
.test-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.test-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.test-links .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
}
