/* ==================== navigation.css ==================== */
/* 顶部导航、二级导航、底部导航、侧边栏、主题切换按钮、SVG图标基础样式 */
/* 包含：顶部导航栏、分类标签导航、底部导航栏、下拉菜单、主题切换按钮 */

/* ==================== 顶部导航栏 ==================== */
.top-nav, .top-header {
    background: linear-gradient(135deg, #2a2d4a 0%, #1a1c2e 100%);
    color: white;
    padding: 15px;
    padding-top: calc(15px + env(safe-area-inset-top));
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    box-sizing: border-box;
    border: none;
}

.top-nav h1 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.top-header h1 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: auto;
    display: inline-block;
}

.top-header .back-arrow {
    color: #ffffff;
}

/* 顶部标题栏内容 */
.header-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
}

.header-content h1 {
    margin: 0;
    text-align: center;
    flex: none;
    display: inline-block;
}

.header-dropdown {
    position: static;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-dropdown:hover {
    transform: scale(1.1);
}

.header-dropdown span {
    font-size: 12px;
}

/* 顶部标题下拉菜单 */
.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2a2d4a;
    border: 1px solid #3d4166;
    border-top: 2px solid #4CAF50;
    border-radius: 4px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    min-width: 120px;
    margin-top: 10px;
}

.header-dropdown-item {
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid #3d4166;
}

.header-dropdown-item:last-child {
    border-bottom: none;
}

.header-dropdown-item:hover {
    background: #3d4166;
    color: #fff;
}

.header-dropdown-item.active {
    color: #4CAF50;
    font-weight: bold;
    background: #3d4166;
}

/* ==================== 分类标签导航 ==================== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #2a2d4a;
    border-bottom: 2px solid #3d4166;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.category-tab {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tab:hover {
    background: #3d4166;
    color: #fff;
}

.category-tab.active {
    color: #4CAF50;
    font-weight: bold;
}


.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2d4a;
    border: 1px solid #3d4166;
    border-top: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid #3d4166;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #3d4166;
    color: #fff;
}

.dropdown-item.active {
    color: #4CAF50;
    font-weight: bold;
    background: #3d4166;
}

/* ==================== 底部导航栏 ==================== */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    z-index: 1000;
}

.bottom-nav {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.nav-item {
    text-align: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    padding: 4px 0;
}

.nav-item.active {
    color: #4CAF50;
}

.nav-item i {
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s, transform 0.3s;
}

.nav-item.active i {
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.8));
    transform: scale(1.1);
}

.nav-item i svg {
    display: block;
    fill: currentColor;
    transition: transform 0.3s;
}

.nav-item:hover i svg {
    transform: scale(1.05);
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==================== 主题切换按钮样式 ==================== */
#themeToggleBtn {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

#themeToggleBtn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* ==================== SVG图标基础样式 ==================== */
/* Logo星标 */
.logo-star {
    fill: white;
}

/* 刷新按钮图标 */
.refresh-btn-icon {
    stroke: #ffffff;
}

/* 侧边栏默认头像图标 */
.sidebar-avatar-icon {
    fill: white;
}

/* 侧边栏关闭按钮图标 */
.sidebar-close-icon {
    fill: white;
    stroke: white;
}

/* 侧边栏金色图标（推广、团队、登录） */
.sidebar-gold-icon {
    stroke: #ffd700;
}

/* 侧边栏白色图标（首页、游戏大厅） */
.sidebar-white-icon {
    stroke: white;
}
