

/* 头部区域 */
.encyclopedia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.encyclopedia-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 15px;
    min-width: 300px;
}

.search-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.search-icon img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.app-link {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* .app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
} */

/* 标签页导航 */
.encyclopedia-tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-item:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-item.active {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
}

/* 主要内容区域 */
.cols {
    display: flex;
    gap: 20px;
}

.main-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
}

/* 标签页内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 百科章节样式 */
.encyclopedia-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 2px;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.content-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.content-item:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.content-item:hover .item-text {
    color: white;
}

.item-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-more {
    font-size: 12px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: normal;
}

.view-more:hover {
    color: #F7931E;
    text-decoration: none;
}

/* 使用major/detail.css中的标准样式，这里不需要重复定义 */

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
    
    .encyclopedia-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .encyclopedia-tabs {
        overflow-x: auto;
        padding: 3px;
    }
    
    .tab-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cols {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-section {
        padding: 15px;
    }
    
    .section-content {
        gap: 10px;
    }
    
    .content-item {
        min-width: 100px;
        padding: 10px 15px;
    }
    
    /* 使用major/detail.css中的标准样式 */
}

@media (max-width: 480px) {
    .encyclopedia-title {
        font-size: 24px;
    }
    
    .tab-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .item-text {
        font-size: 13px;
    }
    
    /* 使用major/detail.css中的标准样式 */
}
