/* ==================== 发现页样式 ==================== */
/* 仿Telegram设置页面的卡片式设计风格 */

.faxian-container {
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==================== 顶部标题栏 ==================== */
.faxian-header {
    background: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.faxian-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    text-align: center;
}

/* ==================== 内容区域 ==================== */
.faxian-content {
    flex: 1;
    overflow-y: auto;
}

/* ==================== 分组区域（卡片式） ==================== */
.faxian-section {
    background: #ffffff;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 第一个分组的上边距 */
.faxian-section:first-child {
    margin-top: 8px;
}

/* ==================== 菜单项 ==================== */
.faxian-item {
    display: flex;
    align-items: center;
    padding: 12px 0px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
    min-height: 56px;
}

/* 非最后一项添加底部边框 */
.faxian-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: #e8e8e8;
}

.faxian-item:hover {
    background: #f5f5f5;
}

.faxian-item:active {
    background: #eeeeee;
}

/* 图标容器 */
.faxian-item-icon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.faxian-item-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* 名称和描述 */
.faxian-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faxian-item-name {
    font-size: 16px;
    color: #000000;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2px;
}

.faxian-item-desc {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 400;
    line-height: 1.2;
}

/* 右侧箭头 */
.faxian-item-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7c7cc;
}

/* ==================== 特殊项目样式 ==================== */
/* 带标签的项目 */
.faxian-item-tag {
    background: #007aff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    line-height: 1.2;
}

.faxian-item-tag.new {
    background: #007aff;
}

.faxian-item-tag.hot {
    background: #ff3b30;
}

.faxian-item-tag.premium {
    background: #5856d6;
}

/* 项目名称和标签的组合 */
.faxian-item-name-with-tag {
    display: flex;
    align-items: center;
    flex: 1;
}

/* 状态指示器 */
.faxian-item-status {
    font-size: 14px;
    color: #8e8e93;
    margin-left: 8px;
}

/* 开关样式 */
.faxian-item-switch {
    width: 51px;
    height: 31px;
    background: #e5e5e7;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.faxian-item-switch.active {
    background: #34c759;
}

.faxian-item-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.faxian-item-switch.active::after {
    transform: translateX(20px);
}

/* ==================== 空状态 ==================== */
.faxian-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    
    .faxian-section {
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .faxian-item {
        padding: 14px 0px;
        min-height: 52px;
    }
    
    .faxian-item-icon {
        width: 30px;
        height: 30px;
        margin-right: 14px;
    }
    
    .faxian-item-icon img {
        width: 18px;
        height: 18px;
    }
    
    .faxian-item-name {
        font-size: 15px;
    }
    
    .faxian-item-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    
    .faxian-section {
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .faxian-item {
        padding: 12px 0px;
        min-height: 48px;
    }
    
    .faxian-item-icon {
        width: 28px;
        height: 28px;
        margin-right: 12px;
    }
    
    .faxian-item-icon img {
        width: 16px;
        height: 16px;
    }
    
    .faxian-item-name {
        font-size: 14px;
    }
    
    .faxian-item-desc {
        font-size: 12px;
    }
    
    .faxian-item-tag {
        font-size: 11px;
        padding: 1px 6px;
    }
}

