/* 铁锈战争主题样式 */
:root {
    --rust-orange: #e67e22;
    --rust-red: #c0392b;
    --rust-dark: #2c3e50;
    --rust-darker: #1a252f;
    --rust-gray: #7f8c8d;
    --rust-light: #ecf0f1;
    --rust-yellow: #f1c40f;
}

/* 全局背景和布局 */
body.rustwar-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--rust-light);
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px !important; /* 为底部菜单预留空间 */
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 100px);
    padding-bottom: 30px; /* 防止内容被底部菜单遮挡 */
}

/* 底部固定菜单 - 始终固定在屏幕底部 */
.rust-bottom-menu {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    background: rgba(26, 37, 47, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 3px solid var(--rust-orange) !important;
    padding: 10px 0 15px 0 !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7) !important;
    margin: 0 !important;
    height: auto !important;
    width: 100% !important;
}

/* 菜单容器 */
.rust-bottom-menu .container-fluid {
    max-width: 600px;
    margin: 0 auto;
}

/* 菜单按钮 */
.rust-menu-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: var(--rust-light);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rust-menu-button:hover {
    background: linear-gradient(135deg, var(--rust-orange), #d35400);
    transform: translateY(-5px);
    border-color: var(--rust-yellow);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.rust-menu-button.active {
    background: linear-gradient(135deg, var(--rust-orange), #d35400);
    transform: translateY(-5px);
    border-color: var(--rust-yellow);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* 首页按钮特殊样式 */
.rust-menu-home {
    background: linear-gradient(135deg, var(--rust-red), #c0392b);
}

.rust-menu-home:hover {
    background: linear-gradient(135deg, #e74c3c, var(--rust-red));
}

/* 菜单指示点 */
.rust-menu-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--rust-yellow);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--rust-yellow);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* 菜单标签 */
.rust-menu-label {
    color: #bdc3c7;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: 5px;
    text-align: center;
}

.rust-menu-item.active .rust-menu-label {
    color: var(--rust-yellow);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

/* 菜单项容器 */
.rust-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

/* 菜单布局 */
.rust-bottom-menu .container-fluid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0 10px;
}

/* 移除旧的占位符样式 */
.rust-menu-placeholder {
    display: none;
}

/* 服务器横幅 */
.rust-server-banner {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(26, 37, 47, 0.9));
    border-bottom: 3px solid var(--rust-orange);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.rust-server-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23e67e22" stroke-width="1"/></svg>');
    pointer-events: none;
}

/* 状态指示器 */
.rust-status {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 8px 20px;
    display: inline-block;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

/* 特色卡片 */
.rust-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(230, 126, 34, 0.2);
    transition: all 0.3s ease;
}

.rust-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--rust-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.rust-feature-icon {
    color: var(--rust-orange);
}

/* 对战卡片 */
.rust-battle-section {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(231, 76, 60, 0.1));
    border-top: 2px solid var(--rust-red);
    border-bottom: 2px solid var(--rust-red);
}

.rust-battle-card {
    background: rgba(26, 37, 47, 0.8);
    border-radius: 10px;
    border: 2px solid var(--rust-red);
}

/* 铁锈战争主题文本 */
.rust-text {
    color: var(--rust-orange) !important;
    font-weight: bold;
}

.rust-text-glow {
    color: var(--rust-yellow);
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(241, 196, 15, 0.5); }
    to { text-shadow: 0 0 15px rgba(241, 196, 15, 0.8); }
}

/* 按钮样式 */
.rust-btn {
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-width: 2px;
}

.rust-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .rust-menu-button {
        width: 55px;
        height: 55px;
    }
    
    .rust-menu-label {
        font-size: 0.7rem;
    }
    
    body.rustwar-bg {
        padding-bottom: 85px !important;
    }
}

@media (max-width: 576px) {
    .rust-menu-button {
        width: 50px;
        height: 50px;
    }
    
    .rust-menu-label {
        font-size: 0.65rem;
    }
    
    .rust-bottom-menu {
        padding: 8px 0 12px 0 !important;
    }
    
    body.rustwar-bg {
        padding-bottom: 80px !important;
    }
}

@media (min-width: 769px) {
    .rust-bottom-menu {
        max-width: 600px;
        left: 50% !important;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        bottom: 20px !important;
        border: 3px solid var(--rust-orange);
        border-bottom: none;
    }
    
    body.rustwar-bg {
        padding-bottom: 120px !important;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 37, 47, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--rust-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* 页面切换动画 */
.page-transition {
    transition: opacity 0.3s ease;
}

/* 加载指示器 */
.rust-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--rust-orange), var(--rust-yellow));
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.rust-loading-bar.active {
    transform: translateX(0);
}

/* 菜单动画增强 */
.rust-menu-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rust-menu-item.active .rust-menu-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#mainContent {
    animation: pageFadeIn 0.4s ease;
}