* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局防止溢出 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 确保所有容器不超出视口 */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* 所有主要容器 */
.header, .search-section, .main-content, .page-content, 
.search-results-container, .games-page-search-results-container,
.games-list-container, .games-grid, .account-list-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
    background-color: #f8f9fa;
    padding-bottom: calc(60px + env(safe-area-inset-bottom)); /* 为底部导航栏留出空间，考虑安全区域 */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    box-sizing: border-box !important;
}

body.guarantee-page {
    padding-bottom: 0;
}

/* 确保header背景色正确显示 */
header.header {
    background-color: #111827 !important;
    background-image: 
        linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px) !important;
}

/* 全部游戏页面隐藏header */
body.games-page .header {
    display: none;
}

/* 全部游戏页面隐藏侧边服务按钮 */
body.games-page .side-service-btn {
    display: none;
}

/* 游戏详情页面隐藏侧边服务按钮 */
body.game-detail-page .side-service-btn {
    display: none;
}

/* 保障页面隐藏header和搜索栏 */
body.guarantee-page .header {
    display: none;
}

body.guarantee-page .search-section {
    display: none;
}

/* 客服页面隐藏header和搜索栏 */
body.service-page .header {
    display: none;
}

body.service-page .search-section {
    display: none;
}

body.service-page .main-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

body.service-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    height: 100vh !important;
    position: relative !important;
}

html.service-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
}

/* 足迹页面隐藏header和搜索栏 */
body.history-page .header {
    display: none;
}

body.history-page .search-section {
    display: none;
}

body.history-page .main-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

body.history-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    height: 100vh !important;
    position: relative !important;
}

html.history-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
}

body.guarantee-page .main-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

body.guarantee-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    height: 100vh !important;
    position: relative !important;
}

html.guarantee-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
}

#guaranteePage {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    min-height: calc(100vh - 60px) !important;
    padding-bottom: 60px !important;
    width: 100% !important;
    display: none; /* 默认隐藏，只有通过JS显示时才显示 */
    position: relative;
    z-index: 1;
}

#guaranteePage[style*="display: block"] {
    display: block !important;
}

/* 全部游戏页面的搜索栏样式 */
body.games-page .search-section {
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* 顶部区域 */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #6366f1 100%) !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px) !important;
    padding: calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(20px) calc(16px + env(safe-area-inset-left));
    color: white !important;
    position: relative;
    min-height: 160px;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(255,255,255,0.03) 30px,
            rgba(255,255,255,0.03) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(255,255,255,0.03) 30px,
            rgba(255,255,255,0.03) 60px
        );
    opacity: 0.5;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    .header-content {
        padding: 0 24px !important;
        max-width: 1200px;
    }
}

.header-title-wrapper {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    padding-left: 0 !important;
}

.title-section {
    position: relative;
    text-align: left;
}

.header-stats-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}

.header-slogan-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.3;
    letter-spacing: 1.2px;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.title-main {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 1.5px;
}

.title-accent {
    color: #fbbf24 !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    position: relative;
    letter-spacing: 1.5px;
}

.title-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-decoration {
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24 0%, rgba(251, 191, 36, 0.6) 50%, transparent 100%);
    margin-top: 6px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(251, 191, 36, 0.4);
}

.stats {
    display: flex !important;
    gap: 0 !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    flex: 0 0 auto !important;
    width: auto !important;
    position: relative !important;
    z-index: 10 !important;
    white-space: nowrap !important;
}

.stat-item {
    text-align: center;
    padding: 0 8px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 4px;
    flex-shrink: 0;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #fbbf24 !important;
    line-height: 1.3;
    white-space: nowrap;
}

.stat-label {
    font-size: 9px;
    opacity: 0.9;
    color: white !important;
    line-height: 1.3;
    white-space: nowrap;
}

.slogan {
    font-size: 15px;
    opacity: 0.95;
    color: white !important;
    font-style: normal;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', serif !important;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.guarantee-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: hidden;
}

/* 大的担保徽章（带图片） */
.guarantee-badge-large {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 15 !important;
    width: 110px !important;
    height: 110px !important;
    margin-left: auto !important;
    overflow: visible !important;
}

.guarantee-shield-image {
    width: 110px !important;
    height: 110px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4)) !important;
    animation: floatUpDown 3s ease-in-out infinite !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.guarantee-badge-text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    z-index: 3 !important;
    pointer-events: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.guarantee-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.badge-icon {
    font-size: 18px;
    color: white;
    position: relative;
    z-index: 1;
}

.badge-text {
    color: white;
    position: relative;
    z-index: 1;
}

.badge-title {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
}

.guarantee-badge-text .badge-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 2px;
}

.badge-subtitle {
    font-size: 10px;
    opacity: 0.95;
    line-height: 1.2;
}

.guarantee-badge-text .badge-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* 搜索栏 */
.search-section {
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    background: white;
    margin-top: -10px;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.search-container:focus-within {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    border-color: #f97316;
}

.search-icon {
    font-size: 16px;
    color: #f59e0b;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #1f2937;
    font-weight: 400;
}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.search-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-arrow {
    font-size: 14px;
    color: white;
}

/* 主内容区 */
.main-content {
    padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 300px);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

@media (min-width: 768px) {
    .main-content {
        padding: 16px 24px;
        max-width: 1200px;
    }
}

/* 页面内容容器 */
.page-content {
    width: 100% !important;
    max-width: 100vw !important;
    display: none;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.page-content[style*="display: block"] {
    display: block !important;
}

.page-content[style*="display: block"] {
    display: block !important;
}

/* 搜索结果容器 */
.search-results-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* 搜索结果标题横幅 */
.search-results-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.search-results-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* 搜索结果列表 */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 搜索结果项 */
.search-result-item {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.search-result-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-name {
    flex: 1;
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-arrow {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}

/* 搜索加载状态 */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

/* ========== 全部游戏页面搜索结果样式（完全独立） ========== */
.games-page-search-results-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    padding-right: 30px; /* 为字母索引留出空间，和games-list-container保持一致 */
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.games-page-search-results-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0 0 8px 0;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.games-page-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.games-page-search-result-item {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    cursor: pointer;
}

.games-page-search-result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.games-page-search-result-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.games-page-search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.games-page-search-result-name {
    flex: 1;
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-page-search-result-arrow {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}

.games-page-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.games-page-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.games-page-error-message {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
    font-size: 14px;
}

.game-item {
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.game-item-icon {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.game-item-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    width: 100%;
    min-height: 28px;
}

/* 加载动画 */
.search-results-container .loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #6b7280;
    font-size: 14px;
}

/* 空状态和错误状态 */
.no-results, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

.error-message {
    color: #ef4444;
}

/* 响应式：中等屏幕显示8列 */
@media (max-width: 1200px) {
    .search-results-container {
        grid-template-columns: repeat(8, 1fr) !important;
    }
}

/* 响应式：小屏幕显示6列 */
@media (max-width: 768px) {
    .search-results-container {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 8px;
    }
    
    .game-item {
        padding: 8px;
    }
    
    .game-item-icon {
        width: 48px;
        height: 48px;
    }
    
    .game-item-name {
        font-size: 11px;
    }
}

/* 响应式：超小屏幕显示4列 */
@media (max-width: 480px) {
    .search-results-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

/* 客服卡片容器 */
.service-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 16px;
    margin-bottom: 12px;
}

.service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 18px 28px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.25);
    transition: all 0.3s;
    cursor: pointer;
    color: white;
    max-width: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.35);
}

.service-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.service-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.service-card-desc {
    font-size: 11px;
    opacity: 0.95;
    color: white;
    position: relative;
    z-index: 1;
}

.game-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.game-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.game-name {
    font-size: 12px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.game-count {
    font-size: 14px;
    color: #f97316;
    font-weight: bold;
}

/* 侧边服务按钮 */
.side-service-btn {
    position: fixed;
    right: 12px;
    bottom: 90px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 10px 6px;
    border-radius: 14px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(249, 115, 22, 0.4);
    transition: all 0.3s;
    z-index: 100;
}

.side-service-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 5px 18px rgba(249, 115, 22, 0.5);
}

.service-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px max(0px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(0px, env(safe-area-inset-left));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    color: #6b7280;
    min-width: 45px;
}

.nav-item:hover {
    background-color: #f9fafb;
    color: #374151;
}

.nav-item.active {
    color: #8b5cf6;
    background-color: #f3f4f6;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
    color: #8b5cf6;
}

/* 全部游戏特殊样式 - 更醒目 */
.nav-item[data-page="games"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    padding: 6px 14px;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
    margin: 0 3px;
}

.nav-item[data-page="games"] .nav-icon {
    font-size: 19px;
    color: white !important;
}

.nav-item[data-page="games"] .nav-label {
    font-size: 11px;
    font-weight: 600;
    color: white !important;
}

.nav-item[data-page="games"]:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
}

.nav-icon {
    font-size: 18px;
    transition: all 0.2s;
    color: inherit;
}

.nav-label {
    font-size: 10px;
    color: inherit;
    font-weight: 500;
}

/* 图标样式 */
.fas, .far, .fab {
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: calc(14px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 20px max(12px, env(safe-area-inset-left));
        min-height: 120px;
    }
    
    .header-content {
        padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)) !important;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    /* 移动端样式已在上面定义，这里移除重复 */
    
    .header-title-wrapper {
        margin-bottom: 12px;
    }
    
    .header-stats-row {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        margin-bottom: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: space-between !important;
    }
    
    .stats {
        flex: 1;
        justify-content: space-around;
        padding: 10px 12px;
        max-width: none;
    }
    
    .guarantee-badge-large {
        flex-shrink: 0;
        width: 90px !important;
        height: 90px !important;
    }
    
    .guarantee-shield-image {
        width: 90px !important;
        height: 90px !important;
    }
    
    .header-slogan-wrapper {
        margin-top: 0;
    }
    
    .slogan {
        font-size: 13px;
    }
    
    .slogan {
        font-size: 13px;
    }
}

