/* 移动端适配样式 */
:root {
    /* 底部导航栏变量 */
    --bottom-nav-height: 60px;
    --bottom-nav-icon-size: 24px;
    --bottom-nav-bg: rgba(18, 18, 18, 0.85);
    --bottom-nav-blur: 10px;
    --bottom-nav-item-width: 72px;  /* 新增：导航项宽度 */
    --gradient-width: 32px;  /* 新增：渐变提示宽度 */
}

/* 默认隐藏底部导航栏和更多菜单 */
.bottom-nav,
.more-menu {
    display: none;
}

/* 媒体查询：移动设备 */
@media (max-width: 768px) {
    /* 底部空间，为底部导航栏腾出空间 */
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
    
    /* 隐藏顶部导航栏 */
    .site-header {
        display: none;
    }
    
    /* 隐藏PC端页脚 */
    .site-footer {
        display: none;
    }
    
    /* 显示底部导航栏 */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: var(--bottom-nav-height);
        background-color: var(--bottom-nav-bg);
        backdrop-filter: blur(var(--bottom-nav-blur));
        -webkit-backdrop-filter: blur(var(--bottom-nav-blur));
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* 滑动容器样式 */
    .bottom-nav-scroll {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 16px;
        width: 100%;
        position: relative;
    }

    .bottom-nav-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--dark-text-secondary);
        text-decoration: none;
        min-width: var(--bottom-nav-item-width);
        height: 100%;
        transition: all 0.3s ease;
        padding: 8px 0;
        flex-shrink: 0;
    }
    
    /* 右侧渐变提示 */
    .nav-gradient-right {
        position: absolute;
        right: 0;
        top: 0;
        width: var(--gradient-width);
        height: 100%;
        background: linear-gradient(to right, transparent, var(--bottom-nav-bg));
        pointer-events: none;
        z-index: 2;
    }

    .bottom-nav-item.active {
        color: var(--dark-primary);
    }
    
    .bottom-nav-icon {
        font-size: var(--bottom-nav-icon-size);
        margin-bottom: 4px;
    }
    
    .bottom-nav-text {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }
    
    /* 底部导航栏动画效果 */
    .bottom-nav-item:active {
        transform: scale(0.95);
    }
    
    /* 更多菜单样式 */
    .more-menu {
        position: fixed;
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        left: 0;
        width: 100%;
        background-color: var(--dark-elevated);
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        padding: 16px;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }
    
    .more-menu.active {
        transform: translateY(0);
    }
    
    .more-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .more-menu-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    .more-menu-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .more-menu-items {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .more-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--dark-text-secondary);
    }
    
    .more-menu-item-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        font-size: 24px;
    }
    
    .more-menu-item-text {
        font-size: 12px;
        text-align: center;
    }
    
    /* 专访页面移动端适配 */
    .interviews-filter {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 6px 12px;
        margin: 0;
    }
    
    .interview-item {
        margin-bottom: 20px;
    }
    
    .interview-content {
        padding: 16px;
    }
    
    /* 页面内容适配 */
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    /* 滑入动画 */
    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .bottom-nav-item {
        animation: slideUp 0.5s ease forwards;
        opacity: 0;
    }
    
    .bottom-nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .bottom-nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .bottom-nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .bottom-nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }
} 