/* ------------------------------------------------------------
   完整保留所有原始样式 + 专业弹窗样式 + 下拉刷新完整保留 + 新增欢迎弹窗(精致小比例)
   未删除任何功能
   修改：整体比例改小，字体改小，间距改小，底部导航比例/字体也相应调小
   新增：背景彩色小球画布 (位于线条画布下方，确保线条可见)
   底部导航栏：主页按钮向上凸起，其他平整（凸起幅度相应微调）
   新增：兑换码弹窗及按钮 (完全遵循原比例/风格，未改动任何原有样式)
   【本次修改】：搜索栏与顶栏分离，搜索栏独立放在顶栏下方，增加间隔。保留全部功能与样式。
   【底部导航图标】：已更换为 Font Awesome Solid，强制居中，稳定加载。
   【搜索栏微调】：加长搜索框，背景改为浅灰色。
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}
body {
    background: linear-gradient(145deg, #ecf5fa 0%, #daeaf5 50%, #e8f0f8 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    font-size: 7.5px;
    line-height: 1.2;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px !important;
    position: relative;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    will-change: transform;
}
#colorful-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    background: transparent;
}
.header, .pull-refresh-container, .banner-section, .announcement-section,
.main-content, .bottom-nav, .sidebar, .sidebar-overlay, .modal-overlay {
    position: relative;
    z-index: 2;
}
.glass-bg-light {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.25);
}
.header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 4px 0 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-content { padding: 0 10px; }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
.logo-area { display: flex; align-items: center; gap: 6px; }
.menu-toggle {
    background: #ffffff;
    border: 1.5px solid #2c3e50;
    font-size: 15px;
    color: #2c3e50;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    backdrop-filter: none;
}
.logo { display: flex; align-items: center; gap: 3px; font-weight: 700; font-size: 10px; color: #2c3e50; }
.logo-img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.member-card-btn {
    background: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 7.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    text-decoration: none;
    backdrop-filter: none;
}
.header-stats { display: flex; gap: 5px; font-size: 7px; color: #666; }
.stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-weight: 500;
    backdrop-filter: none;
}
/* ===== 搜索栏容器（加长 + 浅灰色） ===== */
.search-section {
    padding: 6px 10px 6px;      /* 上下间距不变，左右留边 */
    position: relative;
    z-index: 99;
}
.search-container {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    background: #ffffff;         /* 容器背景保持白，不影响 */
    width: 100%;
}
.search-box {
    width: 100%;
    padding: 4px 30px 4px 12px;  /* 左右内边距加大，使输入框更长 */
    border-radius: 8px;
    border: none;
    background: #f0f2f5;         /* 浅灰色背景 */
    font-size: 8px;
    color: #1e2a36;
    backdrop-filter: none;
    box-shadow: none;
}
.search-box:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44,62,80,0.08);
}
.search-icon {
    position: absolute;
    right: 10px;                 /* 与加大后的内边距对齐 */
    top: 50%;
    transform: translateY(-50%);
    color: #5e6870;
    font-size: 9px;
}

/* 其余样式保持原样 */
.pull-refresh-container { position: relative; width: 100%; z-index: 99; pointer-events: none; display: flex; justify-content: center; margin-top: -6px; }
.refresh-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 0;
    min-height: 0;
    background: transparent;
    color: #2a405e;
    overflow: hidden;
    transition: height 0.1s ease;
    pointer-events: none;
}
.refresh-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 40px;
    padding: 4px 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px -8px rgba(50, 80, 140, 0.2), 0 0 0 1px rgba(255,255,255,0.5) inset;
    margin-bottom: 8px;
    opacity: 0.98;
}
.refresh-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    border-top-color: #2e5aaf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 3px;
    filter: drop-shadow(0 2px 6px rgba(0,20,70,0.15));
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3) inset;
}
.refresh-text { font-size: 9px; font-weight: 600; color: #1e3b6b; letter-spacing: 0.2px; text-shadow: 0 1px 4px rgba(255,255,255,0.8); }
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.banner-section { padding: 4px 8px 3px; }
.banner-image {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 3px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.25);
    min-height: 70px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.banner-image img { width: 100%; height: auto; object-fit: contain; display: block; }
.announcement-section { padding: 0 8px 3px; }
.announcement-container {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(180, 186, 192, 0.75);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.announcement-container.gray { margin-top: 3px !important; }
.announcement-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: rgba(180, 186, 192, 0.8);
}
.announcement-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(248,249,250,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    border: 1px solid rgba(180,186,192,0.6);
    backdrop-filter: blur(4px);
}
.announcement-content { flex: 1; overflow: hidden; z-index: 1; }
.announcement-title { font-size: 8px; font-weight: 600; color: #1e2a36; margin-bottom: 1px; display: flex; align-items: center; gap: 2px; }
.announcement-marquee { position: relative; height: 12px; overflow: hidden; }
.marquee-content {
    position: absolute;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-size: 7px;
    color: #3a4a5a;
    line-height: 12px;
    font-weight: 500;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.announcement-tag {
    position: absolute;
    top: -4px;
    right: 6px;
    background: rgba(248,249,250,0.9);
    color: #3a4a5a;
    font-size: 4.5px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 4px;
    z-index: 2;
    border: 1px solid #c2c8cc;
    backdrop-filter: blur(4px);
}
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    z-index: 1000;
    box-shadow: 2px 0 18px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid rgba(255,255,255,0.25);
}
.sidebar.active { left: 0; }
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar-header { text-align: center; padding: 16px 14px; background: rgba(255,255,255,0.5); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid rgba(255,255,255,0.7);
    background: rgba(248,249,250,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #cbd5e0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    border-radius: 50%;
    text-transform: uppercase;
}
.user-name { font-size: 14px; font-weight: 700; color: #1e2a36; margin-bottom: 4px; }
.user-status { font-size: 9px; color: #2c3e50; background: rgba(241,243,245,0.7); padding: 2px 10px; border-radius: 16px; display: inline-block; backdrop-filter: blur(4px); border: 0.5px solid rgba(0,0,0,0.04); }
.nav-menu { padding: 4px 10px 12px; background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); margin: 0 8px 10px; border: 1px solid rgba(255,255,255,0.4); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.nav-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 10px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(233,236,239,0.3);
    transition: all 0.2s;
    font-weight: 500;
}
.nav-item i { margin-right: 8px; font-size: 14px; width: 18px; color: #4a5b6b; }
.nav-item:hover { background: rgba(255,255,255,0.8); border-color: rgba(173,181,189,0.5); transform: translateX(2px); }
.sidebar-footer { margin-top: 2px; padding: 12px 12px; background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); margin: 6px 8px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; text-align: center; }
.app-version { font-size: 9px; color: #4a5b6b; background: rgba(248,249,250,0.7); padding: 4px 8px; border-radius: 20px; display: inline-block; backdrop-filter: blur(4px); border: 0.5px solid rgba(0,0,0,0.04); font-weight: 500; }
.game-icons-section { padding: 3px 8px 5px; }
.game-icons-title { font-size: 9px; font-weight: 600; color: #2c3e50; margin-bottom: 5px; display: flex; align-items: center; gap: 3px; }
.game-icons-scroll { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 3px; }
.game-icons-container { display: inline-flex; gap: 8px; }
.game-icon-item { display: inline-flex; flex-direction: column; align-items: center; width: 48px; text-decoration: none; }
.game-icon-image { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.2); background: #f8f9fa; display: flex; align-items: center; justify-content: center; }
.game-icon-image img { width: 100%; height: 100%; object-fit: cover; }
.game-icon-name { font-size: 7px; font-weight: 500; color: #495057; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48px; }
.feature-cards { padding: 0 8px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.feature-cards.bottom-tools { padding-top: 2px; padding-bottom: 5px; }
.feature-card {
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 6px;
    padding: 7px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.feature-card:hover { background: #f8f9fa; border-color: #aab2b8; }
.feature-icon { width: 26px; height: 26px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; flex-shrink: 0; background: #f8f9fa; border: 1px solid #e0e4e8; }
.feature-info { flex: 1; }
.feature-title { font-size: 8.5px; font-weight: 600; color: #2c3e50; margin-bottom: 1px; }
.feature-desc { font-size: 7.5px; color: #868e96; }
.game-cards-section { padding: 0 8px 5px; }
.game-cards-title { font-size: 9px; font-weight: 600; color: #2c3e50; margin-bottom: 5px; display: flex; align-items: center; gap: 3px; }
.game-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.game-card {
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), border 0.15s;
}
.game-card.visible { opacity: 1; transform: translateY(0); }
.game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.08); border-color: rgba(0, 0, 0, 0.45); }
.game-card-cover { width: 100%; aspect-ratio: 16 / 7; background: #ffffff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(0, 0, 0, 0.15); overflow: hidden; }
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card-info { padding: 4px 6px; display: flex; align-items: flex-start; gap: 4px; }
.game-card-icon { width: 12px; height: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: transparent; border-radius: 2px; overflow: hidden; }
.game-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.game-card-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.game-card-name { font-size: 9px; font-weight: 600; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tag { background: rgba(233,236,239,0.7); backdrop-filter: blur(2px); color: #495057; padding: 1px 3px; border-radius: 2px; font-size: 6px; border: 0.5px solid #dee2e6; display: inline-block; }

/* ===== 底部导航（Font Awesome 图标，强制居中） ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(230, 235, 240, 0.75);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid rgba(160, 170, 180, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7a8a;
    font-size: 9px;
    padding: 0;
    flex: 1;
    gap: 4px;
    height: 100%;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    border-radius: 20px 20px 0 0;
    margin: 0 1px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    transform: translateY(0);
}
.bottom-nav .nav-item.active {
    color: #1e3a5f;
    font-weight: 600;
    background: #ffffff;
    transform: translateY(-7px);
    box-shadow: 0 -3px 6px -2px rgba(0,0,0,0.1), 0 3px 8px -4px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.9);
    border-bottom: none;
    z-index: 10;
}
/* 图标固定容器，保证水平垂直居中 */
.bottom-nav .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;          /* 固定宽度 */
    height: 30px;         /* 固定高度 */
    font-size: 26px;      /* 图标大小 */
    line-height: 1;
    color: #5e6f7e;
    transition: color 0.2s;
}
.bottom-nav .nav-item.active .nav-icon {
    color: #1e3a5f;
}
.bottom-nav .nav-item:not(.active) {
    background: transparent;
    box-shadow: none;
    border: none;
    transform: translateY(0);
    color: #7c8a9a;
}

/* 以下为弹窗、统计、兑换码等其余样式，完全保留 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    width: 280px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 28px;
    box-shadow: 0 30px 60px -15px rgba(0, 20, 40, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.21, 1.11, 0.3, 1), box-shadow 0.3s;
    overflow: hidden;
    border: none;
    color: #1e2b39;
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-header-custom { display: flex; align-items: center; gap: 8px; padding: 14px 16px 5px; }
.modal-icon-wrapper {
    background: linear-gradient(145deg, #ffffff, #f2f5f8);
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -6px rgba(0,32,64,0.2), 0 0 0 1px rgba(0,0,0,0.06) inset;
    color: #1f3a57;
    font-size: 20px;
}
.modal-header-custom h3 { font-size: 15px; font-weight: 700; color: #1a2c3f; margin: 0; letter-spacing: -0.2px; text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
.modal-date-badge {
    background: rgba(44,62,80,0.08);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 7px;
    font-weight: 600;
    color: #2c3e50;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,0.5);
}
.modal-scroll-body {
    padding: 8px 12px 12px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(248,250,252,0.3);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    scrollbar-width: thin;
    scrollbar-color: #b0c0cf #eef3f8;
}
.modal-scroll-body::-webkit-scrollbar { width: 4px; }
.modal-scroll-body::-webkit-scrollbar-track { background: #eef3f8; border-radius: 10px; }
.modal-scroll-body::-webkit-scrollbar-thumb { background: #b0c0cf; border-radius: 10px; }
.announcement-item {
    display: flex;
    gap: 12px;
    padding: 12px 10px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02), 0 0 0 1px rgba(255,255,255,0.8) inset;
    transition: transform 0.15s, box-shadow 0.2s;
}
.announcement-item:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,20,40,0.08); background: rgba(255,255,255,0.75); }
.item-badge { width: 32px; height: 32px; border-radius: 12px; background: linear-gradient(135deg, #eaf0f6, #d8e2ed); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #1f3a57; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.item-content { flex: 1; }
.item-title { font-size: 11px; font-weight: 700; color: #102331; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.item-desc { font-size: 9px; color: #2e4258; line-height: 1.4; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.item-desc span { background: rgba(44,62,80,0.08); padding: 1px 6px; border-radius: 30px; font-size: 7px; font-weight: 600; color: #1f3a57; border: 0.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(2px); }
.new-tag { background: #ffd966; color: #3d2f1a; font-size: 7px; font-weight: 700; padding: 2px 6px; border-radius: 30px; letter-spacing: 0.3px; }
.modal-footer-buttons { display: flex; padding: 12px 16px 16px; gap: 8px; }
.modal-footer-buttons button {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    color: #1f3a57;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.modal-footer-buttons button:first-child { background: rgba(44,62,80,0.9); backdrop-filter: blur(12px); color: white; border: 1px solid rgba(255,255,255,0.3); }
.modal-footer-buttons button:active { transform: scale(0.96); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stats-section { padding: 0 8px 6px; }
.stats-container { background: #ffffff; backdrop-filter: none; border-radius: 8px; padding: 8px; border: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.stats-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; border-bottom: 1px solid rgba(233,236,239,0.7); padding-bottom: 5px; }
.stats-title { font-size: 9px; font-weight: 600; color: #2c3e50; display: flex; align-items: center; gap: 3px; }
.stats-title i { color: #666; font-size: 9px; }
.time-filter { display: flex; gap: 2px; }
.time-btn { padding: 2px 5px; background: #ffffff; border: 0.8px solid #dee2e6; border-radius: 6px; font-size: 7px; color: #666; cursor: pointer; transition: all 0.15s; font-weight: 500; backdrop-filter: none; }
.time-btn.active { background: #f1f3f5; color: #2c3e50; border-color: #2c3e50; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 380px) { .stats-grid { grid-template-columns: 1.2fr 1fr; } }
.chart-container { background: #ffffff; backdrop-filter: none; border-radius: 6px; padding: 6px; border: 1px solid rgba(0, 0, 0, 0.15); }
.chart-title { font-size: 8px; font-weight: 600; color: #495057; margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; }
.chart-title span { font-size: 7px; color: #868e96; font-weight: 500; }
.chart-wrapper { height: 80px; position: relative; display: flex; align-items: flex-end; padding-top: 3px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; height: 65px; position: relative; }
.chart-bar { width: 10px; position: relative; display: flex; flex-direction: column; align-items: center; }
.bar-value { height: var(--bar-height, 35px); width: 7px; background: #adb5bd; border-radius: 2px 2px 0 0; transition: all 0.3s; position: relative; }
.bar-value.up { background: linear-gradient(to top, #868e96, #adb5bd); }
.bar-value.down { background: linear-gradient(to top, #adb5bd, #ced4da); }
.bar-label { font-size: 6px; color: #868e96; margin-top: 2px; font-weight: 500; }
.bar-tooltip { position: absolute; top: -20px; background: #2c3e50; color: white; padding: 2px 4px; border-radius: 3px; font-size: 6px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.2s; z-index: 10; }
.bar-tooltip:after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 3px; border-style: solid; border-color: #2c3e50 transparent transparent transparent; }
.chart-bar:hover .bar-tooltip { opacity: 1; }
.chart-stats { display: flex; justify-content: space-between; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(233,236,239,0.7); }
.chart-stat { text-align: center; }
.chart-stat-value { font-size: 9px; font-weight: 600; color: #2c3e50; }
.chart-stat-label { font-size: 6px; color: #868e96; margin-top: 1px; }
.hot-apps-container { background: #ffffff; backdrop-filter: none; border-radius: 6px; padding: 6px; border: 1px solid rgba(0, 0, 0, 0.15); }
.hot-apps-title { font-size: 8px; font-weight: 600; color: #495057; margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; }
.hot-apps-title span { font-size: 7px; color: #868e96; font-weight: 500; }
.hot-apps-list { display: flex; flex-direction: column; gap: 4px; }
.hot-app-item { display: flex; align-items: center; padding: 4px; border-radius: 4px; background: #f8f9fa; transition: all 0.15s; border: 1px solid transparent; cursor: pointer; }
.hot-app-item:hover { background: #f1f3f5; border-color: #e9ecef; transform: translateY(-1px); }
.hot-app-rank { width: 16px; height: 16px; border-radius: 8px; background: #e9ecef; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 700; color: #495057; margin-right: 5px; flex-shrink: 0; }
.hot-app-rank.top { background: #f8f9fa; color: #2c3e50; border: 1px solid #dee2e6; }
.hot-app-info { flex: 1; min-width: 0; }
.hot-app-name { font-size: 8px; font-weight: 600; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.hot-app-meta { display: flex; gap: 5px; font-size: 6px; color: #868e96; }
.hot-app-downloads { display: flex; align-items: center; gap: 1px; }
.hot-app-trend { display: flex; align-items: center; gap: 1px; font-size: 6px; font-weight: 600; }
.hot-app-trend.up { color: #2c3e50; }
.hot-app-trend.down { color: #868e96; }
.hot-app-icon { width: 18px; height: 18px; border-radius: 4px; overflow: hidden; margin-left: 4px; border: 1px solid #e9ecef; background: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-app-icon img { width: 100%; height: 100%; object-fit: contain; }
.stats-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 6px; }
.stats-tag { background: #ffffff; color: #495057; padding: 2px 5px; border-radius: 6px; font-size: 7px; font-weight: 500; border: 0.8px solid #dee2e6; display: flex; align-items: center; gap: 2px; backdrop-filter: none; }
.stats-tag i { font-size: 6px; }
.stats-tag.highlight { background: #f8f9fa; color: #2c3e50; border-color: #adb5bd; }
.changelog-section { display: none; }
@media (max-width: 480px) {
    body { padding-bottom: 80px !important; }
    .bottom-nav { height: 68px; }
    .sidebar { width: 240px; left: -240px; }
}
.game-icon-item, .feature-card, .game-card, .hot-app-item, .nav-item, .time-btn, .stats-tag {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s, background 0.15s, border-color 0.15s !important;
}
.game-icon-item:active, .feature-card:active, .game-card:active, .hot-app-item:active, .time-btn:active, .stats-tag:active {
    transform: scale(0.97) !important;
}
#welcomeModal .modal-content { width: 260px; }
.welcome-avatar-circle { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin: 10px auto 6px auto; border: 2px solid rgba(255,255,255,0.8); box-shadow: 0 8px 16px rgba(0,20,40,0.2); background: #fff; display: flex; align-items: center; justify-content: center; }
.welcome-avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome-intro { text-align: center; padding: 4px 12px 12px 12px; font-size: 9px; color: #1e2b39; line-height: 1.5; }
.welcome-intro p { margin: 6px 0 4px 0; }
.welcome-intro strong { font-size: 11px; color: #1e3a5f; }
.welcome-intro .highlight { background: rgba(44,62,80,0.08); display: inline-block; padding: 2px 8px; border-radius: 30px; font-weight: 600; margin: 5px 0 2px; font-size: 8px; }
.redeem-btn { background: #ffffff; border: 1.5px solid #2c3e50; font-size: 12px; color: #2c3e50; cursor: pointer; padding: 4px 8px; border-radius: 8px; display: flex; align-items: center; gap: 4px; margin-left: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); transition: all 0.15s; }
.redeem-btn i { font-size: 12px; }
.redeem-btn:hover { background: #f0f4f8; }
#redeemModal .modal-content { width: 260px; }
.redeem-input-area { padding: 12px 16px; text-align: center; }
.redeem-input-area input { width: 100%; padding: 8px 10px; border: 1px solid rgba(0,0,0,0.2); border-radius: 12px; font-size: 10px; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); text-align: center; letter-spacing: 2px; font-weight: 600; color: #1e3a5f; outline: none; }
.redeem-input-area input:focus { border-color: #2c3e50; box-shadow: 0 0 0 2px rgba(44,62,80,0.1); }
.redeem-result { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; color: #1e3a5f; transform: scale(0.8); opacity: 0; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }
.redeem-result.show { transform: scale(1); opacity: 1; }
.redeem-result i { font-size: 22px; color: #f5b342; filter: drop-shadow(0 2px 4px rgba(255,215,0,0.4)); animation: coinTwinkle 1s infinite alternate; }
@keyframes coinTwinkle {
    0% { transform: scale(1); text-shadow: 0 0 2px gold; }
    100% { transform: scale(1.15); text-shadow: 0 0 8px #ffd966; }
}